agentleFS
reaatechreaatech/agents-md-kit/skills/documentation-refresh/skill.md

documentation-refresh

Skill2 starsChanged 6 months agoMITView on GitHub

Sync documentation with code changes and validate cross-references

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
  1. Distinctive:

    User intent: Check that all skill references in AGENTS.md point to existing files

    line 27
  2. Very specific:

    User intent: Ensure example AGENTS.md and SKILL.md files pass validation

    line 44
  3. Distinctive:

    All example files pass linting and validation.

    line 52
  4. Very specific:

    User intent: Ensure AGENTS.md version matches package.json versions

    line 56
  5. Very specific:

    Version drift: Always use pnpm changeset for version bumps — never edit versions manually

    line 94
  6. Distinctive:

    Never log file content — only report file paths and line numbers

    line 100
  7. Distinctive:

    Don't include commit author information in reports

    line 101
  8. Distinctive:

    Read-only access for validation operations

    line 106
  9. Distinctive:

    Write access only required when applying fixes

    line 107

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

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

ToolInput SchemaOutputRate Limit
lint_agents_mdz.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-ref for any skill references that don't resolve to existing files, and duplicate-skill-id for 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

FilePackagePurpose
AGENTS.mdRootAgent instruction file
ARCHITECTURE.mdRootSystem design deep dive
README.mdRoot + 9 packagesPackage-level documentation
skills/*/skill.mdRootSkill definitions
examples/*/AGENTS.md5 examplesReference agents
examples/*/skills/*/skill.md15 skill filesReference skills

Error Handling

Known Failure Modes

FailureCauseRecovery
Broken referencesSkills renamed or movedUpdate skill references in AGENTS.md
Stale examplesSchema changed, examples not updatedRe-validate and fix examples
Missing sectionsTemplate changed, docs not updatedRun lint to detect missing sections
Version mismatchManual version update missed a fileUse changesets for consistent versioning

Recovery Strategies

  • Broken references: lint_agents_md identifies exact broken references with file paths
  • Stale examples: Re-run agents-md-kit lint ./examples/ to surface drift
  • Missing sections: Auto-fix for heading-missing can insert missing section stubs
  • Version drift: Always use pnpm changeset for 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

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.