@relipa/ai-flow-kit 0.1.4 → 0.1.5-beta.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.
- package/README.md +0 -0
- package/bin/aiflow.js +0 -0
- package/bin/ak.js +0 -0
- package/custom/harness/playwright/.env.example +0 -0
- package/custom/harness/playwright/playwright.config.ts +0 -0
- package/custom/harness/playwright/tests/e2e/auth.setup.ts +0 -0
- package/custom/harness/playwright/tests/e2e/fixtures/test.ts +0 -0
- package/custom/harness/playwright/tests/e2e/pages/BasePage.ts +0 -0
- package/custom/harness/playwright/tests/e2e/support/auth.ts +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/mcp-presets/playwright.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/ml-conventions.md +0 -0
- package/custom/rules/ml-review-checklist.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 +67 -51
- package/custom/rules/review-checklist.md +0 -0
- package/custom/rules/test-patterns.md +0 -0
- package/custom/skills/automation-testing/SKILL.md +0 -0
- package/custom/skills/automation-testing/templates/BasePage.ts +0 -0
- package/custom/skills/automation-testing/templates/PageObject.example.ts +0 -0
- package/custom/skills/automation-testing/templates/playwright.config.ts +0 -0
- package/custom/skills/automation-testing/templates/spec.example.ts +0 -0
- package/custom/skills/ba-skills/{skill-ba-xay-dung-business-rules-v1.md → skill-ba-build-business-rules-v1.md} +0 -0
- package/custom/skills/ba-skills/{skill-ba-template-phan-tich-ban-dau-v1.md → skill-ba-initial-analysis-template-v1.md} +0 -0
- package/custom/skills/ba-skills/{skill-ba-phan-tich-ban-dau-v1.md → skill-ba-initial-analysis-v1.md} +2 -2
- package/custom/skills/ba-skills/{skill-ba-ve-luong-mermaid-v1.md → skill-ba-mermaid-flowchart-v1.md} +0 -0
- package/custom/skills/ba-skills/{skill-ba-qa-template-v1.md → skill-ba-qna-template-v1.md} +0 -0
- package/custom/skills/ba-skills/{skill-ba-qa-v1.md → skill-ba-qna-v1.md} +2 -2
- package/custom/skills/ba-skills/{skill-ba-template-uc-v1.md → skill-ba-uc-template-v1.md} +0 -0
- package/custom/skills/ba-skills/{skill-ba-prototype-v1.md → skill-ba-ui-prototype-v1.md} +2 -2
- package/custom/skills/ba-skills/{skill-ba-viet-spec-uc-v1.md → skill-ba-write-uc-spec-v1.md} +4 -4
- package/custom/skills/coverage-check/SKILL.md +0 -0
- package/custom/skills/deploy-model/SKILL.md +0 -0
- package/custom/skills/design-experiment/SKILL.md +0 -0
- package/custom/skills/evaluate-model/SKILL.md +0 -0
- package/custom/skills/evidence-aggregation/SKILL.md +0 -0
- package/custom/skills/execute-flow/SKILL.md +0 -0
- package/custom/skills/execute-flow/templates/playwright.config.ts +0 -0
- package/custom/skills/explore-data/SKILL.md +0 -0
- package/custom/skills/figma-to-component/SKILL.md +0 -0
- package/custom/skills/frame-ml-problem/SKILL.md +0 -0
- package/custom/skills/gate-review/SKILL.md +1 -1
- package/custom/skills/generate-spec/SKILL.md +99 -99
- package/custom/skills/generate-test-report/SKILL.md +0 -0
- package/custom/skills/generate-test-report/templates/test-report.md +0 -0
- package/custom/skills/generate-testcase/SKILL.md +0 -0
- package/custom/skills/generate-testcase/templates/testcase.md +0 -0
- package/custom/skills/impact-analysis/SKILL.md +0 -0
- package/custom/skills/improve-algorithm/SKILL.md +0 -0
- package/custom/skills/investigate-bug/SKILL.md +0 -0
- package/custom/skills/log-bug/SKILL.md +0 -0
- package/custom/skills/pr-impact-analysis/SKILL.md +0 -0
- package/custom/skills/read-study-requirement/SKILL.md +7 -5
- package/custom/skills/report-customer/SKILL.md +0 -0
- package/custom/skills/retest-orchestration/SKILL.md +0 -0
- package/custom/skills/review-plan/SKILL.md +194 -194
- package/custom/skills/script-sync/SKILL.md +0 -0
- package/custom/skills/test-analysis/SKILL.md +0 -0
- package/custom/skills/test-skills/categories/00-core/00.01.requirement-analysis.md +0 -0
- package/custom/skills/test-skills/categories/00-core/00.02.risk-analysis.md +0 -0
- package/custom/skills/test-skills/categories/00-core/00.03.test-scenario-builder.md +0 -0
- package/custom/skills/test-skills/categories/00-core/00.04.testcase-review.md +0 -0
- package/custom/skills/test-skills/categories/01-test-design/01.01.boundary-value-analysis.md +0 -0
- package/custom/skills/test-skills/categories/01-test-design/01.02.equivalence.partitioning.md +0 -0
- package/custom/skills/test-skills/categories/01-test-design/01.03.decision-table.md +0 -0
- package/custom/skills/test-skills/categories/01-test-design/01.04.state.transition.md +0 -0
- package/custom/skills/test-skills/categories/01-test-design/01.05.pairwise.md +0 -0
- package/custom/skills/test-skills/categories/01-test-design/01.06.error-guessing.md +0 -0
- package/custom/skills/test-skills/categories/02-ui-testing/02.01.UI-layout.md +0 -0
- package/custom/skills/test-skills/categories/02-ui-testing/02.02.form-validation.md +0 -0
- package/custom/skills/test-skills/categories/02-ui-testing/02.03.navigation.md +0 -0
- package/custom/skills/test-skills/categories/02-ui-testing/02.04.localization.md +0 -0
- package/custom/skills/test-skills/categories/02-ui-testing/02.05.accessibility.md +0 -0
- package/custom/skills/test-skills/categories/03-business-testing/03.01.CRUD-testing.md +0 -0
- package/custom/skills/test-skills/categories/03-business-testing/03.02.workflow-testing.md +0 -0
- package/custom/skills/test-skills/categories/03-business-testing/03.03.permission-testing.md +0 -0
- package/custom/skills/test-skills/categories/03-business-testing/03.04.dependency-validation.md +0 -0
- package/custom/skills/test-skills/categories/03-business-testing/03.05.notification-testing.md +0 -0
- package/custom/skills/test-skills/categories/03-business-testing/03.06.calculation.testing.md +0 -0
- package/custom/skills/test-skills/categories/04-data-testing/04.01.database-testing.md +0 -0
- package/custom/skills/test-skills/categories/04-data-testing/04.02.import-export-testing.md +0 -0
- package/custom/skills/test-skills/categories/04-data-testing/04.03.data-mapping.md +0 -0
- package/custom/skills/test-skills/categories/04-data-testing/04.04.duplicate-handling.md +0 -0
- package/custom/skills/test-skills/categories/04-data-testing/04.05.migration.md +0 -0
- package/custom/skills/test-skills/categories/05-integration/05.01.API-testing.md +0 -0
- package/custom/skills/test-skills/categories/05-integration/05.02.third-party-integration.md +0 -0
- package/custom/skills/test-skills/categories/05-integration/05.03.batch-processing.md +0 -0
- package/custom/skills/test-skills/categories/05-integration/05.04.file-upload-download.md +0 -0
- package/custom/skills/test-skills/categories/08-domain-skills/CMS.md +0 -0
- package/custom/skills/test-skills/categories/08-domain-skills/Ecommerce.md +0 -0
- package/custom/skills/test-skills/categories/99-review/99.01.coverage-review.md +0 -0
- package/custom/skills/test-skills/categories/99-review/99.02.knowledge-learning.md +0 -0
- package/custom/skills/test-skills/categories/99-review/99.03.repository-update.md +0 -0
- package/custom/skills/test-skills/categories/99-review/99.04.change-history.md +0 -0
- package/custom/skills/test-skills/rules/directory-and-naming-convention.md +158 -0
- package/custom/skills/test-skills/rules/{QA_Writing_Standards.md → qa-writing-standards.md} +0 -0
- package/custom/skills/test-skills/template/{template_testcase.md → testcase-template.md} +0 -0
- package/custom/skills/train-model/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-ml.md +0 -0
- package/custom/templates/python.md +0 -0
- package/custom/templates/reactjs.md +0 -0
- package/custom/templates/shared/coding-workflow.md +15 -0
- package/custom/templates/shared/create-spec-workflow.md +80 -89
- package/custom/templates/shared/create-testcase-workflow.md +86 -84
- package/custom/templates/shared/gate-workflow.md +64 -11
- package/custom/templates/shared/ml-gate-workflow.md +0 -0
- package/custom/templates/spring-boot.md +0 -0
- package/custom/templates/tools/claude.md +13 -13
- package/custom/templates/tools/copilot.md +12 -12
- package/custom/templates/tools/cursor.md +12 -12
- package/custom/templates/tools/gemini.md +22 -22
- package/custom/templates/tools/generic.md +17 -17
- package/custom/templates/vue-nuxt.md +0 -0
- package/docs/common/AIFLOW.md +10 -10
- package/docs/common/CHANGELOG.md +33 -9
- package/docs/common/QUICK_START.md +0 -0
- package/docs/common/ai-integration.md +53 -53
- package/docs/common/cli-reference.md +0 -0
- 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 +126 -126
- package/docs/common/workflows/feature.md +123 -123
- 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 +1 -1
- package/scripts/checkpoint.js +0 -0
- package/scripts/config.js +0 -0
- package/scripts/context.js +0 -0
- package/scripts/create-score-excel.js +41 -47
- package/scripts/detect.js +0 -0
- package/scripts/doctor.js +0 -0
- package/scripts/gitnexus-worker.js +0 -0
- package/scripts/guide.js +0 -0
- package/scripts/hooks/block-git-write.js +0 -0
- package/scripts/hooks/session-start.js +10 -5
- package/scripts/hooks/session-stop.js +0 -0
- package/scripts/init.js +5 -0
- package/scripts/memory.js +0 -0
- package/scripts/prompt.js +0 -0
- package/scripts/remove.js +0 -0
- package/scripts/review.js +0 -0
- package/scripts/scaffold-playwright.js +0 -0
- package/scripts/task.js +69 -22
- 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 +3 -2
- 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
- package/custom/skills/test-skills/rules/Directory_and_Naming_Convention.md +0 -257
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# AI System Instructions
|
|
2
|
-
|
|
3
|
-
You are an expert AI assistant. Follow the project's Gate Workflow and Team Rules strictly.
|
|
4
|
-
|
|
5
|
-
## Context Awareness
|
|
6
|
-
- **Ticket context**: `.aiflow/context/current.json`
|
|
7
|
-
- **Task progress**: `
|
|
8
|
-
- **Rules**: `.rules/`
|
|
9
|
-
|
|
10
|
-
Follow the gated workflow and rules defined below.
|
|
11
|
-
|
|
12
|
-
If Gate 1 does not start automatically, please start it when the developer types **"Gate 1"**.
|
|
13
|
-
|
|
14
|
-
## Interaction Rules:
|
|
15
|
-
- **COLLABORATIVE SKILLS:** When a skill (like `read-study-requirement`) says to "ask one question at a time", you MUST stop and wait for the developer's reply before proceeding.
|
|
16
|
-
- **NEVER BATCH QUESTIONS:** Only ask one question per message.
|
|
17
|
-
- **WAIT FOR APPROVAL:** Do not move to the next Gate until you receive "APPROVED".
|
|
1
|
+
# AI System Instructions
|
|
2
|
+
|
|
3
|
+
You are an expert AI assistant. Follow the project's Gate Workflow and Team Rules strictly.
|
|
4
|
+
|
|
5
|
+
## Context Awareness
|
|
6
|
+
- **Ticket context**: `.aiflow/context/current.json`
|
|
7
|
+
- **Task progress**: `04.Coding/<section>/[functionId]/[ticketId].md`
|
|
8
|
+
- **Rules**: `.rules/`
|
|
9
|
+
|
|
10
|
+
Follow the gated workflow and rules defined below.
|
|
11
|
+
|
|
12
|
+
If Gate 1 does not start automatically, please start it when the developer types **"Gate 1"**.
|
|
13
|
+
|
|
14
|
+
## Interaction Rules:
|
|
15
|
+
- **COLLABORATIVE SKILLS:** When a skill (like `read-study-requirement`) says to "ask one question at a time", you MUST stop and wait for the developer's reply before proceeding.
|
|
16
|
+
- **NEVER BATCH QUESTIONS:** Only ask one question per message.
|
|
17
|
+
- **WAIT FOR APPROVAL:** Do not move to the next Gate until you receive "APPROVED".
|
|
File without changes
|
package/docs/common/AIFLOW.md
CHANGED
|
@@ -112,7 +112,7 @@ claude # open Claude → AI auto-starts Gate 1
|
|
|
112
112
|
| 2 | Read `CLAUDE.md` + source code | Understand architecture, tech stack, patterns |
|
|
113
113
|
| 3 | Investigate related files & data flow | Identify affected areas, dependencies |
|
|
114
114
|
| 4 | Ask clarifying questions (one at a time) | Ensure full understanding |
|
|
115
|
-
| 5 | Write `
|
|
115
|
+
| 5 | Write `04.Coding/01.Requirements/[functionId]/[ticketId].md` | Structured requirement document |
|
|
116
116
|
|
|
117
117
|
**AI asks questions when:**
|
|
118
118
|
- Business requirements are vague or ambiguous
|
|
@@ -121,7 +121,7 @@ claude # open Claude → AI auto-starts Gate 1
|
|
|
121
121
|
- Multiple approaches are possible and need input
|
|
122
122
|
- Impact on existing features is unclear
|
|
123
123
|
|
|
124
|
-
**Requirement Document Output (`
|
|
124
|
+
**Requirement Document Output (`04.Coding/01.Requirements/[functionId]/[ticketId].md`):**
|
|
125
125
|
|
|
126
126
|
```
|
|
127
127
|
├── 1. Requirements Summary
|
|
@@ -166,13 +166,13 @@ Summary:
|
|
|
166
166
|
- Approach: [brief description]
|
|
167
167
|
- Files affected: [N] files
|
|
168
168
|
|
|
169
|
-
→ Review:
|
|
169
|
+
→ Review: 04.Coding/01.Requirements/[functionId]/[ticketId].md
|
|
170
170
|
→ Type APPROVED to proceed
|
|
171
171
|
→ Or provide feedback to update
|
|
172
172
|
```
|
|
173
173
|
|
|
174
174
|
**Gate 1 Output:**
|
|
175
|
-
- `
|
|
175
|
+
- `04.Coding/01.Requirements/[functionId]/[ticketId].md` approved by DEV
|
|
176
176
|
- DEV has typed "APPROVED"
|
|
177
177
|
|
|
178
178
|
---
|
|
@@ -265,14 +265,14 @@ In fast mode, AI uses the `tdd-lean` skill instead of per-test TDD to save massi
|
|
|
265
265
|
| 1 | `superpowers:verification-before-completion` | All tests PASS |
|
|
266
266
|
| 2 | `impact-analysis` skill | No breaking changes outside scope |
|
|
267
267
|
| 3 | `custom/rules/review-checklist.md` | All items ticked |
|
|
268
|
-
| 4 | Create `
|
|
268
|
+
| 4 | Create `04.Coding/04.Reviews/[functionId]/[ticketId].md` | File exists and is complete |
|
|
269
269
|
|
|
270
270
|
**If any step fails → AI fixes it first, without showing DEV.**
|
|
271
271
|
|
|
272
272
|
**Summary report output:**
|
|
273
273
|
|
|
274
274
|
```
|
|
275
|
-
|
|
275
|
+
04.Coding/04.Reviews/[functionId]/[ticketId].md
|
|
276
276
|
├── List of changed files + reasons
|
|
277
277
|
├── Acceptance Criteria → results (Done/Not Done)
|
|
278
278
|
├── Tests: quantity, coverage
|
|
@@ -287,7 +287,7 @@ plan/[ticket-id]/summary.md
|
|
|
287
287
|
Tests: ✅ [N] passed
|
|
288
288
|
Impact: [Low/Medium/High]
|
|
289
289
|
Checklist: [N/N] ✅
|
|
290
|
-
Summary:
|
|
290
|
+
Summary: 04.Coding/04.Reviews/[functionId]/[ticketId].md
|
|
291
291
|
|
|
292
292
|
Type APPROVED if OK
|
|
293
293
|
Type BUG: [description] if there are issues
|
|
@@ -299,7 +299,7 @@ Type BUG: [description] if there are issues
|
|
|
299
299
|
- `BUG: requirement bug` → AI updates requirement doc → back to Gate 1
|
|
300
300
|
|
|
301
301
|
**Gate 4 Output:**
|
|
302
|
-
- `
|
|
302
|
+
- `04.Coding/04.Reviews/[functionId]/[ticketId].md` completed
|
|
303
303
|
- DEV has typed "APPROVED"
|
|
304
304
|
|
|
305
305
|
---
|
|
@@ -458,7 +458,7 @@ aiflow telemetry disable # disable tracking
|
|
|
458
458
|
|
|
459
459
|
## Multi-AI Environment Setup
|
|
460
460
|
|
|
461
|
-
One of the core strengths of `ai-flow-kit` is that the **Gate Workflow** is tool-agnostic. Since state is saved in `.aiflow/context/current.json` and the `
|
|
461
|
+
One of the core strengths of `ai-flow-kit` is that the **Gate Workflow** is tool-agnostic. Since state is saved in `.aiflow/context/current.json` and the `04.Coding/` docs directory, you can switch tools mid-task.
|
|
462
462
|
|
|
463
463
|
### How to Switch Tools
|
|
464
464
|
1. **Analyze (Gate 1)** using Claude Code CLI (great for deep codebase scans).
|
|
@@ -506,7 +506,7 @@ A: Yes. Use `aiflow task pause` to save your current progress, then `aiflow use
|
|
|
506
506
|
**Q: If I resume a task, will Claude know which gate to start at?**
|
|
507
507
|
A: Yes. The SessionStart hook reads `.aiflow/tasks/<taskId>/task-state.json` and injects gate-aware instructions. If Gate 1 was already approved, Claude will skip to Gate 2, and so on.
|
|
508
508
|
**Q: Can I resume a Gate 3 (Code Generation) task in a new chatbox?**
|
|
509
|
-
A: Yes. Gate 3 progress is saved via `[x]` checkboxes in `
|
|
509
|
+
A: Yes. Gate 3 progress is saved via `[x]` checkboxes in `04.Coding/02.Plans/[functionId]/[ticketId].md`. If you open a new chatbox and say "continue", the AI will automatically skip completed tasks and pick up exactly where it left off.
|
|
510
510
|
|
|
511
511
|
**Q: How does AI estimate effort?**
|
|
512
512
|
A: AI analyzes the scope of changes (files affected, complexity, test requirements) and categorizes: S (< 1h), M (1-4h), L (4-8h), XL (8h+, should split).
|
package/docs/common/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,30 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [0.1.5] - 2026-07-01
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Brainstorming Skill Integration** — Injected `superpowers:brainstorming` into Gate 1 of the BA Create Spec workflow, allowing the AI to actively clarify and brainstorm raw requirements from the backlog.
|
|
15
|
+
- **Mandatory `functionId` Check** — Enforced mandatory `functionId` checks at Gate 1 of all BA and QA workflows (e.g., `create-spec-workflow.md`, `create-testcase-workflow.md`). If missing in the ticket or backlog description, the AI stops and prompts the user to input the ID.
|
|
16
|
+
- **`/coding` slash command** — New `.claude/commands/coding.md`, installed alongside `/create-spec` and `/create-testcase`. Manually loads `.aiflow/context/current.json` and starts (or resumes) the `[DEV] 5-Gate Development Workflow` for `bug-fix` / `feature` / `refactor` / `investigation` / `documentation` tickets. Fixes a gap where those task types had no slash-command fallback: they relied solely on the `SessionStart` hook's auto-start message, which does not re-fire if a ticket is loaded with `ak use` while a Claude Code chat session is already open — leaving phrases like `"start"` with no effect since the AI was never given the ticket context. `ak use`'s "Next Steps" hint and the `gate-workflow.md` / `session-start.js` auto-start tips now also mention `/coding` as the manual fallback.
|
|
17
|
+
- **DEV workflow `functionId` Pre-flight (Gate 1 — Bước 0)** — The `[DEV] 5-Gate Development Workflow` now runs the same mandatory Pre-flight as the BA/QA workflows before writing any output. `functionId` is project-defined with no enforced format (`F-001_User-Login`, `AD06`, `UC-LOGIN` are all valid) and is resolved in priority order: (1) `functionId`/`screenId` field in `.aiflow/context/current.json`; (2) **inferred from the input** — when the task input includes a BA-delivered UC Spec file, the AI reads its content or its containing folder path (e.g. `02.BA-Specs/04.UC-Specs/[functionId]/`) and can consult `04.Coding/00.Overview/_Index.md` / `00.Project-Overview/Function-List.md`, then asks the DEV to **confirm** the candidate ("functionId của task này có phải là [X] không?"); (3) only when nothing can be inferred does it ask the DEV to provide the ID directly. The workflow MUST NOT continue without a `functionId`.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- **DEV 5-Gate output migration: `plan/[ticket-id]/` → `04.Coding/`** — All coding/documentation task outputs now follow the `Coding-Structure.md` convention: `04.Coding/<section>/[functionId]/[ticketId].md` (folder per feature, file per ticket — one feature spans multiple tickets). Gate mapping: Gate 1 → `01.Requirements/`, Gate 2 → `02.Plans/`, Gate 3 → `03.TDD-Notes/` (new artifact: test list written before code + implementation notes), Gate 4 → `04.Reviews/` (replaces `summary.md`), Gate 5 → `05.Pull-Requests/` (new artifact: PR description with links to UC Spec / Test Case / Dev Plan, pushed to remote before creating the PR). Each gate also updates the `04.Coding/00.Overview/_Index.md` tracker (`F-ID | Ticket | Dev | Gate | PR`). The legacy `plan/[ticket-id]/` convention is deprecated. Updated across: `gate-workflow.md` (DEV section), `custom/rules/project-conventions.md` (mandatory override table), skills (`read-study-requirement`, `generate-spec`, `review-plan`, `gate-review`), all 5 tool templates (`claude.md`, `cursor.md`, `copilot.md`, `gemini.md`, `generic.md`), and docs (`AIFLOW.md`, `ai-integration.md`, `workflows/bug-fix.md`, `workflows/feature.md`). ML workflows (`ml-gate-workflow.md`, `ml-conventions.md`) are intentionally NOT migrated yet.
|
|
22
|
+
- **SessionStart hook no longer injects legacy `plan/` paths** — `scripts/hooks/session-start.js` used to inject `Output plan/TASK-xxx/requirement.md` into every auto-start / resume message, overriding whatever the instruction file said (the root cause of outputs still landing in `plan/` even after template updates). The injected Gate 1 instructions (fast + full mode) now include the functionId Pre-flight step and point to `04.Coding/01.Requirements/[functionId]/<taskId>.md`; Gate 2/3 resume messages reference the new paths via the `04.Coding/00.Overview/_Index.md` tracker lookup.
|
|
23
|
+
- **CLI task commands follow the new doc layout** — `scripts/task.js`: new `findTaskDocs()` helper scans `04.Coding/*/*/<taskId>.md` (plus the legacy `plan/<taskId>/` folder) so `ak task reset` / `ak task remove` list and delete gate docs correctly; `detectCurrentGate()` now detects gate progress from the `04.Coding/` sections (with legacy fallback); `ak task next`'s cumulative `task-summary.md` moved from `plan/<taskId>/` to `.aiflow/tasks/<taskId>/` (it is internal task state, not a gate artifact).
|
|
24
|
+
|
|
25
|
+
- **Testing Skills Consolidation** — Consolidated all 11 testing/QA skills (previously at the root of `custom/skills/`) into the dedicated subfolder `custom/skills/test-skills/`. The skills moved are: `automation-testing`, `coverage-check`, `evidence-aggregation`, `execute-flow`, `generate-test-report`, `generate-testcase`, `log-bug`, `retest-orchestration`, `script-sync`, `test-analysis`, and `pr-impact-analysis`.
|
|
26
|
+
- **English Kebab-Case Naming Standard** — Standardized all skill filenames in `custom/skills/ba-skills/` and `custom/skills/test-skills/` to use English kebab-case naming conventions.
|
|
27
|
+
- **Output Directory Structure Migration** — Standardized output file templates, specs, and generated artifacts to use the new numbered directory architecture: `02.BA-Specs/`, `03.Testing/`, and `04.Coding/`.
|
|
28
|
+
- **Removed Generic Testing Task Type** — Deprecated and removed the generic "Testing" task type from the CLI task selector (`scripts/use.js`) to enforce usage of the more specialized `testcase` and `execute` workflows.
|
|
29
|
+
- **Reference Resolution** — Updated all hardcoded paths referencing relocated skills and output directories across `AIFLOW.md`, `CHANGELOG.md`, release notes, implementation plans, and gate workflow templates (`custom/templates/shared/gate-workflow.md`).
|
|
30
|
+
- **Test Alignment** — Updated mock directory paths in the Jest test suite (`tests/review.test.js`) to align with the new `02.BA-Specs` directory structure.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
10
34
|
## [0.1.4] - 2026-06-29
|
|
11
35
|
|
|
12
36
|
### Added
|
|
@@ -64,11 +88,11 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
64
88
|
- **Gate 3 — Execute & Evidence**: Runs `npx playwright test` and organizes evidence into `ak-test/{repo}/results/{screenId}/run-{N}/` with per-TC folders (screenshots, trace.zip, result.md). Auto-drafts bug files for failed TCs. Supports `RETEST: [TC_ID]` loop.
|
|
65
89
|
- **Gate 4 — Report & Bug Logging**: Generates `testreport.md` with Go/No-Go decision; logs each failed TC to Jira/Backlog one-by-one with interactive confirm per bug.
|
|
66
90
|
|
|
67
|
-
- **`execute-flow` skill** (`custom/skills/execute-flow/SKILL.md`) — 4-gate execute flow orchestrator. Handles 3 entry points: `ak execute TICKET-ID` (ticket with `taskType: "execute"`), `ak execute ./path/to/testcases.md` (direct TC file), and `ak execute` (manual — AI asks for TC file). Output structure: `ak-test/{repo}/scripts/{screenId}/{ScreenID}.spec.ts` for scripts; `ak-test/{repo}/results/{screenId}/run-{N}/` for evidence.
|
|
91
|
+
- **`execute-flow` skill** (`custom/skills/test-skills/execute-flow/SKILL.md`) — 4-gate execute flow orchestrator. Handles 3 entry points: `ak execute TICKET-ID` (ticket with `taskType: "execute"`), `ak execute ./path/to/testcases.md` (direct TC file), and `ak execute` (manual — AI asks for TC file). Output structure: `ak-test/{repo}/scripts/{screenId}/{ScreenID}.spec.ts` for scripts; `ak-test/{repo}/results/{screenId}/run-{N}/` for evidence.
|
|
68
92
|
|
|
69
|
-
- **`script-sync` skill** (`custom/skills/script-sync/SKILL.md`) — Hash-based TC↔Playwright script sync engine. Called from execute-flow Gate 2. Never fabricates selectors — uses MCP browser tools (`browser_navigate` → `browser_snapshot` → `browser_generate_locator`) for any new/changed TC. Produces one `.spec.ts` per screen with all TCs inside, using `screenId` (lowercase) for directory paths and `{ScreenID}.spec.ts` (uppercase) for the filename.
|
|
93
|
+
- **`script-sync` skill** (`custom/skills/test-skills/script-sync/SKILL.md`) — Hash-based TC↔Playwright script sync engine. Called from execute-flow Gate 2. Never fabricates selectors — uses MCP browser tools (`browser_navigate` → `browser_snapshot` → `browser_generate_locator`) for any new/changed TC. Produces one `.spec.ts` per screen with all TCs inside, using `screenId` (lowercase) for directory paths and `{ScreenID}.spec.ts` (uppercase) for the filename.
|
|
70
94
|
|
|
71
|
-
- **`playwright.config.ts` template** for execute-flow (`custom/skills/execute-flow/templates/playwright.config.ts`) — Default config for each `ak-test/{repo}` repo with HTML + JSON reporters, screenshot-on-failure, and trace-on-failure. AI offers to scaffold this file during Gate 1 pre-flight if it doesn't exist.
|
|
95
|
+
- **`playwright.config.ts` template** for execute-flow (`custom/skills/test-skills/execute-flow/templates/playwright.config.ts`) — Default config for each `ak-test/{repo}` repo with HTML + JSON reporters, screenshot-on-failure, and trace-on-failure. AI offers to scaffold this file during Gate 1 pre-flight if it doesn't exist.
|
|
72
96
|
|
|
73
97
|
- **`execute` entry in `gate-workflow.md` Workflow Selection table** — `gate-workflow.md` (single source of truth for all AI agent instruction files) now routes `taskType: "execute"` to the `[EXECUTE] Executing Flow` section. Distributed to all agents (Claude, Gemini, Cursor, Copilot) via `ak init` / `ak up`.
|
|
74
98
|
|
|
@@ -76,17 +100,17 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
76
100
|
|
|
77
101
|
- **`ak execute` command** (`ak ex` alias) — New top-level CLI entry point that bypasses `ak use`. Accepts a ticket ID, a TC file path, or no argument (AI asks interactively). Documented in README, QUICK_START, cli-reference, and `ak guide --commands`.
|
|
78
102
|
|
|
79
|
-
- **`test-analysis` skill** (`custom/skills/test-analysis/SKILL.md`) — Gate 1 analysis skill for the [TESTER] workflow. Reads ticket context, fetches linked docs, analyzes scope and risk, asks clarifying questions one at a time, and writes `test-plan/test-analysis.md`.
|
|
103
|
+
- **`test-analysis` skill** (`custom/skills/test-skills/test-analysis/SKILL.md`) — Gate 1 analysis skill for the [TESTER] workflow. Reads ticket context, fetches linked docs, analyzes scope and risk, asks clarifying questions one at a time, and writes `test-plan/test-analysis.md`.
|
|
80
104
|
|
|
81
|
-
- **`coverage-check` skill** (`custom/skills/coverage-check/SKILL.md`) — Gate 2d skill that applies review action items, generates a requirement→TC coverage matrix, exports the final test case set to `test-plan/test-cases/final-testcases.md`, and invokes `automation-testing` to generate Playwright scripts.
|
|
105
|
+
- **`coverage-check` skill** (`custom/skills/test-skills/coverage-check/SKILL.md`) — Gate 2d skill that applies review action items, generates a requirement→TC coverage matrix, exports the final test case set to `test-plan/test-cases/final-testcases.md`, and invokes `automation-testing` to generate Playwright scripts.
|
|
82
106
|
|
|
83
|
-
- **`evidence-aggregation` skill** (`custom/skills/evidence-aggregation/SKILL.md`) — Parses `test-results/results.json`, organizes screenshots and traces into `evidence/TC_[ID]-[scenario]/` folders, generates per-TC `result.md`, and auto-drafts `bugs/BUG-NNN-*.md` for failed TCs.
|
|
107
|
+
- **`evidence-aggregation` skill** (`custom/skills/test-skills/evidence-aggregation/SKILL.md`) — Parses `test-results/results.json`, organizes screenshots and traces into `evidence/TC_[ID]-[scenario]/` folders, generates per-TC `result.md`, and auto-drafts `bugs/BUG-NNN-*.md` for failed TCs.
|
|
84
108
|
|
|
85
|
-
- **`retest-orchestration` skill** (`custom/skills/retest-orchestration/SKILL.md`) — Handles the `RETEST: [TC_ID]` loop in Gate 3. Re-runs dev artifacts check (detect new commits), re-executes only specified TCs, creates `run-N/` subfolders (never deletes prior evidence), and updates bug status.
|
|
109
|
+
- **`retest-orchestration` skill** (`custom/skills/test-skills/retest-orchestration/SKILL.md`) — Handles the `RETEST: [TC_ID]` loop in Gate 3. Re-runs dev artifacts check (detect new commits), re-executes only specified TCs, creates `run-N/` subfolders (never deletes prior evidence), and updates bug status.
|
|
86
110
|
|
|
87
|
-
- **`pr-impact-analysis` skill** (`custom/skills/pr-impact-analysis/SKILL.md`) — Checks for new commits/PRs between gates to ensure TC coverage stays current with dev changes.
|
|
111
|
+
- **`pr-impact-analysis` skill** (`custom/skills/test-skills/pr-impact-analysis/SKILL.md`) — Checks for new commits/PRs between gates to ensure TC coverage stays current with dev changes.
|
|
88
112
|
|
|
89
|
-
- **`log-bug` skill** (`custom/skills/log-bug/SKILL.md`) — Logs a failed TC as a bug ticket in Jira/Backlog with structured fields (severity, steps, expected/actual, evidence link).
|
|
113
|
+
- **`log-bug` skill** (`custom/skills/test-skills/log-bug/SKILL.md`) — Logs a failed TC as a bug ticket in Jira/Backlog with structured fields (severity, steps, expected/actual, evidence link).
|
|
90
114
|
|
|
91
115
|
- **Playwright harness scaffold** — `ak scaffold playwright` (via `scripts/scaffold-playwright.js`) creates the `ak-test/{repo}/` directory structure with `playwright.config.ts`, `tests/e2e/fixtures/test.ts`, `tests/e2e/pages/BasePage.ts`, `tests/e2e/support/auth.ts`, and `.env.example`. Covered by 90-line Jest test suite in `tests/scaffold-playwright.test.js`.
|
|
92
116
|
|
|
File without changes
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# Multi-AI Environment Integration
|
|
2
|
-
|
|
3
|
-
`ai-flow-kit` is designed to be tool-agnostic. While it works best with Claude Code CLI due to deep MCP integration, you can use it with any AI tool.
|
|
4
|
-
|
|
5
|
-
## Supported Environments
|
|
6
|
-
|
|
7
|
-
| Tool | Instruction File | Support Level | Key Features |
|
|
8
|
-
|------|------------------|---------------|--------------|
|
|
9
|
-
| **Claude Code** | `CLAUDE.md` | Native (Best) | Auto-triggers, full MCP access, session hooks. |
|
|
10
|
-
| **Cursor** | `.cursorrules` | High | Project-wide rules, `@Codebase` context. |
|
|
11
|
-
| **Gemini CLI** | `GEMINI.md` | Medium | System instructions support. |
|
|
12
|
-
| **GitHub Copilot** | `.github/copilot-instructions.md` | Medium | Inline suggestions, custom instructions. |
|
|
13
|
-
| **OpenCode / Generic** | `AI_INSTRUCTIONS.md` | General | Manual context loading. |
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Tool-Specific Setup
|
|
18
|
-
|
|
19
|
-
### 1. Cursor AI
|
|
20
|
-
When you run `aiflow init`, it generates a `.cursorrules` file.
|
|
21
|
-
- Cursor will automatically read this file to understand the **Gate Workflow**.
|
|
22
|
-
- Use `@Codebase` when you need the AI to search across your whole project.
|
|
23
|
-
- **Resumption**: If you start a task in Claude Code and switch to Cursor, Cursor will see the generated `
|
|
24
|
-
|
|
25
|
-
### 2. Gemini CLI
|
|
26
|
-
Pass `GEMINI.md` as system instructions to your Gemini session.
|
|
27
|
-
- **Tip**: Always ensure the AI reads `.aiflow/context/current.json` first to load the ticket context.
|
|
28
|
-
- Gemini is excellent for large context analysis during Gate 1.
|
|
29
|
-
|
|
30
|
-
### 3. GitHub Copilot / Codex
|
|
31
|
-
Copilot uses `.github/copilot-instructions.md` to guide its suggestions.
|
|
32
|
-
- This ensures that Copilot's inline completions follow your project's architecture and team rules.
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## Cross-Tool State Resumption
|
|
37
|
-
The "Secret Sauce" of `ai-flow-kit` is its file-based state management:
|
|
38
|
-
|
|
39
|
-
1. **Context**: Saved in `.aiflow/context/current.json`.
|
|
40
|
-
2. **Progress**: Saved as Markdown docs in `
|
|
41
|
-
3. **Rules**: Saved in `.rules/`.
|
|
42
|
-
|
|
43
|
-
Because these are standard files, any AI tool can read them. You can:
|
|
44
|
-
1. Start **Gate 1** (Analysis) in Claude Code.
|
|
45
|
-
2. Review and **Approve** the requirement doc.
|
|
46
|
-
3. Switch to **Cursor** for **Gate 3** (Coding) because you prefer the IDE integrations.
|
|
47
|
-
4. Switch back to **Claude Code** for **Gate 4** (Self-Review) to use its automated testing power.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Best Practices
|
|
52
|
-
- **Always Approve Docs**: Ensure `requirement.md` and `plan.md` are approved (you can just type "APPROVED" in the chat or edit the file to say so).
|
|
53
|
-
- **Update Status**: If you make progress in a tool that doesn't have hooks, manually update the `summary.md` or the ticket status.
|
|
1
|
+
# Multi-AI Environment Integration
|
|
2
|
+
|
|
3
|
+
`ai-flow-kit` is designed to be tool-agnostic. While it works best with Claude Code CLI due to deep MCP integration, you can use it with any AI tool.
|
|
4
|
+
|
|
5
|
+
## Supported Environments
|
|
6
|
+
|
|
7
|
+
| Tool | Instruction File | Support Level | Key Features |
|
|
8
|
+
|------|------------------|---------------|--------------|
|
|
9
|
+
| **Claude Code** | `CLAUDE.md` | Native (Best) | Auto-triggers, full MCP access, session hooks. |
|
|
10
|
+
| **Cursor** | `.cursorrules` | High | Project-wide rules, `@Codebase` context. |
|
|
11
|
+
| **Gemini CLI** | `GEMINI.md` | Medium | System instructions support. |
|
|
12
|
+
| **GitHub Copilot** | `.github/copilot-instructions.md` | Medium | Inline suggestions, custom instructions. |
|
|
13
|
+
| **OpenCode / Generic** | `AI_INSTRUCTIONS.md` | General | Manual context loading. |
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Tool-Specific Setup
|
|
18
|
+
|
|
19
|
+
### 1. Cursor AI
|
|
20
|
+
When you run `aiflow init`, it generates a `.cursorrules` file.
|
|
21
|
+
- Cursor will automatically read this file to understand the **Gate Workflow**.
|
|
22
|
+
- Use `@Codebase` when you need the AI to search across your whole project.
|
|
23
|
+
- **Resumption**: If you start a task in Claude Code and switch to Cursor, Cursor will see the generated `04.Coding/` docs and resume from where you left off.
|
|
24
|
+
|
|
25
|
+
### 2. Gemini CLI
|
|
26
|
+
Pass `GEMINI.md` as system instructions to your Gemini session.
|
|
27
|
+
- **Tip**: Always ensure the AI reads `.aiflow/context/current.json` first to load the ticket context.
|
|
28
|
+
- Gemini is excellent for large context analysis during Gate 1.
|
|
29
|
+
|
|
30
|
+
### 3. GitHub Copilot / Codex
|
|
31
|
+
Copilot uses `.github/copilot-instructions.md` to guide its suggestions.
|
|
32
|
+
- This ensures that Copilot's inline completions follow your project's architecture and team rules.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Cross-Tool State Resumption
|
|
37
|
+
The "Secret Sauce" of `ai-flow-kit` is its file-based state management:
|
|
38
|
+
|
|
39
|
+
1. **Context**: Saved in `.aiflow/context/current.json`.
|
|
40
|
+
2. **Progress**: Saved as Markdown docs in `04.Coding/<section>/[functionId]/[ticketId].md`.
|
|
41
|
+
3. **Rules**: Saved in `.rules/`.
|
|
42
|
+
|
|
43
|
+
Because these are standard files, any AI tool can read them. You can:
|
|
44
|
+
1. Start **Gate 1** (Analysis) in Claude Code.
|
|
45
|
+
2. Review and **Approve** the requirement doc.
|
|
46
|
+
3. Switch to **Cursor** for **Gate 3** (Coding) because you prefer the IDE integrations.
|
|
47
|
+
4. Switch back to **Claude Code** for **Gate 4** (Self-Review) to use its automated testing power.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Best Practices
|
|
52
|
+
- **Always Approve Docs**: Ensure `requirement.md` and `plan.md` are approved (you can just type "APPROVED" in the chat or edit the file to say so).
|
|
53
|
+
- **Update Status**: If you make progress in a tool that doesn't have hooks, manually update the `summary.md` or the ticket status.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
# Bug Fix Workflow
|
|
2
|
-
|
|
3
|
-
> See the full workflow at [AIFLOW.md](../../AIFLOW.md)
|
|
4
|
-
> **Gates must pass in order: 1 → 2 → 3 → 4 → 5**
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Step 1: Load ticket & AI analyzes (Gate 1)
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
aiflow use PROJ-33 --with-comments # get both comments — important for bugs
|
|
12
|
-
claude # AI auto-starts Gate 1
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
AI will **automatically**:
|
|
16
|
-
1. Load ticket info + comments from Backlog/Jira
|
|
17
|
-
2. Read source code — trace data flow related to the bug
|
|
18
|
-
3. Use `superpowers:systematic-debugging` to form root cause hypothesis
|
|
19
|
-
4. Ask clarifying questions if reproduction steps are unclear
|
|
20
|
-
5. Output `
|
|
21
|
-
- Bug analysis (current vs expected behavior)
|
|
22
|
-
- **Root cause hypothesis** with evidence from source code
|
|
23
|
-
- **Proposed fix approach** (with alternatives if applicable)
|
|
24
|
-
- **Impact analysis** — will the fix break anything else?
|
|
25
|
-
- **Effort estimate** (S/M/L/XL)
|
|
26
|
-
- Testing plan (reproduce bug + verify fix)
|
|
27
|
-
|
|
28
|
-
**PM needs to prepare on the ticket:**
|
|
29
|
-
```markdown
|
|
30
|
-
## Description
|
|
31
|
-
Bug description: current behavior vs expected.
|
|
32
|
-
|
|
33
|
-
## Acceptance Criteria
|
|
34
|
-
- [ ] Bug no longer occurs
|
|
35
|
-
- [ ] [Other specific conditions]
|
|
36
|
-
|
|
37
|
-
## Reproduction Steps
|
|
38
|
-
1. [Step 1]
|
|
39
|
-
2. [Step 2]
|
|
40
|
-
3. Actual result: [what error, what screen]
|
|
41
|
-
4. Expected result: [...]
|
|
42
|
-
|
|
43
|
-
## Context
|
|
44
|
-
Error log (if any), environment (browser, OS, app version).
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
**If reproduction steps are unclear:** AI will ask based on what it found in the code.
|
|
48
|
-
|
|
49
|
-
**When satisfied with the requirement document, type:**
|
|
50
|
-
```
|
|
51
|
-
APPROVED
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## Step 2: Review Implementation Plan (Gate 2)
|
|
57
|
-
|
|
58
|
-
AI generates:
|
|
59
|
-
- TDD plan: write test to reproduce bug → implement fix → verify
|
|
60
|
-
- Minimal fix approach (only edit the bug location)
|
|
61
|
-
|
|
62
|
-
**When agreed, type:**
|
|
63
|
-
```
|
|
64
|
-
APPROVED
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Step 3: AI Fix Code (Gate 3)
|
|
70
|
-
|
|
71
|
-
AI performs in the following order:
|
|
72
|
-
1. `superpowers:systematic-debugging` — confirm root cause
|
|
73
|
-
2. `investigate-bug` skill — trace Controller→Service→Repository to identify the bug layer
|
|
74
|
-
3. Write test to reproduce bug → run → confirm FAIL
|
|
75
|
-
4. Implement fix → tests PASS
|
|
76
|
-
5. Commit
|
|
77
|
-
|
|
78
|
-
**Principle:** Minimal fix — only edit the bug location, no extra changes.
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
## Step 4: Review Summary (Gate 4)
|
|
83
|
-
|
|
84
|
-
AI runs:
|
|
85
|
-
1. `superpowers:verification-before-completion` — all tests PASS (including old tests)
|
|
86
|
-
2. `impact-analysis` — fix doesn't cause new bugs elsewhere
|
|
87
|
-
3. Create `
|
|
88
|
-
|
|
89
|
-
**If OK, type:**
|
|
90
|
-
```
|
|
91
|
-
APPROVED
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
**If the fix is incorrect:**
|
|
95
|
-
```
|
|
96
|
-
BUG: [describe specifically what is wrong]
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## Step 5: Peer Review & PR (Gate 5)
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
git push origin fix/PROJ-33-description
|
|
105
|
-
# PR title: fix: [PROJ-33] Short description
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Commit message format:
|
|
109
|
-
```
|
|
110
|
-
fix: [PROJ-33] Payment processing timeout
|
|
111
|
-
|
|
112
|
-
Root cause: API timeout too short (5s), needs at least 10s
|
|
113
|
-
Fix: Increase timeout + add retry logic
|
|
114
|
-
|
|
115
|
-
Closes PROJ-33
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## Completion Checklist
|
|
121
|
-
|
|
122
|
-
- [ ] Gate 1 APPROVED — requirement doc with root cause, fix approach, impact, estimate
|
|
123
|
-
- [ ] Gate 2 APPROVED — implementation plan confirmed
|
|
124
|
-
- [ ] Gate 3 done — test reproduce bug + fix → green
|
|
125
|
-
- [ ] Gate 4 APPROVED — no regression
|
|
126
|
-
- [ ] Gate 5 done — PR merged
|
|
1
|
+
# Bug Fix Workflow
|
|
2
|
+
|
|
3
|
+
> See the full workflow at [AIFLOW.md](../../AIFLOW.md)
|
|
4
|
+
> **Gates must pass in order: 1 → 2 → 3 → 4 → 5**
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Step 1: Load ticket & AI analyzes (Gate 1)
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
aiflow use PROJ-33 --with-comments # get both comments — important for bugs
|
|
12
|
+
claude # AI auto-starts Gate 1
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
AI will **automatically**:
|
|
16
|
+
1. Load ticket info + comments from Backlog/Jira
|
|
17
|
+
2. Read source code — trace data flow related to the bug
|
|
18
|
+
3. Use `superpowers:systematic-debugging` to form root cause hypothesis
|
|
19
|
+
4. Ask clarifying questions if reproduction steps are unclear
|
|
20
|
+
5. Output `04.Coding/01.Requirements/[functionId]/[ticketId].md` containing:
|
|
21
|
+
- Bug analysis (current vs expected behavior)
|
|
22
|
+
- **Root cause hypothesis** with evidence from source code
|
|
23
|
+
- **Proposed fix approach** (with alternatives if applicable)
|
|
24
|
+
- **Impact analysis** — will the fix break anything else?
|
|
25
|
+
- **Effort estimate** (S/M/L/XL)
|
|
26
|
+
- Testing plan (reproduce bug + verify fix)
|
|
27
|
+
|
|
28
|
+
**PM needs to prepare on the ticket:**
|
|
29
|
+
```markdown
|
|
30
|
+
## Description
|
|
31
|
+
Bug description: current behavior vs expected.
|
|
32
|
+
|
|
33
|
+
## Acceptance Criteria
|
|
34
|
+
- [ ] Bug no longer occurs
|
|
35
|
+
- [ ] [Other specific conditions]
|
|
36
|
+
|
|
37
|
+
## Reproduction Steps
|
|
38
|
+
1. [Step 1]
|
|
39
|
+
2. [Step 2]
|
|
40
|
+
3. Actual result: [what error, what screen]
|
|
41
|
+
4. Expected result: [...]
|
|
42
|
+
|
|
43
|
+
## Context
|
|
44
|
+
Error log (if any), environment (browser, OS, app version).
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**If reproduction steps are unclear:** AI will ask based on what it found in the code.
|
|
48
|
+
|
|
49
|
+
**When satisfied with the requirement document, type:**
|
|
50
|
+
```
|
|
51
|
+
APPROVED
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Step 2: Review Implementation Plan (Gate 2)
|
|
57
|
+
|
|
58
|
+
AI generates:
|
|
59
|
+
- TDD plan: write test to reproduce bug → implement fix → verify
|
|
60
|
+
- Minimal fix approach (only edit the bug location)
|
|
61
|
+
|
|
62
|
+
**When agreed, type:**
|
|
63
|
+
```
|
|
64
|
+
APPROVED
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Step 3: AI Fix Code (Gate 3)
|
|
70
|
+
|
|
71
|
+
AI performs in the following order:
|
|
72
|
+
1. `superpowers:systematic-debugging` — confirm root cause
|
|
73
|
+
2. `investigate-bug` skill — trace Controller→Service→Repository to identify the bug layer
|
|
74
|
+
3. Write test to reproduce bug → run → confirm FAIL
|
|
75
|
+
4. Implement fix → tests PASS
|
|
76
|
+
5. Commit
|
|
77
|
+
|
|
78
|
+
**Principle:** Minimal fix — only edit the bug location, no extra changes.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Step 4: Review Summary (Gate 4)
|
|
83
|
+
|
|
84
|
+
AI runs:
|
|
85
|
+
1. `superpowers:verification-before-completion` — all tests PASS (including old tests)
|
|
86
|
+
2. `impact-analysis` — fix doesn't cause new bugs elsewhere
|
|
87
|
+
3. Create `04.Coding/04.Reviews/[functionId]/[ticketId].md`
|
|
88
|
+
|
|
89
|
+
**If OK, type:**
|
|
90
|
+
```
|
|
91
|
+
APPROVED
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**If the fix is incorrect:**
|
|
95
|
+
```
|
|
96
|
+
BUG: [describe specifically what is wrong]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Step 5: Peer Review & PR (Gate 5)
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
git push origin fix/PROJ-33-description
|
|
105
|
+
# PR title: fix: [PROJ-33] Short description
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Commit message format:
|
|
109
|
+
```
|
|
110
|
+
fix: [PROJ-33] Payment processing timeout
|
|
111
|
+
|
|
112
|
+
Root cause: API timeout too short (5s), needs at least 10s
|
|
113
|
+
Fix: Increase timeout + add retry logic
|
|
114
|
+
|
|
115
|
+
Closes PROJ-33
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Completion Checklist
|
|
121
|
+
|
|
122
|
+
- [ ] Gate 1 APPROVED — requirement doc with root cause, fix approach, impact, estimate
|
|
123
|
+
- [ ] Gate 2 APPROVED — implementation plan confirmed
|
|
124
|
+
- [ ] Gate 3 done — test reproduce bug + fix → green
|
|
125
|
+
- [ ] Gate 4 APPROVED — no regression
|
|
126
|
+
- [ ] Gate 5 done — PR merged
|