ai-eng-system 0.0.16 โ†’ 0.1.1

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 (28) hide show
  1. package/README.md +62 -17
  2. package/dist/.claude-plugin/agents/full_stack_developer.md +0 -1
  3. package/dist/.claude-plugin/commands/plan.md +111 -0
  4. package/dist/.claude-plugin/commands/ralph-wiggum.md +826 -0
  5. package/dist/.claude-plugin/commands/research.md +14 -0
  6. package/dist/.claude-plugin/commands/review.md +111 -0
  7. package/dist/.claude-plugin/commands/specify.md +14 -0
  8. package/dist/.claude-plugin/commands/work.md +113 -0
  9. package/dist/.claude-plugin/plugin.json +3 -6
  10. package/dist/.claude-plugin/skills/workflow/ralph-wiggum/SKILL.md +494 -0
  11. package/dist/.opencode/agent/ai-eng/development/full_stack_developer.md +0 -1
  12. package/dist/.opencode/command/ai-eng/plan.md +111 -0
  13. package/dist/.opencode/command/ai-eng/ralph-wiggum.md +826 -0
  14. package/dist/.opencode/command/ai-eng/research.md +14 -0
  15. package/dist/.opencode/command/ai-eng/review.md +111 -0
  16. package/dist/.opencode/command/ai-eng/specify.md +14 -0
  17. package/dist/.opencode/command/ai-eng/work.md +113 -0
  18. package/dist/.opencode/skill/ralph-wiggum/SKILL.md +494 -0
  19. package/dist/skills/workflow/ralph-wiggum/SKILL.md +494 -0
  20. package/package.json +1 -1
  21. package/dist/.claude-plugin/commands/clean.md +0 -46
  22. package/dist/.claude-plugin/commands/compound.md +0 -26
  23. package/dist/.claude-plugin/commands/context.md +0 -318
  24. package/dist/.claude-plugin/commands/create-agent.md +0 -48
  25. package/dist/.opencode/command/ai-eng/clean.md +0 -46
  26. package/dist/.opencode/command/ai-eng/compound.md +0 -26
  27. package/dist/.opencode/command/ai-eng/context.md +0 -318
  28. package/dist/.opencode/command/ai-eng/create-agent.md +0 -48
package/README.md CHANGED
@@ -6,7 +6,7 @@ Advanced development tools with context engineering, research orchestration, and
6
6
 
7
7
  ### Spec-Driven Development (Recommended)
8
8
 
9
- This toolkit follows the **spec-driven development methodology** from GitHub's official blog post: [Spec-driven development with AI: Get started with a new open source toolkit](https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/).
9
+ This toolkit follows **spec-driven development methodology** from GitHub's official blog post: [Spec-driven development with AI: Get started with a new open source toolkit](https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/).
10
10
 
11
11
  **The 5-Phase Workflow** (always in this order):
12
12
 
@@ -17,16 +17,18 @@ flowchart LR
17
17
  E -.->|Repeat| D
