Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计提醒

eudic-to-ankieudic 到 anki

Agent Skill

eudic-to-anki 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

235

周安装

10

GitHub Stars

公开资料未说明

下载量

82
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:eudic-to-anki(eudic 到 anki)
来源仓库:https://github.com/trvs-lab/eudic-to-anki-skills
仓库路径:skills/eudic-to-anki
安装命令:
npx skills add https://github.com/trvs-lab/eudic-to-anki-skills --skill eudic-to-anki
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/trvs-lab/eudic-to-anki-skills --skill eudic-to-anki

简介

eudic-to-anki 实现从欧路词典到 Anki 的词汇数据导出与同步功能。

  • 适用于语言学习者批量导入单词卡片或构建个人记忆库的场景。
  • 支持模块化内部结构,便于扩展自定义字段或调整导出格式。
  • 安装前建议检查本地环境是否具备运行脚本所需的依赖条件。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Eudic Anki Pipeline (Unified Skill)

Audience

This file is for the executing agent. The user gives natural-language goals; the agent executes end-to-end.

Distribution

This skill lives under skills/eudic-to-anki/ in the source repository so it can be installed with the Vercel skills CLI (npx skills add <owner>/<repo> --skill eudic-to-anki). After install, treat this directory (where SKILL.md lives) as the cwd for every command below. See the repository root README.md for the exact install line once the repo is public on GitHub.

Scope

