docs-update-or-create
Skill627 starsChanged 8 days agoMITView on GitHub
Guidelines that must be followed when creating or updating docs in this repo. Applies to AGENTS.md, README.md, **/docs/**/*.md, skill and sub-agent files. Read when creating or updating those files.
In this repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- analyticsSkill
- batch-feature-devSkill
- ci-runnersSkill
- ci-workflow-refsSkill
- cleanupSkill
- client-idsSkill
- cloud-sync-moduleSkill
- codeownershipSkill
- coin-families-contractSkill
- coin-modulesSkill
- commentsSkill
- configurationSkill
- console-logSkill
- create-changesetSkill
- create-prSkill
- data-layer-advancedSkill
- debug-rn-native-crashSkill
- dependency-patchesSkill
- detect-data-leaksSkill
- device-intent-executorSkill
- devtools-import-boundarySkill
- dialogs-sliceSkill
- docs-migrateSkill
- domain-dataSkill
- e2e-desktop-add-or-updateSkill
- e2e-desktop-onboardSkill
- e2e-earnSkill
- e2e-mobile-add-or-updateSkill
- e2e-mobile-onboardSkill
- e2e-swapSkill
- errorsSkill
- feature-devSkill
- fix-ciSkill
- flow-packageSkill
- get-pr-commentsSkill
- git-conventionsSkill
- i18n-keysSkill
- impacting-prsSkill
- knip-migrationSkill
- ldls-nativeSkill
- ldls-webSkill
- ledger-wallet-cliSkill
- legacy-migrationSkill
- mvvm-architectureSkill
- new-packageSkill
- package-public-apiSkill
- pnpm-resolutionSkill
- prefer-set-hasSkill
- pre-reviewSkill
- react-generalSkill
- rebuild-to-fix-lib-import-errorsSkill
- remove-feature-flagSkill
- run-buildsSkill
- run-e2e-ciSkill
- runner-imagesSkill
- run-testsSkill
- slack-pr-messageSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 22 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Create minimal docs, avoid duplication and make content discoverable.
- Distinctive: line 12
Treat docs for both human and AI agents together.
- Distinctive: line 13
Follow our principles of progressive disclosure, locality and canonicalization.
- Distinctive: line 20
Write/update the files, inline with what's agreed
- Distinctive: line 31
Avoid long files containing multiple levels of details
- Distinctive: line 32
Avoid overloading context with rarely used knowledge
- Distinctive: line 33
Avoid duplicating knowledge in multiple files
- Distinctive: line 34
Avoid documenting community-obvious knowledge
- Distinctive: line 35
Avoid preserving old structure for its own sake
- Distinctive: line 39
Add docs that measurably improve agent performance
- Distinctive: line 40
Do document repeatable workflows, commands and behaviours
- Distinctive: line 42
Only add docs that solve real problems
- Distinctive: line 43
Delete files that have no unique value after changes
- Distinctive: line 44
Use emojis, checkboxes and formatting sparingly to make docs more appealing
- Distinctive: line 48
Keep it short and direct. Treat 100 lines as a target (not a hard limit)
- Distinctive: line 49
Keep each file at one level of detail.
- Distinctive: line 51
Use short inline examples when they replace explanation.
- Very specific: line 59
Add allowed-tools, or compatibility only when they help.
- Very specific: line 60
Use disable-model-invocation: true for user-invoked skills (commands)
- Very specific: line 61
Use user-invocable: false for agent-only skills
- Distinctive: line 75
Follow our rules on docs locality
- Distinctive: line 76
Avoid duplication by applying rules on canonicalization
- Distinctive: line 80
Make sure links point to the canonical source
- Distinctive: line 81
Ensure it is discoverable by agents and humans
- Very specific: line 82
Search for duplicated key phrases with rg
- Very specific: line 83
Check long docs with wc -l.
- Distinctive: line 84
Verify AGENTS.md stays minimal.
≈ “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
Create or Update Docs
Create minimal docs, avoid duplication and make content discoverable. Treat docs for both human and AI agents together. Follow our principles of progressive disclosure, locality and canonicalization.
📝 Process to follow
- Understand the topic of knowledge and its purpose
- Gather existing knowledge on that topic
- Agree on the best format and location for it to live
- Write/update the files, inline with what's agreed
- Validate the results and refine as necessary
📜 Guidelines
These guidelines define some boundaries within which to operate. They do not dictate everything. Follow them, but also use judgement and creativity to find the best way to document knowledge in each case.
❌ BAD:
- Avoid long files containing multiple levels of details
- Avoid overloading context with rarely used knowledge
- Avoid duplicating knowledge in multiple files
- Avoid documenting community-obvious knowledge
- Avoid preserving old structure for its own sake
✅ GOOD:
- Add docs that measurably improve agent performance
- Do document repeatable workflows, commands and behaviours
- Capture what is peculiar to this repo, domain, or team
- Only add docs that solve real problems
- Delete files that have no unique value after changes
- Use emojis, checkboxes and formatting sparingly to make docs more appealing
Keep it short
- Keep it short and direct. Treat 100 lines as a target (not a hard limit)
- Keep each file at one level of detail.
- Link to narrower docs when detail must branch.
- Use short inline examples when they replace explanation.
- Link longer examples instead of embedding them.
Use frontmatter
- Skill and agent definitions should use frontmatter to be discoverable by tools.
- Frontmatter for READMEs is optional. If it's useful for you, include it
- Tool-discoverable docs and skills should have
nameanddescription - Add
allowed-tools, orcompatibilityonly when they help. - Use
disable-model-invocation: truefor user-invoked skills (commands) - Use
user-invocable: falsefor agent-only skills
Frontmatter Example for a skill
---
name: desktop-swap-guidance
description: Read when editing swap flows in Ledger Live Desktop.
---💡 Principles
- Apply principle of progressive disclosure
- Follow our rules on docs locality
- Avoid duplication by applying rules on canonicalization
🔎 Validation
- Make sure links point to the canonical source
- Ensure it is discoverable by agents and humans
- Search for duplicated key phrases with
rg - Check long docs with
wc -l. - Verify
AGENTS.mdstays minimal.
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.

