@relipa/ai-flow-kit 0.1.0-beta.0 → 0.1.1-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/README.md +497 -497
- package/bin/aiflow.js +525 -525
- package/bin/ak.js +0 -0
- package/custom/mcp-presets/README.md +0 -0
- package/custom/mcp-presets/backlog.json +0 -0
- package/custom/mcp-presets/figma-desktop.json +0 -0
- package/custom/mcp-presets/figma.json +0 -0
- package/custom/mcp-presets/gitnexus.json +0 -0
- package/custom/mcp-presets/google-sheets.json +0 -0
- package/custom/mcp-presets/jira.json +0 -0
- package/custom/prompts/bug-fix.md +0 -0
- package/custom/prompts/feature.md +0 -0
- package/custom/prompts/investigation.md +0 -0
- package/custom/rules/code-style.md +0 -0
- package/custom/rules/java/code-style.md +0 -0
- package/custom/rules/java/naming.md +0 -0
- package/custom/rules/java/review-checklist.md +0 -0
- package/custom/rules/java/spring-boot-examples.md +0 -0
- package/custom/rules/javascript/code-style.md +0 -0
- package/custom/rules/javascript/naming.md +0 -0
- package/custom/rules/naming.md +0 -0
- package/custom/rules/php/code-style.md +0 -0
- package/custom/rules/php/naming.md +0 -0
- package/custom/rules/project-conventions.md +0 -0
- package/custom/rules/review-checklist.md +0 -0
- package/custom/skills/figma-to-component/SKILL.md +294 -207
- package/custom/skills/generate-spec/SKILL.md +0 -0
- package/custom/skills/impact-analysis/SKILL.md +0 -0
- package/custom/skills/investigate-bug/SKILL.md +0 -0
- package/custom/skills/read-study-requirement/SKILL.md +334 -334
- package/custom/skills/report-customer/SKILL.md +0 -0
- package/custom/skills/review-plan/SKILL.md +0 -0
- package/custom/templates/laravel.md +0 -0
- package/custom/templates/nestjs.md +0 -0
- package/custom/templates/nextjs.md +0 -0
- package/custom/templates/nodejs-express.md +0 -0
- package/custom/templates/php-plain.md +0 -0
- package/custom/templates/php.md +0 -0
- package/custom/templates/python-django.md +0 -0
- package/custom/templates/python-fastapi.md +0 -0
- package/custom/templates/python.md +0 -0
- package/custom/templates/reactjs.md +0 -0
- package/custom/templates/shared/gate-workflow.md +91 -91
- package/custom/templates/spring-boot.md +0 -0
- package/custom/templates/tools/claude.md +0 -0
- package/custom/templates/tools/copilot.md +0 -0
- package/custom/templates/tools/cursor.md +0 -0
- package/custom/templates/tools/gemini.md +0 -0
- package/custom/templates/tools/generic.md +0 -0
- package/custom/templates/vue-nuxt.md +0 -0
- package/docs/common/AIFLOW.md +0 -0
- package/docs/common/CHANGELOG.md +334 -334
- package/docs/common/QUICK_START.md +537 -537
- package/docs/common/ai-integration.md +0 -0
- package/docs/common/cli-reference.md +657 -657
- package/docs/common/configuration.md +0 -0
- package/docs/common/getting-started.md +0 -0
- package/docs/common/troubleshooting.md +0 -0
- package/docs/common/workflows/bug-fix.md +0 -0
- package/docs/common/workflows/feature.md +0 -0
- package/docs/common/workflows/figma.md +0 -0
- package/docs/common/workflows/impact-analysis.md +0 -0
- package/docs/common/workflows/investigation.md +0 -0
- package/docs/common/workflows/refactor.md +0 -0
- package/docs/project/ARCHITECTURE.md +0 -0
- package/index.js +0 -0
- package/package.json +68 -67
- package/scripts/checkpoint.js +0 -0
- package/scripts/config.js +0 -0
- package/scripts/context.js +0 -0
- package/scripts/create-score-excel.js +0 -0
- package/scripts/detect.js +0 -0
- package/scripts/doctor.js +26 -0
- package/scripts/gitnexus-worker.js +0 -0
- package/scripts/guide.js +314 -314
- package/scripts/hooks/block-git-write.js +0 -0
- package/scripts/hooks/session-start.js +315 -315
- package/scripts/hooks/session-stop.js +0 -0
- package/scripts/init.js +0 -0
- package/scripts/link-resolver.js +0 -0
- package/scripts/memory.js +0 -0
- package/scripts/prompt.js +95 -9
- package/scripts/remove.js +0 -0
- package/scripts/score_members.js +320 -0
- package/scripts/task.js +0 -0
- package/scripts/telemetry/cli.js +0 -0
- package/scripts/telemetry/config.js +0 -0
- package/scripts/telemetry/crypto.js +0 -0
- package/scripts/telemetry/flush.js +0 -0
- package/scripts/telemetry/record.js +0 -0
- package/scripts/update.js +0 -0
- package/scripts/use.js +1162 -1162
- package/scripts/validate.js +0 -0
- package/upstream/.claude-plugin/marketplace.json +0 -0
- package/upstream/.claude-plugin/plugin.json +0 -0
- package/upstream/.codex/INSTALL.md +0 -0
- package/upstream/.cursor-plugin/plugin.json +0 -0
- package/upstream/.gitattributes +0 -0
- package/upstream/.github/FUNDING.yml +0 -0
- package/upstream/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- package/upstream/.github/ISSUE_TEMPLATE/config.yml +0 -0
- package/upstream/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- package/upstream/.github/ISSUE_TEMPLATE/platform_support.md +0 -0
- package/upstream/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- package/upstream/.opencode/INSTALL.md +0 -0
- package/upstream/.opencode/plugins/superpowers.js +0 -0
- package/upstream/.version-bump.json +0 -0
- package/upstream/AGENTS.md +0 -0
- package/upstream/CHANGELOG.md +0 -0
- package/upstream/CLAUDE.md +0 -0
- package/upstream/CODE_OF_CONDUCT.md +0 -0
- package/upstream/GEMINI.md +0 -0
- package/upstream/LICENSE +0 -0
- package/upstream/README.md +0 -0
- package/upstream/RELEASE-NOTES.md +0 -0
- package/upstream/agents/code-reviewer.md +0 -0
- package/upstream/commands/brainstorm.md +0 -0
- package/upstream/commands/execute-plan.md +0 -0
- package/upstream/commands/write-plan.md +0 -0
- package/upstream/docs/README.codex.md +0 -0
- package/upstream/docs/README.opencode.md +0 -0
- package/upstream/docs/plans/2025-11-22-opencode-support-design.md +0 -0
- package/upstream/docs/plans/2025-11-22-opencode-support-implementation.md +0 -0
- package/upstream/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +0 -0
- package/upstream/docs/plans/2026-01-17-visual-brainstorming.md +0 -0
- package/upstream/docs/superpowers/plans/2026-01-22-document-review-system.md +0 -0
- package/upstream/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +0 -0
- package/upstream/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +0 -0
- package/upstream/docs/superpowers/plans/2026-03-23-codex-app-compatibility.md +0 -0
- package/upstream/docs/superpowers/specs/2026-01-22-document-review-system-design.md +0 -0
- package/upstream/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +0 -0
- package/upstream/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +0 -0
- package/upstream/docs/superpowers/specs/2026-03-23-codex-app-compatibility-design.md +0 -0
- package/upstream/docs/testing.md +0 -0
- package/upstream/docs/windows/polyglot-hooks.md +0 -0
- package/upstream/gemini-extension.json +0 -0
- package/upstream/hooks/hooks-cursor.json +0 -0
- package/upstream/hooks/hooks.json +0 -0
- package/upstream/hooks/run-hook.cmd +0 -0
- package/upstream/hooks/session-start +0 -0
- package/upstream/package.json +0 -0
- package/upstream/scripts/bump-version.sh +0 -0
- package/upstream/skills/brainstorming/SKILL.md +0 -0
- package/upstream/skills/brainstorming/scripts/frame-template.html +0 -0
- package/upstream/skills/brainstorming/scripts/helper.js +0 -0
- package/upstream/skills/brainstorming/scripts/server.cjs +0 -0
- package/upstream/skills/brainstorming/scripts/start-server.sh +0 -0
- package/upstream/skills/brainstorming/scripts/stop-server.sh +0 -0
- package/upstream/skills/brainstorming/spec-document-reviewer-prompt.md +0 -0
- package/upstream/skills/brainstorming/visual-companion.md +0 -0
- package/upstream/skills/dispatching-parallel-agents/SKILL.md +0 -0
- package/upstream/skills/executing-plans/SKILL.md +0 -0
- package/upstream/skills/finishing-a-development-branch/SKILL.md +0 -0
- package/upstream/skills/receiving-code-review/SKILL.md +0 -0
- package/upstream/skills/requesting-code-review/SKILL.md +0 -0
- package/upstream/skills/requesting-code-review/code-reviewer.md +0 -0
- package/upstream/skills/subagent-driven-development/SKILL.md +0 -0
- package/upstream/skills/subagent-driven-development/code-quality-reviewer-prompt.md +0 -0
- package/upstream/skills/subagent-driven-development/implementer-prompt.md +0 -0
- package/upstream/skills/subagent-driven-development/spec-reviewer-prompt.md +0 -0
- package/upstream/skills/systematic-debugging/CREATION-LOG.md +0 -0
- package/upstream/skills/systematic-debugging/SKILL.md +0 -0
- package/upstream/skills/systematic-debugging/condition-based-waiting-example.ts +0 -0
- package/upstream/skills/systematic-debugging/condition-based-waiting.md +0 -0
- package/upstream/skills/systematic-debugging/defense-in-depth.md +0 -0
- package/upstream/skills/systematic-debugging/find-polluter.sh +0 -0
- package/upstream/skills/systematic-debugging/root-cause-tracing.md +0 -0
- package/upstream/skills/systematic-debugging/test-academic.md +0 -0
- package/upstream/skills/systematic-debugging/test-pressure-1.md +0 -0
- package/upstream/skills/systematic-debugging/test-pressure-2.md +0 -0
- package/upstream/skills/systematic-debugging/test-pressure-3.md +0 -0
- package/upstream/skills/tdd-lean/SKILL.md +0 -0
- package/upstream/skills/test-driven-development/SKILL.md +0 -0
- package/upstream/skills/test-driven-development/testing-anti-patterns.md +0 -0
- package/upstream/skills/using-git-worktrees/SKILL.md +0 -0
- package/upstream/skills/using-superpowers/SKILL.md +0 -0
- package/upstream/skills/using-superpowers/references/codex-tools.md +0 -0
- package/upstream/skills/using-superpowers/references/copilot-tools.md +0 -0
- package/upstream/skills/using-superpowers/references/gemini-tools.md +0 -0
- package/upstream/skills/verification-before-completion/SKILL.md +0 -0
- package/upstream/skills/writing-plans/SKILL.md +0 -0
- package/upstream/skills/writing-plans/plan-document-reviewer-prompt.md +0 -0
- package/upstream/skills/writing-skills/SKILL.md +0 -0
- package/upstream/skills/writing-skills/anthropic-best-practices.md +0 -0
- package/upstream/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -0
- package/upstream/skills/writing-skills/graphviz-conventions.dot +0 -0
- package/upstream/skills/writing-skills/persuasion-principles.md +0 -0
- package/upstream/skills/writing-skills/render-graphs.js +0 -0
- package/upstream/skills/writing-skills/testing-skills-with-subagents.md +0 -0
- package/upstream/tests/brainstorm-server/package-lock.json +0 -0
- package/upstream/tests/brainstorm-server/package.json +0 -0
- package/upstream/tests/brainstorm-server/server.test.js +0 -0
- package/upstream/tests/brainstorm-server/windows-lifecycle.test.sh +0 -0
- package/upstream/tests/brainstorm-server/ws-protocol.test.js +0 -0
- package/upstream/tests/claude-code/README.md +0 -0
- package/upstream/tests/claude-code/analyze-token-usage.py +0 -0
- package/upstream/tests/claude-code/run-skill-tests.sh +0 -0
- package/upstream/tests/claude-code/test-document-review-system.sh +0 -0
- package/upstream/tests/claude-code/test-helpers.sh +0 -0
- package/upstream/tests/claude-code/test-subagent-driven-development-integration.sh +0 -0
- package/upstream/tests/claude-code/test-subagent-driven-development.sh +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/action-oriented.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/after-planning-flow.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/skip-formalities.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +0 -0
- package/upstream/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +0 -0
- package/upstream/tests/explicit-skill-requests/run-all.sh +0 -0
- package/upstream/tests/explicit-skill-requests/run-claude-describes-sdd.sh +0 -0
- package/upstream/tests/explicit-skill-requests/run-extended-multiturn-test.sh +0 -0
- package/upstream/tests/explicit-skill-requests/run-haiku-test.sh +0 -0
- package/upstream/tests/explicit-skill-requests/run-multiturn-test.sh +0 -0
- package/upstream/tests/explicit-skill-requests/run-test.sh +0 -0
- package/upstream/tests/opencode/run-tests.sh +0 -0
- package/upstream/tests/opencode/setup.sh +0 -0
- package/upstream/tests/opencode/test-plugin-loading.sh +0 -0
- package/upstream/tests/opencode/test-priority.sh +0 -0
- package/upstream/tests/opencode/test-tools.sh +0 -0
- package/upstream/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +0 -0
- package/upstream/tests/skill-triggering/prompts/executing-plans.txt +0 -0
- package/upstream/tests/skill-triggering/prompts/requesting-code-review.txt +0 -0
- package/upstream/tests/skill-triggering/prompts/systematic-debugging.txt +0 -0
- package/upstream/tests/skill-triggering/prompts/test-driven-development.txt +0 -0
- package/upstream/tests/skill-triggering/prompts/writing-plans.txt +0 -0
- package/upstream/tests/skill-triggering/run-all.sh +0 -0
- package/upstream/tests/skill-triggering/run-test.sh +0 -0
- package/upstream/tests/subagent-driven-dev/go-fractals/design.md +0 -0
- package/upstream/tests/subagent-driven-dev/go-fractals/plan.md +0 -0
- package/upstream/tests/subagent-driven-dev/go-fractals/scaffold.sh +0 -0
- package/upstream/tests/subagent-driven-dev/run-test.sh +0 -0
- package/upstream/tests/subagent-driven-dev/svelte-todo/design.md +0 -0
- package/upstream/tests/subagent-driven-dev/svelte-todo/plan.md +0 -0
- package/upstream/tests/subagent-driven-dev/svelte-todo/scaffold.sh +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/custom/templates/php.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,91 +1,91 @@
|
|
|
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
|
-
- **PROJECT CONVENTIONS:** Before writing any output file (plan, requirement, summary), read `custom/rules/project-conventions.md`. These rules override upstream skill defaults.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
### GATE 1 — AI Analyze Requirement (auto-start)
|
|
15
|
-
|
|
16
|
-
**INVOKE:** `read-study-requirement` skill
|
|
17
|
-
|
|
18
|
-
AI actively reads ticket + source code to understand the requirement:
|
|
19
|
-
1. Read `.aiflow/context/current.json` — ticket info
|
|
20
|
-
2. **Pre-flight: sync with remote** — run `git status --porcelain`; if working tree is clean, run `git pull --ff-only` to pull the latest source from remote. Skip the pull (with a `⚠️` notice to DEV) if there are uncommitted changes, the branch has diverged, or no remote tracking branch exists.
|
|
21
|
-
3. Read source code — architecture, related files, data flow
|
|
22
|
-
4. If anything is unclear — ask ONE question at a time, wait for reply
|
|
23
|
-
5. Output `plan/[ticket-id]/requirement.md` with:
|
|
24
|
-
- Requirements summary, source code analysis
|
|
25
|
-
- Proposed solution and approach
|
|
26
|
-
- Impact analysis, effort estimate, testing plan
|
|
27
|
-
6. Display "GATE 1: Requirement doc ready" → wait for **APPROVED**
|
|
28
|
-
|
|
29
|
-
> **Tip:** If auto-start doesn't trigger, the developer can start this gate by typing: **"start"**, **"Gate 1"** or **"Analyze ticket"**.
|
|
30
|
-
|
|
31
|
-
DO NOT just check format — **understand the content and propose solutions**.
|
|
32
|
-
|
|
33
|
-
> **Telemetry:** Run `ak gate 1 start --ticket [ticket-id]` when starting this gate (auto-start or when developer types "start"/"Gate 1"). Run as-is — do NOT append shell redirects like `2>$null` or `>/dev/null`.
|
|
34
|
-
> Run `ak gate 1 approved --ticket [ticket-id]` immediately when APPROVED is received. Run as-is — do NOT append shell redirects.
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
### GATE 2 — Implementation Plan (wait for APPROVED)
|
|
39
|
-
|
|
40
|
-
**INVOKE:** `generate-spec` skill, then `superpowers:writing-plans`
|
|
41
|
-
|
|
42
|
-
- Create a detailed TDD implementation plan based on the approved requirement.
|
|
43
|
-
- Output `plan/[ticket-id]/plan.md` with the detailed TDD implementation plan.
|
|
44
|
-
- Display: "GATE 2 PAUSED: type APPROVED to start coding".
|
|
45
|
-
- CODE WILL NOT BE GENERATED until "APPROVED" is received.
|
|
46
|
-
|
|
47
|
-
> **Telemetry:** Run `ak gate 2 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
48
|
-
> Run `ak gate 2 approved --ticket [ticket-id]` immediately when APPROVED is received. Run as-is — do NOT append shell redirects.
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
### GATE 3 — Code Generation (TDD only)
|
|
53
|
-
|
|
54
|
-
Only runs after Gate 2 has been APPROVED.
|
|
55
|
-
|
|
56
|
-
**INVOKE:** `superpowers:test-driven-development`
|
|
57
|
-
- Complex feature (3+ files): `superpowers:subagent-driven-development`
|
|
58
|
-
- Write tests FIRST — run to confirm FAIL -> implement -> PASS.
|
|
59
|
-
- Bug fix EXTRA: `superpowers:systematic-debugging` + `investigate-bug` skill first.
|
|
60
|
-
|
|
61
|
-
> **Telemetry:** Run `ak gate 3 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
### GATE 4 — AI Self-Review (wait for APPROVED)
|
|
66
|
-
|
|
67
|
-
**INVOKE:** `review-plan` skill
|
|
68
|
-
|
|
69
|
-
Mandatory order:
|
|
70
|
-
1. `superpowers:verification-before-completion` — all tests must PASS
|
|
71
|
-
2. `impact-analysis` skill — check for breaking changes
|
|
72
|
-
3. Tick `custom/rules/review-checklist.md`
|
|
73
|
-
4. Create `plan/[ticket-id]/summary.md`
|
|
74
|
-
|
|
75
|
-
Then: "GATE 4 PAUSED: type APPROVED or BUG: [description]"
|
|
76
|
-
- Coding bug -> fix -> repeat Gate 4.
|
|
77
|
-
- Requirement bug -> return to Gate 1.
|
|
78
|
-
|
|
79
|
-
> **Telemetry:** Run `ak gate 4 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
80
|
-
> Run `ak gate 4 approved --ticket [ticket-id]` immediately when APPROVED is received. Run as-is — do NOT append shell redirects.
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
### GATE 5 — Peer Review and Done
|
|
85
|
-
|
|
86
|
-
Only runs after Gate 4 has been APPROVED.
|
|
87
|
-
|
|
88
|
-
**INVOKE:** `superpowers:requesting-code-review`
|
|
89
|
-
Guide on creating a Pull Request with the ticket link.
|
|
90
|
-
|
|
91
|
-
> **Telemetry:** Run `ak gate 5 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
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
|
+
- **PROJECT CONVENTIONS:** Before writing any output file (plan, requirement, summary), read `custom/rules/project-conventions.md`. These rules override upstream skill defaults.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
### GATE 1 — AI Analyze Requirement (auto-start)
|
|
15
|
+
|
|
16
|
+
**INVOKE:** `read-study-requirement` skill
|
|
17
|
+
|
|
18
|
+
AI actively reads ticket + source code to understand the requirement:
|
|
19
|
+
1. Read `.aiflow/context/current.json` — ticket info
|
|
20
|
+
2. **Pre-flight: sync with remote** — run `git status --porcelain`; if working tree is clean, run `git pull --ff-only` to pull the latest source from remote. Skip the pull (with a `⚠️` notice to DEV) if there are uncommitted changes, the branch has diverged, or no remote tracking branch exists.
|
|
21
|
+
3. Read source code — architecture, related files, data flow
|
|
22
|
+
4. If anything is unclear — ask ONE question at a time, wait for reply
|
|
23
|
+
5. Output `plan/[ticket-id]/requirement.md` with:
|
|
24
|
+
- Requirements summary, source code analysis
|
|
25
|
+
- Proposed solution and approach
|
|
26
|
+
- Impact analysis, effort estimate, testing plan
|
|
27
|
+
6. Display "GATE 1: Requirement doc ready" → wait for **APPROVED**
|
|
28
|
+
|
|
29
|
+
> **Tip:** If auto-start doesn't trigger, the developer can start this gate by typing: **"start"**, **"Gate 1"** or **"Analyze ticket"**.
|
|
30
|
+
|
|
31
|
+
DO NOT just check format — **understand the content and propose solutions**.
|
|
32
|
+
|
|
33
|
+
> **Telemetry:** Run `ak gate 1 start --ticket [ticket-id]` when starting this gate (auto-start or when developer types "start"/"Gate 1"). Run as-is — do NOT append shell redirects like `2>$null` or `>/dev/null`.
|
|
34
|
+
> Run `ak gate 1 approved --ticket [ticket-id]` immediately when APPROVED is received. Run as-is — do NOT append shell redirects.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
### GATE 2 — Implementation Plan (wait for APPROVED)
|
|
39
|
+
|
|
40
|
+
**INVOKE:** `generate-spec` skill, then `superpowers:writing-plans`
|
|
41
|
+
|
|
42
|
+
- Create a detailed TDD implementation plan based on the approved requirement.
|
|
43
|
+
- Output `plan/[ticket-id]/plan.md` with the detailed TDD implementation plan.
|
|
44
|
+
- Display: "GATE 2 PAUSED: type APPROVED to start coding".
|
|
45
|
+
- CODE WILL NOT BE GENERATED until "APPROVED" is received.
|
|
46
|
+
|
|
47
|
+
> **Telemetry:** Run `ak gate 2 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
48
|
+
> Run `ak gate 2 approved --ticket [ticket-id]` immediately when APPROVED is received. Run as-is — do NOT append shell redirects.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
### GATE 3 — Code Generation (TDD only)
|
|
53
|
+
|
|
54
|
+
Only runs after Gate 2 has been APPROVED.
|
|
55
|
+
|
|
56
|
+
**INVOKE:** `superpowers:test-driven-development`
|
|
57
|
+
- Complex feature (3+ files): `superpowers:subagent-driven-development`
|
|
58
|
+
- Write tests FIRST — run to confirm FAIL -> implement -> PASS.
|
|
59
|
+
- Bug fix EXTRA: `superpowers:systematic-debugging` + `investigate-bug` skill first.
|
|
60
|
+
|
|
61
|
+
> **Telemetry:** Run `ak gate 3 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### GATE 4 — AI Self-Review (wait for APPROVED)
|
|
66
|
+
|
|
67
|
+
**INVOKE:** `review-plan` skill
|
|
68
|
+
|
|
69
|
+
Mandatory order:
|
|
70
|
+
1. `superpowers:verification-before-completion` — all tests must PASS
|
|
71
|
+
2. `impact-analysis` skill — check for breaking changes
|
|
72
|
+
3. Tick `custom/rules/review-checklist.md`
|
|
73
|
+
4. Create `plan/[ticket-id]/summary.md`
|
|
74
|
+
|
|
75
|
+
Then: "GATE 4 PAUSED: type APPROVED or BUG: [description]"
|
|
76
|
+
- Coding bug -> fix -> repeat Gate 4.
|
|
77
|
+
- Requirement bug -> return to Gate 1.
|
|
78
|
+
|
|
79
|
+
> **Telemetry:** Run `ak gate 4 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
80
|
+
> Run `ak gate 4 approved --ticket [ticket-id]` immediately when APPROVED is received. Run as-is — do NOT append shell redirects.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### GATE 5 — Peer Review and Done
|
|
85
|
+
|
|
86
|
+
Only runs after Gate 4 has been APPROVED.
|
|
87
|
+
|
|
88
|
+
**INVOKE:** `superpowers:requesting-code-review`
|
|
89
|
+
Guide on creating a Pull Request with the ticket link.
|
|
90
|
+
|
|
91
|
+
> **Telemetry:** Run `ak gate 5 start --ticket [ticket-id]` when starting this gate. Run as-is — do NOT append shell redirects.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/common/AIFLOW.md
CHANGED
|
File without changes
|