adr-validate
Skill2 starsChanged 7 days agoMITView on GitHub
Audit and validate the quality, completeness, and architectural compliance of any ADR or amendment in docs/adr/. TRIGGER THIS SKILL when user mentions: validate adr, audit adr, check adr quality, verify adr, review adr compliance.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adr-amendSkill
- adr-createSkill
- adr-review-alternativesSkill
- agents-maintainerSkill
- audit-docsSkill
- explore-domainSkill
- sdlc-guideSkill
- setup-sdlcSkill
- inception-workshopSkill
- prd-workshopSkill
- user-story-mappingSkill
- modify-flowSkill
- reverse-engineer-domainSkill
- create-moduleSkill
- implement-flowSkill
- create-entity-lifecycleSkill
- create-featuresSkill
- create-flow-documentationSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 89
Before ending your turn, verify every item below with concrete evidence (not just a checkmark).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
PROTOCOL: ADR-VALIDATE (EXECUTION LEVEL 3)
<state_machine> CURRENT_STEP -> REQUIRED_TOOL -> REQUIRED_OUTPUT -> MANDATORY_HALT Step 1: Read Target -> read_file (target ADR + docs/adr/README.md) -> Target ADR content & index state -> Continue to Step 2 Step 2: Audit Rubric -> read_file(templates/TEMPLATE-ADR_VALIDATOR.md) -> 7-criteria weighted rubric evaluation -> Continue to Step 3 Step 3: Score Report -> format using TEMPLATE-ADR_VALIDATOR.md -> Scored validation report (High / Medium / Low) -> 🛑 HALT TURN (Present audit) </state_machine>
<execution_invariants>
- WORKFLOW IMMUTABILITY: Execute all 3 steps and all 7 rubric criteria in strict order (
workflow structure = immutable | step reasoning = flexible). - TEMPLATE LOCK: You MUST call
read_fileontemplates/TEMPLATE-ADR_VALIDATOR.mdbefore producing the validation report and preserve its exact rubric sections and weighted scoring structure. - ESCAPE HATCH: If the situation does not fit the contract, do not silently improvise and do not force-fit: declare the deviation in one line and ask. </execution_invariants>
<output_contract>
- SOURCE_TEMPLATE:
templates/TEMPLATE-ADR_VALIDATOR.md(MUST callread_filebefore producing report) - SCHEMA_INVARIANCE: Preserve all 7 validation criteria sections, the weighted Quality Score Summary table (
3.0scale), and the Validation Summary verbatim. - ESCAPE_HATCH: Never silently omit or invent rubric sections. If a section (such as
Batch Validation Summarywhen auditing a single ADR) does not apply, preserve the heading and write"N/A — Single ADR audit", or omit only sections explicitly marked(Multiple ADRs). </output_contract>
📋 Step-by-Step Workflow
1. Identify Target ADR File
Locate the file in docs/adr/ specified by the user (or prompt for the path if not provided).
2. Audit Against the 7-Criteria Weighted Quality Rubric (templates/TEMPLATE-ADR_VALIDATOR.md)
Criteria 1: Metadata & Formal Compliance (Weight: 10%)
- Status field present and valid (
Proposed,Accepted,Approved,Deprecated,Superseded). - Date field present (
YYYY-MM-DDformat). - Decision makers identified.
Supersedes/Amended By(orAmends) fields completed with two-way links where applicable.- ADR follows standard template structure and 3-digit sequential numbering (
0XX).
Criteria 2: Context & Problem Statement (Weight: 20%)
- Context is clear and unbiased (value-neutral).
- Problem statement is specific and well-defined.
- References specific pain points or constraints.
- Decision drivers are explicitly stated.
- Links back to inception artifacts or business requirements.
Criteria 3: Options & Analysis (Weight: 20%)
- At least 2–3 viable alternatives considered.
- No strawman options (all options are realistic).
- Each option has pros and cons documented (
Good, because.../Bad, because...). - Options are compared against decision drivers and trade-offs are explicitly discussed.
Criteria 4: Decision Outcome (Weight: 20%)
- Chosen option is clearly identified.
- Justification is logical, evidence-based, and references decision drivers.
- Decision aligns with project constraints (cost, timeline, architecture boundaries).
Criteria 5: Consequences Documentation (Weight: 10%)
- Positive consequences explicitly listed.
- Negative consequences explicitly listed.
- Risks identified and documented with actionable mitigations.
Criteria 6: Traceability & References (Weight: 10%)
- Links to inception artifacts, related ADRs, and external documentation/benchmarks.
- Record is listed in
docs/adr/README.mdwith working relative links.
Criteria 7: AI & Agentic Ergonomics (AX) [Mandatory] (Weight: 10%)
LLM Corpus Alignmentstates an estimated training-corpus match (High >80%/Medium 30-80%/Atypical/Exotic <30%).Expected Agent Bias | Automated Guardrailtable pairs each expected agent deviation with a named automated countermeasure.- Rows marked
—are explicitly justified as accepted manual-review risks. Supervision & Guardrail Tax(Low,Medium,High) is assessed.
3. Assign Quality Score & Provide Feedback
Score each of the 7 criteria (High = 3, Medium = 2, Low = 1), compute the weighted score out of 3.0 ([X]/7 criteria at High level), and assign the rating:
- High Quality (Accept): 6–7 criteria at High level, no Low ratings.
- Medium Quality (Accept with Revisions): 4–5 criteria at High level, or 1–2 Medium ratings. Provide concrete action items.
- Low Quality (Reject / Revise): More than 2 criteria at Medium or any Low rating (e.g., missing AX section or strawman options). Block adoption until remediated.
<self_validation_gate> Before ending your turn, verify every item below with concrete evidence (not just a checkmark). If any item cannot be cited with real evidence from this turn, DO NOT produce your final response — fix the violation first:
- Target Read Evidence: Exact target ADR path(s) and
docs/adr/README.mdread viaread_file:<paths> - Template Read Evidence: Exact path passed to
read_file(templates/TEMPLATE-ADR_VALIDATOR.md):<path> - Rubric Score Evidence: All 7 weighted criteria scored (
[X]/7at High level, weighted total[Y]/3.0):<scores></self_validation_gate>
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.

