Standardize a newly entered or drifting repository for both humans and AI agents. Use this skill whenever a project lacks clear README/CONTRIBUTING/CHANGELOG or core runtime docs, lacks model-facing memory, or when code changes have likely invalidated docs or memory. On first entry, inspect the repository, identify maintained paths, core entry points, source-of-truth files, and output structure, then choose one mode: audit, bootstrap, or sync. Prefer this skill before deep development in unfamiliar repositories and whenever you want the project to remain easy for both humans and agents to understand.
Standardize the repository before doing substantial work. The goal is not to generate generic documentation. The goal is to create and maintain:
Pick exactly one mode before making edits.
auditUse when:
Expected outcome:
bootstrap or sync or none)bootstrapUse when:
Expected outcome:
memory/knowledge/ skeleton.agent_memory/ local structure recommendationsyncUse when:
Expected outcome:
Default mode selection:
bootstrap.sync.audit.Do not treat every repo as needing a full bootstrap. Mature repos often need audit or a narrow sync.
If the repository shape is unclear, read references/repo_shapes.md.
Human docs usually include:
README.mdCONTRIBUTING.mdCHANGELOG.mddocs/Model memory usually includes:
memory/knowledge/*.jsonmemory/schemas/*.json.agent_memory/Read references/doc_policy.md before writing human docs.
Read references/memory_policy.md before creating model memory.
Read references/sync_rules.md before choosing what to refresh after code changes.
Bootstrap only the smallest useful set. Usually that means:
README.mdCONTRIBUTING.mdCHANGELOG.mdmemory/knowledge/memory/schemas/.agent_memory/ directory guidance and ignore rulesDo not create extra files such as skill-local README guides or redundant summaries.
Use this order when facts conflict:
If derived memory disagrees with code or shared contracts, update memory.
Use the bundled scripts when they help:
scripts/detect_repo_shape.py
scripts/audit_repo.py
scripts/bootstrap_repo.py
scripts/build_knowledge_memory.py
scripts/sync_repo.py
Use script output as evidence, not as unquestioned truth. Review the results before finalizing changes.
scripts/detect_repo_shape.py.README.md, CONTRIBUTING.md, CHANGELOG.md, and memory/knowledge/ exist.scripts/build_knowledge_memory.py.bootstrap, sync, or none.Do not use this skill for: