standardize-md-skills
Skill2 starsChanged 5 months agoMITView on GitHub
Audits and standardizes SKILL.md and project MD files following Anthropic's best practices for docs readable by both AI and humans. Always asks which directory to run in; never runs broadly across the machine. Use when the user mentions 'standardize docs', 'audit skills', 'review MDs', 'Anthropic convention', 'standardize project', 'review project documentation', 'standardize skills', or 'check MD consistency'.
In this repository11 other files it gives its agents.
- llms.txtllms.txt
- ai-daily-briefSkill
- career-boostSkill
- commit-guidedSkill
- crisis-investingSkill
- figma-shadcn-hygieneSkill
- figma-shadcn-visual-matchSkill
- screen-contractSkill
- security-auditorSkill
- sync-referencesSkill
- write-handoffSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Before any action, verify:
- Distinctive: line 41
If any check fails: stop, ask for the correct directory, and don't proceed.
- Distinctive: line 57
If the target directory wasn't explicitly provided by the user, ask:
- Distinctive: line 61
Wait for the answer. Don't proceed without it.
- Distinctive: line 145
Wait for the answer. Don't modify any file without explicit authorization.
- Very specific: line 152
Add a --- block at the top with the required fields
- Very specific: line 160
Remove the ## Metadata section
- Distinctive: line 163
Add missing sections with minimal structured content
- Very specific: line 167
Add > Version: 1.0 | Updated: <current date> | Tags: #tag | Status: 🚧 In progress right after the H1
- Distinctive: line 171
Remove emojis from headers
- Very specific: line 188
If the project uses a language other than English, detect it and adapt the language field and the description frontmatter accordingly.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Skill: standardize-md-skills
Audits and standardizes SKILL.md and project MD files following Anthropic's best practices for readability by any LLM.
When to use
Trigger this skill when:
- "standardize docs for project X"
- "audit the project's skills"
- "review MDs in the repo"
- "check consistency of MD files"
- "apply Anthropic convention to documentation"
- "review project documentation"
When NOT to use
- Reviewing UI copy → use a copy-review skill
- Generating code → use an implementation skill
- Committing changes → use
commit-guided
Safety rules
NEVER run this skill without an explicit target directory provided by the user.
Before any action, verify:
- Did the user provide a full absolute path? (e.g.
/Users/name/git/project) - Is the path NOT
/,~/,~, or any generic system root? - Does the path point to a specific project/repository?
If any check fails: stop, ask for the correct directory, and don't proceed.
Directories always ignored, even if inside the target:
node_modules/.git/legacy/(historical documentation folder, never modify)dist/,build/,.next/
Reference files
This skill doesn't depend on external files. The standards are defined in the sections below.
How to execute
Step 1: Confirm target directory
If the target directory wasn't explicitly provided by the user, ask:
"Which project directory do you want to audit? Provide the full absolute path (e.g.
/Users/name/git/my-project). This skill never runs broadly across the machine."
Wait for the answer. Don't proceed without it.
Validate the received path:
- Reject if it's
/,~,~/, or a path with fewer than 3 segments - Confirm with the user: "I'll audit only the files under
<path>. Confirm?"
Step 2: Map files
With the directory confirmed, list all MD files in scope:
# SKILL.md inside the project's skills directory
find <path> -path "*/node_modules" -prune -o -path "*/.git" -prune -o \
-path "*/legacy" -prune -o -name "SKILL.md" -print
# All other .md files
find <path> -path "*/node_modules" -prune -o -path "*/.git" -prune -o \
-path "*/legacy" -prune -o -name "*.md" -not -name "SKILL.md" -printPresent the list before continuing.
Step 3: Audit each file
For each file found, apply the correct checklist:
If it's a SKILL.md → Standard A:
| Check | Criterion |
| YAML frontmatter | Opens with --- containing name, description, version, language, allowed-tools, tags |
## When to use section | Present, with trigger-phrase bullets |
### When NOT to use subsection | Present inside ## When to use |
## Reference files section | Present (can be empty with a justification) |
## How to execute section | Present, with numbered ### Step N: |
## Expected output section | Present, with description or template |
## Notes section | Present (optional but recommended) |
No inline ## Metadata | No metadata table should exist; replace with YAML frontmatter |
| Size | Under 500 lines |
If it's a general MD → Standard B:
| Check | Criterion |
| Single H1 | Exactly one # Title in the file |
| Meta-line below the H1 | > **Version:** x.x | **Updated:** YYYY-MM-DD | **Tags:** #tag | **Status:** ✅ Stable |
| Header hierarchy | No skipped levels (H1→H2→H3, never H1→H3 directly) |
| Sentence case in titles | Only the first word capitalized (except proper nouns) |
| No emojis in headers | Emojis only in lists or body text, never in # titles |
Step 4: Generate the audit report
Present the report in this format before asking about fixes:
## MD Audit: <path>
### SKILL.md files found: N
| File | Frontmatter | Canonical sections | Inline metadata | Size | Status |
|---|---|---|---|---|---|
| skills/X/SKILL.md | ✅ | ✅ | ❌ has ## Metadata | 120 lines | ⚠️ fix |
| skills/Y/SKILL.md | ❌ no YAML | ⚠️ missing 2 sections | n/a | 85 lines | ❌ critical |
### General MD files found: N
| File | Single H1 | Meta-line | Hierarchy | Sentence case | Status |
|---|---|---|---|---|---|
| docs/guidelines/X.md | ✅ | ✅ | ✅ | ⚠️ 2 titles | ⚠️ fix |
| docs/README.md | ✅ | ❌ missing | ✅ | ✅ | ❌ critical |
### Summary
- ✅ Compliant: N files
- ⚠️ Minor fixes: N files
- ❌ Critical: N filesStep 5: Request authorization for fixes
Ask:
"Do you want to apply the fixes?
- All files with issues
- Select which files to fix
- Report only: don't modify anything now"
Wait for the answer. Don't modify any file without explicit authorization.
Step 6: Apply fixes (only with authorization)
For each authorized file, apply the necessary fixes:
For SKILL.md without YAML frontmatter:
- Add a
---block at the top with the required fields - Infer
namefrom the directory name - Infer
descriptionfrom the H1 + first paragraph - Infer
allowed-toolsfrom the commands used in the body - Set
version: "1.0",language: en(or the project's actual language if different)
For SKILL.md with inline ## Metadata:
- Move the fields into YAML frontmatter
- Remove the
## Metadatasection
For SKILL.md missing canonical sections:
- Add missing sections with minimal structured content
- Preserve all original content, only reorganize
For general MD without a meta-line:
- Add
> **Version:** 1.0 | **Updated:** <current date> | **Tags:** #tag | **Status:** 🚧 In progressright after the H1 - Adjust status based on the file's context
For titles with emojis or Title Case:
- Remove emojis from headers
- Convert to sentence case (only the first word capitalized, except proper nouns)
Confirm with the user after each modified file.
Expected output
- Tabular audit report with per-file status
- List of issues found, grouped by category
- (If authorized) fixed files with a changelog of applied changes
Notes
- This skill never runs without an explicit target directory. This is an inviolable rule.
- It never traverses
/,~/, or any system root path. - The
legacy/folder is always ignored. It documents a previous era and shouldn't be standardized. - Preserve original content when fixing. This skill reorganizes and supplements, it doesn't rewrite.
- If the project uses a language other than English, detect it and adapt the
languagefield and thedescriptionfrontmatter accordingly. - General-purpose skill: usable in any project, but always scope-limited by the user.
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.

