with one click
rb-work
// Use when implementing an existing plan checklist, resuming active code changes, or verifying each step in Active Record or Sequel work. Use after /rb:plan. Can resume the newest active plan automatically.
// Use when implementing an existing plan checklist, resuming active code changes, or verifying each step in Active Record or Sequel work. Use after /rb:plan. Can resume the newest active plan automatically.
| name | rb:work |
| description | Use when implementing an existing plan checklist, resuming active code changes, or verifying each step in Active Record or Sequel work. Use after /rb:plan. Can resume the newest active plan automatically. |
| when_to_use | Triggers: "implement plan", "start coding", "resume work", "continue plan", "execute plan". |
| argument-hint | <path to plan file> |
| effort | high |
Execute the unchecked tasks from a plan file.
/rb:work .claude/plans/user-auth/plan.md/rb:work .claude/plans/user-auth/plan.md --from P2-T3/rb:work (resumes the active plan)/rb:review.scratchpad.md before implementing.START ──▶ READ PLAN ──▶ ANALYZE CONTEXT ──▶ PICK TASK
│ │
▼ ▼
CHECK SCRATCHPAD ◀──────┘
│
▼
┌───────────────────────┐
│ IMPLEMENT TASK │
│ - Read files │
│ - Make changes │
│ - Verify │
└───────────┬───────────┘
│
┌─────────┴─────────┐
▼ ▼
[SUCCESS] [FAILURE]
│ │
▼ ▼
CHECK OFF TASK ◀─── CREATE BLOCKER
│ (after 3 tries)
▼
MORE TASKS?
│
┌─────────┴─────────┐
▼ ▼
[YES] [NO]
│ │
▼ ▼
PICK NEXT TASK UPDATE PLAN
│
▼
SUMMARIZE & OFFER
/rb:review
When starting work:
Locate the plan
${CLAUDE_PLUGIN_ROOT}/hooks/scripts/active-plan-marker.sh getValidate marker - ensure plan exists and has unchecked tasks
Read plan.md - understand scope, phases, risks
Read scratchpad.md - understand context, decisions
Check current status - which tasks are complete?
Identify next task - first unchecked item
Identify package + ORM context - in modular or mixed repos, determine which package owns the task and whether it uses Active Record or Sequel
Load relevant context - files, dependencies, tests
These labels describe domain expertise to apply while working — they are
NOT plan-task checkbox annotations. Canonical annotations parsed by
/rb:work (Set A — [direct], [active record], [hotwire],
[sidekiq], [concurrency], [security], [test]) are documented in
${CLAUDE_PLUGIN_ROOT}/skills/plan/references/planning-workflow.md.
To prevent same-bracket-name collision with parsed annotations, the
narrative labels below intentionally exclude [hotwire], [sidekiq],
[security], and [test] (those are Set A canonicals). Use these
non-colliding labels for domain prose only:
[rails] controller/view/service wiring, routing, helpers[grape] API params, versioning, endpoint behavior, serializers[ar] schema, query, migration, locking, transaction work[sequel] datasets, Sequel models, Sequel migrations, DB.transaction work[perf] query plans, caching, Redis, hot paths, N+1 prevention[ruby] plain Ruby refactors, library code, gemsUnderstand the scope
Check Iron Laws
Load context
Make incremental changes
Follow existing patterns
Keep verification running
For domain-specific implementation patterns and deeper checklists, see
${CLAUDE_SKILL_DIR}/references/execution-guide.md.
ruby -c file.rbbundle exec standardrb --fix file.rb or bundle exec rubocop -a; Lefthook is only acceptable when its config covers lint + security/static-analysis checksbundle exec srb tcbundle exec rails zeitwerk:check only for full Rails appsbundle exec rspec spec/models/user_spec.rbstandardrb first, otherwise rubocop)bundle exec rspec or bin/rails testbundle exec brakeman (if available)eval "$(${CLAUDE_PLUGIN_ROOT}/bin/resolve-base-ref)" then bundle exec pronto run -c "$(git merge-base HEAD "$BASE_REF")"bundle exec rails_best_practices## Blocker: {Task ID}
**Task**: {description}
**Problem**: {what went wrong}
**Attempts**:
1. {what you tried}
2. {what you tried}
3. {what you tried}
**Blocking on**: {what's needed}
**Options**:
- A: {option}
- B: {option}
| Situation | Action |
|---|---|
| Test fails | Read error carefully, check test setup |
| Syntax error | Check line number, look for missing end |
| Zeitwerk fail | Check file naming, module nesting |
| Migration error | Check version, roll back if needed |
| Merge conflict | Pause, ask user for resolution |
Update plan.md after each task:
- [x] {completed task} ✓ {timestamp}
- [ ] {current task} ▶ {timestamp}
- [ ] {next task}
Use emoji markers:
When resuming work:
plan.md to see current statescratchpad.md for contextUpdate scratchpad.md with:
## Dead Ends
## Decisions
## Hypotheses
## Open Questions
## Handoff
Follow the canonical structure in
${CLAUDE_PLUGIN_ROOT}/skills/plan/references/scratchpad-template.md. Prefer
appending to the existing sections rather than inventing new top-level headings.
When all tasks are checked:
Update plan.md
Final verification
Summarize changes
Offer next steps
/rb:review - for code review/rb:brief - for documentationStop and ask the user when:
When all tasks complete or user explicitly stops:
Clear the active plan marker (prevents auto-resume on next /rb:work):
Run ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/active-plan-marker.sh clear.
Summarize progress - what was accomplished
Offer next step:
/rb:review if all tasks done/rb:compound to capture solutionGood work sessions have:
When a plan step references a research sidecar, read the sidecar's
trust_state (see
${CLAUDE_PLUGIN_ROOT}/references/output-verification/trust-states.md)
and log it in .claude/plans/<slug>/progress.md:
conflicted: halt the step; ask the user to resolve.missing: append a warning block to the step entry; proceed.weak: append a warning block to the step entry; proceed.clean: proceed silently.| Need | Reference |
|---|---|
| domain-specific implementation patterns + per-task checklists | ${CLAUDE_SKILL_DIR}/references/execution-guide.md |
| 3-attempt failure recovery + blocker creation | ${CLAUDE_SKILL_DIR}/references/error-recovery.md |
| critic-refiner pattern + harness-as-action-verifier (programmatic verification beats unstructured retry) | ${CLAUDE_SKILL_DIR}/references/harness-patterns.md |
plan + progress markdown formats consumed by /rb:work | ${CLAUDE_SKILL_DIR}/references/file-formats.md |
| plan-checkbox-as-state + auto-resume + idempotent task execution | ${CLAUDE_SKILL_DIR}/references/resume-strategies.md |
[HINT] Download the complete skill directory including SKILL.md and all related files