classify-doc
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Classify, reclassify, relocate, or rename an existing Living Entity Wiki-classified non-ADR document under docs/, updating inbound references and Wiki consequences when required.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architecture-remediationSkill
- attentionSkill
- codebase-designSkill
- codebase-memory-mcpSkill
- codegraphSkill
- coding-standardsSkill
- contract-ledgerSkill
- conventional-commitsSkill
- database-migrationsSkill
- deduplicate-codeSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- format-codeSkill
- github-issue-dependenciesSkill
- graphifySkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implement-ticketSkill
- improve-codebase-architectureSkill
- project-delivery-managementSkill
- project-trackingSkill
- prototypeSkill
- repowiseSkill
- researchSkill
- resolving-merge-conflictsSkill
- review-architectureSkill
- review-specSkill
- setup-matt-pocock-skillsSkill
- spec-contractSkill
- spec-merge-cleanupSkill
- tddSkill
- teachSkill
- to-adr-docSkill
- to-docSkill
- to-specsSkill
- to-ticketsSkill
- triageSkill
- verify-architectureSkill
- verify-codeSkill
- verify-spec-closureSkill
- verify-specSkill
- verify-ticket-closureSkill
- verify-ticket-decompositionSkill
- wayfinderSkill
- wiki-lintSkill
- wiki-syncSkill
- wiki-synthesizeSkill
- writing-great-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. About 0 are common, 19 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use it when a document:
- Very specific: line 27
If it is under docs/adr/, use $to-adr-doc.
- Very specific: line 29
If new content is being created, use $to-doc.
- Very specific: line 31
If its path is matched by docs/.wikiignore, it is outside this skill's ownership.
- Very specific: line 35
Read docs/.wikiignore when present and apply only the exclusion grammar defined by wiki/_schema.md.
- Distinctive: line 37
If the current path is explicitly excluded:
- Distinctive: line 39
do not classify, move, or rename it under this skill.
- Distinctive: line 40
do not apply Living Entity Wiki prefix rules.
- Distinctive: line 41
follow the workflow or repository owner responsible for that documentation tree.
- Very specific: line 43
Do not infer exclusions for unfamiliar directories.
- Distinctive: line 63
Do not use or introduce:
- Very specific: line 70
If current vs proposed is genuinely ambiguous, follow the schema fail-safe and use proposed.
- Distinctive: line 83
When the active entity registry exists:
- Distinctive: line 85
use the primary Entity ID when the document belongs to one entity.
- Very specific: line 86
use platform- only for genuinely cross-cutting documents.
- Very specific: line 87
do not entity/platform-prefix process documents.
- Very specific: line 89
Use wiki/index.md for active Entity IDs.
- Distinctive: line 99
Create only the required target directory if missing.
- Distinctive: line 101
If classification and filename are already correct, no move is required.
- Distinctive: line 105
Before moving or renaming the file, find references to its existing path.
- Distinctive: line 115
Use exact path discovery.
- Very specific: line 117
Do not recreate linked_docs.
- Distinctive: line 121
Use git mv or an equivalent history-preserving operation.
- Distinctive: line 132
After the move, search for the old path again and resolve any remaining valid references.
- Distinctive: line 134
Do not add classification metadata to the document body.
- Distinctive: line 138
If the Living Entity Wiki has not been bootstrapped, skip this step.
- Distinctive: line 170
If classification did not change and the operation is purely structural:
- Distinctive: line 172
update citations and references mechanically.
- Distinctive: line 173
do not semantically rewrite wiki claims solely because their source path changed.
- Very specific: line 179
If $wiki-sync surfaces [source-conflict], do not resolve it by:
- Very specific: line 194
If $wiki-sync makes a substantive wiki mutation, its semantic wiki/log.md entry must land with that mutation.
- Very specific: line 196
Do not create a commit merely because $classify-doc or $wiki-sync ran.
- Very specific: line 216
create new classified documents — use $to-doc.
≈ “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
Classify Doc
$classify-doc owns the structural lifecycle of existing Living Entity Wiki-classified non-ADR documents under docs/.
Use it when a document:
- is unclassified or misplaced;
- belongs in a different document class;
- needs relocation because its purpose changed;
- needs its entity or
platform-prefix corrected; - is surfaced by
$wiki-lintas structurally misclassified.
For a new classified document, use $to-doc.
For an ADR, use $to-adr-doc.
1. Confirm Scope
The file must already exist, must not be an ADR, and must be inside the Living Entity Wiki document universe after docs/.wikiignore is applied.
If it is under docs/adr/, use $to-adr-doc.
If new content is being created, use $to-doc.
If its path is matched by docs/.wikiignore, it is outside this skill's ownership; use the workflow or repository owner responsible for that documentation tree.
2. Respect the Wiki Exclusion Boundary
Read docs/.wikiignore when present and apply only the exclusion grammar defined by wiki/_schema.md.
If the current path is explicitly excluded:
- do not classify, move, or rename it under this skill;
- do not apply Living Entity Wiki prefix rules;
- follow the workflow or repository owner responsible for that documentation tree.
Do not infer exclusions for unfamiliar directories. If a project-owned path is not excluded and does not satisfy a normal document class, treat it as unclassified rather than inventing a new .wikiignore entry.
3. Determine Current and Target Classification
Derive the current class from the document's location.
Apply the target-class rules in wiki/_schema.md to the document's current content and purpose, not merely its existing folder.
Possible project-owned classes are:
current
proposed
research
reference
processAn existing loose or unrecognized document may be unclassified.
Do not use or introduce:
doc_class:
Doc-Class:If current vs proposed is genuinely ambiguous, follow the schema fail-safe and use proposed.
Record:
current: <class | unclassified>
target: <class>4. Determine the Correct Filename and Destination
Apply the naming and cross-cutting-document rules in wiki/_schema.md.
When the active entity registry exists:
- use the primary Entity ID when the document belongs to one entity;
- use
platform-only for genuinely cross-cutting documents; - do not entity/platform-prefix
processdocuments.
Use wiki/index.md for active Entity IDs. Do not invent one.
Preserve the existing descriptive slug where reasonable.
The destination is:
docs/<target-class>/<correct-filename>Create only the required target directory if missing.
If classification and filename are already correct, no move is required.
5. Find Inbound References
Before moving or renaming the file, find references to its existing path.
Check at minimum:
- inline
source:citations underwiki/entities/; - cross-cutting links in
wiki/index.md; - other documents under
docs/; README.md;- repository instructions, skills, scripts, or configuration that explicitly reference the path.
Use exact path discovery.
Do not recreate linked_docs; inline source: citations remain the entity-document relationship mechanism.
6. Move Atomically
Use git mv or an equivalent history-preserving operation.
In the same change, update every known inbound reference to the new path.
This includes applicable:
- inline
source:citations; wiki/index.mdlinks;- documentation links;
- repository instructions.
After the move, search for the old path again and resolve any remaining valid references.
Do not add classification metadata to the document body.
7. Apply Living Entity Wiki Follow-Through
If the Living Entity Wiki has not been bootstrapped, skip this step.
Otherwise invoke $wiki-sync when:
- the document's classification authority changed;
- an entity claim cites the moved document;
- the document became
currentorproposed; - the document left
currentorproposed; - substantive content changed as part of the operation.
Pass the old/new class and old/new path.
Let $wiki-sync determine the semantic consequence.
In particular, do not locally assume that:
proposed → currentautomatically means:
Planned → Strict Invariantor that leaving current automatically deletes an invariant.
Those decisions require $wiki-sync's normal authority, implementation-evidence, and [source-conflict] evaluation.
Path-only move
If classification did not change and the operation is purely structural:
- update citations and references mechanically;
- do not semantically rewrite wiki claims solely because their source path changed.
Invoke full source reevaluation only if there is separate evidence that the claim itself may be stale.
8. Source Conflicts
If $wiki-sync surfaces [source-conflict], do not resolve it by:
- rewriting the document;
- altering an ADR;
- forcing the entity wiki to follow the reclassified document;
- choosing one authority unilaterally.
Complete safe mechanical path updates where appropriate, but leave judgment-bearing wiki changes unresolved until the conflict is resolved.
9. Commit Ownership
$classify-doc does not require a standalone commit when called by a parent workflow.
The document move, inbound-reference updates, and any resulting wiki mutation must land consistently with the caller's commit strategy.
If $wiki-sync makes a substantive wiki mutation, its semantic wiki/log.md entry must land with that mutation.
Do not create a commit merely because $classify-doc or $wiki-sync ran.
10. Report
Report:
- old path;
- new path;
- current classification;
- target classification;
- inbound references updated;
- whether
$wiki-syncran; - resulting wiki changes or unresolved review;
- any
[source-conflict].
Out of Scope
$classify-doc does not:
- classify, move, or manage documentation matched by
docs/.wikiignore; - create new classified documents — use
$to-doc; - manage ADR lifecycle — use
$to-adr-doc; - own classification, naming, or exclusion policy — see
wiki/_schema.md; - decide entity topology — use
$wiki-sync; - resolve
[source-conflict]; - rewrite content merely to justify a preferred classification;
- maintain
linked_docs; - perform a full wiki audit — use
$wiki-lint.
Its responsibility is to put an existing classified non-ADR document in the correct structural location without breaking references or derived architectural knowledge.
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.

