@relipa/ai-flow-kit 0.0.3-beta.3 → 0.0.4-beta.0
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.
- package/AIFLOW.md +27 -1
- package/QUICK_START.md +8 -4
- package/README.md +8 -0
- package/custom/templates/laravel.md +15 -90
- package/custom/templates/nestjs.md +72 -0
- package/custom/templates/nextjs.md +14 -89
- package/custom/templates/nodejs-express.md +73 -0
- package/custom/templates/python-django.md +71 -0
- package/custom/templates/python-fastapi.md +54 -0
- package/custom/templates/reactjs.md +492 -567
- package/custom/templates/shared/gate-workflow.md +72 -0
- package/custom/templates/spring-boot.md +523 -598
- package/custom/templates/tools/copilot.md +6 -0
- package/custom/templates/tools/cursor.md +6 -0
- package/custom/templates/tools/gemini.md +6 -0
- package/custom/templates/tools/generic.md +10 -0
- package/custom/templates/vue-nuxt.md +14 -89
- package/docs/ai-integration.md +53 -0
- package/docs/developer-overview.md +122 -0
- package/package.json +1 -1
- package/scripts/init.js +57 -19
- package/scripts/prompt.js +12 -2
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
## MANDATORY: Strict Gate Workflow
|
|
2
|
+
|
|
3
|
+
> **Absolute Rule: Complete Gate N before entering Gate N+1.**
|
|
4
|
+
> **Do not skip, shorten, or merge Gates.**
|
|
5
|
+
|
|
6
|
+
You have superpowers. When a ticket context exists in `.claude/context/current.json`:
|
|
7
|
+
- **AUTO-START Gate 1 immediately** — do NOT wait for the developer to ask.
|
|
8
|
+
- Read instructions and follow the gate sequence below — NO EXCEPTIONS.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
### GATE 1 — AI Analyze Requirement (auto-start)
|
|
13
|
+
|
|
14
|
+
**INVOKE:** `validate-ticket` skill
|
|
15
|
+
|
|
16
|
+
AI actively reads ticket + source code to understand the requirement:
|
|
17
|
+
1. Read `.claude/context/current.json` — ticket info
|
|
18
|
+
2. Read source code — architecture, related files, data flow
|
|
19
|
+
3. If anything is unclear — ask ONE question at a time, wait for reply
|
|
20
|
+
4. Output `plan/[ticket-id]/requirement.md` with:
|
|
21
|
+
- Requirements summary, source code analysis
|
|
22
|
+
- Proposed solution and approach
|
|
23
|
+
- Impact analysis, effort estimate, testing plan
|
|
24
|
+
5. Display "GATE 1: Requirement doc ready" → wait for **APPROVED**
|
|
25
|
+
|
|
26
|
+
DO NOT just check format — **understand the content and propose solutions**.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
### GATE 2 — Implementation Plan (wait for APPROVED)
|
|
31
|
+
|
|
32
|
+
**INVOKE:** `generate-spec` skill, then `superpowers:writing-plans`
|
|
33
|
+
|
|
34
|
+
- Create a detailed TDD implementation plan based on the approved requirement.
|
|
35
|
+
- Display: "GATE 2 PAUSED: type APPROVED to start coding".
|
|
36
|
+
- CODE WILL NOT BE GENERATED until "APPROVED" is received.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
### GATE 3 — Code Generation (TDD only)
|
|
41
|
+
|
|
42
|
+
Only runs after Gate 2 has been APPROVED.
|
|
43
|
+
|
|
44
|
+
**INVOKE:** `superpowers:test-driven-development`
|
|
45
|
+
- Complex feature (3+ files): `superpowers:subagent-driven-development`
|
|
46
|
+
- Write tests FIRST — run to confirm FAIL -> implement -> PASS.
|
|
47
|
+
- Bug fix EXTRA: `superpowers:systematic-debugging` + `investigate-bug` skill first.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### GATE 4 — AI Self-Review (wait for APPROVED)
|
|
52
|
+
|
|
53
|
+
**INVOKE:** `review-plan` skill
|
|
54
|
+
|
|
55
|
+
Mandatory order:
|
|
56
|
+
1. `superpowers:verification-before-completion` — all tests must PASS
|
|
57
|
+
2. `impact-analysis` skill — check for breaking changes
|
|
58
|
+
3. Tick `custom/rules/review-checklist.md`
|
|
59
|
+
4. Create `plan/[ticket-id]/summary.md`
|
|
60
|
+
|
|
61
|
+
Then: "GATE 4 PAUSED: type APPROVED or BUG: [description]"
|
|
62
|
+
- Coding bug -> fix -> repeat Gate 4.
|
|
63
|
+
- Requirement bug -> return to Gate 1.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
### GATE 5 — Peer Review and Done
|
|
68
|
+
|
|
69
|
+
Only runs after Gate 4 has been APPROVED.
|
|
70
|
+
|
|
71
|
+
**INVOKE:** `superpowers:requesting-code-review`
|
|
72
|
+
Guide on creating a Pull Request with the ticket link.
|