New skills for integrated beads + humanlayer workflow:
- beads_research.md: Research with per-bead artifact storage
- beads_plan.md: Planning with bead linking
- beads_implement.md: Implementation with per-plan checkpoints
- beads_iterate.md: Plan iteration with version history
- beads_workflow.md: Comprehensive workflow documentation
Skills output to thoughts/beads-{id}/ for artifact storage
and automatically update bead notes with artifact links.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
5.2 KiB
5.2 KiB
description
| description |
|---|
| Implement a plan from thoughts/ for a bead issue |
Beads Implement
You are tasked with implementing an approved plan for a bead issue. Plans are stored in thoughts/beads-{id}/plan.md.
Initial Setup
When this command is invoked:
-
Parse the input for bead ID:
- If a bead ID is provided, use it
- If no bead ID, check for beads with plans:
Then check which have plans in
bd list --status=in_progressthoughts/beads-{id}/plan.md
-
Load bead and plan context:
bd show {bead-id}- Read
thoughts/beads-{bead-id}/plan.mdFULLY - Check for any existing checkmarks (- [x]) indicating partial progress
- Read any research at
thoughts/beads-{bead-id}/research.md
- Read
-
Mark bead in progress (if not already):
bd update {bead-id} --status=in_progress -
Respond with:
Implementing plan for bead {bead-id}: {bead-title} Plan location: thoughts/beads-{bead-id}/plan.md {If partial progress: "Resuming from Phase X - previous phases completed."} I'll implement each phase and verify success criteria before proceeding.
Implementation Process
Step 1: Understand the Plan
- Read the plan completely
- Check for existing progress (checkmarked items)
- Read all files mentioned in the plan
- Create a TodoWrite list tracking each phase
Step 2: Implement Each Phase
For each phase in the plan:
-
Announce the phase:
## Starting Phase {N}: {Phase Name} This phase will: {overview from plan} -
Make the changes:
- Follow the plan's specific instructions
- Use Edit tool for modifications
- Create new files only when specified
-
Run automated verification:
- Execute each command in "Automated Verification"
- Fix any issues before proceeding
-
Update plan checkboxes:
- Use Edit tool to check off completed items in the plan
- This enables resume if session is interrupted
-
Update bead notes with progress:
bd update {bead-id} --notes="Phase {N} complete. Automated verification passed."
Step 3: Per-Plan Checkpoint
CRITICAL: After completing ALL phases and ALL automated verification:
## Implementation Complete - Ready for Manual Verification
All phases completed and automated verification passed:
- [ ] Phase 1: {name} - DONE
- [ ] Phase 2: {name} - DONE
- [ ] ...
**Automated checks passed:**
- {List of automated checks that passed}
**Please perform manual verification:**
- {List manual verification items from plan}
Let me know when manual testing is complete so I can close the bead.
STOP HERE and wait for user confirmation.
Do NOT:
- Close the bead automatically
- Proceed to "next steps" without confirmation
- Start additional work
Step 4: After Manual Verification
When user confirms manual verification passed:
-
Update plan status:
- Edit the plan's frontmatter:
status: complete
- Edit the plan's frontmatter:
-
Close the bead:
bd close {bead-id} --reason="Implementation complete. All verification passed." -
Final summary:
Bead {bead-id} closed. Summary: - {What was implemented} - {Key changes made} Artifacts: - Plan: thoughts/beads-{bead-id}/plan.md - {Any other artifacts created}
Handling Issues
When something doesn't match the plan:
Issue in Phase {N}:
Expected: {what the plan says}
Found: {actual situation}
Why this matters: {explanation}
Options:
1. Adapt the implementation to work with current state
2. Update the plan to reflect reality
3. Stop and investigate further
How should I proceed?
When tests fail:
- Analyze the failure
- Attempt to fix if the fix is clear and within scope
- If fix is unclear, report:
Test failure in Phase {N}: Failing test: {test name} Error: {error message} I've attempted: {what you tried} This may require: {your assessment}
When blocked:
Blocked in Phase {N}:
Blocker: {description}
Impact: {what can't proceed}
Suggested resolution: {your recommendation}
Resuming Work
If the plan has existing checkmarks:
- Trust completed work - don't re-verify unless something seems off
- Pick up from first unchecked item
- Verify previous work only if current phase depends on it and seems broken
Important Guidelines
- Follow the plan's intent while adapting to reality
- Implement each phase fully before moving to next
- Update checkboxes in real-time as you complete items
- One checkpoint per plan - not per phase
- Never close bead without manual verification confirmation
- Keep bead notes updated with progress
Session Close Protocol
If you need to end the session before completion:
- Update plan with current progress (checkboxes)
- Update bead notes:
bd update {bead-id} --notes="In progress: Phase {N} partially complete. Next: {what's next}" - Inform user of status and how to resume
Example Invocation
User: /beads:implement nixos-configs-abc123
Assistant: Implementing plan for bead nixos-configs-abc123...
## Starting Phase 1: Database Schema
This phase will add the new user_preferences table...