Use when starting a new project or when .harness/ directory doesn't exist — initializes quality tracking, contract system, and learned rules infrastructure
Scan the project and scaffold .harness/ and .claude/rules/learned/ directories.
detect_project_profile.py to identify language, framework, and commandsscaffold_runtime.py to create .harness/ and .claude/rules/learned/python "${CLAUDE_PLUGIN_ROOT}/hooks/lib/detect_project_profile.py" "${CLAUDE_PROJECT_DIR}"
python "${CLAUDE_PLUGIN_ROOT}/hooks/lib/scaffold_runtime.py" "${CLAUDE_PROJECT_DIR}"
.harness/
config.json # guard/trace settings (all opt-in)
profile.json # detected project profile
goals/ # goal documents
contracts/ # acceptance criteria + state machine
plans/ # implementation plans
progress/ # session summaries
artifacts/ # review/QA evidence, trace.jsonl
failures/ # failure retro documents
templates/ # contract, goal, plan, failure-retro templates
.claude/
rules/learned/ # promoted rules from failure retros
agent-memory/ # per-role accumulated knowledge
superpowers:brainstorming to design your featuresuperpowers:contract-gate to create acceptance criteriasuperpowers:writing-plans to create implementation planssuperpowers:codex-plan-review to get an external second review of the
completed plan before implementation when Codex review is availablesuperpowers:subagent-driven-development or
superpowers:executing-plans to implement the confirmed plan