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.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ankifySkill
- code-kataSkill
- grill-meSkill
- md-code-tourSkill
- newsletterSkill
- task-assessorSkill
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
- Distinctive: line 12
Treat the Obsidian h4 block as the source of truth for the Anki note.
- Very specific: line 16
Only write back when the user explicitly gives a clear apply instruction, such as apply or write back.
- Distinctive: line 17
When in doubt, treat the request as review/proposal-only.
- Distinctive: line 18
When applying, replace only the matched h4 block.
- Very specific: line 20
When rewriting note content, use the ankify skill for card quality and note format.
- Distinctive: line 31
Use literal search for an anchor:
- Distinctive: line 37
Use literal search for a h4 heading:
- Very specific: line 43
If the .md file is unknown, then search the smallest likely folder first, such as ddca/, before falling back to ..
- Distinctive: line 47
If multiple matches exist, show the candidate file paths/headings and ask the user which one to use.
- Distinctive: line 51
Keep Obsidian wiki image links intact.
- Distinctive: line 52
Follow the user's punctuation rule: use English half-width punctuation in all Chinese text.
- Distinctive: line 56
Before editing, restate which file and h4 heading will be replaced.
- Distinctive: line 60
If the original block had an anchor, check that it still exists.
- Distinctive: line 61
Check that no Chinese full-width punctuation was introduced.
≈ “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.
Files
Anki Refine
Refine Obsidian Markdown h4 blocks that represent Anki notes.
Core Workflow
- Treat the Obsidian h4 block as the source of truth for the Anki note.
- Locate the Anki note block by either the supplied
^anki-...anchor or the supplied h4 heading text. - By default, do not write files. First provide the refined note in the chat for review.
- Iterate in chat until the user approves the exact wording.
- Only write back when the user explicitly gives a clear apply instruction, such as
applyorwrite back. - When in doubt, treat the request as review/proposal-only. Never infer writeback permission from the fact that the user supplied exact replacement text.
- 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.
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
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.

