@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
package/README.md
CHANGED
|
File without changes
|
package/bin/aiflow.js
CHANGED
|
File without changes
|
package/bin/ak.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/custom/rules/naming.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,51 +1,67 @@
|
|
|
1
|
-
# Project Conventions (Override Skill Defaults)
|
|
2
|
-
|
|
3
|
-
> **MANDATORY:** These rules override ANY upstream skill default (including `writing-plans`, `generate-spec`, and all superpowers skills).
|
|
4
|
-
> Read this file before writing any output file during the Gate Workflow.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
|
13
|
-
|
|
14
|
-
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
1
|
+
# Project Conventions (Override Skill Defaults)
|
|
2
|
+
|
|
3
|
+
> **MANDATORY:** These rules override ANY upstream skill default (including `writing-plans`, `generate-spec`, and all superpowers skills).
|
|
4
|
+
> Read this file before writing any output file during the Gate Workflow.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## DEV Workflow Output Paths (`04.Coding/`)
|
|
9
|
+
|
|
10
|
+
Áp dụng cho taskType: `feature` · `bug-fix` · `refactor` · `investigation` · `documentation`.
|
|
11
|
+
|
|
12
|
+
| Output | Path | Note |
|
|
13
|
+
|--------|------|------|
|
|
14
|
+
| Requirement doc | `04.Coding/01.Requirements/[functionId]/[ticketId].md` | Gate 1 output |
|
|
15
|
+
| Implementation plan | `04.Coding/02.Plans/[functionId]/[ticketId].md` | Gate 2 output — **NOT** `docs/superpowers/plans/` |
|
|
16
|
+
| TDD Notes (test list + notes) | `04.Coding/03.TDD-Notes/[functionId]/[ticketId].md` | Gate 3 output |
|
|
17
|
+
| Self-review / Summary | `04.Coding/04.Reviews/[functionId]/[ticketId].md` | Gate 4 output |
|
|
18
|
+
| PR description | `04.Coding/05.Pull-Requests/[functionId]/[ticketId].md` | Gate 5 output |
|
|
19
|
+
| Tracker | `04.Coding/00.Overview/_Index.md` | Update mỗi gate: `F-ID \| Ticket \| Dev \| Gate \| PR` |
|
|
20
|
+
|
|
21
|
+
> **Override:** The `writing-plans` skill defaults to `docs/superpowers/plans/<filename>.md`.
|
|
22
|
+
> In this project, **always save plans to `04.Coding/02.Plans/[functionId]/[ticketId].md` instead.**
|
|
23
|
+
|
|
24
|
+
### functionId & ticketId
|
|
25
|
+
|
|
26
|
+
- `[functionId]` là mã định danh chức năng **do dự án quy định** (ví dụ `F-001_User-Login`, `AD06`, `UC-LOGIN`) — không ép format.
|
|
27
|
+
- Được xác định BẮT BUỘC ở Gate 1 Pre-flight: từ `functionId`/`screenId` trong `.aiflow/context/current.json` → suy từ file UC Spec input (nội dung hoặc đường dẫn thư mục, ví dụ `02.BA-Specs/04.UC-Specs/[functionId]/`) rồi **hỏi DEV xác nhận** → cuối cùng mới hỏi DEV cung cấp trực tiếp.
|
|
28
|
+
- KHÔNG ĐƯỢC ghi output khi chưa có functionId.
|
|
29
|
+
- `[ticketId]` lấy từ `taskId` trong `.aiflow/context/current.json` (ví dụ `TICKET-100`). Một feature có nhiều ticket → folder theo functionId, file theo ticketId.
|
|
30
|
+
|
|
31
|
+
### Legacy
|
|
32
|
+
|
|
33
|
+
- ❌ Đường dẫn cũ `plan/[ticket-id]/requirement.md`, `plan/[ticket-id]/plan.md`, `plan/[ticket-id]/summary.md` đã **DEPRECATED** — không được ghi output mới vào `plan/`.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Execution Handoff Message
|
|
38
|
+
|
|
39
|
+
When `writing-plans` skill says to announce the saved path, use the **actual path**:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
Plan complete and saved to `04.Coding/02.Plans/[functionId]/[ticketId].md`. Two execution options: ...
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Do NOT copy the hardcoded path from the skill template (`docs/superpowers/plans/`).
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Checklist Before Writing Any File
|
|
50
|
+
|
|
51
|
+
Before saving any requirement, plan, TDD-notes, review, or PR file, verify:
|
|
52
|
+
|
|
53
|
+
- [ ] `functionId` đã được xác định/xác nhận ở Gate 1 Pre-flight
|
|
54
|
+
- [ ] `[ticketId]` is read from `.aiflow/context/current.json`
|
|
55
|
+
- [ ] Output path follows the table above — NOT the skill's default path, NOT the legacy `plan/` folder
|
|
56
|
+
- [ ] Directory `04.Coding/<section>/[functionId]/` exists or will be created
|
|
57
|
+
- [ ] Tracker `04.Coding/00.Overview/_Index.md` được cập nhật sau khi gate hoàn thành
|
|
58
|
+
- [ ] Announced path in the handoff message matches the actual saved path
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Other Conventions
|
|
63
|
+
|
|
64
|
+
- **Review checklist:** `custom/rules/review-checklist.md`
|
|
65
|
+
- **Code style:** `custom/rules/code-style.md`
|
|
66
|
+
- **Naming:** `custom/rules/naming.md`
|
|
67
|
+
- **Folder structure reference:** `docs/internal/Coding-Structure.md` · `docs/internal/Project-Structure.md`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/custom/skills/ba-skills/{skill-ba-phan-tich-ban-dau-v1.md → skill-ba-initial-analysis-v1.md}
RENAMED
|
@@ -31,7 +31,7 @@ Kỹ năng này giúp Business Analyst (hoặc Agent) quét, đọc hiểu và c
|
|
|
31
31
|
- Có quy tắc nghiệp vụ (Business rules) ngầm định nào không?
|
|
32
32
|
- Luồng thay thế (Alternative flows) hoặc luồng lỗi (Exception flows) là gì?
|
|
33
33
|
- **Bước 4: Soạn dự thảo Kết quả phân tích ban đầu:**
|
|
34
|
-
Áp dụng template phân tích ban đầu (`skill-ba-
|
|
34
|
+
Áp dụng template phân tích ban đầu (`skill-ba-initial-analysis-template-v1.md`) để điền thông tin và lập bảng Gap/Assumption.
|
|
35
35
|
|
|
36
36
|
## 4. Checklist kiểm tra (Checklist for Verification)
|
|
37
37
|
- [ ] Đã xác định rõ Mục tiêu hệ thống/chức năng chưa? (Hệ thống giải quyết bài toán gì?)
|
|
@@ -41,4 +41,4 @@ Kỹ năng này giúp Business Analyst (hoặc Agent) quét, đọc hiểu và c
|
|
|
41
41
|
- [ ] Không tự tiện bổ sung các tính năng ngoài phạm vi yêu cầu của khách hàng khi chưa có thảo luận/Q&A.
|
|
42
42
|
|
|
43
43
|
## 5. Output mong đợi (Expected Output)
|
|
44
|
-
- File tài liệu phân tích ban đầu định dạng markdown, cấu trúc thống nhất dựa theo `@skill-ba-
|
|
44
|
+
- File tài liệu phân tích ban đầu định dạng markdown, cấu trúc thống nhất dựa theo `@skill-ba-initial-analysis-template-v1.md`, đặt tên theo chuẩn: `Analysis_v(n).md` trong thư mục `02.BA-Specs/01.Analysis/[functionId]/`.
|
package/custom/skills/ba-skills/{skill-ba-ve-luong-mermaid-v1.md → skill-ba-mermaid-flowchart-v1.md}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ Kỹ năng này giúp BA thiết kế các câu hỏi rõ ràng, khách quan và
|
|
|
13
13
|
## 3. Quy trình thực hiện (Step-by-step Process)
|
|
14
14
|
- **Bước 1: Chuyển đổi Gap thành câu hỏi Q&A:**
|
|
15
15
|
Từ danh sách khoảng trống phát hiện ở bước Phân tích ban đầu, chuyển mỗi dòng thành một câu hỏi Q&A cụ thể.
|
|
16
|
-
- **Bước 2: Chuẩn hóa câu hỏi theo mẫu `@skill-ba-
|
|
16
|
+
- **Bước 2: Chuẩn hóa câu hỏi theo mẫu `@skill-ba-qna-template-v1.md`:**
|
|
17
17
|
- Xác định phân vùng nghiệp vụ (Module/Screen).
|
|
18
18
|
- Trích dẫn yêu cầu hiện tại (Current Status/Requirement).
|
|
19
19
|
- Nêu rõ vấn đề mơ hồ.
|
|
@@ -31,5 +31,5 @@ Kỹ năng này giúp BA thiết kế các câu hỏi rõ ràng, khách quan và
|
|
|
31
31
|
- [ ] Đã cập nhật đúng và đầy đủ tất cả câu trả lời của khách hàng vào tài liệu phân tích chưa? (Không bỏ sót bất kỳ điểm chốt nào).
|
|
32
32
|
|
|
33
33
|
## 5. Output mong đợi (Expected Output)
|
|
34
|
-
- File danh sách câu hỏi Q&A định dạng markdown, cấu trúc thống nhất dựa theo `@skill-ba-
|
|
34
|
+
- File danh sách câu hỏi Q&A định dạng markdown, cấu trúc thống nhất dựa theo `@skill-ba-qna-template-v1.md`, đặt tên theo chuẩn: `QnA-Log_v(m).md` trong thư mục `02.BA-Specs/02.QnA/[functionId]/`.
|
|
35
35
|
- Tài liệu phân tích được cập nhật tương ứng với phiên bản mới tăng dần `(n+1)`.
|
|
File without changes
|
|
@@ -22,7 +22,7 @@ Kỹ năng này hướng dẫn BA thiết kế và hiện thực hóa giao diệ
|
|
|
22
22
|
- Sử dụng bảng màu hiện đại (tránh màu đỏ/xanh lá gốc, dùng các màu trung tính, dịu mắt phối hợp hiệu ứng hover cho các nút bấm).
|
|
23
23
|
- Đảm bảo thiết kế responsive cơ bản bằng media queries nếu cần.
|
|
24
24
|
- **Bước 4: Kiểm tra và lưu trữ:**
|
|
25
|
-
Mở file HTML trên trình duyệt để kiểm tra trực quan. Lưu vào thư mục `
|
|
25
|
+
Mở file HTML trên trình duyệt để kiểm tra trực quan. Lưu vào thư mục `02.BA-Specs/03.UI-Prototypes/[functionId]/`.
|
|
26
26
|
|
|
27
27
|
## 4. Checklist kiểm tra (Checklist for Verification)
|
|
28
28
|
- [ ] File HTML có tự chứa toàn bộ CSS không? (Không liên kết tới file CSS bên ngoài trừ font chữ hệ thống).
|
|
@@ -32,4 +32,4 @@ Kỹ năng này hướng dẫn BA thiết kế và hiện thực hóa giao diệ
|
|
|
32
32
|
- [ ] Các phần tử tương tác (Button, Link, Input) có hiệu ứng trực quan khi hover hoặc focus không?
|
|
33
33
|
|
|
34
34
|
## 5. Output mong đợi (Expected Output)
|
|
35
|
-
- Một file HTML độc lập chứa đầy đủ code HTML và CSS nội bộ, đặt tên theo chuẩn: `
|
|
35
|
+
- Một file HTML độc lập chứa đầy đủ code HTML và CSS nội bộ, đặt tên theo chuẩn: `UI-Prototype_v1.html` trong thư mục `02.BA-Specs/03.UI-Prototypes/[functionId]/`.
|
package/custom/skills/ba-skills/{skill-ba-viet-spec-uc-v1.md → skill-ba-write-uc-spec-v1.md}
RENAMED
|
@@ -23,16 +23,16 @@ Kỹ năng này giúp BA chuyển hóa toàn bộ các thông tin yêu cầu ngh
|
|
|
23
23
|
- Giá trị mặc định (Default Value).
|
|
24
24
|
- Mô tả hành vi (Description).
|
|
25
25
|
- **Bước 4: Thiết kế sơ đồ Mermaid (Activity Flow):**
|
|
26
|
-
Áp dụng kỹ năng `@skill-ba-
|
|
26
|
+
Áp dụng kỹ năng `@skill-ba-mermaid-flowchart-v1.md` để vẽ và nhúng biểu đồ Mermaid.
|
|
27
27
|
- **Bước 5: Đặc tả Business Rules (Quy tắc nghiệp vụ):**
|
|
28
|
-
Áp dụng kỹ năng `@skill-ba-
|
|
28
|
+
Áp dụng kỹ năng `@skill-ba-build-business-rules-v1.md` để viết chi tiết các điều kiện kiểm tra, validation logic và câu thông báo lỗi đi kèm.
|
|
29
29
|
|
|
30
30
|
## 4. Checklist kiểm tra (Checklist for Verification)
|
|
31
31
|
- [ ] Luồng đi (Flow) có mô tả rõ ràng sự tương tác qua lại giữa Actor và System chưa?
|
|
32
32
|
- [ ] Bảng mô tả UI Components có bị bỏ sót bất kỳ thành phần nào trên prototype HTML không?
|
|
33
33
|
- [ ] Các Business Rules (BR) đã được đánh mã số rõ ràng (BR1, BR2, BR3...) để dễ tham chiếu chưa?
|
|
34
34
|
- [ ] Mọi trường hợp báo lỗi đều có câu thông báo lỗi (Error message) đi kèm chi tiết chưa?
|
|
35
|
-
- [ ] Tài liệu có sử dụng định dạng markdown chuẩn và cấu trúc thống nhất theo mẫu `@skill-ba-template-
|
|
35
|
+
- [ ] Tài liệu có sử dụng định dạng markdown chuẩn và cấu trúc thống nhất theo mẫu `@skill-ba-uc-template-v1.md` chưa?
|
|
36
36
|
|
|
37
37
|
## 5. Output mong đợi (Expected Output)
|
|
38
|
-
- Một tài liệu đặc tả Use Case hoàn chỉnh định dạng markdown, đặt tên theo chuẩn: `
|
|
38
|
+
- Một tài liệu đặc tả Use Case hoàn chỉnh định dạng markdown, đặt tên theo chuẩn: `UC-Spec_v1.md` trong thư mục `02.BA-Specs/04.UC-Specs/[functionId]/`.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -55,7 +55,7 @@ When generating the output for a gate (e.g. `requirement.md` or `plan.md`), foll
|
|
|
55
55
|
3. If the JSON file does not exist, initialize it by writing an empty array `[]` (or `{ "comments": [] }`) to it. This ensures that the CLI verification commands do not fail due to a missing file when there are no comments.
|
|
56
56
|
|
|
57
57
|
### Step 2: Write the gate output file
|
|
58
|
-
Write the gate output file (e.g. `
|
|
58
|
+
Write the gate output file (e.g. `04.Coding/01.Requirements/[functionId]/[ticketId].md`, `04.Coding/02.Plans/[functionId]/[ticketId].md`, or `docs/ak-[project]/...`) as specified by the gate instructions.
|
|
59
59
|
|
|
60
60
|
### Step 3: Display gate pause message
|
|
61
61
|
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: generate-spec
|
|
3
|
-
description: Gate 2 — After DEV approves the requirement document (Gate 1), AI creates a detailed implementation plan using TDD approach. This is the bridge between requirement and code.
|
|
4
|
-
keywords: spec, plan, implementation, tdd, coding plan
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Implementation Plan — Gate 2
|
|
8
|
-
|
|
9
|
-
> **GATE 2: Runs after Gate 1 (requirement document) has been APPROVED by DEV.**
|
|
10
|
-
>
|
|
11
|
-
> Principle: AI uses the approved requirement document to create a detailed implementation plan with TDD steps. DEV confirms the plan before coding begins.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Conditions to Enter Gate 2
|
|
16
|
-
|
|
17
|
-
- ✅ Gate 1 APPROVED — `
|
|
18
|
-
- ✅ Requirement document includes: requirements, solution, impact analysis, estimate
|
|
19
|
-
|
|
20
|
-
## Fast Mode Output Rules (CRITICAL)
|
|
21
|
-
|
|
22
|
-
When updating `
|
|
23
|
-
- **Keep it extremely short.**
|
|
24
|
-
- Add a bullet point indicating Gate 2 plan is ready.
|
|
25
|
-
- **DO NOT copy the entire plan.md into summary.md.**
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Process
|
|
30
|
-
|
|
31
|
-
### Step 1: Read Approved Requirement
|
|
32
|
-
|
|
33
|
-
Read `
|
|
34
|
-
|
|
35
|
-
### Step 2: Create Implementation Plan
|
|
36
|
-
|
|
37
|
-
**INVOKE:** `superpowers:writing-plans`
|
|
38
|
-
|
|
39
|
-
Create a detailed step-by-step plan based on the requirement document:
|
|
40
|
-
|
|
41
|
-
```markdown
|
|
42
|
-
## Implementation Plan
|
|
43
|
-
|
|
44
|
-
### Task Breakdown (TDD Order)
|
|
45
|
-
|
|
46
|
-
| # | Task | File | Test First? | Dependencies |
|
|
47
|
-
|---|------|------|-------------|--------------|
|
|
48
|
-
| 1 | Write test for [scenario] | [test file] | ✅ | None |
|
|
49
|
-
| 2 | Implement [component] | [source file] | — | Task 1 |
|
|
50
|
-
| 3 | Write test for [scenario] | [test file] | ✅ | Task 2 |
|
|
51
|
-
| ... | ... | ... | ... | ... |
|
|
52
|
-
|
|
53
|
-
### Test Commands
|
|
54
|
-
```bash
|
|
55
|
-
[specific test commands for this project]
|
|
56
|
-
```
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Step 3: GATE 2 — Present Plan & Start Coding
|
|
60
|
-
|
|
61
|
-
```markdown
|
|
62
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
63
|
-
⏸️ GATE 2: IMPLEMENTATION PLAN READY
|
|
64
|
-
|
|
65
|
-
Based on the approved requirement document, here is the coding plan:
|
|
66
|
-
|
|
67
|
-
[Show task breakdown summary]
|
|
68
|
-
|
|
69
|
-
**Total tasks:** [N]
|
|
70
|
-
**Test-first tasks:** [N]
|
|
71
|
-
|
|
72
|
-
Ready to start coding?
|
|
73
|
-
Type **"APPROVED"** to begin implementation.
|
|
74
|
-
Type feedback to adjust the plan.
|
|
75
|
-
|
|
76
|
-
⚠️ I will NOT write code until I receive "APPROVED".
|
|
77
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Step 4: Handle Feedback
|
|
81
|
-
|
|
82
|
-
**If DEV provides feedback:**
|
|
83
|
-
→ Update the implementation plan
|
|
84
|
-
→ Re-display GATE 2 prompt
|
|
85
|
-
|
|
86
|
-
**If DEV types "APPROVED":**
|
|
87
|
-
→ Proceed to Gate 3 (Code Generation with TDD)
|
|
88
|
-
→ Follow the task breakdown order exactly
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## Mandatory Rules
|
|
93
|
-
|
|
94
|
-
- ❌ **DO NOT** start coding until "APPROVED" is received for the plan
|
|
95
|
-
- ❌ **DO NOT** deviate from the approved requirement document
|
|
96
|
-
- ✅ **MUST** use TDD order: test first, then implementation
|
|
97
|
-
- ✅ **MUST** invoke `superpowers:writing-plans` for plan creation
|
|
98
|
-
- ✅ **MUST** show clear task breakdown before getting approval
|
|
99
|
-
- ❌ **DO NOT** include `git commit`, `git add`, or any git operations in the plan. The developer manages commits manually.
|
|
1
|
+
---
|
|
2
|
+
name: generate-spec
|
|
3
|
+
description: Gate 2 — After DEV approves the requirement document (Gate 1), AI creates a detailed implementation plan using TDD approach. This is the bridge between requirement and code.
|
|
4
|
+
keywords: spec, plan, implementation, tdd, coding plan
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Implementation Plan — Gate 2
|
|
8
|
+
|
|
9
|
+
> **GATE 2: Runs after Gate 1 (requirement document) has been APPROVED by DEV.**
|
|
10
|
+
>
|
|
11
|
+
> Principle: AI uses the approved requirement document to create a detailed implementation plan with TDD steps. DEV confirms the plan before coding begins.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Conditions to Enter Gate 2
|
|
16
|
+
|
|
17
|
+
- ✅ Gate 1 APPROVED — `04.Coding/01.Requirements/[functionId]/[ticketId].md` reviewed and approved by DEV
|
|
18
|
+
- ✅ Requirement document includes: requirements, solution, impact analysis, estimate
|
|
19
|
+
|
|
20
|
+
## Fast Mode Output Rules (CRITICAL)
|
|
21
|
+
|
|
22
|
+
When updating `04.Coding/04.Reviews/[functionId]/[ticketId].md` in **fast mode**:
|
|
23
|
+
- **Keep it extremely short.**
|
|
24
|
+
- Add a bullet point indicating Gate 2 plan is ready.
|
|
25
|
+
- **DO NOT copy the entire plan.md into summary.md.**
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Process
|
|
30
|
+
|
|
31
|
+
### Step 1: Read Approved Requirement
|
|
32
|
+
|
|
33
|
+
Read `04.Coding/01.Requirements/[functionId]/[ticketId].md` — use the chosen approach, file list, and testing plan as input.
|
|
34
|
+
|
|
35
|
+
### Step 2: Create Implementation Plan
|
|
36
|
+
|
|
37
|
+
**INVOKE:** `superpowers:writing-plans`
|
|
38
|
+
|
|
39
|
+
Create a detailed step-by-step plan based on the requirement document:
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
## Implementation Plan
|
|
43
|
+
|
|
44
|
+
### Task Breakdown (TDD Order)
|
|
45
|
+
|
|
46
|
+
| # | Task | File | Test First? | Dependencies |
|
|
47
|
+
|---|------|------|-------------|--------------|
|
|
48
|
+
| 1 | Write test for [scenario] | [test file] | ✅ | None |
|
|
49
|
+
| 2 | Implement [component] | [source file] | — | Task 1 |
|
|
50
|
+
| 3 | Write test for [scenario] | [test file] | ✅ | Task 2 |
|
|
51
|
+
| ... | ... | ... | ... | ... |
|
|
52
|
+
|
|
53
|
+
### Test Commands
|
|
54
|
+
```bash
|
|
55
|
+
[specific test commands for this project]
|
|
56
|
+
```
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Step 3: GATE 2 — Present Plan & Start Coding
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
63
|
+
⏸️ GATE 2: IMPLEMENTATION PLAN READY
|
|
64
|
+
|
|
65
|
+
Based on the approved requirement document, here is the coding plan:
|
|
66
|
+
|
|
67
|
+
[Show task breakdown summary]
|
|
68
|
+
|
|
69
|
+
**Total tasks:** [N]
|
|
70
|
+
**Test-first tasks:** [N]
|
|
71
|
+
|
|
72
|
+
Ready to start coding?
|
|
73
|
+
Type **"APPROVED"** to begin implementation.
|
|
74
|
+
Type feedback to adjust the plan.
|
|
75
|
+
|
|
76
|
+
⚠️ I will NOT write code until I receive "APPROVED".
|
|
77
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Step 4: Handle Feedback
|
|
81
|
+
|
|
82
|
+
**If DEV provides feedback:**
|
|
83
|
+
→ Update the implementation plan
|
|
84
|
+
→ Re-display GATE 2 prompt
|
|
85
|
+
|
|
86
|
+
**If DEV types "APPROVED":**
|
|
87
|
+
→ Proceed to Gate 3 (Code Generation with TDD)
|
|
88
|
+
→ Follow the task breakdown order exactly
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Mandatory Rules
|
|
93
|
+
|
|
94
|
+
- ❌ **DO NOT** start coding until "APPROVED" is received for the plan
|
|
95
|
+
- ❌ **DO NOT** deviate from the approved requirement document
|
|
96
|
+
- ✅ **MUST** use TDD order: test first, then implementation
|
|
97
|
+
- ✅ **MUST** invoke `superpowers:writing-plans` for plan creation
|
|
98
|
+
- ✅ **MUST** show clear task breakdown before getting approval
|
|
99
|
+
- ❌ **DO NOT** include `git commit`, `git add`, or any git operations in the plan. The developer manages commits manually.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -30,11 +30,13 @@ Check `mode` in `.aiflow/context/current.json` before starting:
|
|
|
30
30
|
|
|
31
31
|
## Fast Mode Output Rules (CRITICAL)
|
|
32
32
|
|
|
33
|
-
When creating `
|
|
33
|
+
When creating `04.Coding/04.Reviews/[functionId]/[ticketId].md` during Gate 1:
|
|
34
34
|
- You must create the `summary.md` file after Gate 1 is APPROVED, to track session progress.
|
|
35
35
|
- Keep `summary.md` concise. Only include short bullet points tracking Gates.
|
|
36
36
|
- Do not write verbose implementation details in `summary.md` at Gate 1.
|
|
37
37
|
|
|
38
|
+
> **Path variables:** `[functionId]` (mã chức năng do dự án quy định, ví dụ `F-001_User-Login`, `AD06`) và `[ticketId]` (= `taskId` trong `.aiflow/context/current.json`) được xác định ở **Gate 1 Pre-flight Bước 0** của workflow — ưu tiên lấy từ context, sau đó suy từ file UC Spec input (nội dung/đường dẫn) rồi hỏi DEV xác nhận. KHÔNG ghi bất kỳ file output nào khi chưa có functionId.
|
|
39
|
+
|
|
38
40
|
0. **Pre-flight — Sync with remote** (before reading any source file):
|
|
39
41
|
- Run `git status --porcelain` to check for uncommitted changes.
|
|
40
42
|
- Working tree clean → run `git pull --ff-only` to fetch the latest code.
|
|
@@ -46,7 +48,7 @@ When creating `plan/[ticket-id]/summary.md` during Gate 1:
|
|
|
46
48
|
3. Q&A: Ask at most **ONE** question if there is a blocking ambiguity.
|
|
47
49
|
If the ticket + source file names make intent clear → skip Q&A entirely.
|
|
48
50
|
Wait for answer before writing the requirement doc.
|
|
49
|
-
4. Output `
|
|
51
|
+
4. Output `04.Coding/01.Requirements/[functionId]/[ticketId].md` with **3 sections only**:
|
|
50
52
|
|
|
51
53
|
```markdown
|
|
52
54
|
# Requirement: [Ticket ID] — [Title]
|
|
@@ -152,7 +154,7 @@ After the developer confirms the design direction (Step 2), extend with:
|
|
|
152
154
|
|
|
153
155
|
### Step 4: Write Requirement Document
|
|
154
156
|
|
|
155
|
-
Save to `
|
|
157
|
+
Save to `04.Coding/01.Requirements/[functionId]/[ticketId].md`:
|
|
156
158
|
|
|
157
159
|
```markdown
|
|
158
160
|
# Requirement: [Ticket ID] — [Title]
|
|
@@ -282,7 +284,7 @@ Save to `plan/[ticket-id]/requirement.md`:
|
|
|
282
284
|
⏸️ GATE 1: REQUIREMENT DOCUMENT READY
|
|
283
285
|
|
|
284
286
|
Ticket: [ticket-id] — [title]
|
|
285
|
-
File:
|
|
287
|
+
File: 04.Coding/01.Requirements/[functionId]/[ticketId].md
|
|
286
288
|
|
|
287
289
|
Summary:
|
|
288
290
|
Type: [feature / bug-fix / refactor]
|
|
@@ -330,5 +332,5 @@ Please review the requirement document.
|
|
|
330
332
|
- ❌ **DO NOT** skip impact analysis and effort estimate
|
|
331
333
|
- ✅ **MUST** run `git status` + `git pull --ff-only` (Pre-flight) before reading source code, when working tree is clean
|
|
332
334
|
- ✅ **MUST** read source code before Q&A begins
|
|
333
|
-
- ✅ **MUST** save `
|
|
335
|
+
- ✅ **MUST** save `04.Coding/01.Requirements/[functionId]/[ticketId].md`
|
|
334
336
|
- ✅ **MUST** display Gate 1 prompt and wait for `APPROVED`
|
|
File without changes
|
|
File without changes
|