ai-sprint-kit 2.1.29 → 2.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +76 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## What is AI Sprint?
8
8
 
9
- AI Sprint transforms Claude Code into a team of 12 specialized AI agents with 15 powerful commands. Build production-grade software with security-first, autonomous development.
9
+ AI Sprint transforms Claude Code into a team of 12 specialized AI agents with 17 powerful commands. Build production-grade software with security-first, autonomous development.
10
10
 
11
11
  ## What's New in v2.1
12
12
 
@@ -19,7 +19,7 @@ AI Sprint transforms Claude Code into a team of 12 specialized AI agents with 15
19
19
  ## Features
20
20
 
21
21
  - **12 AI Agents** - planner, implementer, tester, reviewer, security, devops, docs, debugger, researcher, verifier, browser-tester, deployment-smoke
22
- - **15 Commands** - /ai-sprint-plan, /ai-sprint-code, /ai-sprint-test, /ai-sprint-review, /ai-sprint-secure, /ai-sprint-deploy, /ai-sprint-docs, /ai-sprint-debug, /ai-sprint-scan, /ai-sprint-validate, /ai-sprint-browser-test, /ai-sprint-orchestrate, /ai-sprint-setup, /ai-sprint-auto
22
+ - **17 Commands** - /ai-sprint-init, /ai-sprint-plan, /ai-sprint-code, /ai-sprint-test, /ai-sprint-review, /ai-sprint-secure, /ai-sprint-deploy, /ai-sprint-docs, /ai-sprint-debug, /ai-sprint-fix, /ai-sprint-scan, /ai-sprint-validate, /ai-sprint-browser-test, /ai-sprint-orchestrate, /ai-sprint-setup, /ai-sprint-auto, /ai-sprint-ralph
23
23
  - **Automation Hooks** - PostToolUse (auto-format, lint, sound), Stop (final verification), SubagentStart (context injection)
24
24
  - **Memory System** - Persistent context across sessions
25
25
  - **Security-First** - Built-in SAST, secrets scanning, dependency audit
@@ -86,6 +86,7 @@ Visit [ai-sprint-kit.app.data-espresso.com](https://ai-sprint-kit.app.data-espre
86
86
  ## Commands
87
87
 
88
88
  ```
89
+ /ai-sprint-init - Initialize project context (scan + CLAUDE.md)
89
90
  /ai-sprint-plan - Create implementation plans
90
91
  /ai-sprint-code - Generate or refactor code
91
92
  /ai-sprint-test - Generate and run tests
@@ -94,14 +95,87 @@ Visit [ai-sprint-kit.app.data-espresso.com](https://ai-sprint-kit.app.data-espre
94
95
  /ai-sprint-deploy - CI/CD setup and deployment
95
96
  /ai-sprint-docs - Generate documentation
96
97
  /ai-sprint-debug - Investigate issues
98
+ /ai-sprint-fix - Autonomous bug fix cycle
97
99
  /ai-sprint-scan - Index codebase for AI context
98
100
  /ai-sprint-validate - Pre-commit validation
99
101
  /ai-sprint-browser-test - Browser automation tests (Playwright)
100
102
  /ai-sprint-orchestrate - Multi-session coordination
101
103
  /ai-sprint-setup - Configuration wizard
102
104
  /ai-sprint-auto - Full autonomous development cycle
105
+ /ai-sprint-ralph - Persistent loop until task complete
103
106
  ```
104
107
 
108
+ ## Ralph Loop - Autonomous Task Completion
109
+
110
+ Ralph runs tasks in a persistent loop until completion or max iterations reached. Ideal for migrations, batch fixes, and tasks with clear success criteria.
111
+
112
+ ### Simple Mode (Single Task)
113
+
114
+ ```bash
115
+ # Fix all TypeScript errors
116
+ /ai-sprint-ralph "fix all TypeScript errors" --promise "tsc: 0 errors"
117
+
118
+ # Migrate tests to vitest
119
+ /ai-sprint-ralph "migrate jest to vitest" --max-iterations 30
120
+
121
+ # Add dark mode
122
+ /ai-sprint-ralph "add dark mode toggle" --promise "DARK MODE DONE" --max-iterations 10
123
+ ```
124
+
125
+ ### PRD Mode (Multi-Feature)
126
+
127
+ Create `ai_context/ralph/prd.md`:
128
+
129
+ ```markdown
130
+ # Project: User Authentication
131
+
132
+ ## Features
133
+
134
+ ### 1. Login Form
135
+ - [ ] Add login form component
136
+ - [ ] Implement JWT validation
137
+ - [ ] Add logout functionality
138
+
139
+ ### 2. API Endpoints
140
+ - [ ] Create /api/users endpoint
141
+ - [ ] Add authentication middleware
142
+ ```
143
+
144
+ Then run:
145
+
146
+ ```bash
147
+ /ai-sprint-ralph --prd ai_context/ralph/prd.md --max-iterations 50
148
+ ```
149
+
150
+ Ralph works through each feature, checking off tasks as completed.
151
+
152
+ ### Options
153
+
154
+ | Option | Default | Description |
155
+ |--------|---------|-------------|
156
+ | `--max-iterations N` | 20 | Maximum loop iterations |
157
+ | `--promise STRING` | `<promise>COMPLETED</promise>` | Completion detection string |
158
+ | `--prd FILE` | none | PRD file for multi-feature mode |
159
+ | `--no-auto-commit` | false | Disable git commit after iteration |
160
+ | `--resume` | false | Resume interrupted session |
161
+
162
+ ### Writing Good Prompts
163
+
164
+ **Good prompts converge** - each iteration brings you closer to success:
165
+
166
+ ```
167
+ Migrate all test files from Jest to Vitest.
168
+
169
+ SUCCESS CRITERIA:
170
+ 1. All imports use "vitest" not "jest"
171
+ 2. npm run test exits with code 0
172
+ 3. Zero jest dependencies remain
173
+
174
+ When ALL criteria met, output: <promise>MIGRATION COMPLETE</promise>
175
+ ```
176
+
177
+ **Avoid vague goals** like "improve quality" - define measurable completion conditions.
178
+
105
179
  ## Support
106
180
 
107
181
  - GitHub Issues: [ai-sprint-pro/issues](https://github.com/apiasak/ai-sprint-pro/issues)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-sprint-kit",
3
- "version": "2.1.29",
3
+ "version": "2.1.31",
4
4
  "description": "CLI installer for AI Sprint autonomous development framework - requires license",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {