documentation-refresh
Skill2 starsChanged 6 months agoMITView on GitHub
Sync documentation with code changes and validate cross-references
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- changelog-generationSkill
- examplesSkill
- lintingSkill
- release-prepSkill
- scaffoldingSkill
- schema-validationSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
User intent: Check that all skill references in AGENTS.md point to existing files
- Very specific: line 44
User intent: Ensure example AGENTS.md and SKILL.md files pass validation
- Distinctive: line 52
All example files pass linting and validation.
- Very specific: line 56
User intent: Ensure AGENTS.md version matches package.json versions
- Very specific: line 94
Version drift: Always use pnpm changeset for version bumps — never edit versions manually
- Distinctive: line 100
Never log file content — only report file paths and line numbers
- Distinctive: line 101
Don't include commit author information in reports
- Distinctive: line 106
Read-only access for validation operations
- Distinctive: line 107
Write access only required when applying fixes
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Documentation Refresh
Capability
Synchronizes documentation with code changes by validating cross-references, checking links, and ensuring version consistency across AGENTS.md, SKILL.md, README.md, and package.json files throughout the monorepo.
MCP Tools
| Tool | Input Schema | Output | Rate Limit |
lint_agents_md | z.object({ filePath: z.string().optional(), content: z.string().optional(), severity: z.enum(['error','warning','info','suggestion']).optional() }) | { path: string, findings: Finding[], errorCount: number, warningCount: number, infoCount: number, fixableCount: number } | 60 RPM |
The linting tool validates cross-references (broken skill refs, duplicate skill IDs) and structural issues.
Usage Examples
Example 1: Validate all cross-references in a monorepo
- User intent: Check that all skill references in AGENTS.md point to existing files
- Tool call:
{ "name": "lint_agents_md", "arguments": { "filePath": "./AGENTS.md", "severity": "info" } } Expected response:
Returns findings including
broken-skill-reffor any skill references that don't resolve to existing files, andduplicate-skill-idfor duplicate skill IDs.
Example 2: Validate all example files
- User intent: Ensure example AGENTS.md and SKILL.md files pass validation
- CLI command:
agents-md-kit lint ./examples/ --fail-on info agents-md-kit validate ./examples/ --strict Expected outcome:
All example files pass linting and validation. Any failures indicate documentation that's drifted from code changes and needs updating.
Example 3: Sync versions across files
- User intent: Ensure AGENTS.md version matches package.json versions
CLI approach:
The CLI validates that frontmatter is well-formed. For version consistency across the monorepo, use Changesets:
pnpm changeset status # View pending changes pnpm version-packages # Apply version bumps (auto-updates all package.json + CHANGELOGs)
Documentation Coverage
Files Monitored
| File | Package | Purpose |
AGENTS.md | Root | Agent instruction file |
ARCHITECTURE.md | Root | System design deep dive |
README.md | Root + 9 packages | Package-level documentation |
skills/*/skill.md | Root | Skill definitions |
examples/*/AGENTS.md | 5 examples | Reference agents |
examples/*/skills/*/skill.md | 15 skill files | Reference skills |
Error Handling
Known Failure Modes
| Failure | Cause | Recovery |
| Broken references | Skills renamed or moved | Update skill references in AGENTS.md |
| Stale examples | Schema changed, examples not updated | Re-validate and fix examples |
| Missing sections | Template changed, docs not updated | Run lint to detect missing sections |
| Version mismatch | Manual version update missed a file | Use changesets for consistent versioning |
Recovery Strategies
- Broken references:
lint_agents_mdidentifies exact broken references with file paths - Stale examples: Re-run
agents-md-kit lint ./examples/to surface drift - Missing sections: Auto-fix for
heading-missingcan insert missing section stubs - Version drift: Always use
pnpm changesetfor version bumps — never edit versions manually
Security Considerations
PII Handling
- Never log file content — only report file paths and line numbers
- Don't include commit author information in reports
- Redact any sensitive paths that might contain credentials
Permissions
- Read-only access for validation operations
- Write access only required when applying fixes
Audit Logging
- Log all validation operations with file paths and result counts
- Include request_id for tracing
- Track validation duration and files processed
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.

