Daw self check
Skill soydiloreto/dilux-agentic-workflow/skills/daw-self-check
Full coherence validation of the internal state. Checks that the DAW installation in the repo is sound and that the pipeline state is consistent with the artifacts on disk. Read-only. Trigger: /daw-self-check, available in any DAW phase.From its SKILL.md
npx -y skills add soydiloreto/dilux-agentic-workflow --skill daw-self-checkAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.2 KB, as published. Nobody here has run it
Skill: /daw-self-check
Description
Full coherence validation of the internal state. Checks that DAW's installation in the repo is sound, and that the pipeline state matches the artifacts on disk. It is read-only — it modifies no file.
Inputs
.daw/orchestrator.md(the method installed into the repo)- The context file for the tool in use (
CLAUDE.md,AGENTS.mdorGEMINI.md), carrying theBEGIN DAWblock - That tool's hook wiring (
.claude/settings.json,.codex/hooks.json,.cursor/hooks.json,.gemini/settings.json,.github/hooks/,.opencode/plugins/) .daw-state.json(the pipeline state, at the repo root)- The artifacts derived from the ticket (PRD, spec, branch)
Execution Protocol
0. Validate DAW's installation in the repo
ROOT="${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"
# The method must be present.
[ -f "$ROOT/.daw/orchestrator.md" ] || \
echo "INCONSISTENCY: .daw/orchestrator.md is missing. Reinstall with install.sh."
# Some context file must carry the activation block. Which one depends on the
# tool, and a repo may legitimately have several.
grep -lqF "BEGIN DAW" "$ROOT"/CLAUDE.md "$ROOT"/AGENTS.md "$ROOT"/GEMINI.md 2>/dev/null || \
echo "INCONSISTENCY: no context file carries the DAW block. Reinstall with install.sh."
# At least one tool's enforcement must be wired, or the gates are decoration.
ls "$ROOT"/.claude/hooks/*.sh "$ROOT"/.codex/hooks/daw/*.sh "$ROOT"/.cursor/hooks/daw/*.sh \
"$ROOT"/.gemini/hooks/daw/*.sh "$ROOT"/.github/hooks/daw/*.sh \
"$ROOT"/.opencode/plugins/daw.js >/dev/null 2>&1 || \
echo "INCONSISTENCY: no enforcement is wired for any tool. Reinstall with install.sh --target <tool>."
1. Validate the .daw-state.json schema
- The file exists (if it does not, ASSUMING IDLE is valid — it is created on the first write by the
enforce.shhook). - If it exists, the 9 mandatory fields are present:
tier,phase,ticket,title,tracker,gates,block,discovery,history. phaseis a valid value (IDLE,CLASSIFY,DEFINE,PLAN,CODE,VERIFY,RELEASE,DISCOVERY).tierisnull(in IDLE/CLASSIFY) or a valid value (QUICK-FIX,FIX,FEATURE,DISCOVERY).- If
phaseis neither IDLE nor CLASSIFY,tiershould not benull. gatesis an object andhistoryis a list.
2. Validate the state against what is on disk
A state that claims a gate no artifact backs is the failure this skill exists to catch.
- The branch derived from
ticketandtieris the one checked out (git branch --show-current). gates.define→docs/daw/prd/prd-{ticket}.mdexists (orfix-{ticket}.mdfor QUICK-FIX).gates.spec→docs/daw/specs/spec-{ticket}.mdorfix-{ticket}.mdexists.gates.threat→docs/daw/security/threat-{ticket}.mdexists.gates.sast→docs/daw/security/sast-{ticket}.mdexists.- On a FIX:
docs/daw/specs/rca-{ticket}.mdexists once DEFINE has closed.
3. Validate the history
historyis non-empty wheneverphaseis not IDLE.- Its last entry's
toequalsphase. - Every entry has
timestamp,from,toandaction, and the timestamps do not go backwards. - Each entry's
frommatches the previous entry'sto(no gaps).
Output Format
┌─────────────────────────────────────────────────────────┐
│ SELF-CHECK — DAW coherence │
├─────────────────────────────────────────────────────────┤
│ │
│ Installation: [✅/❌] method · context file · wiring │
│ State schema: [✅/❌] 9 fields, valid values │
│ Artifacts: [✅/❌] every earned gate has its file │
│ History: [✅/❌] contiguous, ends at {phase} │
│ │
│ [one ❌ line per inconsistency, with what to do] │
│ │
│ Result: [SOUND | INCONSISTENCIES (N)] │
└─────────────────────────────────────────────────────────┘
PASS/FAIL criteria
- SOUND: zero inconsistencies.
- INCONSISTENCIES (N): report every one of them, with the fix, and STOP.
Updating .daw-state.json
None. This skill is strictly read-only. It never repairs what it finds — a state machine that quietly fixes its own state is a state machine you cannot trust the next time it says it is fine. Report, and let the user decide.
Language
Answer in the language the user is writing in.