18
18
  ```
19
19
 
20
- | Phase | Command | Output |
21
- |-------|---------|--------|
22
- | 1. Research | `/ai-eng/research` | Context and findings |
23
- | 2. Specify | `/ai-eng/specify` | Feature specification |
24
- | 3. Plan | `/ai-eng/plan` | Implementation plan |
25
- | 4. Work | `/ai-eng/work` | Quality-gated code |
26
- | 5. Review | `/ai-eng/review` | Multi-agent approval |
20
+ | Phase | Command | Output | Ralph Wiggum ๐Ÿ”„ |
21
+ |-------|---------|--------|-----------------|
22
+ | 1. Research | `/ai-eng/research` | Context and findings | `--ralph` for iterative deepening |
23
+ | 2. Specify | `/ai-eng/specify` | Feature specification | `--ralph` for requirement refinement |
24
+ | 3. Plan | `/ai-eng/plan` | Implementation plan | `--ralph` for task completeness |
25
+ | 4. Work | `/ai-eng/work` | Quality-gated code | `--ralph` for TDD cycles |
26
+ | 5. Review | `/ai-eng/review` | Multi-agent approval | `--ralph` for thorough analysis |
27
27
 
28
28
  This approach ensures specifications are your "source of truth" for what gets built, reducing guesswork and enabling more reliable AI-assisted development.
29
29
 
30
+ ๐Ÿ”„ **New: Ralph Wiggum Iteration** - Add `--ralph` flag to any phase command for persistent refinement until quality standards are met. See [Ralph Wiggum Integration Guide](./docs/ralph-wiggum-integration-complete.md).
31
+
30
32
  See [docs/spec-driven-workflow.md](./docs/spec-driven-workflow.md) for complete workflow guide with examples.
31
33
 
32
34
  ### Claude Code (Recommended)
@@ -51,16 +53,18 @@ See [docs/spec-driven-workflow.md](./docs/spec-driven-workflow.md) for complete
51
53
 
52
54
  **Core workflow for systematic development** (always research โ†’ specify โ†’ plan โ†’ work โ†’ review):
53
55
 
54
- | Phase | Command | Purpose |
55
- |-------|---------|---------|
56
- | 1. Research | `/ai-eng/research` | Multi-phase research with codebase and external context |
57
- | 2. Specify | `/ai-eng/specify` | Create feature specifications with TCRO framework |
58
- | 3. Plan | `/ai-eng/plan` | Create detailed implementation plans from specs |
59
- | 4. Work | `/ai-eng/work` | Execute plans with quality gates and validation |
60
- | 5. Review | `/ai-eng/review` | Multi-perspective code review (28 agents) |
56
+ | Phase | Command | Purpose | Ralph Wiggum ๐Ÿ”„ |
57
+ |-------|---------|---------|-----------------|
58
+ | 1. Research | `/ai-eng/research` | Multi-phase research with codebase and external context | Iterative deepening, gap analysis |
59
+ | 2. Specify | `/ai-eng/specify` | Create feature specifications with TCRO framework | Requirement refinement, completeness |
60
+ | 3. Plan | `/ai-eng/plan` | Create detailed implementation plans from specs | Task atomicity, dependency mapping |
61
+ | 4. Work | `/ai-eng/work` | Execute plans with quality gates and validation | TDD cycles, implementation refinement |
62
+ | 5. Review | `/ai-eng/review` | Multi-perspective code review (28 agents) | Escalating focus, thorough analysis |
61
63
 
62
64
  > **Methodology**: Based on [GitHub's spec-driven development approach](https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/)
63
65
 
66
+ > **๐Ÿ”„ Ralph Wiggum**: Add `--ralph` flag to any phase command for persistent iteration. Perfect for complex tasks requiring multiple refinement cycles. [Learn more โ†’](./docs/ralph-wiggum-integration-complete.md)
67
+
64
68
  ### Additional Commands (13 total)
65
69
  - `/ai-eng/optimize` - Prompt enhancement (+45% quality)
66
70
  - `/ai-eng/deploy` - Pre-deployment checklists
@@ -86,12 +90,15 @@ See [docs/spec-driven-workflow.md](./docs/spec-driven-workflow.md) for complete
86
90
  - **Content & SEO**: `seo-specialist`, `prompt-optimizer`
87
91
  - **Plugin Development**: `agent-creator`, `command-creator`, `skill-creator`, `tool-creator`, `plugin-validator`
88
92
 
89
- ### Skills (7 files)
93
+ ### Skills (8 files)
90
94
  - `devops` - Coolify deployment, Git worktree workflows
91
95
  - `prompting` - Research-backed incentive prompting techniques
92
96
  - `research` - Comprehensive multi-phase research orchestration
93
97
  - `plugin-dev` - Plugin development knowledge base and references
94
98
  - `text-cleanup` - Pattern-based text cleanup (slop, comments)
99
+ - **`workflow/ralph-wiggum`** - Persistent iteration patterns for quality refinement (NEW!)
100
+
101
+ > **๐Ÿ”„ Ralph Wiggum Philosophy**: "Iteration > Perfection, Failures Are Data, Persistence Wins" - Now available across all phase commands with `--ralph` flag
95
102
 
96
103
  ## ๐Ÿ”„ Subagent Orchestrator Configuration
97
104
 
@@ -168,10 +175,39 @@ bun test # Run test suite
168
175
  - Tests: โœ… Passing (21/21)
169
176
 
170
177
  ## ๐Ÿ“š Documentation
178
+
179
+ ### Online Documentation
180
+ **Deploy with Coolify** (recommended):
181
+ - ๐Ÿ“– [Coolify Deployment Guide](docs-site/COOLIFY-DEPLOYMENT.md) - Complete deployment instructions
182
+ - ๐Ÿš€ Deploy to Coolify in 5 minutes
183
+
184
+ **Built Site**: `docs-site/` directory
185
+
186
+ ### Developer Documentation
171
187
  - [Installation Guide](INSTALLATION.md) - Detailed setup instructions
172
188
  - [Agent Coordination](AGENTS.md) - Agent usage patterns and coordination
173
189
  - [Plugin Documentation](PLUGIN.md) - Technical plugin details
174
190
  - [Research Guide](docs/research-command-guide.md) - Research orchestration usage
191
+ - [Ralph Wiggum Integration](docs/ralph-wiggum-integration-complete.md) - Iterative refinement patterns (NEW!)
192
+
193
+ ### Documentation Site
194
+
195
+ The documentation site is built with **Astro + Starlight** and ready for deployment:
196
+
197
+ ```bash
198
+ # Local development
199
+ cd docs-site
200
+ bun install
201
+ bun run dev # http://localhost:4321
202
+
203
+ # Build for production
204
+ bun run build
205
+
206
+ # Deploy to Coolify
207
+ # Repository path: docs-site/
208
+ # Build command: bun install && bun run build
209
+ # Output directory: dist
210
+ ```
175
211
 
176
212
  ---
177
213
  ## ๐Ÿ’ป Usage Example
@@ -202,12 +238,21 @@ npm install ai-eng-system
202
238
  ### Using Commands
203
239
 
204
240
  ```bash
