do-wiki-amend
Skill0 starsChanged 6 months agoApache-2.0View on GitHub
Correct or update existing wiki content when newer evidence shows the wiki is wrong, stale, incomplete, or contradicted. Use this when the agent discovers the wiki says X but we now know Y, when code or real-world changes invalidate a wiki claim, or when the user asks to fix or amend the wiki. Not for adding new sources, routine learnings capture, structural normalization, or health checks; use /do-wiki-add, /do-wiki-learnings, /do-wiki-align, or /do-wiki-lint.
In this repository15 other files it gives its agents.
- agent-md-improverSkill
- do-agentsSkill
- do-amendSkill
- do-planSkill
- do-researchSkill
- do-startSkill
- do-wiki-addSkill
- do-wiki-alignSkill
- do-wiki-buildSkill
- do-wiki-learningsSkill
- do-wiki-lintSkill
- do-wiki-querySkill
- do-wiki-reviewSkill
- revise-agent-mdSkill
- setup-obsidian-vaultSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 17 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
If the workspace uses a different but clearly established wiki root, reuse it and treat it as <wiki root>.
- Distinctive: line 39
If no wiki exists, stop. There is nothing to amend.
- Very specific: line 44
If no metadata or status not "ready": run which qmd 2>/dev/null then qmd collection list 2>/dev/null.
- Distinctive: line 45
If qmd is still not ready: use Grep/Glob to find affected pages.
- Very specific: line 48
If qmd is ready, read ${CLAUDE_SKILL_DIR}/references/qmd-usage.md for broadening affected-page discovery.
- Distinctive: line 52
Read the conversation context for the specific claim, fact, or page that needs correcting.
- Very specific: line 53
If $ARGUMENTS names a specific page or topic, use that as the primary target.
- Very specific: line 54
If $ARGUMENTS is descriptive, search index.md and use Grep to find pages that contain the stale or wrong content.
- Distinctive: line 56
Read each candidate page to confirm it actually contains the issue before proposing changes.
- Distinctive: line 57
If qmd results are noisy or irrelevant, ignore them and rely on Grep and Glob.
- Distinctive: line 59
Do not amend pages you have not read.
- Distinctive: line 63
Before touching any wiki page, read:
- Distinctive: line 81
Completion: not wrong but materially incomplete
- Distinctive: line 122
Wait for explicit confirmation.
- Distinctive: line 130
Handle completion: Add missing content in the appropriate section.
- Very specific: line 144
Refresh qmd after writes: If qmd was ready and you wrote to the wiki, run qmd update -c <collection> 2>/dev/null.
- Distinctive: line 178
If the amendment was trivial (a typo or minor wording fix), say so and skip strikethrough preservation.
- Distinctive: line 188
When auto-triggering: briefly tell the user what you found, invoke this skill, follow the proposal-then-apply flow.
- Very specific: line 190
Do not auto-trigger for: missing content that was never in the wiki (/do-wiki-add), structural or naming issues (/do-wiki-align), link …
- Distinctive: line 200
Do not turn an amendment into a full page rewrite.
- Very specific: line 201
Update index.md and log.md on every amendment.
- Very specific: line 202
Do not leave avoidable broken [[wikilinks]] after the amendment pass.
- Distinctive: line 204
When auto-triggering, still follow the proposal-then-apply flow.
- Distinctive: line 205
If qmd is ready, use it to broaden affected-page discovery.
- Distinctive: line 206
Never amend a page based only on qmd output.
- Distinctive: line 207
After wiki writes, refresh qmd if the collection is ready.
≈ “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
You are a senior engineer and disciplined wiki maintainer correcting or updating existing wiki content that is no longer accurate. Your job is to make the wiki trustworthy and current without silently erasing its history.
This skill is the corrective counterpart to /do-wiki-add. Use /do-wiki-add for new-source ingestion. Use /do-wiki-amend when existing wiki content needs correction.
The wiki is expected to behave like an Obsidian-friendly note graph. Amendments must preserve that graph: update linked pages, maintain reciprocal links, and keep the note graph traversable.
Input
What changed or needs correcting: $ARGUMENTS
The conversation context above this prompt contains the evidence or discovery that triggered the amendment. Read it carefully before starting.
Step 1 — Resolve wiki, identify affected pages & read contract
Locate the wiki
Find the existing wiki by looking for files such as:
wiki/SCHEMA.mdwiki/index.mdwiki/log.mdwiki/overview.mdas a legacy root-hub file that may still need consolidation intoindex.md
If the workspace uses a different but clearly established wiki root, reuse it and treat it as <wiki root>.
If no wiki exists, stop. There is nothing to amend.
Check qmd readiness
- Glob for
.wiki-metadata.json. If found, read it immediately. Ifretrieval.statusis"ready", qmd is ready — useretrieval.collection_nameand skip to discovery below. Do not run fallback checks. - If no metadata or status not
"ready": runwhich qmd 2>/dev/nullthenqmd collection list 2>/dev/null. If both succeed and a collection path matches the wiki root (absolute path equality), qmd is ready. - If qmd is still not ready: use Grep/Glob to find affected pages.
- Runtime guard: if any qmd command fails or returns stale results, treat as degraded — fall back to Grep/Glob.
If qmd is ready, read ${CLAUDE_SKILL_DIR}/references/qmd-usage.md for broadening affected-page discovery.
Identify affected pages
- Read the conversation context for the specific claim, fact, or page that needs correcting.
- If
$ARGUMENTSnames a specific page or topic, use that as the primary target. - If
$ARGUMENTSis descriptive, searchindex.mdand useGrepto find pages that contain the stale or wrong content. - If qmd is ready, follow
references/qmd-usage.mdto find all notes likely influenced by the stale or wrong claim. - Read each candidate page to confirm it actually contains the issue before proposing changes.
- If qmd results are noisy or irrelevant, ignore them and rely on Grep and Glob.
Do not amend pages you have not read.
Read the wiki contract
Before touching any wiki page, read:
<wiki root>/SCHEMA.md<wiki root>/index.md- the most recent relevant parts of
<wiki root>/log.md ${CLAUDE_SKILL_DIR}/references/amendment-triage.md${CLAUDE_SKILL_DIR}/references/amend-checklist.md
Step 2 — Triage, propose & apply
Triage the amendment
Classify using ${CLAUDE_SKILL_DIR}/references/amendment-triage.md:
- Correction: factually wrong claim now known to be wrong
- Supersession: older state overtaken by newer events or decisions
- Completion: not wrong but materially incomplete
- Contradiction surfacing: newer evidence introduces a conflicting view that should coexist
Severity: high (could mislead future sessions), medium (misleading but unlikely to cause harm), low (minor imprecision).
Build the proposal (do not edit yet)
For each affected page, describe:
- What the wiki currently says
- What it should say instead (or what should be added alongside)
- The amendment type and severity
- Which other pages need updating as a consequence
Present in this format:
## Amendment proposal
### T1 — <page path>
**Current content:** <quote or summary>
**Proposed change:** <what you will do>
**Type:** correction | supersession | completion | contradiction
**Severity:** high | medium | low
**Cascading updates:**
- <other page path>: <what changes there>
### Index and log updates
- `index.md`: <what changes, if anything>
- `log.md`: entry will be appendedThen ask:
"Does this amendment proposal look right? If yes, I'll apply it. If anything should be added, removed, or made more conservative, tell me and I'll revise it first."
Wait for explicit confirmation.
Apply the amendment (after confirmation)
Correct factual errors: Replace the incorrect claim. Preserve old claim as strikethrough for high-severity: ~~Old claim~~ — corrected YYYY-MM-DD: new claim. Add correction note: > Corrected YYYY-MM-DD: <reason>.
Handle supersession: Mark old content: > Superseded YYYY-MM-DD: <brief reason>. Add new content. Do not delete old content if it explains how a decision was reached.
Handle completion: Add missing content in the appropriate section. Link to new or existing pages. Do not rewrite the entire page.
Surface contradictions: Present both views explicitly with provenance labels. Add an open question if not resolvable.
Update related pages: Pages that link to the amended page. Entity, topic, or concept pages that reference superseded info. index.md if descriptions changed. Do not over-propagate — only touch pages materially affected.
Log entry:
## [YYYY-MM-DD] amend | <summary of what changed>Capture: what was wrong, what was corrected/superseded/completed/surfaced, pages modified, unresolved contradictions or open questions.
Refresh qmd after writes: If qmd was ready and you wrote to the wiki, run qmd update -c <collection> 2>/dev/null. If refresh fails, report it but do not roll back wiki edits.
Step 3 — Report back
Wiki amended
### Amendment type
- correction | supersession | completion | contradiction
### Severity
- high | medium | low
### Touched pages
- <path>
### Preserved history
- <what old claims were kept as historical context or strikethrough, or "none">
### Open questions
- <question or "none">
### Next useful command
- `/do-wiki-lint [scope]` or `/do-wiki-add <another source or topic>`If the amendment was trivial (a typo or minor wording fix), say so and skip strikethrough preservation.
Auto-triggering guidance
This skill auto-triggers when the agent recognizes that wiki content no longer matches what the agent now knows to be true.
Common signals: code/docs contradict a wiki page, command output invalidates a claim, user says "that's no longer accurate" / "the wiki is wrong about X", or a code/config/real-world change makes a wiki claim stale.
When auto-triggering: briefly tell the user what you found, invoke this skill, follow the proposal-then-apply flow.
Do not auto-trigger for: missing content that was never in the wiki (/do-wiki-add), structural or naming issues (/do-wiki-align), link health or convention drift (/do-wiki-lint), or answering a question (/do-wiki-query).
Rules
- Proposal first. Do not edit anything before explicit confirmation.
- Preserve history for high-severity corrections and supersessions.
- Make contradictions explicit. Never silently replace one view with another.
- Raw-source files are immutable.
- Do not turn an amendment into a full page rewrite. Make the smallest correct change.
- Update
index.mdandlog.mdon every amendment. - Do not leave avoidable broken
[[wikilinks]]after the amendment pass. - Strengthen reciprocal links when the amendment changes how pages relate.
- When auto-triggering, still follow the proposal-then-apply flow.
- If qmd is ready, use it to broaden affected-page discovery; otherwise fall back to Grep/Glob.
- Never amend a page based only on qmd output. Always read the actual wiki files first.
- After wiki writes, refresh qmd if the collection is ready. If refresh fails, report it but do not roll back.
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.

