From zenflow
Validate completed work passes all quality gates (lint, format, tests, docs, journal). Use after finishing implementation tasks to ensure nothing is missed. Fixes failures automatically using subagents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/zenflow:check-workThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run all quality gates after implementation is complete. Each gate is tracked as a task. If any gate fails, fix it — using subagents for parallel resolution when possible.
Run all quality gates after implementation is complete. Each gate is tracked as a task. If any gate fails, fix it — using subagents for parallel resolution when possible.
Announce at start: "I'm using the zenflow:check-work skill to verify this work."
Before running gates, detect the project's toolchain by reading package.json, Makefile, pyproject.toml, or equivalent. Look for:
lint script in package.json, make lint, ruff check, etc.lint:fix, make lint-fix, ruff check --fix, etc.format script, make format, black --check, etc.format:fix, make format-fix, black ., etc.test script, make test, pytest, etc.If CLAUDE.md documents the project's commands, use those. Otherwise discover from config files.
Create all 5 tasks via TaskCreate upfront, then execute them in order.
in_progress via TaskUpdatecompletedin_progress via TaskUpdatecompletedin_progress via TaskUpdatecompletedin_progress via TaskUpdategit diff against the starting state)completedcompletedin_progress via TaskUpdatefield-notes:write using the Skill tool.claude/journal.jsonl).claude/journal.jsonl using the full schema:{
"timestamp": "YYYY-MM-DDTHH:MM:SS.000Z",
"workedOn": "plan: resources/plans/NNN-name.md | issue: #123 | description",
"branch": "current git branch name",
"type": "work",
"origin": "primary",
"skill": "zenflow:check-work",
"outcome": "completed",
"summary": "One sentence: what was accomplished",
"details": {
"filesModified": ["path/to/file1.ts", "path/to/file2.ts"],
"filesCreated": ["path/to/new-file.ts"],
"testsAdded": 0,
"testsModified": 0
},
"issues": "Problems encountered (empty string if none)",
"blockers": "What stopped progress (empty string if none)",
"workarounds": "Temporary solutions used (empty string if none)",
"insights": "What worked well, surprising discoveries, useful patterns",
"wouldDoDifferently": "Hindsight improvements for next time",
"feedback": "Observations about the workflow or process",
"duration": "approximate time spent"
}
completedWhen a gate fails:
Gates 1 and 2 (lint + format) can run in parallel since they're independent. Gate 3 (tests) should run after 1 and 2 are clean. Gates 4 and 5 (docs + journal) can run in parallel after tests pass.
npx claudepluginhub brewpirate/zen-flow --plugin zenflowRuns automated checks (build, test, lint) and compares completed work against original requirements before committing.
Enforces running verification commands before claiming work is complete. Useful for preventing false success claims and ensuring evidence-based completion.
Enforces evidence-based completion discipline: run verification commands (tests, lints, type checks, builds) before claiming work is done. Prevents false completion by requiring captured output.