/field-guide:stratifyfrom field-guide
Reorganizes a flat wiki reference directory into topical category and subcategory trees, repairing all cross-links and the index. Use when the wiki has outgrown its flat layout.
Ships in field-guide. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reorganize .lore/reference/ into topical category directories once the flat layout stops scanning well. Move pages, keep every link working, and keep the index authoritative.
Stratify changes where pages live, never what they say. Page bodies, frontmatter, fg-type, fg-sources, and fg-evidence all stay untouched except for link path repairs.
index.* and dotfiles don't count).1. Inventory and design the taxonomy.
Read the index (.lore/reference/index.md, or index.html if that's all there is) and list every page on disk, recursively. Pages may be .md or .html; both move the same way. Note any page on disk the index doesn't list — those are orphans; adopt them into the new index during this run rather than leaving them invisible.
Group pages by topic, not by fg-type — type is already recorded in each page's frontmatter, and a category mixing decisions, lessons, and architecture about the same subject is the point. Derive topics from titles, index descriptions, and tags; skim page bodies only where those are ambiguous. Use short kebab-case directory names.
Present the proposed mapping as a table (category, subcategories, page count) before moving anything, and adjust if the user objects.
2. Survey referrers.
Before moving, find everything that links to pages about to move:
.lore/reference/.reference/<page-name>.md (and .html). Matching on that suffix catches repo-rooted paths (.lore/reference/page.md) and relative ones (../../reference/page.md) in docs, work artifacts, code comments, and READMEs alike.3. Move pages.
Create the category directories and move pages with git mv when in a git repository, so history follows the file. Only index.* and .field-guide.json stay at the wiki root.
4. Repair links.
Do not touch fg-sources (repo-relative ingestion provenance, unaffected by page moves) or fg-evidence (points at code, unaffected).
5. Rewrite the index.
The index must keep listing every page. Lint discovers pages only through index links, so a categories-only index would orphan the entire wiki.
Structure: one heading per category, a subheading per subcategory, each entry linking with a path relative to .lore/reference/ and keeping its one-line description. Add or refresh a short "Layout" section at the top of the index recording the stratification policy, so future ingest runs place new pages correctly.
6. Verify.
Run both checks before reporting; a missed link repair is silent breakage.
.md/.html link in every wiki page resolves to a file on disk.index.*) exactly equals the set of pages the index links — nothing missing, nothing dangling.A small throwaway script is the reliable way to check this; eyeballing dozens of pages is not.
7. Report.
Tell the user: the final category table with counts, how many external referrers were updated and where, any orphans adopted into the index, and the verification result.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rjroy/vibe-garden --plugin field-guide7 skills in this plugin
/ingestUse when distilling useful project understanding from eligible .lore/ artifacts into the reference wiki. Historical artifacts suggest candidates; current claims are checked against implementation and tests. Triggers include "ingest this", "distill reference knowledge", "update the reference", and "populate the field guide"./initUse when setting up field-guide on a project for the first time, or to refresh the scheduled lint job after it expires. Triggers include "init field-guide", "set up field-guide", "refresh field-guide lint schedule", and "bootstrap the wiki"./lintThis skill is used when the project wiki needs a health check. Triggers include 'lint the wiki', 'check wiki health', 'run field-guide lint', 'are there stale wiki pages', 'find orphaned pages', 'check for contradictions in the wiki'./queryUse when asking questions about the project wiki, querying accumulated knowledge, searching project decisions or lessons. Triggers include "query the wiki", "what does the wiki say about", "search project knowledge", and natural language questions directed at the field-guide wiki./resolve-driftUse when checking whether field-guide reference pages still match current code and tests. Reads pages plus fg-evidence anchors, reports or fixes semantic drift, and can use sub-agents for parallel audit batches. Triggers include "resolve drift", "semantic drift", "check accuracy", "verify the reference against code", and "audit the wiki"./update-evidenceUse after ingesting or editing field-guide pages to attach living code/test anchors. Adds or refreshes fg-evidence metadata without trying to prove prose accuracy. Triggers include "update evidence", "wire evidence", "add evidence anchors", and "connect the wiki to code".