adherence-check
Automates the validation of project artifacts against defined specifications.
Install
mkdir -p .claude/skills/adherence-check && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18685" && unzip -o skill.zip -d .claude/skills/adherence-check && rm skill.zipInstalls to .claude/skills/adherence-check
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Check any artifact against an explicit specification and report adherence using the add-comments workspace format. Use when validating plans, scripts, docs, or code changes against a source-of-truth spec.Key capabilities
- →Read a specification file
- →Identify requirements, rules, or constraints from a spec
- →Read an artifact file
- →Evaluate artifact adherence to each requirement
- →Generate an adherence report with specific structure
- →Deliver report using `add-comments` skill
How it works
The skill reads a specification and an artifact, evaluates the artifact against the spec's requirements, and then generates a structured report detailing adherence.
Inputs & outputs
When to use adherence-check
- →Validating docs against spec
- →Checking script compliance
- →Verifying code against architecture rules
About this skill
Adherence Check
Purpose
Verify that a specific artifact adheres to a given specification, then report any violations using the add-comments workspace format.
This skill is repo-agnostic. It works in any repository as long as you supply the three required inputs.
Inputs (All Required)
| Input | Description |
|---|---|
artifact_path | Path to the file or artifact to check |
spec_path | Path to the source-of-truth specification to check against |
report_path | Path to the file where the adherence report will be appended |
If any input is missing, STOP and ask the caller to provide it before proceeding.
Prerequisite Gate
Before starting evaluation, verify that both artifact_path and spec_path resolve to existing, readable files.
- If
spec_pathis missing or the file does not exist: STOP immediately. Report the missing prerequisite to the caller. Do not improvise a specification. Do not guess requirements. - If
artifact_pathis missing or the file does not exist: STOP immediately. Report the missing artifact to the caller.
Procedure
Step 1: Read the Specification
- Read the file at
spec_path. - Identify the set of requirements, rules, or constraints it defines.
- If the spec contains a quick-start matrix, change-type index, or table of contents, use it to scope which sections apply to the artifact. Record the list of applicable sections (numbers and titles, if available).
- If the spec has no such index, treat every requirement as potentially applicable.
Step 2: Read the Artifact
Read the artifact at artifact_path. Identify the specific behaviors, statements, or instructions that must align with the spec requirements.
For large artifacts:
- Scan headings or file structure first.
- Deep-read only the sections relevant to the applicable requirements.
- For code artifacts, focus on behavior and implications; cite file paths and line numbers where possible.
Step 3: Evaluate Each Requirement
For each applicable requirement in the spec:
- PASS -- the artifact clearly satisfies the requirement.
- FAIL -- the artifact violates or omits the requirement.
- WARN -- the requirement may be violated but evidence is ambiguous; explain the ambiguity. When unsure whether something is a true violation, use WARN rather than FAIL.
- N/A -- the requirement does not apply to this artifact.
Record FAIL and WARN items in the report details. Include all counts in the summary.
Tip: Keep a simple tally table as you go (PASS / FAIL / WARN / N/A) to avoid count errors.
Step 4: Write the Report (Exact Structure)
Draft the report in a scratch buffer or temporary file first, then append via add-comments.
Use this structure exactly:
# Adherence Check Report
**Artifact checked**: [artifact_path]
**Spec checked against**: [spec_path]
**Checked by**: [Agent name]
**Timestamp**: [YYYY-MM-DD HH:MM:SS]
**Artifact type**: [e.g., script, plan, doc, code module]
**Sections checked**: [List section numbers + titles, or "all" if spec has no sections]
## Summary
- Requirements checked: [N]
- PASS: [X]
- FAIL: [Y]
- WARN: [W]
- NOT APPLICABLE: [Z]
## Violations
### FAIL: [Requirement identifier] - [Requirement title or short description]
**Requirement**: [Quote or paraphrase the spec requirement]
**Artifact evidence**: [Quote exact text or cite line numbers / snippet]
**Gap**: [Specific mismatch]
**Suggested fix**: [Concrete correction]
---
### WARN: [Requirement identifier] - [Requirement title or short description]
**Requirement**: [Quote or paraphrase the spec requirement]
**Artifact evidence**: [Quote exact text or cite line numbers / snippet]
**Gap**: [Specific mismatch + why it is ambiguous]
**Suggested fix**: [Concrete correction or clarification needed]
---
[Repeat for each failure or warning]
## Notes (Optional)
- [Any brief caveats or follow-ups]
If there are no violations:
## Violations
None found.
Step 5: Deliver via add-comments
Use the add-comments skill to append the report to report_path:
- Add or locate the main header:
# AI AGENT COMMENTS AND WORK FOLLOW - Add or locate your workspace header:
## Codex Workspace - Append a timestamped entry and include the report.
- End with
---.
Do not edit any other agent workspaces. Never overwrite or replace the file; append only via add-comments. If the add-comments skill is missing or broken, STOP and report the dependency failure.
Completion Checklist
- Both
spec_pathandartifact_pathverified to exist - Spec read and requirements cited by section/identifier
- Artifact read and referenced with evidence
- Report matches the exact structure above
- Each FAIL/WARN includes Requirement, Evidence, Gap, Suggested fix
- Report delivered using add-comments workspace rules
- Summary math is correct (PASS + FAIL + WARN + N/A = Requirements checked)
Example Invocation
"Run adherence-check.
artifact_path: src/deploy.sh
spec_path: docs/deploy-spec.md
report_path: reports/adherence-results.md"
When not to use it
- →When `artifact_path` or `spec_path` do not resolve to existing, readable files
- →When the user does not want an adherence report
- →When the `add-comments` skill is missing or broken
Limitations
- →Requires `artifact_path`, `spec_path`, and `report_path` as inputs
- →Does not improvise a specification if `spec_path` is missing
- →Requires the `add-comments` skill for report delivery
How it compares
This skill automates the process of checking an artifact against a specification and generating a structured report, unlike manual review.
Compared to similar skills
adherence-check side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| adherence-check (this skill) | 0 | 3mo | No flags | Intermediate |
| code-review-checklist | 3 | 9d | No flags | Beginner |
| openspec-verify-change | 3 | 5mo | Review | Advanced |
| superpowers-finish | 1 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by dazzaji
View all by dazzaji →You might also like
code-review-checklist
vudovn
Code review guidelines covering code quality, security, and best practices.
openspec-verify-change
studyzy
验证实现是否与变更产出物匹配。当用户想要在归档前验证实现是否完整、正确且一致时使用。
superpowers-finish
anthonylee991
Finalizes work: runs verification, summarizes changes, notes follow-ups, and ensures repo hygiene. Use at the end of an implementation or debugging session.
positron-qa-verify
posit-dev
Generates clear, actionable verification guides for QA testing of Positron bug fixes and features
categorize-revdep-issues
r-lib
Write revdep/issue.md to group packages by common error categories
pr-review
microsoft
Multi-dimensional review of a PR or feature branch in the microsoft/winappcli repo. Activate when a contributor asks to "review my PR", "review my changes", "vet my branch before pushing", "do a full review", "PR review", "review this feature", or similar. Fans out parallel sub-agents covering secur