agentleFS
Wang-CankunWang-Cankun/cankun-skills/skills/repo-wayfinder/SKILL.md

repo-wayfinder

Skill2 starsChanged 4 months agoMITView on GitHub

Check or design a repository's documentation system (README, AGENTS.md, CLAUDE.md, docs/): which document owns each question and how agents reach it. Use when existing docs have drifted or conflict, or to design or rebuild a project's documentation set.

The file

Files
SKILL.md

Repo Wayfinder

Documentation routes; it does not prove. Every current claim has one owner — code, a type, a schema, configuration, or one living document — and every other mention is a pointer to it. Tests and probes verify the owner without becoming a second one.

  • A living document is edited in place to stay current. It owns one question and changes when that question's answer changes: its update trigger.
  • A record is dated and written once (a review, report, meeting note), kept in a folder with an index, and corrected by an attached dated note, never rewritten.

Quick pass (default)

  1. Pin the commit, the scope and the instruction chain that loads for it (AGENTS.md, AGENTS.override.md, CLAUDE.md, GEMINI.md, tool rule folders, ignored local files), and measure the chain against the loading limits.
  2. Walk two to four real tasks from a cold start: task -> first route -> next pointer -> owner -> test or probe. Check every present-tense claim on the way against its owner (when a test and its implementation disagree, report it), and count the files and words each walk read.
  3. In the instruction chain and the documents the walks read, find current claims stated in more than one place (versions, commands, behaviours, limits) and name each one's owner. Also flag sections with no owning question, and rules written for a weaker model (read X before every edit, always run every test, a boundary stated more strongly than its risk).
  4. Report the findings, each with evidence and one disposition, and the choices only the user can make.

Done when every walk ends at an owner and a check, or at a named unknown, and every finding has a disposition.

Full pass (designing or rebuilding a documentation system)

The quick pass, plus:

  • State the project's identity: purpose and users, non-goals, what exists now versus what is intended. When the request, entry documents and code imply different identities, ask which one is declared.
  • Give every living document and record family a row: path | role | owning question | update trigger | lifecycle (current, proposed, historical). An observed role that differs from the declared one is a finding; a file that mixes roles or time frames (now, next, then) is classified by section.
  • For a new project, take the identity and tasks from the accepted goal, plan and code skeleton; rows are proposed, and a walk may end at a planned owner, naming the evidence that will accept it.
  • Report within about 1,000 words: the verdict and the mechanism that keeps producing it; the user's decisions with a recommendation each; the changed rows; a task -> start -> owner -> check table; the ordered change set, with edits, pointers and retirements before additions. Evidence goes in an appendix.

Done when every living document and record family has a row or is marked unclassified, every role mismatch is a finding, and the report body is within the bound.

Dispositions

  • Keep — owns a distinct question and has a credible update trigger.
  • Point — copied facts become a link to their owner.
  • Co-locate — a local rule moves beside the code it governs.
  • Enforce — a rule that must always hold becomes a lint, test, hook or CI check; the document keeps at most a pointer.
  • Retire — displaced text moves to where history lives (a record, version control, or an archive the repository declares), leaving one line that names the successor and where the old text is.
  • Delete — no unique evidence, history or owning question.
  • Needs evidence — its authority cannot be judged yet.

Placement

  • A fact sits where its change trigger matches the document's owning question; judge by the trigger, not by whether a number appears. Copied versions, lists and error strings point to their owner; explanation that builds a mental model stays.
  • Each route names the task that fires it (schema change → docs/database.md). What every task needs goes in the root instruction file; what one kind of task needs goes in the document, skill or path-scoped rule that task opens.
  • A document that carries state opens with it, within a word and item bound the repository states; completed material retires.
  • Living documents keep what is current plus history that still changes an action, such as a refutation that stops a dead end from being proposed again. Records keep their lifecycle.
  • A new file states its owning question, what it must not own, its update trigger and what it proves versus only routes to.

Applying

Report and stop unless the user asked for the change itself. Deleting or retiring a whole document, or changing a policy the repository declares, waits for the user. Re-pin the commit, apply the dispositions with the fewest files, then sweep:

  • owner — every other occurrence of a changed claim is a pointer, an evidence citation or a second assertion to fix; grep finds candidates, rephrasings need reading;
  • reference — resolve every moved path, anchor, numbered item and renamed symbol, and run the repository's link check when it has one;
  • cold start — re-walk two journeys from the entry document, compare the reads, and say whether the walk ran in a fresh context.

Done when each changed path implements a disposition, the sweeps are clean, and every changed line in an instruction file changes an action, a judgement or a route.

Where things are

  • references/roles.md — document roles (on-ramp, agent rules, map, contract, runbook, decision, evidence, plan, record, summary, generated), each with its owning question, what it must not own and its update trigger.
  • references/document-templates.md — section shapes for a README, AGENTS.md, map, decisions, plan, evidence, record index, contract, runbook and retirement line.
  • references/topology.md — instruction-chain loading limits, nested and cross-tool instruction layers, and the AGENTS.md / CLAUDE.md layouts.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.