/safeword:bddfrom safeword
Guides behavior-driven feature development through structured phases: discovery, scenario writing, planning, implementation, and verification. Use when building new capabilities or features with multiple user flows.
Ships in safeword. 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.
Read when SKILL.md points to them.
Behavior-first development for features. Discovery → Scenarios → Implementation Planning → Execution Planning → Implementation.
For a new feature, open DISCOVERY.md and finish the Product Plan and intake exit before writing scenarios or editing implementation code.
Safeword planning review and approval are enforced on local Claude Code, local Codex, local Cursor, OpenCode CLI and TUI, Claude Code Cloud, and Cursor Cloud Agents. Codex Cloud and OpenCode Desktop execution is advisory. Do not claim authoritative planning review or approval there; move authoritative planning to a supported gated surface.
Define the behavior before implementing it. When unsure whether work is a feature, default to a task (TDD directly) — the user can /bdd to override.
Features progress through phases. Track in ticket frontmatter:
---
type: feature
phase: implement # intake | define-behavior | scenario-gate | plan-implementation | plan-execution | implement | verify | done
---
Phase meanings:
| Phase | What happens | Details |
|---|---|---|
intake | Context check, discovery | DISCOVERY.md |
define-behavior | Writing Given/When/Then | SCENARIOS.md |
scenario-gate | Validating scenarios | SCENARIOS.md |
plan-implementation | Implementation design record | PLAN_IMPLEMENTATION.md |
plan-execution | Startable work and proof order | PLAN_EXECUTION.md |
implement | Outside-in TDD | TDD.md |
verify | Evidence gate: /verify + /audit | VERIFY.md |
done | Close ticket | DONE.md |
Update phase when:
/spike checkpoint only for an eligible build-only kill-risk, then set plan-implementationplan-executionimplementverifydoneThe scenario-gate exit requires review-spec in Review mode. That skill owns
the scenario targets, project context, coordinator protocol, verdict, and review
stamp. This orchestrator owns only routing and the phase transition; do not
restate or independently invoke the scenario-review protocol here.
All BDD review exits share one lifecycle rule: REVIEW_PENDING is a live
review, not a verdict. Keep its review_id, collect it through the returned
typed nextActions until terminal, and never start a replacement review or
advance/stamp while it is pending. REVIEW_STALE means rerun against the
current artifacts. Only a terminal verdict may advance the phase.
The phase-exit review gate is on by default. In .safeword/config.json,
reviewGate: false disables it and a list limits it to those phases. Use the
current phase guide for its review target, stamp, and applicable fallback.
Resuming means reconstruct where the ticket left off and continue. The ticket's phase: and the first unchecked ledger item tell you where; the last work-log entry tells you what. Announce where you're resuming, then continue.
Resume by phase:
| Phase | Resume action |
|---|---|
intake | Start understanding (propose-and-converge) |
define-behavior | Continue drafting scenarios |
scenario-gate | Continue validating scenarios |
plan-implementation | Continue the implementation plan (PLAN_IMPLEMENTATION.md) |
plan-execution | Continue the execution plan (PLAN_EXECUTION.md) |
implement | Find first unchecked scenario, run TDD |
verify | Run /verify and /audit, write verify.md |
done | Close ticket (verify.md must exist) |
Understand first and size internally (see SAFEWORD.md "Understanding" and "Sizing") — state the scope read inside your proposal, not as a separate announcement. If the user references an iteration/story/phase from a spec, resume its child ticket at the current phase, or create one and run full BDD if none exists; if a ticket already exists, read its phase and resume there.
Artifact-first: before doing a phase's work, create or verify its artifact — intake → <namespace-root>/tickets/{ID}-{slug}/ticket.md; define-behavior → the feature source at features/<slug>.feature (or the configured paths.features directory) plus the R/G/R ledger at <namespace-root>/tickets/{ID}-{slug}/test-definitions.md. Then execute the phase using its phase file, and update phase: on transition.
For splitting large features, see SPLITTING.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bdd, feature-development, scenario-driven, tdd, orchestrator
24 skills in this plugin
/auditRun a diff-scoped code audit for architecture, dead code, and test quality. Uses the change from main to focus feature reviews; request a repository audit for whole-codebase discovery./brainstormUse when the user wants to explore options, weigh approaches, or think through uncertainty before committing to a direction. Collaborative brainstorming and rubber ducking — divergence-first thinking partner./cleanup-zombiesKill zombie dev servers and test processes. Use when ports are blocked, processes are hanging, or test runners won't start./closeoutClose a completed local delivery safely. Use when wrapping up a finished coding session by verifying it, merging only with explicit authority, capturing retrospective learning, and cleaning the exact merged branch and worktree. Do NOT use for cloud-agent tasks, unmerged work, or cleanup without a pull request./debugRoot cause debugging before fixes. Use when investigating bugs, diagnosing test failures, troubleshooting unexpected behavior, or when previous fix attempts failed. Enforces investigate-first discipline./demand-researchTests whether a proposed product bet has credible demand. Use when Why now depends on an unresolved, decision-critical demand claim or when the user explicitly asks for demand research. Do NOT use for child features, mandated work, parity work, or when a cheaper experiment can answer the question before research.npx claudepluginhub arcadeai/safeword --plugin safewordOther plugins' skills for the same job