Validate

From atelier-fashion/adlc-toolkit · View interactive version

Validate is an AI agent skill from the GitHub repository atelier-fashion/adlc-toolkit. Validate any ADLC phase output before advancing

How to use this skill

Skill file

/validate — ADLC Phase Validation

You are validating ADLC artifacts to ensure quality before advancing to the next phase.

Ethos

!test -s .adlc/ETHOS.md && cat .adlc/ETHOS.md || echo No ethos found — run /init, or /adlc:init on the plugin install, to vendor .adlc/ETHOS.md

Context

Run this block first, with your shell tool, and read its output before you continue. Each read prints a notice instead of failing when its file is absent.

# adlc-context
echo '--- Active specs'
grep -rlx -e status:.draft -e status:.approved -e status:.in-progress --include requirement.md .adlc/specs 2>/dev/null || echo 'No active specs'

Input

The target is the argument: whatever follows /validate in the invocation (on Claude Code it can also arrive as an ARGUMENTS: line appended to this text), a REQ, TASK or BUG id. With none, Step 1 works out what to validate.

Prerequisites

Before proceeding, verify that .adlc/specs/ exists. If it doesn't, stop and tell the user: "The .adlc/ structure hasn't been initialized. Run /init (/adlc:init on the plugin install) first."

Instructions

Step 1: Identify What to Validate

  1. If given a REQ ID, locate all artifacts under .adlc/specs/REQ-xxx-*/
  2. If given a phase name, validate the most recently modified artifacts for that phase
  3. Determine the current phase based on what artifacts exist:

Step 2: Validate Based on Phase

Validating a Requirement Spec
Validating Architecture
Validating Tasks

Verification obligations (REQ-595) — three checks over the task set's

## Verification blocks (shape defined in .adlc/templates/task-template.md).

Read the REQ's rules at run time; never carry a copy of them here, because an

enumeration in a skill rots the moment a spec changes.

A task file with no ## Verification section is valid. Its absence is

reported by the coverage check below, not treated as a malformed task.

at least one task's ## Verification block. Report the unmapped ids by name.

Severity: Warning (advisory, non-blocking) in epoch 1.

## Acceptance Criteria list — the requirement template does not print AC

numbers, so position is the addressing.

not reduce to business rules — a REQ can carry ACs with no one-to-one BR —

so reporting BRs alone would leave half the omission class open.

on. Do not invent rules to check. An unnumbered legacy prose spec is not

gate-able, and fabricating ids to gate it would report failures against

rules nobody wrote.

carries at least one obligation with benign_path: yes (a case asserting the

detector does not fire on the legitimate actor). A detector validated only

against adversarial inputs ships broken and passes its own suite.

Severity: Warning (advisory, non-blocking) in epoch 1.

halt, reject, block, flag — so refusal/refuses and

blocking/blocked both hit. Do not use \b word anchors: BSD

grep -E on macOS does not honor them, and the check would silently never

fire on the dominant developer platform.

work is a failure, not a pass. Severity: Blocker.

test-case obligation reports executed cases; a structural-check

obligation reports files scanned by the lint invocation (many

obligations legitimately share one invocation, so per-obligation case counts

do not exist for that kind).

and treat a status that runner reserves for "collected/scanned nothing" as a

zero count. Do not assume a runner here — which one a project uses is the

project's choice, read from its stack:, and a runner named in this skill

would be the wrong one for the next project.

this repo the two surfaces are concrete: tools/lint-skills prints

scanned <N> SKILL.md file(s) to stderr and exits 255 when N is zero, and

the tools/ test runner exits 5 on zero collected. Consult the consumer

project's own runner for the equivalent signal rather than porting these.

deliberate: the checks above are coverage judgments about obligation shape,

whereas a zero-work run is evidence the verification did not run at all.

A green suite that executed nothing proves nothing.

Why two advisory and one blocking: a coverage gate that blocked on day one

would fail every in-flight REQ written before obligations existed. The advisory

epoch lets the corpus accumulate obligations first; promotion to blocking is a

separate follow-up REQ. The two advisory checks share a posture on purpose — both

are obligation-shape judgments, and a mixed gate where one new shape check blocks

and the other does not is incoherent to anyone reading the output.

Cross-repo tasks — only applies if .adlc/config.yml in the primary repo declares more than one entry under repos:. Skip these checks in single-repo mode.

Validating Implementation

```sh

ADLC_TOOLKIT_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$ADLC_TOOLKIT_ROOT" ] || [ ! -d "$HOME/.claude/skills/partials" ] || ADLC_TOOLKIT_ROOT="$HOME/.claude/skills"; [ -n "$ADLC_TOOLKIT_ROOT" ] || ADLC_TOOLKIT_ROOT=$(cat "$HOME/.claude/adlc/plugin-root" 2>/dev/null); export ADLC_TOOLKIT_ROOT="${ADLC_TOOLKIT_ROOT:-$HOME/.claude/skills}"

if [ -f .adlc/partials/lessons.sh ]; then . .adlc/partials/lessons.sh; else . "$ADLC_TOOLKIT_ROOT/partials/lessons.sh"; fi

adlc_lessons ack-check --state "<pipeline-state.json>" --root . --worktree . --base "origin/<integration-branch>" --tasks-dir "<.adlc/specs/REQ-xxx-*/tasks>" --spec "<requirement.md>" --component "<component>"

```

Report each Applicable lesson not acknowledged: … line, and the (+N more …) line, as Info — never Warning or Blocker. A return of 2 (lessons: unavailable — …) is reported as one Info line and the validation continues.

Step 3: Report Results

  1. Display validation results as a checklist with pass/fail for each item
  2. Categorize issues by severity:

Advisory obligation findings (REQ-595): report unmapped BR/AC ids and

missing benign paths as Warning, and say plainly in the output that they do

not block advancement in this epoch. Do not silently omit them because they are

non-blocking — an unreported gap is exactly the omitted-requirement failure the

check exists to surface, and an advisory finding nobody sees is worth nothing.

Conversely, do not present them as Blockers: promotion to blocking is a named

follow-up REQ, and pre-empting it here would fail every REQ written before

obligations existed.

  1. If all checks pass, confirm the artifact is ready to advance
  2. If blockers exist, list specific fixes needed

Step 4: Recommend Next Action

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.