Polishes an existing wiki page: frontmatter compliance, body style, wikilink enrichment, and content quality audit. Maintainer-facing operation.
For creating new pages from raw/, see docs/WIKI-SKILL.md.
For adding source material to raw/, see docs/INGEST-SKILL.md.
- Do not change substantive wording, headings, tables, or meaning unless the content quality audit reveals an unsupported claim — in that case, flag it rather than silently rewriting it.
- Never fabricate
sources:URLs. If no URL exists in theraw/file'surl:field,sources: []stays as-is. - Never link to pages or anchors not in the link map.
- Never use
raw/...paths in the page body. - Never open the body with a
#heading. Never use---in the body. - Never fetch external info. Do not open or retrieve content from any URL and do not use web search/browsing while enhancing pages. URLs exist only for reader-facing citation (
sources:and the Sources section), not as input material. - Do not use model knowledge as a source. Do not use the model's prior/training knowledge to add or justify facts. Existing project wiki pages may be used to discover what to check and what to link, but only
raw/supports factual claims.
# 1. Regenerate link maps if any pages were added since the last run
python3 tools/build_link_map.py
# 2. Read the link map for the layer you are enhancing
docs/link-map-en.md # for wiki-en/ pages
docs/link-map-ru.md # for wiki-ru/ pagesBefore touching content, fix all legacy antipatterns in wiki-en/ pages:
source:singular → rename tosources:as inline arraysources:as block YAML → collapse to inline arraysources: ["url"]*Tags: ...*italic line in body → remove# Titleheading in body → remove---horizontal rules in body → removeraw/...citations in body → replace withhttps://21ideas.org/...if a URL exists insources:, otherwise remove## Related Terms→ rename to## Related pages, convert to pipe-syntax links]]]triple-bracket links → strip extra][[wiki-en/...]]or[[wiki-ru/...]]prefixes → fix to[[en/...]]or[[ru/...]]- Missing
reviewed:→ add as last frontmatter field - Unquoted scalar frontmatter fields → add double quotes
- Wrong frontmatter field order → reorder to canonical sequence (see Step 2)
Frontmatter integrity check (run before and after edits):
- Confirm the file opens with
---on line 1 - Confirm there is exactly one closing
---after the frontmatter fields and before the body begins - Confirm there are zero
---lines anywhere in the body below that closing delimiter - If any of these conditions fail, fix the delimiter issue before touching anything else — a malformed frontmatter block will cause Quartz to fail the entire build
Enforce this exact field order with double-quoted scalars:
---
title: "Page title"
category: "concepts"
quality: "reference"
sources: ["https://21ideas.org/..."]
synthesized_date: "2026-04-XX"
completeness: "high"
language: "en"
tags: [bitcoin, wiki, concept, protocol]
updated: "2026-04-XX"
reviewed: "2026-04-XX"
---reviewed:is always the last fieldtagsis an unquoted flow sequence; total 3–8 tags; only allowlist tags (seeCLAUDE.md)sourcesis an inline array of quoted strings
Read the link map for the page's language layer. Scan the full page and apply. Copy all wikilink syntax verbatim from the map — do not derive or reconstruct anchors manually. If a term is not in the map, do not link it.
Verbatim means:
- Copy the full
[[...]]exactly (target,#fragment, and|label). - Do not “normalize” glossary fragments (e.g., do not convert
#Hardware wallet→#hardware-wallet). - Do not shorten or rewrite link labels (e.g., keep
PSBT (Partially Signed Bitcoin Transaction)if that is what the map provides).
Pass A — Concept backbone: primary subject on first introduction; named people and organizations; spine concepts the page depends on; explicitly mentioned protocol upgrades or systems.
Pass B — Glossary sweep: remaining terms in the page that have a
[glossary] entry in the map and are substantively used (not in passing).
Resolution rule:
- First mention → dedicated page entry
- Meaningful second mention in a different
##section where the term is being defined →[glossary]entry - All other repetitions → no link
Hard rules:
wiki-en/pages:[[en/...]]only.wiki-ru/pages:[[ru/...]]only.- No wikilinks inside markdown table cells.
- Fix any malformed links found (
]]], wrong prefixes, broken targets).
Answer all four questions. If a gap is found, add a named item to
docs/WIKI-BACKLOG.md — do not silently declare done on a thin page.
- Coverage — Does the page reflect the
raw/source adequately, or are sections present in source missing or thin here? - Thin sections — Does any
##section have fewer than two substantive sentences? Expand withraw/material or fold it. - Unsupported claims — Can every factual assertion be traced to the relevant
raw/source material? Existing project wiki pages may suggest what to check, but they do not justify facts. Flag anything that cannot be traced toraw/(and do not expand it). - Concept completeness — Does the page explain the concept (mechanism, significance, implications) or only name it?
If gaps require substantive new content from raw/, stop and run
docs/WIKI-SKILL.md Mode B (Update) instead.
- Remove any
## Related Terms/## Связанные терминыsection entirely - Ensure exactly one closing nav section:
- EN:
## Related pageswith pipe-syntax[[en/...]]links - RU:
## Дополнительные материалыwith pipe-syntax[[ru/...]]links
- EN:
- Ensure exactly one sources section:
- EN:
## Sources - RU:
## Источники
- EN:
- Every
https://21ideas.org/...URL used inline must appear in bothsources:frontmatter and the sources section (deduplicated)
python3 tools/lint.py --layer <en|ru> --write-reportFix any issues. Then append to docs/log.md:
## [YYYY-MM-DD] enhance | <page path>
**Changes:** <frontmatter fixed, wikilinks added, antipatterns removed>
**Content audit:** <solid / gaps found — list / Mode B required>
**Lint:** 0 issues
If content gaps were found, also add to docs/WIKI-BACKLOG.md:
- [ ] **<slug>** — <describe gap>
- All legacy antipatterns removed (EN pages)
- Frontmatter in canonical order; all scalars double-quoted;
reviewed:last - Pass A and Pass B wikilinks applied; all targets verified via link map
- Content quality audit answered; gaps documented if found
- Closing nav and sources sections correctly named and formatted
- Frontmatter block is intact: opens with
---, closes with exactly one---, zero---lines in body below it -
python3 tools/lint.py→ 0 issues -
docs/log.mdappended;docs/WIKI-BACKLOG.mdupdated if gaps found