AGENT SKILL

export-cards

Exports flashcards from an EstudeMe vault into a neutral JSON file (suitable for Anki import). Use when the user asks 'export my cards', 'export cards to Anki', 'give me a card export', or wants to take cards out of the vault. Don't use to list cards in place — use list-cards.

License 许可
MIT
所属仓库
josenaldo/estudeme
最近更新
2026-05-25
Stars
★ 0
Forks
0

01 前言 Front Matter

name
export-cards
license
MIT
description
Exports flashcards from an EstudeMe vault into a neutral JSON file (suitable for Anki import). Use when the user asks 'export my cards', 'export cards to Anki', 'give me a card export', or wants to take cards out of the vault. Don't use to list cards in place — use list-cards.
compatibility
claude-code, gemini-cli, copilot, codex

03 SKILL.md 正文

Skill: Export Cards

Instructions

Step 1: Gather inputs

  • [ ] Confirm the vault path.
  • [ ] Confirm the output file path. Default to cards.json in the current working directory if the user does not specify.

Step 2: Run the CLI

  • [ ] Execute: estudeme cards export <vault-path> --output <output-file>
  • [ ] Capture exit code and any messages.

Step 3: Confirm

  • [ ] On success: report the output file path and the count of cards exported.
  • [ ] Suggest the user verify the file (e.g., wc -l <output> or open it).

Critical

  • The export writes a new file outside the vault — it does not modify the vault.
  • If the output file already exists, the CLI overwrites it. Warn the user before running if they did not explicitly ask for overwrite.

Examples

Example 1: Default location

User says: "Export my cards from ~/study/my-vault."

Actions:

  • Confirm the output path with the user: "Save as cards.json here?"
  • Run estudeme cards export ~/study/my-vault --output cards.json
  • Report the file path and card count

Result: A JSON file ready for Anki import or downstream tooling.

Troubleshooting

Error: Permission denied: cannot write to <path>

  • Cause: the output directory is not writable.
  • Solution: ask the user for an alternate path.

Error: No cards to export

  • Cause: vault has no type: card documents.
  • Solution: nothing to export — confirm with the user that they expected cards.

Performance Notes

  • The export is fast for typical vaults (< 1000 cards). No batching needed.

04 同仓库更多 Skills

josenaldo
josenaldo/estudeme

list-trails

A test skill that should be ignored by the vault parser.

★ 0
josenaldo
josenaldo/estudeme

validate-vault

Validates an EstudeMe vault: checks frontmatter against the schema for each document type and reports broken wikilinks. Use when the user asks 'validate my vault', 'check my vault', 'any broken links', 'is my vault healthy'. Don't use to inspect a specific trail's progress — use inspect-trail.

★ 0
josenaldo
josenaldo/estudeme

review-vault-state

Gives a complete state overview of an EstudeMe vault by orchestrating validation, trail listing, and metrics into a single coherent report. Use when the user asks 'how is my vault', 'give me an overview', 'state of my study system', 'review my vault'. Don't use for a single trail — use inspect-trail.

Skill与智能体开发
★ 0
josenaldo
josenaldo/estudeme

report-metrics

Reports vault-wide metrics in an EstudeMe vault: trail count, module count, notes per trail, cards per trail, overall structure summary. Use when the user asks 'show vault metrics', 'how is my progress overall', 'give me numbers on my vault'. Don't use to inspect a single trail — use inspect-trail.

行政与办公人员
★ 0
josenaldo
josenaldo/estudeme

list-trails

Lists all trails (learning tracks) in an EstudeMe vault. Use when the user asks 'what trails do I have', 'list my trails', 'show me my trails', or wants an overview of their learning tracks. Don't use for progress detail on a specific trail — use inspect-trail.

★ 0
josenaldo
josenaldo/estudeme

list-cards

Lists all flashcards in an EstudeMe vault. Use when the user asks 'list my cards', 'what flashcards do I have', 'show me my cards', or wants a card inventory. Don't use to export cards to an external format — use export-cards.

★ 0