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.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- ack-create-agents-mdSkill
- ack-create-checkpointSkill
- ack-create-skillSkill
- ack-create-user-contextSkill
- ack-drift-controlSkill
- ack-guideSkill
- ack-interviewSkill
- ack-interview-with-contextSkill
- ack-loop-01-readinessSkill
- ack-loop-02-implementSkill
- ack-loop-03-reviewSkill
- ack-loop-04-learningsSkill
- ack-loop-05-commitSkill
- ack-openspec-checkSkill
- ack-restore-checkpointSkill
- ack-sessionSkill
- ack-setupSkill
- ack-tddSkill
- ack-validate-skillSkill
- ack-validate-user-contextSkill
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
- Distinctive: line 19
Use this skill when adding or updating a root or nested AGENTS.md, and before accepting AGENTS.md policy changes.
- Very specific: line 20
Do not use this skill for user context files (ack-validate-user-context) or skills (ack-validate-skill).
- Very specific: line 32
Run the six phases in references/phase-checks.md for that mode.
- Very specific: line 33
Check for <!-- spec_version: ...
- Very specific: line 36
Write the report described in references/report-contract.md, with concrete fixes.
- Distinctive: line 53
Never rewrite the target file.
- Very specific: line 54
Run only read-only OpenSpec commands (openspec list --json, and those ack-openspec-check runs).
- Distinctive: line 55
Keep the rubric deterministic and the findings repository-specific.
- Distinctive: line 56
Avoid style-only feedback, keep wording provider-neutral, and do not copy normative specification text into fixes.
≈ “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.
Files
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 acceptingAGENTS.mdpolicy 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.mdpath. - The repository, for link, path and OpenSpec checks.
Workflow
- Determine the mode.
- Run the six phases in
references/phase-checks.mdfor that mode. For phase 3 in root mode, startack-openspec-check, then runopenspec list --json; if the CLI is unavailable, check against the files underopenspec/and say so in the report. - Check for
<!-- spec_version: ... -->: flag a WARNING if it is absent, or if it is older than2.0.0. - Score each phase with
references/scoring.md. The phase scores must add up to the reported total; state the sum in the report. - Classify findings as Critical, Warning or Enhancement. Any critical finding in
references/scoring.mdmakes the status FAIL, whatever the score. - 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-checkskill - 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 thoseack-openspec-checkruns); neveropenspec initoropenspec 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.
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.

