@relipa/ai-flow-kit 0.1.4-beta.0 → 0.1.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +185 -136
- 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 +0 -0
- 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 +5 -34
- 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 +29 -105
- package/custom/skills/generate-spec/SKILL.md +0 -0
- 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 -8
- package/custom/skills/generate-testcase/templates/testcase.md +50 -59
- 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/report-customer/SKILL.md +0 -0
- package/custom/skills/retest-orchestration/SKILL.md +0 -0
- package/custom/skills/review-plan/SKILL.md +0 -0
- package/custom/skills/script-sync/SKILL.md +0 -0
- package/custom/skills/test-analysis/SKILL.md +0 -4
- 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} +50 -59
- 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 -95
- package/custom/templates/shared/create-testcase-workflow.md +65 -75
- package/custom/templates/shared/gate-workflow.md +3 -3
- package/custom/templates/shared/ml-gate-workflow.md +0 -0
- package/custom/templates/spring-boot.md +0 -0
- package/custom/templates/tools/claude.md +0 -0
- package/custom/templates/tools/copilot.md +0 -0
- package/custom/templates/tools/cursor.md +0 -0
- package/custom/templates/tools/gemini.md +0 -0
- package/custom/templates/tools/generic.md +0 -0
- package/custom/templates/vue-nuxt.md +0 -0
- package/docs/common/AIFLOW.md +0 -0
- package/docs/common/CHANGELOG.md +75 -9
- package/docs/common/QUICK_START.md +0 -0
- package/docs/common/ai-integration.md +0 -0
- 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 +0 -0
- package/docs/common/workflows/feature.md +0 -0
- package/docs/common/workflows/figma.md +0 -0
- package/docs/common/workflows/impact-analysis.md +0 -0
- package/docs/common/workflows/investigation.md +0 -0
- package/docs/common/workflows/refactor.md +0 -0
- package/docs/project/ARCHITECTURE.md +0 -0
- package/index.js +0 -0
- package/package.json +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 +1 -0
- 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 +83 -46
- package/scripts/scaffold-playwright.js +0 -0
- package/scripts/task.js +0 -0
- package/scripts/telemetry/cli.js +0 -0
- package/scripts/telemetry/config.js +0 -0
- package/scripts/telemetry/crypto.js +0 -0
- package/scripts/telemetry/flush.js +0 -0
- package/scripts/telemetry/record.js +0 -0
- package/scripts/update.js +0 -0
- package/scripts/use.js +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
|
@@ -10,18 +10,21 @@ Developers only need a single command to load ticket context → AI automaticall
|
|
|
10
10
|
|
|
11
11
|
| Problem | Solution |
|
|
12
12
|
|--------|-----------|
|
|
13
|
-
| Multi-step, complex installation | `
|
|
14
|
-
| Need long prompts for AI to understand | `
|
|
13
|
+
| Multi-step, complex installation | `ak init` — 1 command to set up everything |
|
|
14
|
+
| Need long prompts for AI to understand | `ak use PROJ-33` — AI automatically reads from ticket |
|
|
15
15
|
| Too many templates, not sure which to use | AI auto-detects task type and selects the appropriate skill |
|
|
16
16
|
| New plugins (superpowers, MCP...) require manual setup | Package auto-sets up hooks, skills, and MCP on init |
|
|
17
17
|
| Missing investigation / bug reproduction flow | Skill `investigate-bug` (inherits systematic-debugging) |
|
|
18
18
|
| Missing impact analysis flow | Skill `impact-analysis` |
|
|
19
19
|
| Hard to resume tasks | **State Resumption**: Unified `plan/` docs, `task-summary.md` progress tracking, and intelligent session continuity (automatic Gate 3 resumption). |
|
|
20
|
+
| BA writing specs without a structured workflow | `ak use PROJ-33` (taskType: spec) → AI follows 4-gate BA workflow (Q&A → Prototype → UC Spec) |
|
|
21
|
+
| QA creating test cases manually without structure | `ak use PROJ-33` (taskType: testcase) → AI follows 4-gate QA workflow (Analysis → Scenarios → Detailed TCs → Review) |
|
|
22
|
+
| Gate transitions happen without formal approval | Gate review protocol — each gate requires explicit `APPROVED` before AI advances to the next gate |
|
|
20
23
|
|
|
21
24
|
## Documentation & Guides
|
|
22
25
|
|
|
23
26
|
> [!TIP]
|
|
24
|
-
> After running `
|
|
27
|
+
> After running `ak init`, documentation files are automatically copied to `.aiflow/docs/` in your project for easy access.
|
|
25
28
|
|
|
26
29
|
- **[Quick Start Guide](https://github.com/example/ai-flow-kit/blob/main/docs/common/QUICK_START.md)** — Step-by-step instructions for developers.
|
|
27
30
|
- **[Full Workflow (5 Gates)](https://github.com/example/ai-flow-kit/blob/main/docs/common/AIFLOW.md)** — In-depth look at the Gate process.
|
|
@@ -31,14 +34,14 @@ Developers only need a single command to load ticket context → AI automaticall
|
|
|
31
34
|
|
|
32
35
|
---
|
|
33
36
|
|
|
34
|
-
##
|
|
37
|
+
## Coding Flow
|
|
35
38
|
|
|
36
39
|
```
|
|
37
40
|
PM writes ticket on Backlog/Jira
|
|
38
41
|
│
|
|
39
42
|
▼
|
|
40
43
|
⛩️ GATE 1 — AI Analyze Requirement [AI + DEV]
|
|
41
|
-
|
|
44
|
+
ak use PROJ-33 → claude
|
|
42
45
|
AI loads ticket + reads source code
|
|
43
46
|
AI asks clarifying questions (max 1 in Fast mode)
|
|
44
47
|
AI outputs: plan/PROJ-33/requirement.md (Lite in Fast mode)
|
|
@@ -73,14 +76,15 @@ PM writes ticket on Backlog/Jira
|
|
|
73
76
|
## Execute Test Flow
|
|
74
77
|
|
|
75
78
|
```
|
|
76
|
-
|
|
79
|
+
ak execute PROJ-44 (or ./testcases.md or ak execute)
|
|
77
80
|
│
|
|
78
81
|
▼
|
|
79
82
|
⛩️ GATE 1 — Pre-flight & Work Plan [AI + QA]
|
|
80
83
|
Parse TC file → verify ak-test/{repo}/ exists
|
|
81
84
|
Check BASE_URL env var + playwright.config.ts
|
|
82
85
|
Create execution work plan
|
|
83
|
-
|
|
86
|
+
QA reviews → "APPROVED"
|
|
87
|
+
│ APPROVED
|
|
84
88
|
▼
|
|
85
89
|
⛩️ GATE 2 — Script Sync [AI]
|
|
86
90
|
Hash-based TC↔script sync
|
|
@@ -88,69 +92,107 @@ aiflow execute PROJ-44 (or ./testcases.md or aiflow execute)
|
|
|
88
92
|
Uses Playwright MCP for selectors — never fabricates
|
|
89
93
|
│ Scripts synced
|
|
90
94
|
▼
|
|
91
|
-
⛩️ GATE 3 — Execute & Evidence [AI]
|
|
95
|
+
⛩️ GATE 3 — Execute & Evidence [AI + QA]
|
|
92
96
|
Run: npx playwright test
|
|
93
97
|
Organize evidence per run-{N}/: screenshots, trace.zip, result.md
|
|
94
98
|
Auto-draft bug files for failed TCs
|
|
95
99
|
Support RETEST: [TC_ID] loop
|
|
96
|
-
|
|
100
|
+
QA reviews → "APPROVED"
|
|
101
|
+
│ APPROVED
|
|
97
102
|
▼
|
|
98
103
|
⛩️ GATE 4 — Report & Bug Logging [AI + QA]
|
|
99
104
|
Generate testreport.md with Go/No-Go recommendation
|
|
100
105
|
Log each failed TC to Jira/Backlog — interactive confirm per bug
|
|
106
|
+
QA reviews → "APPROVED"
|
|
101
107
|
│
|
|
102
108
|
▼
|
|
103
109
|
DONE
|
|
104
110
|
```
|
|
105
111
|
|
|
112
|
+
> **Entry points:** `ak execute PROJ-44` (from ticket) · `ak execute ./testcases/AD10.md` (from file) · `ak execute` (manual — AI asks for TC file path)
|
|
113
|
+
|
|
106
114
|
---
|
|
107
115
|
|
|
108
|
-
##
|
|
116
|
+
## Create Spec Flow
|
|
109
117
|
|
|
110
|
-
|
|
118
|
+
```
|
|
119
|
+
ak use PROJ-33 (taskType: spec) → claude
|
|
120
|
+
│
|
|
121
|
+
▼
|
|
122
|
+
⛩️ GATE 1 — Phân tích Yêu cầu Ban đầu [AI + BA]
|
|
123
|
+
AI đọc ticket, phân tích yêu cầu, phân loại Facts vs Assumptions
|
|
124
|
+
AI phát hiện Gaps và tạo danh sách câu hỏi Q&A cần làm rõ
|
|
125
|
+
BA review Q&A → "APPROVED"
|
|
126
|
+
│ APPROVED
|
|
127
|
+
▼
|
|
128
|
+
⛩️ GATE 2 — Q&A Loop & Confirm [AI + BA]
|
|
129
|
+
AI cập nhật phân tích theo từng câu trả lời của BA
|
|
130
|
+
AI re-check Q&A đến khi tất cả được xác nhận (Confirmed)
|
|
131
|
+
BA xác nhận toàn bộ Q&A → "APPROVED"
|
|
132
|
+
│ APPROVED
|
|
133
|
+
▼
|
|
134
|
+
⛩️ GATE 3 — Prototype Design [AI + BA]
|
|
135
|
+
AI tạo HTML/CSS prototype cho các màn hình chính
|
|
136
|
+
BA review UI flow → "APPROVED"
|
|
137
|
+
│ APPROVED
|
|
138
|
+
▼
|
|
139
|
+
⛩️ GATE 4 — UC Spec hoàn chỉnh [AI + BA]
|
|
140
|
+
AI tạo đầy đủ UC Spec document (flows, business rules, validations)
|
|
141
|
+
BA review → "APPROVED"
|
|
142
|
+
│
|
|
143
|
+
▼
|
|
144
|
+
DONE
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
> **Entry point:** `ak use PROJ-33` → chọn taskType **"spec"** trong danh sách — AI tự động khởi chạy BA workflow.
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Create Testcase Flow
|
|
111
152
|
|
|
112
153
|
```
|
|
113
|
-
|
|
154
|
+
ak use PROJ-33 (taskType: testcase) → claude
|
|
114
155
|
│
|
|
115
156
|
▼
|
|
116
|
-
⛩️ GATE 1 —
|
|
117
|
-
|
|
118
|
-
AI
|
|
119
|
-
AI
|
|
120
|
-
|
|
121
|
-
│
|
|
157
|
+
⛩️ GATE 1 — Phân tích Yêu cầu & Rủi ro [AI + QA]
|
|
158
|
+
AI đọc ticket/spec, phân tích scope và rủi ro
|
|
159
|
+
AI đọc source code để tìm validation rules và business logic ẩn
|
|
160
|
+
AI đặt câu hỏi làm rõ yêu cầu
|
|
161
|
+
QA review → "APPROVED"
|
|
162
|
+
│ APPROVED
|
|
122
163
|
▼
|
|
123
|
-
⛩️ GATE 2 —
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
│
|
|
164
|
+
⛩️ GATE 2 — Xây dựng Scenarios & Checklist [AI + QA]
|
|
165
|
+
AI generate checklist theo nhóm (Functional, Non-functional, Data, Regression)
|
|
166
|
+
AI kiểm tra Dev Artifacts (PR diff) để bổ sung regression TCs
|
|
167
|
+
AI output: test-plan/checklist.md
|
|
168
|
+
QA review → "APPROVED"
|
|
169
|
+
│ APPROVED
|
|
129
170
|
▼
|
|
130
|
-
⛩️ GATE 3 —
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
171
|
+
⛩️ GATE 3 — Thiết kế Test Case chi tiết [AI + QA]
|
|
172
|
+
AI tạo bảng test case đầy đủ (TC_ID, Steps, Expected Result)
|
|
173
|
+
AI áp dụng kỹ thuật: BVA, Equivalence Partitioning, Decision Table
|
|
174
|
+
AI output: test-plan/test-cases/
|
|
175
|
+
QA review → "APPROVED"
|
|
176
|
+
│ APPROVED
|
|
135
177
|
▼
|
|
136
|
-
⛩️ GATE 4 —
|
|
137
|
-
AI
|
|
138
|
-
AI
|
|
139
|
-
QA review →
|
|
178
|
+
⛩️ GATE 4 — Review & Tối ưu [AI + QA]
|
|
179
|
+
AI review coverage, loại bỏ duplicate, bổ sung edge cases còn thiếu
|
|
180
|
+
AI export final test case set: test-plan/test-cases/final-testcases.md
|
|
181
|
+
QA review → "APPROVED"
|
|
140
182
|
│
|
|
141
183
|
▼
|
|
142
184
|
DONE
|
|
143
185
|
```
|
|
144
186
|
|
|
145
|
-
> **Entry
|
|
187
|
+
> **Entry point:** `ak use PROJ-33` → chọn taskType **"testcase"** trong danh sách — AI tự động khởi chạy QA workflow.
|
|
146
188
|
|
|
147
189
|
---
|
|
148
190
|
|
|
149
191
|
## Installation
|
|
150
192
|
|
|
151
193
|
```bash
|
|
152
|
-
# Stable version
|
|
153
|
-
npm install -g @relipa/ai-flow-kit
|
|
194
|
+
# Stable version (latest)
|
|
195
|
+
npm install -g @relipa/ai-flow-kit@latest
|
|
154
196
|
|
|
155
197
|
# Beta version (recommend for newest features)
|
|
156
198
|
npm install -g @relipa/ai-flow-kit@beta
|
|
@@ -165,32 +207,40 @@ npm uninstall -g @relipa/ai-flow-kit
|
|
|
165
207
|
|
|
166
208
|
| Command | Description |
|
|
167
209
|
|---------|-------------|
|
|
168
|
-
| `
|
|
169
|
-
| `
|
|
170
|
-
| `
|
|
171
|
-
| `
|
|
172
|
-
| `
|
|
173
|
-
| `
|
|
174
|
-
| `
|
|
175
|
-
| `
|
|
176
|
-
| `
|
|
177
|
-
| `
|
|
178
|
-
|
|
179
|
-
|
|
210
|
+
| `ak init` | Setup framework, adapters, and multi-AI rules. |
|
|
211
|
+
| `ak use <ticket...>` | Load context from one or more tickets/files. First target is primary; rest become supplementary. |
|
|
212
|
+
| `ak execute <target>` | **QA:** Execute test cases — load TC file, sync Playwright scripts, run and collect evidence. |
|
|
213
|
+
| `ak fetch-links <url>` | Fetch a Backlog/Jira link and print SupplementaryContext JSON (used by AI at runtime). |
|
|
214
|
+
| `ak task` | Manage multiple tasks — pause, switch, resume. |
|
|
215
|
+
| `ak task next` | Finalize gate approval and prepare for fresh session. |
|
|
216
|
+
| `ak prompt` | Generate tool-optimized prompts (`--env cursor`). |
|
|
217
|
+
| `ak sync-skills` | Manually synchronize AI Instruction files with local custom skills. |
|
|
218
|
+
| `ak telemetry` | Manage telemetry tracking (enable/disable/status). |
|
|
219
|
+
| `ak guide` | View integrated multi-AI integration guide. |
|
|
220
|
+
| `ak doctor` | Check setup health and token savings status. |
|
|
221
|
+
| `ak update` | Update skills, rules, and templates to the latest version. |
|
|
222
|
+
| `ak remove` | Remove ai-flow-kit scaffolding from project. |
|
|
223
|
+
| `ak detect "<description>"` | Auto-detect task type from a description string. |
|
|
224
|
+
| `ak validate <file>` | Validate code output against team rules. |
|
|
225
|
+
| `ak memory` | Save/search team knowledge base. |
|
|
226
|
+
| `ak context` | Manage saved contexts (show/list/save/load/delete/clear). |
|
|
227
|
+
| `ak gate <n> start\|approved` | Log gate transitions — called automatically by AI. |
|
|
228
|
+
|
|
229
|
+
### `ak init`
|
|
180
230
|
|
|
181
231
|
Initial setup for the project. Run once per project.
|
|
182
232
|
|
|
183
233
|
```bash
|
|
184
234
|
# Single framework + adapter
|
|
185
|
-
|
|
235
|
+
ak init --framework spring-boot --adapter backlog
|
|
186
236
|
|
|
187
237
|
# Enable token savings tools
|
|
188
|
-
|
|
189
|
-
#
|
|
190
|
-
#
|
|
238
|
+
ak init --with-rtk # RTK: compress bash outputs (60–90% reduction)
|
|
239
|
+
# ak init --with-gitnexus # GitNexus: code intelligence (waits for index)
|
|
240
|
+
# ak init --with-gitnexus --no-wait # GitNexus: index in background
|
|
191
241
|
|
|
192
242
|
# Multiple frameworks and adapters
|
|
193
|
-
|
|
243
|
+
ak init --framework spring-boot,reactjs --adapter backlog,jira
|
|
194
244
|
```
|
|
195
245
|
|
|
196
246
|
**What gets automatically set up:**
|
|
@@ -218,37 +268,37 @@ aiflow init --framework spring-boot,reactjs --adapter backlog,jira
|
|
|
218
268
|
|
|
219
269
|
---
|
|
220
270
|
|
|
221
|
-
### `
|
|
271
|
+
### `ak execute <target>`
|
|
222
272
|
|
|
223
273
|
Execute test cases from a Backlog/Jira ticket, a TC file, or manually. The AI syncs Playwright scripts, runs them, collects evidence, and generates a test report.
|
|
224
274
|
|
|
225
275
|
```bash
|
|
226
276
|
# From a ticket (taskType must be "execute")
|
|
227
|
-
|
|
277
|
+
ak execute PROJ-44
|
|
228
278
|
|
|
229
279
|
# From a TC file directly
|
|
230
|
-
|
|
280
|
+
ak execute ./testcases/AD10.md
|
|
231
281
|
|
|
232
282
|
# Manual — AI asks for TC file path
|
|
233
|
-
|
|
283
|
+
ak execute
|
|
234
284
|
```
|
|
235
285
|
|
|
236
286
|
**What happens (4-gate Execute Flow):**
|
|
237
|
-
1. **Gate 1 — Pre-flight:** Parse TC file, verify `ak-test/{repo}/` exists, check `BASE_URL` and `playwright.config.ts`
|
|
287
|
+
1. **Gate 1 — Pre-flight:** Parse TC file, verify `ak-test/{repo}/` exists, check `BASE_URL` and `playwright.config.ts` — QA reviews → `APPROVED`
|
|
238
288
|
2. **Gate 2 — Script Sync:** Hash-based TC↔script sync — gen new, update changed, skip unchanged (never fabricates selectors — uses Playwright MCP)
|
|
239
|
-
3. **Gate 3 — Execute & Evidence:** Run Playwright, organize evidence per `run-{N}/`, update TC file R1/R2 columns
|
|
240
|
-
4. **Gate 4 — Report & Bug Logging:** Generate `testreport.md`, ask per-bug Jira confirmation
|
|
289
|
+
3. **Gate 3 — Execute & Evidence:** Run Playwright, organize evidence per `run-{N}/`, update TC file R1/R2 columns — QA reviews → `APPROVED`
|
|
290
|
+
4. **Gate 4 — Report & Bug Logging:** Generate `testreport.md`, ask per-bug Jira confirmation — QA reviews → `APPROVED`
|
|
241
291
|
|
|
242
292
|
> **Multi-AI:** Works with Claude, Gemini, Cursor, Copilot — the execute-flow skill is loaded via `ak init`/`ak up`.
|
|
243
293
|
|
|
244
294
|
---
|
|
245
295
|
|
|
246
|
-
### `
|
|
296
|
+
### `ak sync-skills`
|
|
247
297
|
|
|
248
298
|
Synchronize AI instruction files (`CLAUDE.md`, `GEMINI.md`, etc.) and Skills without upgrading the package version.
|
|
249
299
|
|
|
250
300
|
```bash
|
|
251
|
-
|
|
301
|
+
ak sync-skills
|
|
252
302
|
```
|
|
253
303
|
|
|
254
304
|
**Features:**
|
|
@@ -258,59 +308,59 @@ aiflow sync-skills
|
|
|
258
308
|
|
|
259
309
|
---
|
|
260
310
|
|
|
261
|
-
### `
|
|
311
|
+
### `ak use <ticket...>`
|
|
262
312
|
|
|
263
313
|
Load ticket context into `.aiflow/context/current.json`. Accepts **one or more targets** (ticket ID, Backlog/Jira URL, or local file). The first target becomes the **primary context**; any additional targets are appended as **`supplementaryContext[]`** for AI to read alongside the primary.
|
|
264
314
|
|
|
265
315
|
```bash
|
|
266
316
|
# Single target (backward compatible)
|
|
267
|
-
|
|
268
|
-
|
|
317
|
+
ak use PROJ-33
|
|
318
|
+
ak use https://mycompany.backlog.com/view/PROJ-33
|
|
269
319
|
|
|
270
320
|
# Multiple targets — primary + supplementary
|
|
271
|
-
|
|
321
|
+
ak use PROJ-33 PROJ-10 docs/arch.md
|
|
272
322
|
# PROJ-33 drives Gate 1; PROJ-10 + docs/arch.md become supplementary context
|
|
273
323
|
|
|
274
324
|
# Backlog / Jira ticket
|
|
275
|
-
|
|
325
|
+
ak use PROJ-123
|
|
276
326
|
|
|
277
327
|
# Comments
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
328
|
+
ak use PROJ-33 --with-comments
|
|
329
|
+
ak use PROJ-33 --comments-last 5
|
|
330
|
+
ak use PROJ-33 --comments-from 3
|
|
281
331
|
|
|
282
332
|
# Manual input
|
|
283
|
-
|
|
333
|
+
ak use --manual
|
|
284
334
|
|
|
285
335
|
# Load from local file (JSON or plain text)
|
|
286
|
-
|
|
336
|
+
ak use --file task.md # Auto-generates taskId from filename & prompts for taskType
|
|
287
337
|
|
|
288
338
|
# Modes (Fast is default)
|
|
289
|
-
|
|
290
|
-
|
|
339
|
+
ak use PROJ-33 # Fast Mode: skip Q&A, target < 5 min
|
|
340
|
+
ak use PROJ-33 --full # Full Mode: deep analysis with Q&A
|
|
291
341
|
|
|
292
342
|
# Save with custom name
|
|
293
|
-
|
|
343
|
+
ak use PROJ-33 --save sprint-42-bug
|
|
294
344
|
```
|
|
295
345
|
|
|
296
346
|
> **New in v0.1.0 — Auto Link Resolution:** When the primary ticket description contains Backlog/Jira URLs, `ak use` automatically fetches them and stores results in `supplementaryContext[]`. Comment links (`#comment-456` or `?focusedCommentId=456`) fetch **only that comment**. Capped at 5 auto-resolved links per `use` to keep loads fast.
|
|
297
347
|
|
|
298
348
|
---
|
|
299
349
|
|
|
300
|
-
### `
|
|
350
|
+
### `ak fetch-links <url>`
|
|
301
351
|
|
|
302
352
|
Fetch a single Backlog/Jira link and print a `SupplementaryContext` JSON object to stdout. Intended for AI runtime use inside the `read-study-requirement` skill when a link is found in the ticket description that wasn't already resolved at `use` time.
|
|
303
353
|
|
|
304
354
|
```bash
|
|
305
355
|
# Backlog ticket → full ticket JSON
|
|
306
|
-
|
|
356
|
+
ak fetch-links "https://company.backlog.com/view/PROJ-10"
|
|
307
357
|
|
|
308
358
|
# Backlog comment → that single comment only
|
|
309
|
-
|
|
359
|
+
ak fetch-links "https://company.backlog.com/view/PROJ-10#comment-456"
|
|
310
360
|
|
|
311
361
|
# Jira ticket / comment
|
|
312
|
-
|
|
313
|
-
|
|
362
|
+
ak fetch-links "https://company.atlassian.net/browse/PROJ-10"
|
|
363
|
+
ak fetch-links "https://company.atlassian.net/browse/PROJ-10?focusedCommentId=789"
|
|
314
364
|
```
|
|
315
365
|
|
|
316
366
|
Output schema:
|
|
@@ -333,47 +383,47 @@ Exits non-zero with a stderr message if the URL is not a recognised Backlog/Jira
|
|
|
333
383
|
|
|
334
384
|
---
|
|
335
385
|
|
|
336
|
-
### `
|
|
386
|
+
### `ak task`
|
|
337
387
|
|
|
338
388
|
Manage multiple tasks — pause a task, switch to another, and resume later while keeping full progress.
|
|
339
389
|
|
|
340
390
|
```bash
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
391
|
+
ak task status # show active task and pending tasks
|
|
392
|
+
ak task list # list all saved tasks
|
|
393
|
+
ak task pause # pause current task (saves context + gate progress)
|
|
394
|
+
ak task pause --note "waiting for API spec" # pause with a note
|
|
395
|
+
ak task switch PROJ-99 # pause current + switch to another task
|
|
396
|
+
ak task resume PROJ-33 # resume a paused task (restores context + gate state)
|
|
397
|
+
ak task reset PROJ-33 # reset to Gate 1 (keeps ticket context, clears progress)
|
|
398
|
+
ak task remove PROJ-33 # permanently delete all saved data for the task
|
|
399
|
+
ak task next # approve current gate + prepare for fresh session
|
|
400
|
+
ak task next --ticket PROJ-33 # same, but specify ticket explicitly
|
|
351
401
|
```
|
|
352
402
|
|
|
353
403
|
**Use case — switching tasks mid-flow:**
|
|
354
404
|
|
|
355
405
|
```bash
|
|
356
406
|
# Working on PROJ-33 at Gate 2...
|
|
357
|
-
|
|
407
|
+
ak task pause # pauses and saves PROJ-33 progress
|
|
358
408
|
|
|
359
|
-
|
|
360
|
-
claude
|
|
409
|
+
ak use PROJ-99 # loads urgent task (auto-pauses current)
|
|
410
|
+
claude # AI starts Gate 1 for PROJ-99
|
|
361
411
|
|
|
362
412
|
# Done with PROJ-99, resuming PROJ-33
|
|
363
|
-
|
|
364
|
-
claude
|
|
413
|
+
ak task resume PROJ-33 # restores context
|
|
414
|
+
claude # AI resumes from Gate 2 automatically
|
|
365
415
|
```
|
|
366
416
|
|
|
367
417
|
Task state (context + gate progress) is saved in `.aiflow/tasks/<taskId>/`.
|
|
368
418
|
|
|
369
419
|
---
|
|
370
420
|
|
|
371
|
-
### `
|
|
421
|
+
### `ak doctor`
|
|
372
422
|
|
|
373
423
|
Check if the setup is complete.
|
|
374
424
|
|
|
375
425
|
```bash
|
|
376
|
-
|
|
426
|
+
ak doctor
|
|
377
427
|
```
|
|
378
428
|
|
|
379
429
|
```
|
|
@@ -387,34 +437,34 @@ aiflow doctor
|
|
|
387
437
|
|
|
388
438
|
---
|
|
389
439
|
|
|
390
|
-
### `
|
|
440
|
+
### `ak update`
|
|
391
441
|
|
|
392
442
|
Update skills, rules, and templates to the latest version.
|
|
393
443
|
|
|
394
444
|
```bash
|
|
395
|
-
|
|
445
|
+
ak update
|
|
396
446
|
```
|
|
397
447
|
|
|
398
448
|
---
|
|
399
449
|
|
|
400
|
-
### `
|
|
450
|
+
### `ak validate <file>`
|
|
401
451
|
|
|
402
452
|
Validate code output against team rules.
|
|
403
453
|
|
|
404
454
|
```bash
|
|
405
|
-
|
|
455
|
+
ak validate src/Payment.java --ruleset strict
|
|
406
456
|
```
|
|
407
457
|
|
|
408
458
|
---
|
|
409
459
|
|
|
410
|
-
### `
|
|
460
|
+
### `ak memory`
|
|
411
461
|
|
|
412
462
|
Save/search team knowledge.
|
|
413
463
|
|
|
414
464
|
```bash
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
465
|
+
ak memory save "payment-flow" "Payment flow description..."
|
|
466
|
+
ak memory search "payment"
|
|
467
|
+
ak memory list
|
|
418
468
|
```
|
|
419
469
|
|
|
420
470
|
---
|
|
@@ -430,6 +480,10 @@ aiflow memory list
|
|
|
430
480
|
| `generate-spec` | "new feature", "spec", "design" | Write technical specs, integrates `brainstorming` |
|
|
431
481
|
| `report-customer` | "customer report", "incident" | Write incident reports for Customer Service |
|
|
432
482
|
| `figma-to-component` | "figma", "design", "generate component" | Read Figma design → generate React/Next.js App Router/Vue/Angular component. [Workflow guide](docs/common/workflows/figma.md) |
|
|
483
|
+
| `generate-testcase` | "create testcase", "test case", "QA checklist" | Generate detailed test cases from requirements (4-phase: Analysis → Checklist → TC Table → Review) |
|
|
484
|
+
| `execute-flow` | "execute test", "run test", taskType: execute | 4-gate test execution orchestrator with Playwright MCP |
|
|
485
|
+
| `create-spec` | taskType: spec | BA 4-gate UC Spec workflow (Q&A → Prototype → UC Spec) |
|
|
486
|
+
| `create-testcase` | taskType: testcase | QA 4-gate testcase creation workflow (Analysis → Scenarios → TCs → Review) |
|
|
433
487
|
|
|
434
488
|
### Superpowers skills (upstream, inherited from obra/superpowers)
|
|
435
489
|
|
|
@@ -512,7 +566,7 @@ ai-flow-kit/
|
|
|
512
566
|
|
|
513
567
|
**Custom skill:** create `custom/skills/<name>/SKILL.md`
|
|
514
568
|
|
|
515
|
-
Then run `
|
|
569
|
+
Then run `ak update` or `ak sync-skills` to apply.
|
|
516
570
|
|
|
517
571
|
---
|
|
518
572
|
|
|
@@ -521,8 +575,8 @@ Then run `aiflow update` or `aiflow sync-skills` to apply.
|
|
|
521
575
|
| Environment | Experience | Notes |
|
|
522
576
|
|-----------|------------|---------|
|
|
523
577
|
| Claude Code CLI (`claude`) | ⭐⭐⭐⭐⭐ | Full auto — skills, hook, automatically loaded context |
|
|
524
|
-
| Claude Extension (VS Code) | ⭐⭐⭐ | `
|
|
525
|
-
| Antigravity / Cursor | ⭐⭐⭐ | `
|
|
578
|
+
| Claude Extension (VS Code) | ⭐⭐⭐ | `ak prompt <type>` → copy paste |
|
|
579
|
+
| Antigravity / Cursor | ⭐⭐⭐ | `ak prompt <type>` → copy paste |
|
|
526
580
|
|
|
527
581
|
---
|
|
528
582
|
|
|
@@ -530,8 +584,17 @@ Then run `aiflow update` or `aiflow sync-skills` to apply.
|
|
|
530
584
|
|
|
531
585
|
> Summary of major changes per version. See full details in [CHANGELOG.md](docs/common/CHANGELOG.md).
|
|
532
586
|
|
|
587
|
+
### v0.1.4 — 2026-06-29
|
|
588
|
+
- **Create Spec Flow (4-Gate BA Workflow):** New `taskType: "spec"` — Q&A Analysis → Prototype Design → UC Spec. AI follows UCflow process guided by `ba-skills/` sub-skills.
|
|
589
|
+
- **Create Testcase Flow (4-Gate QA Workflow):** New `taskType: "testcase"` — Requirement Analysis → Scenario Building → Detailed TC Design → Review & Optimize. AI applies BVA, Equivalence Partitioning, Decision Table techniques.
|
|
590
|
+
- **BA Skills Library:** New `ba-skills/` skill set covering initial analysis, Q&A generation, business rules, UC spec writing, and Mermaid flow diagrams.
|
|
591
|
+
- **Test Skills Library:** New `test-skills/` skill set with 20+ sub-skills covering UI testing, business testing, data testing, integration testing, and domain-specific (CMS, E-commerce) test patterns.
|
|
592
|
+
- **Gate Review Protocol:** Explicit QA/BA `APPROVED` required at each gate before AI advances — eliminates silent gate skipping.
|
|
593
|
+
- **`gate-review` skill:** New orchestration skill that enforces the gate review protocol across all workflow types (coding, execute, spec, testcase).
|
|
594
|
+
- Documentation: README updated with Coding Flow, Create Spec Flow, Create Testcase Flow diagrams; `aiflow` CLI alias fully renamed to `ak` throughout.
|
|
595
|
+
|
|
533
596
|
### v0.1.3 — 2026-06-18
|
|
534
|
-
- **Execute Test Flow (4-Gate):** New `
|
|
597
|
+
- **Execute Test Flow (4-Gate):** New `ak execute` command + `execute-flow` skill — Pre-flight → Script Sync → Execute & Evidence → Report & Bug Logging.
|
|
535
598
|
- **`script-sync` skill:** Hash-based TC↔Playwright script sync — gen new, update changed, skip unchanged. Uses MCP browser tools for selectors, never fabricates.
|
|
536
599
|
- **`ak execute` command** (`ak ex` alias): Standalone QA entry point — accepts ticket ID, TC file path, or interactive mode.
|
|
537
600
|
- **▶️ Execute Test** added to `ak use` type selector; `taskType: "execute"` routes AI to execute-flow skill automatically.
|
|
@@ -544,7 +607,7 @@ Then run `aiflow update` or `aiflow sync-skills` to apply.
|
|
|
544
607
|
- **Task type selector in `ak use`:** Interactive list after loading ticket — auto-detects and pre-selects task type.
|
|
545
608
|
- **Critical fix — `update`/`init` not updating CLAUDE.md/GEMINI.md:** Fixed 3 compounding causes (`framework` singular vs. plural, missing `force: true`, per-file confirm dialogs).
|
|
546
609
|
- **Backup before overwrite:** AI instruction files backed up to `.aiflow/bk/YYYY-MM-DD_HH-MM_<filename>` before any overwrite.
|
|
547
|
-
- **`
|
|
610
|
+
- **`ak update` no longer wipes `.claude/`:** Now clears only `.claude/skills/`, preserving `settings.json` and hooks.
|
|
548
611
|
|
|
549
612
|
### v0.1.1 — 2026-06-08
|
|
550
613
|
- **Ubuntu/Linux clipboard in `ak prompt`:** Auto-detects display server (Wayland/X11) and package manager — offers to install clipboard tool if missing.
|
|
@@ -553,20 +616,6 @@ Then run `aiflow update` or `aiflow sync-skills` to apply.
|
|
|
553
616
|
- **`figma-to-component` CSS tooling detection:** Branches on Tailwind / CSS Modules / styled-components / vanilla CSS; maps Figma Styles/Variables to existing tokens.
|
|
554
617
|
- **Critical fix — `figma-to-component` source/installed divergence:** Synced both copies to canonical version with correct tool names and 4-tier framework detection.
|
|
555
618
|
|
|
556
|
-
### v0.1.3 — 2026-06-22
|
|
557
|
-
|
|
558
|
-
**QA Automation Suite — End-to-end test execution với Playwright MCP**
|
|
559
|
-
|
|
560
|
-
- New `aiflow execute` command with full 4-gate Execute Flow (pre-flight → script sync → run → report).
|
|
561
|
-
- New skill suite for QA: `execute-flow`, `automation-testing`, `script-sync`, `generate-testcase`, `generate-test-report`, `log-bug`, `test-analysis`, `evidence-aggregation`, `retest-orchestration`, `coverage-check`.
|
|
562
|
-
- Playwright harness template (`custom/harness/playwright/`) — pre-wired `playwright.config.ts`, `BasePage`, fixtures, và auth setup.
|
|
563
|
-
- New `aiflow scaffold` command (`ak sc`) — tự động tạo cấu trúc `ak-test/{repo}/` từ template.
|
|
564
|
-
- Hash-based TC↔script sync: chỉ gen/update script khi TC thay đổi, bỏ qua TC không đổi — không mất thời gian re-gen.
|
|
565
|
-
- Selector lấy từ DOM thật qua Playwright MCP — không fabricate, không đoán.
|
|
566
|
-
- ML framework support: `python-ml` template + 7 ML skills (`frame-ml-problem`, `explore-data`, `design-experiment`, `train-model`, `evaluate-model`, `improve-algorithm`, `deploy-model`).
|
|
567
|
-
- New `pr-impact-analysis` skill — phân tích breaking changes của PR trước khi merge.
|
|
568
|
-
- Deprecated `aiflow` CLI alias — dùng `ak` thay thế (warning hiện khi dùng `aiflow`).
|
|
569
|
-
|
|
570
619
|
### v0.1.0 — 2026-05-28
|
|
571
620
|
- Multi-target `ak use` — load multiple tickets/files in a single call (primary + supplementary).
|
|
572
621
|
- Auto link resolution — auto-fetch Backlog/Jira URLs found in the ticket description (capped at 5 links).
|
|
@@ -590,47 +639,47 @@ Then run `aiflow update` or `aiflow sync-skills` to apply.
|
|
|
590
639
|
- v0.0.8-beta.1: Actually removed auto-commit + added PreToolUse hook blocking `git commit/add/push`.
|
|
591
640
|
|
|
592
641
|
### v0.0.7 — 2026-05-08
|
|
593
|
-
- `
|
|
642
|
+
- `ak use --file` auto-generates `taskId` from filename + interactive `taskType` prompt.
|
|
594
643
|
- Auto-generates `task-summary.md` at each gate transition.
|
|
595
644
|
- Added NestJS and PHP Plain framework support.
|
|
596
|
-
- New `
|
|
645
|
+
- New `ak sync-skills` command.
|
|
597
646
|
- Marker-based update for `CLAUDE.md`, `GEMINI.md`, `.cursorrules`.
|
|
598
647
|
- Auto-manages `.gitignore` for generated files.
|
|
599
648
|
|
|
600
649
|
### v0.0.6 — 2026-04-29
|
|
601
650
|
- **Fast Mode** enabled by default (reduced Q&A, single-session implementation).
|
|
602
|
-
- New `
|
|
651
|
+
- New `ak task` command group (status/list/pause/switch/resume).
|
|
603
652
|
- Integrated RTK token compression (60–90% savings).
|
|
604
653
|
- `--file` loader supports plain-text input.
|
|
605
654
|
|
|
606
655
|
### v0.0.5 — 2026-04-23
|
|
607
656
|
- Telemetry MVP — opt-in tracking, HMAC-SHA256 signed payload, no prompt content logged.
|
|
608
|
-
- New `
|
|
609
|
-
- Safe overwrite flow in `
|
|
657
|
+
- New `ak gate <n> <action>` command for AI to call automatically on gate transitions.
|
|
658
|
+
- Safe overwrite flow in `ak init` (backs up existing files before overwrite).
|
|
610
659
|
|
|
611
660
|
### v0.0.1 — 2026-04-13
|
|
612
|
-
- Initial release: `
|
|
661
|
+
- Initial release: `ak` CLI, 5-Gate workflow, 7 custom skills, support for Claude Code / Gemini / Copilot.
|
|
613
662
|
|
|
614
663
|
---
|
|
615
664
|
|
|
616
665
|
## Troubleshooting
|
|
617
666
|
|
|
618
|
-
**`
|
|
667
|
+
**`ak` not found:**
|
|
619
668
|
```bash
|
|
620
|
-
npm install -g @relipa/ai-flow-kit
|
|
669
|
+
npm install -g @relipa/ai-flow-kit@latest
|
|
621
670
|
```
|
|
622
671
|
|
|
623
672
|
**Backlog load fails:**
|
|
624
673
|
```bash
|
|
625
|
-
|
|
674
|
+
ak doctor
|
|
626
675
|
# Re-setup credentials
|
|
627
|
-
|
|
676
|
+
ak init --adapter backlog
|
|
628
677
|
```
|
|
629
678
|
|
|
630
679
|
**Skills not loading in Claude:**
|
|
631
680
|
```bash
|
|
632
681
|
# Ensure init was run outside Claude terminal (session-start hook needs restart)
|
|
633
|
-
|
|
682
|
+
ak doctor
|
|
634
683
|
```
|
|
635
684
|
|
|
636
685
|
See more: [docs/common/troubleshooting.md](./docs/common/troubleshooting.md)
|
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
|