241
+ # Basic workflow
205
242
  /ai-eng/plan # Create implementation plan
206
243
  /ai-eng/review # Multi-agent code review
207
244
  /ai-eng/work # Execute implementation plan
208
245
  /ai-eng/seo # SEO audit
209
246
  /ai-eng/create-agent # Generate new agent
210
- # ... and 11 more
247
+
248
+ # Ralph Wiggum iteration (NEW!)
249
+ /ai-eng/work "feature" --ralph # TDD cycles until complete
250
+ /ai-eng/research "topic" --ralph --ralph-max-iterations 15 # Deep research
251
+ /ai-eng/specify "feature" --ralph --ralph-quality-gate="rg '\[NEEDS CLARIFICATION\]'"
252
+ /ai-eng/plan --from-spec=specs/feature.md --ralph # Enhanced planning
253
+ /ai-eng/review src/ --ralph --ralph-focus=security # Thorough review
254
+
255
+ # ... and 11 more commands
211
256
  ```
212
257
 
213
258
  ### Using Agents
@@ -139,7 +139,6 @@ Do NOT perform: threat modeling, advanced performance profiling, distributed sys
139
139
  | Tool | Purpose | Allowed Actions | Guardrails | Escalate When |
140
140
  | --------------------------- | -------------------------------- | ---------------------------------------------- | ------------------------------------------------- | --------------------------------------------------- |
141
141
  | read / edit / write / patch | Inspect & modify code | Modify only relevant files | Propose plan before multi-file edits (>3 files) | Change spans multiple subsystems |
142
- | bash (execute) | Run tests, type checks, build | Only safe project scripts (npm/bun test, lint) | No network destructive ops, no package publishing | Need infra-level commands (terraform, docker swarm) |
143
142
  | str_replace_editor | Targeted text replacements | Small, reversible edits | Use diff explanation in output | Large semantic refactors |
144
143
  | computer_use | Structured multi-step automation | Controlled sequences only | Confirm plan first | Requires access outside allowed directories |
145
144
 
@@ -40,6 +40,12 @@ Create a detailed implementation plan for: $ARGUMENTS
40
40
 
41
41
  # From research
42
42
  /ai-eng/plan --from-research=docs/research/2026-01-01-auth-patterns.md
43
+
44
+ # Ralph Wiggum iteration for complex plans
45
+ /ai-eng/plan "microservices migration" --ralph --ralph-show-progress
46
+
47
+ # Ralph Wiggum with custom iterations and quality gate
48
+ /ai-eng/plan --from-spec=specs/auth/spec.md --ralph --ralph-max-iterations 8 --ralph-quality-gate="rg 'Depends On:' specs/*/plan.md"
43
49
  ```
