/claude-warden:warden-workflowfrom claude-warden
Development workflow protocol — PROPOSE, PLAN, BUILD, VERIFY, CLOSE phases with UAT checkpoints
Ships in claude-warden. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Policy Area: WORK Version: 1.2 Status: Active Enforcement: MUST (per RFC 2119) Purpose: How every feature, fix, and change moves from idea to shipped code with Claude Code. Includes mandatory UAT checkpoints at each phase.
Every unit of work follows five phases. No phase can be skipped.
PROPOSE → PLAN → BUILD → VERIFY → CLOSE
Who leads: Human What happens: Human describes what they want. Claude asks clarifying questions. No code, no files yet.
Human says: "Plan it" or any clear affirmative. For user-facing features, acceptance criteria must exist before this gate opens.
If human says "just do it": Claude responds: "Let me give you a 30-second plan first so we don't build the wrong thing. Here's what I'd do: [quick plan]. Sound good?"
Who leads: Claude What happens: Claude produces a structured plan. Human reviews and approves.
## Plan: [Feature/Fix Name]
**Scope:** [One sentence]
**Touches:** [Governance areas affected]
**Acceptance Criteria:** [List from PROPOSE, or reference test case IDs]
### Files to Create
- path/to/file.ts — purpose
### Files to Modify
- path/to/existing.ts — what changes and why
### Files NOT Touched
- [Explicitly list to prevent scope creep]
### Governance Updates Required
- [ ] Which docs need updating and why
### Risks & Decisions
- [Anything needing human input]
### Estimated Scope
- Files: [count] | Complexity: Low / Medium / High
Human says: "Approved" / "Build it" / "Approved with changes: [modifications]"
Or rejects: "Change X" → revise plan. "Too big" → split. "Wrong approach" → back to PROPOSE.
Who leads: Claude What happens: Claude implements the approved plan. Only phase where code gets written.
If no acceptance criteria exist → STOP. Do not write code. Ask the human to define criteria first.
test_[function]_[scenario]_[expected_result] (e.g., test_login_invalid_creds_returns_401)security skill for full checklist.🤔 Decision point not covered by the plan:
[Situation]
Option A: [approach + tradeoff]
Option B: [approach + tradeoff]
My recommendation: [A or B] because [reason].
Which do you prefer?
If a fix attempt fails 3 times: STOP. Do not keep iterating. Report what you tried, what failed, what you think the root cause is. Human decides next step. See policy §8.1 for the full rule and required format.
Second Opinion protocol (enforced by hooks):
second-opinion skill (Tier 1): spawn a diagnostic subagent for fresh-eyes analysissecond-opinion skill (Tier 2, mandatory): spawn a root cause analyst, generate a human-pasteable summary, STOPSigns you're in a rabbit hole:
Who leads: Claude (checks), Human (acceptance)
5.1 Governance Drift Check:
✅ / ❌ All new files in approved directories
✅ / ❌ All new models documented
✅ / ❌ All modified files were in the plan
✅ / ❌ No files exceed 250-line limit
✅ / ❌ No unplanned dependencies added
5.2 UAT Self-Test:
For each acceptance criterion:
✅ / ❌ [Criterion 1] — [how verified]
✅ / ❌ [Criterion 2] — [how verified]
✅ / ❌ [Edge case 1] — [how verified]
✅ / ❌ [Error state 1] — [how verified]
Claude walks through each acceptance criterion and verifies the code actually implements it. Not "I think it works" — trace the specific code paths that satisfy each criterion.
5.2.1 Post-Build Test Checklist:
5.3 Plan Compliance:
✅ / ❌ All planned files created
✅ / ❌ All planned governance updates made
✅ / ❌ No unplanned files created
5.4 Drift Score (if available): bash scripts/warden-audit.sh
Human says: "Looks good" / "Ship it" → proceed to CLOSE. Or: "Fix X" → back to BUILD. "Wrong thing" → back to PROPOSE.
Failing UAT self-test blocks CLOSE. Even if governance checks pass and drift score is clean, if acceptance criteria aren't met, we go back to BUILD.
Who leads: Claude
Update docs/SESSION-LOG.md with handoff note at the top:
## [YYYY-MM-DD HH:MM] Session End
**Phase:** [Current phase]
**Completed:** [List of completed tasks]
**In Progress:** [Tasks still ongoing with blockers]
**Next Session:** [What to do first]
**Decisions Made:** [Key decisions and reasoning]
**Issues/Blockers:** [Any problems encountered]
**Drift Score:** X/100 (from warden-audit.sh)
**Files Changed:** N files
**Tests:** Pass | Fail | Not Run
UAT documentation in commits and PRs:
feat: Add login form (UAT: login-happy-path, login-invalid-creds, login-empty-fields)Log governance observations to .claude/rules/feedback.md if the plan changed mid-build, a rule didn't cover something, or a rule was too strict/loose.
Claude reads CLAUDE.md and states: project, current phase, last session's work, active directives, drift score.
Human says "wrap up" → Claude runs CLOSE for in-progress work, then provides session summary: tasks completed, tasks in progress, governance updates, drift score, recommended next session.
Human says "warden check" → Claude re-reads CLAUDE.md + active directives, confirms current task, phase, and active constraints.
Not user-facing: PROPOSE + PLAN collapsed → BUILD → quick VERIFY → commit. User-facing: Still needs acceptance criteria, but can be one-liner.
Full flow as described above.
plan.md file (survives context compaction)Enforced by CLAUDE.md reference. Hooks provide hard enforcement for structural rules. Human is the gate between phases. UAT self-test gates VERIFY → CLOSE.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/warden-architectureProject directory structure template — approved directories, depth limits, forbidden patterns/warden-feedbackGovernance feedback tracking — gaps, friction, and improvement suggestions/warden-policyWarden governance constitution — defines policy areas, directive rules, and enforcement hierarchy/warden-second-opinionTwo-tier diagnostic protocol — spawns fresh subagents to analyze problems when stuck. Invoke manually or triggered by rabbit hole detection.npx claudepluginhub hawkanng/claude-warden --plugin claude-wardenOther plugins' skills for the same job