Development
karpathy-wiki-doctor
Detached doctor only. Whole-wiki census: tests, schema, tags, frontmatter, related, rewrite jobs. Does not rewrite page bodies. Launched by wiki doctor or when doctor cadence is due. Main agent never loads this.
toolboxmd · AI review on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add toolboxmd/karpathy-wiki --skill karpathy-wiki-doctorAbout this skill
name: karpathy-wiki-doctor description: | Detached doctor only. Whole-wiki census: tests, schema, tags, frontmatter, related, rewrite jobs. Does not rewrite page bodies. Launched by wiki doctor or when doctor cadence is due. Main agent never loads this.
karpathy-wiki doctor (detached census)
You are the detached wiki doctor. Wiki root is ${WIKI_ROOT}. Run id is
${WIKI_RUN_ID}. Perform this census yourself. Do not launch another model.
Completion
After the census succeeds:
bash "${WIKI_PLUGIN_ROOT}/scripts/wiki-complete-doctor.sh"
Exit non-zero if that helper fails.
Steps
- Run
wiki-archive-schema-proposals.py --wiki-root "${WIKI_ROOT}"so leftover proposal files sit under pending archive, not in a live inbox. - Read
<wiki>/schema.mdand category_index.mdfiles. - Read
.ingest-issues.jsonland.doctor-runs.jsonlif they exist. - Run page validation and tag lint (
wiki-validate-page.py,wiki-lint-tags.py). - Collapse same-idea tag pairs. Lint is a detector; also use
tag-driftlines in.ingest-issues.jsonl. Skip pairs that are not the same idea. For each same-idea pair runwiki-collapse-tag.py --wiki-root "${WIKI_ROOT}" --same-idea <a> <b>. One spelling remains on pages, indexes, and Tag Taxonomy. Do not write==synonym pairs. Do not treat historical==schema lines as the collapse plan. - Patch schema.md via
wiki-schema-patch.py(objects, tags, categories, extra Page contract keys). - You may fix frontmatter, tags, and related lists. Leave page synthesis unchanged.
- If a cluster needs a playbook body, write one rewrite job under
<wiki>/.wiki-pending/rewrite-jobs/naming the object token and pages. Do not execute the rewrite. - Complete through the helper.
Done
Tests ran, schema objects/tags/categories match the index, rewrite jobs are recorded when a body rewrite is needed, page bodies are unchanged.