44
50
 
45
51
  ## Options
@@ -54,6 +60,14 @@ Create a detailed implementation plan for: $ARGUMENTS
54
60
  | `--from-spec <file>` | Create plan from specification file |
55
61
  | `--from-research <file>` | Create plan from research document |
56
62
  | `-v, --verbose` | Enable verbose output |
63
+ | `--ralph` | Enable Ralph Wiggum iteration mode for persistent plan refinement |
64
+ | `--ralph-max-iterations <n>` | Maximum iterations for Ralph Wiggum mode [default: 10] |
65
+ | `--ralph-completion-promise <text>` | Custom completion promise text [default: "Plan is comprehensive and ready for execution"] |
66
+ | `--ralph-quality-gate <command>` | Command to run after each iteration for quality validation |
67
+ | `--ralph-stop-on-gate-fail` | Stop iterations when quality gate fails [default: continue] |
68
+ | `--ralph-show-progress` | Show detailed iteration progress |
69
+ | `--ralph-log-history <file>` | Log iteration history to JSON file |
70
+ | `--ralph-verbose` | Enable verbose Ralph Wiggum iteration output |
57
71
 
58
72
  ## Phase 0: Prompt Refinement (CRITICAL - Do First)
59
73
 
@@ -77,6 +91,21 @@ If no spec is found:
77
91
  - If yes, gather requirements through clarifying questions
78
92
  - If no, exit and prompt user to run `/ai-eng/specify`
79
93
 
94
+ ### Ralph Wiggum Integration
95
+
96
+ If `--ralph` flag is used, also invoke the `ralph-wiggum` skill:
97
+
98
+ **Load Ralph Wiggum skill from:** `skills/workflow/ralph-wiggum/SKILL.md`
99
+
100
+ **Ralph Wiggum Planning Cycle:**
101
+ 1. **Initial Plan** - Create comprehensive implementation plan
102
+ 2. **Gap Analysis** - Identify missing tasks, incomplete dependencies
103
+ 3. **Iterative Enhancement** - Add missing details, strengthen task definitions
104
+ 4. **Quality Validation** - Run quality gate if specified
105
+ 5. **Completion Check** - Continue until completion promise met or max iterations reached
106
+
107
+ **Default Planning Completion Promise:** "Plan is comprehensive and ready for execution"
108
+
80
109
  ### Phase 2: Discovery (Research Mode)
81
110
 
82
111
  #### Subagent Communication Protocol (Minimal)
@@ -503,4 +532,86 @@ For example:
503
532
  - `bun run scripts/run-command.ts plan "implement auth" --from-spec=specs/auth/spec.md --output=plans/auth.yaml`
504
533
  - `bun run scripts/run-command.ts plan --from-research=docs/research/auth.md --scope=implementation`
