agentleFS
MSiccDevMSiccDev/ai-context-kit/skills/ack-validate-agents-md/SKILL.md

ack-validate-agents-md

Skill13 starsChanged 5 months agoMITView on GitHub

Validate root or nested AGENTS.md files with one scored rubric: structure, operational contract, spec-driven change workflow, project context, clarity, and portability and links. Use before accepting any AGENTS.md change.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

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

    Use this skill when adding or updating a root or nested AGENTS.md, and before accepting AGENTS.md policy changes.

    line 19
  2. Very specific:

    Do not use this skill for user context files (ack-validate-user-context) or skills (ack-validate-skill).

    line 20
  3. Very specific:

    Run the six phases in references/phase-checks.md for that mode.

    line 32
  4. Very specific:

    Check for <!-- spec_version: ...

    line 33
  5. Very specific:

    Write the report described in references/report-contract.md, with concrete fixes.

    line 36
  6. Distinctive:

    Never rewrite the target file.

    line 53
  7. Very specific:

    Run only read-only OpenSpec commands (openspec list --json, and those ack-openspec-check runs).

    line 54
  8. Distinctive:

    Keep the rubric deterministic and the findings repository-specific.

    line 55
  9. Distinctive:

    Avoid style-only feedback, keep wording provider-neutral, and do not copy normative specification text into fixes.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Validate AGENTS.md

Purpose

Validate an AGENTS.md file in root or nested mode with one combined rubric, and write a scored report. This skill replaces validate-agents-md and validate-project-instructions (ADR-009). The phase 5 writing checks adapt Matt Pocock's writing-for-agents skill.

When To Use

  • Use this skill when adding or updating a root or nested AGENTS.md, and before accepting AGENTS.md policy changes.
  • Do not use this skill for user context files (ack-validate-user-context) or skills (ack-validate-skill).

Choosing The Mode

  • Target at the repository root: root mode. Target in a subfolder: nested mode.
  • The user may override the mode explicitly.

Required Inputs

  • Target AGENTS.md path.
  • The repository, for link, path and OpenSpec checks.

Workflow

  1. Determine the mode.
  2. Run the six phases in references/phase-checks.md for that mode. For phase 3 in root mode, start ack-openspec-check, then run openspec list --json; if the CLI is unavailable, check against the files under openspec/ and say so in the report.
  3. Check for <!-- spec_version: ... -->: flag a WARNING if it is absent, or if it is older than 2.0.0.
  4. Score each phase with references/scoring.md. The phase scores must add up to the reported total; state the sum in the report.
  5. Classify findings as Critical, Warning or Enhancement. Any critical finding in references/scoring.md makes the status FAIL, whatever the score.
  6. Write the report described in references/report-contract.md, with concrete fixes.

Output Expectations

  • A report next to the target, named [original-name].validation.md.
  • Mode, status, total score with its sum, and per-phase scores.
  • Critical issues, warnings and enhancements, each with a concrete fix.

Resources

  • Phase checks: references/phase-checks.md
  • Scoring and critical findings: references/scoring.md
  • Report contract: references/report-contract.md
  • OpenSpec version check: the ack-openspec-check skill
  • Writing checks (phase 5): ../ack-validate-skill/references/writing-for-agents.md
  • Canonical template: ../../templates/AGENTS_template.md
  • Example target: ../../AGENTS.md

Constraints And Safety

  • Never rewrite the target file; only write the report.
  • Run only read-only OpenSpec commands (openspec list --json, and those ack-openspec-check runs); never openspec init or openspec update.
  • Keep the rubric deterministic and the findings repository-specific.
  • Avoid style-only feedback, keep wording provider-neutral, and do not copy normative specification text into fixes.

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.