agentleFS
jaxiahjaxiah/jskills/anki-refine/SKILL.md

anki-refine

Skill0 starsChanged 56 days agoMITView on GitHub

Refine Obsidian Markdown h4 blocks that represent Anki notes, located by ^anki-... anchor or h4 heading. Use when the user asks to refine, shorten, rewrite, split, review, or apply changes to an Anki note block identified by an anchor or h4 heading.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the Obsidian h4 block as the source of truth for the Anki note.

    line 12
  2. Very specific:

    Only write back when the user explicitly gives a clear apply instruction, such as apply or write back.

    line 16
  3. Distinctive:

    When in doubt, treat the request as review/proposal-only.

    line 17
  4. Distinctive:

    When applying, replace only the matched h4 block.

    line 18
  5. Very specific:

    When rewriting note content, use the ankify skill for card quality and note format.

    line 20
  6. Distinctive:

    Use literal search for an anchor:

    line 31
  7. Distinctive:

    Use literal search for a h4 heading:

    line 37
  8. Very specific:

    If the .md file is unknown, then search the smallest likely folder first, such as ddca/, before falling back to ..

    line 43
  9. Distinctive:

    If multiple matches exist, show the candidate file paths/headings and ask the user which one to use.

    line 47
  10. Distinctive:

    Keep Obsidian wiki image links intact.

    line 51
  11. Distinctive:

    Follow the user's punctuation rule: use English half-width punctuation in all Chinese text.

    line 52
  12. Distinctive:

    Before editing, restate which file and h4 heading will be replaced.

    line 56
  13. Distinctive:

    If the original block had an anchor, check that it still exists.

    line 60
  14. Distinctive:

    Check that no Chinese full-width punctuation was introduced.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Anki Refine

Refine Obsidian Markdown h4 blocks that represent Anki notes.

Core Workflow

  1. Treat the Obsidian h4 block as the source of truth for the Anki note.
  2. Locate the Anki note block by either the supplied ^anki-... anchor or the supplied h4 heading text.
  3. By default, do not write files. First provide the refined note in the chat for review.
  4. Iterate in chat until the user approves the exact wording.
  5. Only write back when the user explicitly gives a clear apply instruction, such as apply or write back.
  6. When in doubt, treat the request as review/proposal-only. Never infer writeback permission from the fact that the user supplied exact replacement text.
  7. When applying, replace only the matched h4 block. Do not modify unrelated notes.

When rewriting note content, use the ankify skill for card quality and note format. This skill controls locating, chat review, and scoped write-back.

Locating the Note

Preferred locators:

  • ^anki-... anchor: globally unique and most reliable.
  • #### ... h4 heading text: acceptable when the user provides the exact heading and it is unique in the vault.

Prefer the narrowest known Markdown file scope. If the user names a .md file, the recent context clearly identifies the note file, or a nearby note was just edited in the same file, run rg directly against that .md file first. Do not start with a vault-wide search unless the target file is unknown.

Use literal search for an anchor:

rg -n "\^anki-123" "path/to/note.md"

Use literal search for a h4 heading:

rg -n -F "#### exact heading text" "path/to/note.md"

If the .md file is unknown, then search the smallest likely folder first, such as ddca/, before falling back to ..

After finding the target, read the full h4 block: from the matched #### heading through the line before the next #### heading, or EOF. If locating by h4 heading, confirm the full heading line is an exact match before applying. If locating by anchor, first find the preceding #### heading. Preserve the anchor line unless the user explicitly asks to remove it.

If multiple matches exist, show the candidate file paths/headings and ask the user which one to use. Do not write back unless the source h4 block is uniquely identified.

Local Editing Conventions

  • Keep Obsidian wiki image links intact.
  • Follow the user's punctuation rule: use English half-width punctuation in all Chinese text.

Applying Back

Before editing, restate which file and h4 heading will be replaced. Use a scoped edit that only replaces the selected h4 block. Clear Chinese instructions meaning write back, replace, or apply are also valid apply instructions.

After editing:

  • If the original block had an anchor, check that it still exists.
  • Check that no Chinese full-width punctuation was introduced.
  • Briefly report the changed file and heading.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.