Single skill, modular internals:

  • Export module: modules/export/README.md
  • Coach module: modules/coach/README.md
  • Import module: modules/import/README.md
  • Audio module: modules/audio/README.md
  • Workflow playbooks: workflows/*.md

All commands below assume cwd is this skill root: eudic-to-anki/.

Defaults

  • Date: yesterday (local timezone) unless user specifies range.
  • Source: all Eudic categories unless user specifies category.
  • Deck: words unless user specifies.
  • Note type: TRVS-Lab.
  • Intermediate artifacts: the user's dedicated Documents artifact dir only. Use the canonical absolute form <ABS_TEMP_DIR> such as /Users/alice/Documents/eudic-to-anki-temp.
  • Optional override for local testing/custom setups: EUDIC_TO_ANKI_TEMP_DIR=/path/to/temp.
  • For rule-sensitive runs, expand artifact paths to an absolute directory such as /Users/alice/Documents/eudic-to-anki-temp; do not execute them with ~ or $HOME.

Execution Discipline

<ABS_TEMP_DIR> below means the user's expanded artifact directory, for example /Users/alice/Documents/eudic-to-anki-temp.

  • Run rule-covered commands as direct argv commands only.
  • Do not wrap them in /bin/zsh -lc..., zsh -lc..., bash -lc..., env..., or FOO=bar....
  • Do not chain prep with &&, ||, ;, pipes, or subshells around a rule-covered command. Run prep and the main command as separate tool calls.
  • When cwd is this skill root, use relative script paths like python3 scripts/eudic_export.py....
  • When cwd is elsewhere, use absolute installed-skill paths like python3 /Users/alice/.agents/skills/eudic-to-anki/scripts/eudic_export.py....
  • If login zsh is required for token loading, call python3 scripts/run_with_login_zsh.py python3 scripts/eudic_export.py... directly; do not add another shell wrapper around it.
  • If <ABS_TEMP_DIR> does not exist, create it first with a separate direct command: mkdir -p /Users/alice/Documents/eudic-to-anki-temp.

Quick Start (agent flow)

  1. Ensure temp dir exists:
  • mkdir -p <ABS_TEMP_DIR>
  1. Environment check:
  • bash scripts/check_env.sh
  1. Export words:
  • python3 scripts/eudic_export.py --all-categories --start-date <D> --end-date <D> --format csv --output <ABS_TEMP_DIR>/_day_<D>_export.csv
  1. Build placeholder + author coach:
  • python3 scripts/build_dia_json_from_csv.py --csv <ABS_TEMP_DIR>/_day_<D>_export.csv --output <ABS_TEMP_DIR>/_day_<D>_partial.json --batch-date <D> --eudic-words-only
  • The partial JSON preserves Eudic context_line as source_context; use it when authoring examples. Agent writes refined coach JSON per references/word-coach-json-prompt.md, then merge (single file or batches + scripts/merge_coach_with_partial.py).
  1. Validate:
  • python3 scripts/validate_trvs_coach_json.py <ABS_TEMP_DIR>/_day_<D>_import.json
  1. Dry-run import:
  • python3 scripts/ankiconnect_import.py --input <ABS_TEMP_DIR>/_day_<D>_import.json --deck words --create-deck --dia-upsert --verify-required-fields --dry-run
  1. Import with audio (successful import triggers Anki sync by default; use --no-sync to skip):
  • python3 scripts/ankiconnect_import.py --input <ABS_TEMP_DIR>/_day_<D>_import.json --deck words --create-deck --dia-upsert --require-audio --verify-required-fields --audio-provider command --audio-format mp3 --audio-command 'python3 scripts/edge_tts_runner.py --text "{word}" --output "{output}"'
  • --audio-command is parsed as argv and executed without a shell; shell operators like pipes/redirection are unsupported.
  1. Cleanup after success:
  • bash scripts/cleanup_import_artifacts.sh

Quality Gates

  • Agent authors coach content; do not bulk-copy Eudic exp/phon into coach fields by default.
  • Coach JSON must preserve POS explicitly: include part_of_speech on every note, and keep POS markers at the start of each Chinese meaning line.
  • Every final import note must have complete AmE IPA in pronunciation, a non-empty example, and at least two common collocations.
  • Chinese meaning must be regenerated as short, natural, dictionary-style Chinese labels. Do not paste Eudic exp, and do not write explanatory definitions such as n. 由一个碳原子和两个氧原子组成的气体; write n. 二氧化碳 and put explanations in english_definition.
  • english_definition is required and must be a concise, friendly, explanatory learner definition in plain English, similar to vocabulary.com style; avoid bare synonyms, Chinese text, or long encyclopedia definitions.
  • Audio is required in the final Anki note. The import command must generate or preserve a [sound:...] tag in 发音; use --require-audio --verify-required-fields on the real import.
  • Prefer clear learner translations over stiff terms: e.g. sprites can be n. 游戏里的小图;角色图, and interconnect can be v. 连在一起;互相关联.
  • root must be generated for each word when useful, using 形式(中文义)+...; use - only for genuinely unsplittable or unhelpful cases. A whole batch of root: "-" is invalid.
  • Examples follow source-first rules: keep a complete, natural, not-too-long source_context sentence; shorten/rewrite noisy, truncated, or overly long source while preserving the original situation; invent a simple example only when no source sentence exists.
  • Treat suspicious one-letter entries other than a/I as likely export fragments and stop for review instead of importing blindly.
  • For large lists, use batched subagents and validate each batch before merge.
  • If subagent output is base64, decode via:

- python3 scripts/decode_subagent_transcript_b64.py <subagent.jsonl> -o <ABS_TEMP_DIR>/coach_batch_01.json

  • Block import on validator errors (U+FFFD, mojibake markers, wrong field types, missing IPA/example/collocations/english_definition, weak English definitions, long/explanatory meanings, missing POS markers, missing part_of_speech, all-placeholder roots, or suspicious single-letter words).
  • Run ankiconnect_import.py --dry-run --verify-required-fields before the real import, then run the real import with --require-audio --verify-required-fields and spot-check several notes in Anki, especially 音标释义英英词根例句常用搭配发音.
  • After a successful import, ankiconnect_import.py runs Anki sync by default; pass --no-sync to skip.
  • If validation fails (especially root format), regenerate only the failed batch/words and re-run validator before merge/import.

Playbooks

  • Yesterday flow: workflows/yesterday.md
  • Date range flow: workflows/date-range.md
  • User word list flow: workflows/word-list.md

Safety

  • Never store token values in tracked files.
  • Prefer EUDIC_TOKEN from environment.
  • If AnkiConnect is unavailable, stop and provide setup guidance.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.94%
按下载量换算32

Claude

28.73%
按下载量换算24

Cursor

20.24%
按下载量换算17

Gemini CLI

9.36%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/trvs-lab/eudic-to-anki-skills --skill eudic-to-anki 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills