@relipa/ai-flow-kit 0.0.5 → 0.0.6-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.
@@ -20,6 +20,27 @@ keywords: review, code review, approve, summary, checklist
20
20
  - ✅ `superpowers:verification-before-completion` has run — tests pass
21
21
  - ✅ `impact-analysis` skill has run
22
22
 
23
+ ## Mode Selection
24
+
25
+ Check `mode` in `.aiflow/context/current.json`:
26
+
27
+ | Mode | Impact Analysis | Review Checklist | summary.md |
28
+ |------|----------------|-----------------|-----------|
29
+ | `fast` | Quick scan — reason from diff only | 3 items | Short format |
30
+ | `full` | Full grep scan across codebase | 10 items | Full format |
31
+
32
+ ### Fast Track Impact Analysis (mode: fast)
33
+ Assess impact by reasoning about the changed files only:
34
+ 1. List each file you modified
35
+ 2. For each file: "Does this file have callers/dependents outside the ticket scope?"
36
+ 3. If yes → list them and assign impact level
37
+ 4. DO NOT run grep on the full codebase
38
+
39
+ ### Fast Track Review Checklist (mode: fast)
40
+ - [ ] All tests pass
41
+ - [ ] No hardcoded credentials or secrets
42
+ - [ ] No SQL injection risk in new queries
43
+
23
44
  ---
24
45
 
25
46
  ## Process
@@ -1,88 +1,88 @@
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 `.aiflow/context/current.json`:
7
- - **Consult the "AI Skill Registry"** below to find instructions for each skill (`SKILL.md`).
8
- - **AUTO-START Gate 1 immediately** — do NOT wait for the developer to ask.
9
- - Read instructions and follow the gate sequence below — NO EXCEPTIONS.
10
-
11
- ---
12
-
13
- ### GATE 1 — AI Analyze Requirement (auto-start)
14
-
15
- **INVOKE:** `read-study-requirement` skill
16
-
17
- AI actively reads ticket + source code to understand the requirement:
18
- 1. Read `.aiflow/context/current.json` — ticket info
19
- 2. Read source code — architecture, related files, data flow
20
- 3. If anything is unclear — ask ONE question at a time, wait for reply
21
- 4. Output `plan/[ticket-id]/requirement.md` with:
22
- - Requirements summary, source code analysis
23
- - Proposed solution and approach
24
- - Impact analysis, effort estimate, testing plan
25
- 5. Display "GATE 1: Requirement doc ready" → wait for **APPROVED**
26
-
27
- > **Tip:** If auto-start doesn't trigger, the developer can start this gate by typing: **"start"**, **"Gate 1"** or **"Analyze ticket"**.
28
-
29
- DO NOT just check format — **understand the content and propose solutions**.
30
-
31
- > **Telemetry:** Run `aiflow gate 1 start --ticket [ticket-id]` when starting this gate (auto-start or when developer types "start"/"Gate 1").
32
- > Run `aiflow gate 1 approved --ticket [ticket-id]` immediately when APPROVED is received.
33
-
34
- ---
35
-
36
- ### GATE 2 — Implementation Plan (wait for APPROVED)
37
-
38
- **INVOKE:** `generate-spec` skill, then `superpowers:writing-plans`
39
-
40
- - Create a detailed TDD implementation plan based on the approved requirement.
41
- - Display: "GATE 2 PAUSED: type APPROVED to start coding".
42
- - CODE WILL NOT BE GENERATED until "APPROVED" is received.
43
-
44
- > **Telemetry:** Run `aiflow gate 2 start --ticket [ticket-id]` when starting this gate.
45
- > Run `aiflow gate 2 approved --ticket [ticket-id]` immediately when APPROVED is received.
46
-
47
- ---
48
-
49
- ### GATE 3 — Code Generation (TDD only)
50
-
51
- Only runs after Gate 2 has been APPROVED.
52
-
53
- **INVOKE:** `superpowers:test-driven-development`
54
- - Complex feature (3+ files): `superpowers:subagent-driven-development`
55
- - Write tests FIRST — run to confirm FAIL -> implement -> PASS.
56
- - Bug fix EXTRA: `superpowers:systematic-debugging` + `investigate-bug` skill first.
57
-
58
- > **Telemetry:** Run `aiflow gate 3 start --ticket [ticket-id]` when starting this gate.
59
-
60
- ---
61
-
62
- ### GATE 4 — AI Self-Review (wait for APPROVED)
63
-
64
- **INVOKE:** `review-plan` skill
65
-
66
- Mandatory order:
67
- 1. `superpowers:verification-before-completion` — all tests must PASS
68
- 2. `impact-analysis` skill — check for breaking changes
69
- 3. Tick `custom/rules/review-checklist.md`
70
- 4. Create `plan/[ticket-id]/summary.md`
71
-
72
- Then: "GATE 4 PAUSED: type APPROVED or BUG: [description]"
73
- - Coding bug -> fix -> repeat Gate 4.
74
- - Requirement bug -> return to Gate 1.
75
-
76
- > **Telemetry:** Run `aiflow gate 4 start --ticket [ticket-id]` when starting this gate.
77
- > Run `aiflow gate 4 approved --ticket [ticket-id]` immediately when APPROVED is received.
78
-
79
- ---
80
-
81
- ### GATE 5 — Peer Review and Done
82
-
83
- Only runs after Gate 4 has been APPROVED.
84
-
85
- **INVOKE:** `superpowers:requesting-code-review`
86
- Guide on creating a Pull Request with the ticket link.
87
-
88
- > **Telemetry:** Run `aiflow gate 5 start --ticket [ticket-id]` when starting this gate.
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 `.aiflow/context/current.json`:
7
+ - **Consult the "AI Skill Registry"** below to find instructions for each skill (`SKILL.md`).
8
+ - **AUTO-START Gate 1 immediately** — do NOT wait for the developer to ask.
9
+ - Read instructions and follow the gate sequence below — NO EXCEPTIONS.
10
+
11
+ ---
12
+
13
+ ### GATE 1 — AI Analyze Requirement (auto-start)
14
+
15
+ **INVOKE:** `read-study-requirement` skill
16
+
17
+ AI actively reads ticket + source code to understand the requirement:
18
+ 1. Read `.aiflow/context/current.json` — ticket info
19
+ 2. Read source code — architecture, related files, data flow
20
+ 3. If anything is unclear — ask ONE question at a time, wait for reply
21
+ 4. Output `plan/[ticket-id]/requirement.md` with:
22
+ - Requirements summary, source code analysis
23
+ - Proposed solution and approach
24
+ - Impact analysis, effort estimate, testing plan
25
+ 5. Display "GATE 1: Requirement doc ready" → wait for **APPROVED**
26
+
27
+ > **Tip:** If auto-start doesn't trigger, the developer can start this gate by typing: **"start"**, **"Gate 1"** or **"Analyze ticket"**.
28
+
29
+ DO NOT just check format — **understand the content and propose solutions**.
30
+
31
+ > **Telemetry:** Run `aiflow gate 1 start --ticket [ticket-id]` when starting this gate (auto-start or when developer types "start"/"Gate 1").
32
+ > Run `aiflow gate 1 approved --ticket [ticket-id]` immediately when APPROVED is received.
33
+
34
+ ---
35
+
36
+ ### GATE 2 — Implementation Plan (wait for APPROVED)
37
+
38
+ **INVOKE:** `generate-spec` skill, then `superpowers:writing-plans`
39
+
40
+ - Create a detailed TDD implementation plan based on the approved requirement.
41
+ - Display: "GATE 2 PAUSED: type APPROVED to start coding".
42
+ - CODE WILL NOT BE GENERATED until "APPROVED" is received.
43
+
44
+ > **Telemetry:** Run `aiflow gate 2 start --ticket [ticket-id]` when starting this gate.
45
+ > Run `aiflow gate 2 approved --ticket [ticket-id]` immediately when APPROVED is received.
46
+
47
+ ---
48
+
49
+ ### GATE 3 — Code Generation (TDD only)
50
+
51
+ Only runs after Gate 2 has been APPROVED.
52
+
53
+ **INVOKE:** `superpowers:test-driven-development`
54
+ - Complex feature (3+ files): `superpowers:subagent-driven-development`
55
+ - Write tests FIRST — run to confirm FAIL -> implement -> PASS.
56
+ - Bug fix EXTRA: `superpowers:systematic-debugging` + `investigate-bug` skill first.
57
+
58
+ > **Telemetry:** Run `aiflow gate 3 start --ticket [ticket-id]` when starting this gate.
59
+
60
+ ---
61
+
62
+ ### GATE 4 — AI Self-Review (wait for APPROVED)
63
+
64
+ **INVOKE:** `review-plan` skill
65
+
66
+ Mandatory order:
67
+ 1. `superpowers:verification-before-completion` — all tests must PASS
68
+ 2. `impact-analysis` skill — check for breaking changes
69
+ 3. Tick `custom/rules/review-checklist.md`
70
+ 4. Create `plan/[ticket-id]/summary.md`
71
+
72
+ Then: "GATE 4 PAUSED: type APPROVED or BUG: [description]"
73
+ - Coding bug -> fix -> repeat Gate 4.
74
+ - Requirement bug -> return to Gate 1.
75
+
76
+ > **Telemetry:** Run `aiflow gate 4 start --ticket [ticket-id]` when starting this gate.
77
+ > Run `aiflow gate 4 approved --ticket [ticket-id]` immediately when APPROVED is received.
78
+
79
+ ---
80
+
81
+ ### GATE 5 — Peer Review and Done
82
+
83
+ Only runs after Gate 4 has been APPROVED.
84
+
85
+ **INVOKE:** `superpowers:requesting-code-review`
86
+ Guide on creating a Pull Request with the ticket link.
87
+
88
+ > **Telemetry:** Run `aiflow gate 5 start --ticket [ticket-id]` when starting this gate.