bootspring_loop
Autonomous task loop management. Create PRDs, check status, and manage iterative task execution.
Overview#
The bootspring_loop tool manages autonomous development loops using PRDs (Product Requirements Documents). It helps you track progress through stories, manage iterative development, and maintain focus on completing features.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Action to perform |
name | string | No | PRD or story name (for create/complete) |
storyId | string | No | Story ID to mark complete |
prdPath | string | No | Path to prd.json (default: tasks/prd.json) |
Actions#
| Action | Description |
|---|---|
status | Get PRD overview and progress |
progress | Alias for status |
next | Get the next story to work on |
complete | Mark a story as done |
create | Create a new PRD |
Usage Examples#
Check Status#
Use the bootspring_loop tool with:
- action: "status"
Response (with PRD):
1## PRD Status: user-authentication
2
3**Progress:** 2/5 stories complete (40%)
4
5### Stories
61. [x] Setup Clerk integration
72. [x] Create sign-in page
83. [ ] Create sign-up page (IN PROGRESS)
94. [ ] Add protected routes
105. [ ] Implement session management
11
12### Estimated Completion
13Based on current velocity: ~2 daysResponse (no PRD):
1{
2 "success": true,
3 "summary": "No PRD found",
4 "data": { "exists": false },
5 "hints": [
6 "Create a PRD with action=create name=\"feature-name\"",
7 "PRDs help you track iterative development progress"
8 ]
9}Get Next Story#
Use the bootspring_loop tool with:
- action: "next"
Response:
1{
2 "success": true,
3 "summary": "Next Story: Create sign-up page",
4 "data": {
5 "id": "story-3",
6 "title": "Create sign-up page",
7 "description": "Build the user registration flow with email verification",
8 "status": "pending",
9 "acceptanceCriteria": [
10 "Email/password form",
11 "Form validation",
12 "Email verification flow",
13 "Success redirect"
14 ]
15 },
16 "hints": [
17 "Mark complete with action=complete storyId=\"story-3\""
18 ]
19}Response (all complete):
1{
2 "success": true,
3 "summary": "All stories complete!",
4 "data": { "complete": true },
5 "hints": ["Create a new PRD for your next feature"]
6}Complete a Story#
Use the bootspring_loop tool with:
- action: "complete"
- storyId: "story-3"
Response:
1{
2 "completed": "story-3",
3 "progress": {
4 "completed": 3,
5 "total": 5,
6 "percentage": 60
7 },
8 "allComplete": false
9}Create a PRD#
Use the bootspring_loop tool with:
- action: "create"
- name: "payment-integration"
Response:
{
"created": "tasks/prd.json",
"stories": 3,
"message": "Edit the PRD to define your stories"
}PRD File Format#
PRDs are stored as JSON:
1{
2 "name": "payment-integration",
3 "description": "Created via MCP",
4 "createdAt": "2024-03-20T10:00:00Z",
5 "stories": [
6 {
7 "id": "story-1",
8 "title": "Setup",
9 "description": "Initial setup",
10 "status": "pending"
11 },
12 {
13 "id": "story-2",
14 "title": "Implementation",
15 "description": "Core implementation",
16 "status": "pending"
17 },
18 {
19 "id": "story-3",
20 "title": "Testing",
21 "description": "Add tests",
22 "status": "pending"
23 }
24 ]
25}Configuration#
Configure PRD location in bootspring.config.js:
module.exports = {
paths: {
prd: 'tasks/prd.json' // Default
}
};Workflow Integration#
Typical Development Loop#
1. Create PRD
bootspring_loop action="create" name="new-feature"
2. Edit PRD
Add detailed stories and acceptance criteria
3. Get Next Story
bootspring_loop action="next"
4. Implement Story
Work on the current story
5. Mark Complete
bootspring_loop action="complete" storyId="story-1"
6. Repeat
Continue until all stories complete
Combining with Agents#
1. Get next story
bootspring_loop action="next"
2. Invoke relevant agent
bootspring_agent agent="frontend-expert" context="Implement sign-up page"
3. Apply skills
bootspring_skill action="show" name="auth/clerk"
4. Complete story
bootspring_loop action="complete" storyId="story-3"
Error Handling#
Missing Story ID#
{
"error": "storyId required"
}PRD Not Found#
{
"error": "No PRD found",
"hints": ["Create a PRD first with action=create"]
}Unknown Action#
{
"error": "Unknown action: invalid"
}Best Practices#
Define Clear Stories#
Each story should be:
- Specific and actionable
- Completable in 1-4 hours
- Have clear acceptance criteria
Update Regularly#
Mark stories complete as you finish them to maintain accurate progress tracking.
Edit After Creation#
The created PRD has placeholder stories - customize them for your feature.
One Feature Per PRD#
Keep each PRD focused on a single feature or initiative.
CLI Integration#
1# Check status
2bootspring loop status
3
4# Get next story
5bootspring loop next
6
7# Complete a story
8bootspring loop complete story-3
9
10# Create new PRD
11bootspring loop create payment-integrationRelated Tools#
- bootspring_prd - Advanced PRD management
- bootspring_todo - Simple task management
- bootspring_workflow - Workflow orchestration