agent-friendly-docs
Skill2 starsChanged 48 days agoMITView on GitHub
Use when designing, structuring, auditing, or reviewing the documentation surface of a repository that AI coding agents read while working — instruction files, README, docs/, ADRs, per-directory context files, and code-adjacent comments. Symptoms include agents re-deriving project context every session, reading stale or wrong docs, instruction files bloated with reference material, README token bloat, ADRs mistaken for current policy, embedded commands that fail as written, duplicated content drifting apart, and repo-wide context trapped in code comments. Covers layering and placement, discoverability and read paths, one authoritative home per fact, token economy, freshness mechanisms, and runnable examples. Not for published docs sites or llms.txt, generic prose quality, GitHub repo safety configuration, or rules-vs-context audits of instruction-file content.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- briandconnelly/skillsword for word, first seen Oct 4, 2026
Other versions1 project uses a version of this.
Word for word · 1
- briandconnelly/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agent-friendly-githubSkill
- agent-friendly-mcpSkill
- separating-context-from-constraintsSkill
- collaborating-with-amicusSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to make a repo's documentation surface cheap for agents to navigate and trust.
- Distinctive: line 14
Read the section before you apply it, and where this list and the checklist read differently, the checklist wins.
- Distinctive: line 48
Never binds unless promoted into a current-policy doc.
- Distinctive: line 70
When it is not loaded, apply one screening question — does this sentence bind behavior or just inform it?
- Distinctive: line 71
Use examples.md for concrete shapes.
- Distinctive: line 75
Before declaring done, read the relevant workflow, then apply the criteria for your task type below.
- Distinctive: line 76
Only design tasks and audits walk docs-checklist.md section by section.
- Distinctive: line 78
Design tasks: every checklist section is answered in the produced structure or explicitly marked not-applicable with a one-line …
- Distinctive: line 79
Review tasks: every checklist section is covered by a finding, marked OK with brief evidence, or noted not-checked with reason.
- Distinctive: line 81
No checklist walk and no coverage table — naming the one or two sections the failure falls under is the whole of the checklist's role here.
≈ “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
Agent-Friendly Docs
Use this skill to make a repo's documentation surface cheap for agents to navigate and trust.
Core Standard
The checks that decide a pass or a finding live in docs-checklist.md, one per section. This list names what each section is about so you can pick one; it is a map, not a second copy of the rules. Read the section before you apply it, and where this list and the checklist read differently, the checklist wins.
- Layer Placement — which layer each doc belongs to, and when a straddling section is split out.
- Discoverability And Read Path, Task-To-Doc Routing — whether an agent reaches the right doc by following links, per task.
- Authority And Precedence — one home per claim that could diverge, and what resolves a conflict.
- Canonical Claim Validation — whether the authoritative doc is true, checked against the code rather than against another doc.
- Token Economy — what earns a place in the always-loaded layer.
- Freshness Mechanisms, Generated-Doc Provenance, ADR Status And Supersession — what keeps a doc correct, marks a generated one, and separates a live decision from a superseded one.
- Runnable Examples And Commands — whether an embedded command runs as written.
- Comment-Vs-Doc Placement — which constraints travel with the code and which need a doc.
When To Use
- Designing or restructuring a repo's documentation surface.
- Auditing an existing documentation surface for agent-friendliness.
- Diagnosing a concrete agent failure: missing project conventions, reading stale docs, re-deriving context every session.
When Not To Use
- Published documentation sites or llms.txt — this skill covers repo-internal docs only.
- Generic prose quality or writing style with no agent-consumption angle.
- Instruction-file strategy and repo safety configuration — use agent-friendly-github.
- Rules-vs-context content audits of instruction-file prose — use separating-context-from-constraints.
- Trivial edits to a doc surface that is already well-layered; just make the edit.
Vocabulary
- Instruction layer — always-loaded binding norms: the canonical instruction file plus thin per-harness adapters. Adapter strategy itself is owned by agent-friendly-github, not this skill.
- Orientation layer — read-on-demand maps: README, architecture overviews, CONTEXT.md, per-directory context files. Loaded when an agent orients itself, not on every turn.
- Reference layer — detailed how-to and API material, loaded only when a task demands it. Kept out of the instruction layer precisely because it is heavy.
- Decision history — ADRs and postmortems that explain why a past choice was made. Never binds unless promoted into a current-policy doc.
- Code-adjacent context — comments and docstrings carrying constraints that must travel with the code. Repo-wide context does not belong here even when it is convenient to write.
- Canonical instruction file — the one instruction file a harness reads directly. Other harnesses point at it through a thin adapter instead of duplicating it.
- Per-harness adapter — a thin, harness-specific file that points at the canonical instruction file instead of restating it.
- Read path — the sequence of docs an agent loads, in order, to complete a given task.
- Authoritative vs historical — whether a doc states current policy or merely records a past decision.
- Generated-doc provenance — a marker on a generated file naming its source and regeneration command.
- These layers are a routing lens for "what does an agent read first, what is authoritative, what is historical, what is ignorable" — not a filing system every repo must adopt.
Workflow
- Identify the audience: repo owner, who can restructure, versus contributor or agent operator, who works within what exists. Audience decides what to lead with. Where the user does not say and the repo gives no ownership signal, assume the repo owner, state that assumption, and mark each owner-only remediation as such.
- Classify the task: design/restructure, audit of an existing surface, or diagnosis of a concrete failure.
- For design or restructure, follow design-workflow.md; for audit or diagnosis, follow review-workflow.md.
- Design tasks and audits walk docs-checklist.md as the shared standard; a diagnosis names only the sections its failure touches and produces no coverage table.
- Delegate instruction-file strategy questions to agent-friendly-github. Delegate rules-vs-context content audits of instruction-layer docs to separating-context-from-constraints. That skill counts as available when it is loaded in the current session. When it is not loaded, apply one screening question — does this sentence bind behavior or just inform it? — label the result provisional, and recommend a full audit with that skill.
- Use examples.md for concrete shapes.
Done Criteria
Before declaring done, read the relevant workflow, then apply the criteria for your task type below. Only design tasks and audits walk docs-checklist.md section by section.
- Design tasks: every checklist section is answered in the produced structure or explicitly marked not-applicable with a one-line justification.
- Review tasks: every checklist section is covered by a finding, marked OK with brief evidence, or noted not-checked with reason.
- Diagnosis tasks: the response names the most likely failure path, leads with the immediate mitigation, and separates it from owner-side restructuring. No checklist walk and no coverage table — naming the one or two sections the failure falls under is the whole of the checklist's role here.
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.