505
534
 
535
+ ## Ralph Wiggum Iteration Mode
536
+
537
+ When `--ralph` flag is enabled, the planning process follows a persistent refinement cycle:
538
+
539
+ ### Ralph Wiggum Planning Cycle
540
+
541
+ **Iteration Process:**
542
+ 1. **Execute Planning Phases 1-7** - Run complete planning process
543
+ 2. **Gap Analysis** - Review plan for:
544
+ - Missing tasks or incomplete task definitions
545
+ - Unclear dependencies or integration points
546
+ - Insufficient testing coverage
547
+ - Incomplete risk assessment
548
+ 3. **Targeted Enhancement** - Focus next iteration on identified gaps:
549
+ - Add missing tasks or subtasks
550
+ - Strengthen dependency mapping
551
+ - Enhance testing strategy
552
+ - Improve risk mitigation strategies
553
+ 4. **Quality Gate** - Run quality gate command if specified
554
+ 5. **Progress Update** - Log iteration improvements and continue
555
+ 6. **Completion Check** - Stop when:
556
+ - Plan comprehensiveness promise is met
557
+ - Quality gates consistently pass
558
+ - Maximum iterations reached
559
+
560
+ ### Ralph Wiggum Quality Gates
561
+
562
+ **Planning Quality Gate Examples:**
563
+ ```bash
564
+ # Check task completeness
565
+ rg "Acceptance Criteria:" specs/*/plan.md | wc -l
566
+
567
+ # Validate dependencies mapping
568
+ rg "Depends On:" specs/*/plan.md
569
+
570
+ # Check risk assessment completeness
571
+ rg "Impact.*Likelihood.*Mitigation" specs/*/plan.md
572
+ ```
573
+
574
+ ### Progress Tracking
575
+
576
+ **Iteration Metrics:**
577
+ - Iteration number and completion status
578
+ - Tasks added or refined
579
+ - Dependencies mapped or clarified
580
+ - Risk mitigations added
581
+ - Quality gate pass/fail status
582
+ - Plan completeness score
583
+
584
+ **Example Progress Output:**
585
+ ```
586
+ ๐Ÿ”„ Ralph Wiggum Planning Iteration 3/10
587
+ ๐Ÿ“ Tasks: 12 total (+2 this iteration)
588
+ ๐Ÿ”— Dependencies: 8 mapped (+1 clarified this iteration)
589
+ ๐Ÿ›ก๏ธ Risk mitigations: 5 complete (+2 this iteration)
590
+ ๐Ÿงช Test coverage: 85% (+5% this iteration)
591
+ โœ… Quality gate: PASSED
592
+ ๐ŸŽฏ Plan completeness: 90% (improving)
593
+ ```
594
+
595
+ ### Ralph Wiggum Implementation Notes
596
+
597
+ **Planning-Specific Considerations:**
598
+
599
+ - **Task Atomicity**: Each iteration should ensure tasks are truly atomic
600
+ - **Dependency Clarity**: Focus on making dependencies explicit and minimal
601
+ - **Testing Integration**: Ensure comprehensive test coverage for all tasks
602
+ - **Risk Coverage**: Each iteration should strengthen risk mitigation strategies
603
+
604
+ **Default Settings:**
605
+ - **Max Iterations**: 10 (sufficient for comprehensive planning refinement)
606
+ - **Completion Promise**: "Plan is comprehensive and ready for execution"
607
+ - **Quality Gate**: Check task completeness and dependency mapping
608
+ - **Progress Tracking**: Always enabled in Ralph mode
609
+
610
+ **Best Practices:**
611
+ - Focus on making tasks more atomic each iteration
612
+ - Strengthen dependency mapping to enable parallel execution
613
+ - Enhance risk assessment with specific mitigations
614
+ - Validate spec coverage (if spec exists) each iteration
615
+ - Ensure all supporting artifacts are generated
616
+
506
617
  $ARGUMENTS