@relipa/ai-flow-kit 0.1.4 → 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.
Files changed (325) hide show
  1. package/README.md +0 -0
  2. package/bin/aiflow.js +0 -0
  3. package/bin/ak.js +0 -0
  4. package/custom/harness/playwright/.env.example +0 -0
  5. package/custom/harness/playwright/playwright.config.ts +0 -0
  6. package/custom/harness/playwright/tests/e2e/auth.setup.ts +0 -0
  7. package/custom/harness/playwright/tests/e2e/fixtures/test.ts +0 -0
  8. package/custom/harness/playwright/tests/e2e/pages/BasePage.ts +0 -0
  9. package/custom/harness/playwright/tests/e2e/support/auth.ts +0 -0
  10. package/custom/mcp-presets/README.md +0 -0
  11. package/custom/mcp-presets/backlog.json +0 -0
  12. package/custom/mcp-presets/figma-desktop.json +0 -0
  13. package/custom/mcp-presets/figma.json +0 -0
  14. package/custom/mcp-presets/gitnexus.json +0 -0
  15. package/custom/mcp-presets/google-sheets.json +0 -0
  16. package/custom/mcp-presets/jira.json +0 -0
  17. package/custom/mcp-presets/playwright.json +0 -0
  18. package/custom/prompts/bug-fix.md +0 -0
  19. package/custom/prompts/feature.md +0 -0
  20. package/custom/prompts/investigation.md +0 -0
  21. package/custom/rules/code-style.md +0 -0
  22. package/custom/rules/java/code-style.md +0 -0
  23. package/custom/rules/java/naming.md +0 -0
  24. package/custom/rules/java/review-checklist.md +0 -0
  25. package/custom/rules/java/spring-boot-examples.md +0 -0
  26. package/custom/rules/javascript/code-style.md +0 -0
  27. package/custom/rules/javascript/naming.md +0 -0
  28. package/custom/rules/ml-conventions.md +0 -0
  29. package/custom/rules/ml-review-checklist.md +0 -0
  30. package/custom/rules/naming.md +0 -0
  31. package/custom/rules/php/code-style.md +0 -0
  32. package/custom/rules/php/naming.md +0 -0
  33. package/custom/rules/project-conventions.md +0 -0
  34. package/custom/rules/review-checklist.md +0 -0
  35. package/custom/rules/test-patterns.md +0 -0
  36. package/custom/skills/automation-testing/SKILL.md +0 -0
  37. package/custom/skills/automation-testing/templates/BasePage.ts +0 -0
  38. package/custom/skills/automation-testing/templates/PageObject.example.ts +0 -0
  39. package/custom/skills/automation-testing/templates/playwright.config.ts +0 -0
  40. package/custom/skills/automation-testing/templates/spec.example.ts +0 -0
  41. package/custom/skills/ba-skills/{skill-ba-xay-dung-business-rules-v1.md → skill-ba-build-business-rules-v1.md} +0 -0
  42. package/custom/skills/ba-skills/{skill-ba-template-phan-tich-ban-dau-v1.md → skill-ba-initial-analysis-template-v1.md} +0 -0
  43. package/custom/skills/ba-skills/{skill-ba-phan-tich-ban-dau-v1.md → skill-ba-initial-analysis-v1.md} +2 -2
  44. package/custom/skills/ba-skills/{skill-ba-ve-luong-mermaid-v1.md → skill-ba-mermaid-flowchart-v1.md} +0 -0
  45. package/custom/skills/ba-skills/{skill-ba-qa-template-v1.md → skill-ba-qna-template-v1.md} +0 -0
  46. package/custom/skills/ba-skills/{skill-ba-qa-v1.md → skill-ba-qna-v1.md} +2 -2
  47. package/custom/skills/ba-skills/{skill-ba-template-uc-v1.md → skill-ba-uc-template-v1.md} +0 -0
  48. package/custom/skills/ba-skills/{skill-ba-prototype-v1.md → skill-ba-ui-prototype-v1.md} +2 -2
  49. package/custom/skills/ba-skills/{skill-ba-viet-spec-uc-v1.md → skill-ba-write-uc-spec-v1.md} +4 -4
  50. package/custom/skills/coverage-check/SKILL.md +0 -0
  51. package/custom/skills/deploy-model/SKILL.md +0 -0
  52. package/custom/skills/design-experiment/SKILL.md +0 -0
  53. package/custom/skills/evaluate-model/SKILL.md +0 -0
  54. package/custom/skills/evidence-aggregation/SKILL.md +0 -0
  55. package/custom/skills/execute-flow/SKILL.md +0 -0
  56. package/custom/skills/execute-flow/templates/playwright.config.ts +0 -0
  57. package/custom/skills/explore-data/SKILL.md +0 -0
  58. package/custom/skills/figma-to-component/SKILL.md +0 -0
  59. package/custom/skills/frame-ml-problem/SKILL.md +0 -0
  60. package/custom/skills/gate-review/SKILL.md +0 -0
  61. package/custom/skills/generate-spec/SKILL.md +0 -0
  62. package/custom/skills/generate-test-report/SKILL.md +0 -0
  63. package/custom/skills/generate-test-report/templates/test-report.md +0 -0
  64. package/custom/skills/generate-testcase/SKILL.md +0 -0
  65. package/custom/skills/generate-testcase/templates/testcase.md +0 -0
  66. package/custom/skills/impact-analysis/SKILL.md +0 -0
  67. package/custom/skills/improve-algorithm/SKILL.md +0 -0
  68. package/custom/skills/investigate-bug/SKILL.md +0 -0
  69. package/custom/skills/log-bug/SKILL.md +0 -0
  70. package/custom/skills/pr-impact-analysis/SKILL.md +0 -0
  71. package/custom/skills/report-customer/SKILL.md +0 -0
  72. package/custom/skills/retest-orchestration/SKILL.md +0 -0
  73. package/custom/skills/review-plan/SKILL.md +0 -0
  74. package/custom/skills/script-sync/SKILL.md +0 -0
  75. package/custom/skills/test-analysis/SKILL.md +0 -0
  76. package/custom/skills/test-skills/categories/00-core/00.01.requirement-analysis.md +0 -0
  77. package/custom/skills/test-skills/categories/00-core/00.02.risk-analysis.md +0 -0
  78. package/custom/skills/test-skills/categories/00-core/00.03.test-scenario-builder.md +0 -0
  79. package/custom/skills/test-skills/categories/00-core/00.04.testcase-review.md +0 -0
  80. package/custom/skills/test-skills/categories/01-test-design/01.01.boundary-value-analysis.md +0 -0
  81. package/custom/skills/test-skills/categories/01-test-design/01.02.equivalence.partitioning.md +0 -0
  82. package/custom/skills/test-skills/categories/01-test-design/01.03.decision-table.md +0 -0
  83. package/custom/skills/test-skills/categories/01-test-design/01.04.state.transition.md +0 -0
  84. package/custom/skills/test-skills/categories/01-test-design/01.05.pairwise.md +0 -0
  85. package/custom/skills/test-skills/categories/01-test-design/01.06.error-guessing.md +0 -0
  86. package/custom/skills/test-skills/categories/02-ui-testing/02.01.UI-layout.md +0 -0
  87. package/custom/skills/test-skills/categories/02-ui-testing/02.02.form-validation.md +0 -0
  88. package/custom/skills/test-skills/categories/02-ui-testing/02.03.navigation.md +0 -0
  89. package/custom/skills/test-skills/categories/02-ui-testing/02.04.localization.md +0 -0
  90. package/custom/skills/test-skills/categories/02-ui-testing/02.05.accessibility.md +0 -0
  91. package/custom/skills/test-skills/categories/03-business-testing/03.01.CRUD-testing.md +0 -0
  92. package/custom/skills/test-skills/categories/03-business-testing/03.02.workflow-testing.md +0 -0
  93. package/custom/skills/test-skills/categories/03-business-testing/03.03.permission-testing.md +0 -0
  94. package/custom/skills/test-skills/categories/03-business-testing/03.04.dependency-validation.md +0 -0
  95. package/custom/skills/test-skills/categories/03-business-testing/03.05.notification-testing.md +0 -0
  96. package/custom/skills/test-skills/categories/03-business-testing/03.06.calculation.testing.md +0 -0
  97. package/custom/skills/test-skills/categories/04-data-testing/04.01.database-testing.md +0 -0
  98. package/custom/skills/test-skills/categories/04-data-testing/04.02.import-export-testing.md +0 -0
  99. package/custom/skills/test-skills/categories/04-data-testing/04.03.data-mapping.md +0 -0
  100. package/custom/skills/test-skills/categories/04-data-testing/04.04.duplicate-handling.md +0 -0
  101. package/custom/skills/test-skills/categories/04-data-testing/04.05.migration.md +0 -0
  102. package/custom/skills/test-skills/categories/05-integration/05.01.API-testing.md +0 -0
  103. package/custom/skills/test-skills/categories/05-integration/05.02.third-party-integration.md +0 -0
  104. package/custom/skills/test-skills/categories/05-integration/05.03.batch-processing.md +0 -0
  105. package/custom/skills/test-skills/categories/05-integration/05.04.file-upload-download.md +0 -0
  106. package/custom/skills/test-skills/categories/08-domain-skills/CMS.md +0 -0
  107. package/custom/skills/test-skills/categories/08-domain-skills/Ecommerce.md +0 -0
  108. package/custom/skills/test-skills/categories/99-review/99.01.coverage-review.md +0 -0
  109. package/custom/skills/test-skills/categories/99-review/99.02.knowledge-learning.md +0 -0
  110. package/custom/skills/test-skills/categories/99-review/99.03.repository-update.md +0 -0
  111. package/custom/skills/test-skills/categories/99-review/99.04.change-history.md +0 -0
  112. package/custom/skills/test-skills/rules/directory-and-naming-convention.md +158 -0
  113. package/custom/skills/test-skills/rules/{QA_Writing_Standards.md → qa-writing-standards.md} +0 -0
  114. package/custom/skills/test-skills/template/{template_testcase.md → testcase-template.md} +0 -0
  115. package/custom/skills/train-model/SKILL.md +0 -0
  116. package/custom/templates/laravel.md +0 -0
  117. package/custom/templates/nestjs.md +0 -0
  118. package/custom/templates/nextjs.md +0 -0
  119. package/custom/templates/nodejs-express.md +0 -0
  120. package/custom/templates/php-plain.md +0 -0
  121. package/custom/templates/php.md +0 -0
  122. package/custom/templates/python-django.md +0 -0
  123. package/custom/templates/python-fastapi.md +0 -0
  124. package/custom/templates/python-ml.md +0 -0
  125. package/custom/templates/python.md +0 -0
  126. package/custom/templates/reactjs.md +0 -0
  127. package/custom/templates/shared/coding-workflow.md +15 -0
  128. package/custom/templates/shared/create-spec-workflow.md +80 -89
  129. package/custom/templates/shared/create-testcase-workflow.md +65 -75
  130. package/custom/templates/shared/gate-workflow.md +3 -3
  131. package/custom/templates/shared/ml-gate-workflow.md +0 -0
  132. package/custom/templates/spring-boot.md +0 -0
  133. package/custom/templates/tools/claude.md +0 -0
  134. package/custom/templates/tools/copilot.md +0 -0
  135. package/custom/templates/tools/cursor.md +0 -0
  136. package/custom/templates/tools/gemini.md +0 -0
  137. package/custom/templates/tools/generic.md +0 -0
  138. package/custom/templates/vue-nuxt.md +0 -0
  139. package/docs/common/AIFLOW.md +0 -0
  140. package/docs/common/CHANGELOG.md +28 -9
  141. package/docs/common/QUICK_START.md +0 -0
  142. package/docs/common/ai-integration.md +0 -0
  143. package/docs/common/cli-reference.md +0 -0
  144. package/docs/common/configuration.md +0 -0
  145. package/docs/common/getting-started.md +0 -0
  146. package/docs/common/troubleshooting.md +0 -0
  147. package/docs/common/workflows/bug-fix.md +0 -0
  148. package/docs/common/workflows/feature.md +0 -0
  149. package/docs/common/workflows/figma.md +0 -0
  150. package/docs/common/workflows/impact-analysis.md +0 -0
  151. package/docs/common/workflows/investigation.md +0 -0
  152. package/docs/common/workflows/refactor.md +0 -0
  153. package/docs/project/ARCHITECTURE.md +0 -0
  154. package/index.js +0 -0
  155. package/package.json +1 -1
  156. package/scripts/checkpoint.js +0 -0
  157. package/scripts/config.js +0 -0
  158. package/scripts/context.js +0 -0
  159. package/scripts/create-score-excel.js +41 -47
  160. package/scripts/detect.js +0 -0
  161. package/scripts/doctor.js +0 -0
  162. package/scripts/gitnexus-worker.js +0 -0
  163. package/scripts/guide.js +0 -0
  164. package/scripts/hooks/block-git-write.js +0 -0
  165. package/scripts/hooks/session-start.js +1 -0
  166. package/scripts/hooks/session-stop.js +0 -0
  167. package/scripts/init.js +5 -0
  168. package/scripts/memory.js +0 -0
  169. package/scripts/prompt.js +0 -0
  170. package/scripts/remove.js +0 -0
  171. package/scripts/review.js +0 -0
  172. package/scripts/scaffold-playwright.js +0 -0
  173. package/scripts/task.js +0 -0
  174. package/scripts/telemetry/cli.js +0 -0
  175. package/scripts/telemetry/config.js +0 -0
  176. package/scripts/telemetry/crypto.js +0 -0
  177. package/scripts/telemetry/flush.js +0 -0
  178. package/scripts/telemetry/record.js +0 -0
  179. package/scripts/update.js +0 -0
  180. package/scripts/use.js +3 -2
  181. package/scripts/validate.js +0 -0
  182. package/upstream/.claude-plugin/marketplace.json +0 -0
  183. package/upstream/.claude-plugin/plugin.json +0 -0
  184. package/upstream/.codex/INSTALL.md +0 -0
  185. package/upstream/.cursor-plugin/plugin.json +0 -0
  186. package/upstream/.gitattributes +0 -0
  187. package/upstream/.github/FUNDING.yml +0 -0
  188. package/upstream/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  189. package/upstream/.github/ISSUE_TEMPLATE/config.yml +0 -0
  190. package/upstream/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  191. package/upstream/.github/ISSUE_TEMPLATE/platform_support.md +0 -0
  192. package/upstream/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  193. package/upstream/.opencode/INSTALL.md +0 -0
  194. package/upstream/.opencode/plugins/superpowers.js +0 -0
  195. package/upstream/.version-bump.json +0 -0
  196. package/upstream/AGENTS.md +0 -0
  197. package/upstream/CHANGELOG.md +0 -0
  198. package/upstream/CLAUDE.md +0 -0
  199. package/upstream/CODE_OF_CONDUCT.md +0 -0
  200. package/upstream/GEMINI.md +0 -0
  201. package/upstream/LICENSE +0 -0
  202. package/upstream/README.md +0 -0
  203. package/upstream/RELEASE-NOTES.md +0 -0
  204. package/upstream/agents/code-reviewer.md +0 -0
  205. package/upstream/commands/brainstorm.md +0 -0
  206. package/upstream/commands/execute-plan.md +0 -0
  207. package/upstream/commands/write-plan.md +0 -0
  208. package/upstream/docs/README.codex.md +0 -0
  209. package/upstream/docs/README.opencode.md +0 -0
  210. package/upstream/docs/plans/2025-11-22-opencode-support-design.md +0 -0
  211. package/upstream/docs/plans/2025-11-22-opencode-support-implementation.md +0 -0
  212. package/upstream/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +0 -0
  213. package/upstream/docs/plans/2026-01-17-visual-brainstorming.md +0 -0
  214. package/upstream/docs/superpowers/plans/2026-01-22-document-review-system.md +0 -0
  215. package/upstream/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +0 -0
  216. package/upstream/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +0 -0
  217. package/upstream/docs/superpowers/plans/2026-03-23-codex-app-compatibility.md +0 -0
  218. package/upstream/docs/superpowers/specs/2026-01-22-document-review-system-design.md +0 -0
  219. package/upstream/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +0 -0
  220. package/upstream/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +0 -0
  221. package/upstream/docs/superpowers/specs/2026-03-23-codex-app-compatibility-design.md +0 -0
  222. package/upstream/docs/testing.md +0 -0
  223. package/upstream/docs/windows/polyglot-hooks.md +0 -0
  224. package/upstream/gemini-extension.json +0 -0
  225. package/upstream/hooks/hooks-cursor.json +0 -0
  226. package/upstream/hooks/hooks.json +0 -0
  227. package/upstream/hooks/run-hook.cmd +0 -0
  228. package/upstream/hooks/session-start +0 -0
  229. package/upstream/package.json +0 -0
  230. package/upstream/scripts/bump-version.sh +0 -0
  231. package/upstream/skills/brainstorming/SKILL.md +0 -0
  232. package/upstream/skills/brainstorming/scripts/frame-template.html +0 -0
  233. package/upstream/skills/brainstorming/scripts/helper.js +0 -0
  234. package/upstream/skills/brainstorming/scripts/server.cjs +0 -0
  235. package/upstream/skills/brainstorming/scripts/start-server.sh +0 -0
  236. package/upstream/skills/brainstorming/scripts/stop-server.sh +0 -0
  237. package/upstream/skills/brainstorming/spec-document-reviewer-prompt.md +0 -0
  238. package/upstream/skills/brainstorming/visual-companion.md +0 -0
  239. package/upstream/skills/dispatching-parallel-agents/SKILL.md +0 -0
  240. package/upstream/skills/executing-plans/SKILL.md +0 -0
  241. package/upstream/skills/finishing-a-development-branch/SKILL.md +0 -0
  242. package/upstream/skills/receiving-code-review/SKILL.md +0 -0
  243. package/upstream/skills/requesting-code-review/SKILL.md +0 -0
  244. package/upstream/skills/requesting-code-review/code-reviewer.md +0 -0
  245. package/upstream/skills/subagent-driven-development/SKILL.md +0 -0
  246. package/upstream/skills/subagent-driven-development/code-quality-reviewer-prompt.md +0 -0
  247. package/upstream/skills/subagent-driven-development/implementer-prompt.md +0 -0
  248. package/upstream/skills/subagent-driven-development/spec-reviewer-prompt.md +0 -0
  249. package/upstream/skills/systematic-debugging/CREATION-LOG.md +0 -0
  250. package/upstream/skills/systematic-debugging/SKILL.md +0 -0
  251. package/upstream/skills/systematic-debugging/condition-based-waiting-example.ts +0 -0
  252. package/upstream/skills/systematic-debugging/condition-based-waiting.md +0 -0
  253. package/upstream/skills/systematic-debugging/defense-in-depth.md +0 -0
  254. package/upstream/skills/systematic-debugging/find-polluter.sh +0 -0
  255. package/upstream/skills/systematic-debugging/root-cause-tracing.md +0 -0
  256. package/upstream/skills/systematic-debugging/test-academic.md +0 -0
  257. package/upstream/skills/systematic-debugging/test-pressure-1.md +0 -0
  258. package/upstream/skills/systematic-debugging/test-pressure-2.md +0 -0
  259. package/upstream/skills/systematic-debugging/test-pressure-3.md +0 -0
  260. package/upstream/skills/tdd-lean/SKILL.md +0 -0
  261. package/upstream/skills/test-driven-development/SKILL.md +0 -0
  262. package/upstream/skills/test-driven-development/testing-anti-patterns.md +0 -0
  263. package/upstream/skills/using-git-worktrees/SKILL.md +0 -0
  264. package/upstream/skills/using-superpowers/SKILL.md +0 -0
  265. package/upstream/skills/using-superpowers/references/codex-tools.md +0 -0
  266. package/upstream/skills/using-superpowers/references/copilot-tools.md +0 -0
  267. package/upstream/skills/using-superpowers/references/gemini-tools.md +0 -0
  268. package/upstream/skills/verification-before-completion/SKILL.md +0 -0
  269. package/upstream/skills/writing-plans/SKILL.md +0 -0
  270. package/upstream/skills/writing-plans/plan-document-reviewer-prompt.md +0 -0
  271. package/upstream/skills/writing-skills/SKILL.md +0 -0
  272. package/upstream/skills/writing-skills/anthropic-best-practices.md +0 -0
  273. package/upstream/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -0
  274. package/upstream/skills/writing-skills/graphviz-conventions.dot +0 -0
  275. package/upstream/skills/writing-skills/persuasion-principles.md +0 -0
  276. package/upstream/skills/writing-skills/render-graphs.js +0 -0
  277. package/upstream/skills/writing-skills/testing-skills-with-subagents.md +0 -0
  278. package/upstream/tests/brainstorm-server/package-lock.json +0 -0
  279. package/upstream/tests/brainstorm-server/package.json +0 -0
  280. package/upstream/tests/brainstorm-server/server.test.js +0 -0
  281. package/upstream/tests/brainstorm-server/windows-lifecycle.test.sh +0 -0
  282. package/upstream/tests/brainstorm-server/ws-protocol.test.js +0 -0
  283. package/upstream/tests/claude-code/README.md +0 -0
  284. package/upstream/tests/claude-code/analyze-token-usage.py +0 -0
  285. package/upstream/tests/claude-code/run-skill-tests.sh +0 -0
  286. package/upstream/tests/claude-code/test-document-review-system.sh +0 -0
  287. package/upstream/tests/claude-code/test-helpers.sh +0 -0
  288. package/upstream/tests/claude-code/test-subagent-driven-development-integration.sh +0 -0
  289. package/upstream/tests/claude-code/test-subagent-driven-development.sh +0 -0
  290. package/upstream/tests/explicit-skill-requests/prompts/action-oriented.txt +0 -0
  291. package/upstream/tests/explicit-skill-requests/prompts/after-planning-flow.txt +0 -0
  292. package/upstream/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +0 -0
  293. package/upstream/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +0 -0
  294. package/upstream/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +0 -0
  295. package/upstream/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +0 -0
  296. package/upstream/tests/explicit-skill-requests/prompts/skip-formalities.txt +0 -0
  297. package/upstream/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +0 -0
  298. package/upstream/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +0 -0
  299. package/upstream/tests/explicit-skill-requests/run-all.sh +0 -0
  300. package/upstream/tests/explicit-skill-requests/run-claude-describes-sdd.sh +0 -0
  301. package/upstream/tests/explicit-skill-requests/run-extended-multiturn-test.sh +0 -0
  302. package/upstream/tests/explicit-skill-requests/run-haiku-test.sh +0 -0
  303. package/upstream/tests/explicit-skill-requests/run-multiturn-test.sh +0 -0
  304. package/upstream/tests/explicit-skill-requests/run-test.sh +0 -0
  305. package/upstream/tests/opencode/run-tests.sh +0 -0
  306. package/upstream/tests/opencode/setup.sh +0 -0
  307. package/upstream/tests/opencode/test-plugin-loading.sh +0 -0
  308. package/upstream/tests/opencode/test-priority.sh +0 -0
  309. package/upstream/tests/opencode/test-tools.sh +0 -0
  310. package/upstream/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +0 -0
  311. package/upstream/tests/skill-triggering/prompts/executing-plans.txt +0 -0
  312. package/upstream/tests/skill-triggering/prompts/requesting-code-review.txt +0 -0
  313. package/upstream/tests/skill-triggering/prompts/systematic-debugging.txt +0 -0
  314. package/upstream/tests/skill-triggering/prompts/test-driven-development.txt +0 -0
  315. package/upstream/tests/skill-triggering/prompts/writing-plans.txt +0 -0
  316. package/upstream/tests/skill-triggering/run-all.sh +0 -0
  317. package/upstream/tests/skill-triggering/run-test.sh +0 -0
  318. package/upstream/tests/subagent-driven-dev/go-fractals/design.md +0 -0
  319. package/upstream/tests/subagent-driven-dev/go-fractals/plan.md +0 -0
  320. package/upstream/tests/subagent-driven-dev/go-fractals/scaffold.sh +0 -0
  321. package/upstream/tests/subagent-driven-dev/run-test.sh +0 -0
  322. package/upstream/tests/subagent-driven-dev/svelte-todo/design.md +0 -0
  323. package/upstream/tests/subagent-driven-dev/svelte-todo/plan.md +0 -0
  324. package/upstream/tests/subagent-driven-dev/svelte-todo/scaffold.sh +0 -0
  325. 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
File without changes
File without changes
File without changes
File without changes
@@ -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-template-phan-tich-ban-dau-v1.md`) để điền thông tin và lập bảng Gap/Assumption.
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-template-phan-tich-ban-dau-v1.md`, đặt tên theo chuẩn: `Tên chức năng_Kết quả phân tích(n).md` trong thư mục `TÀI LIỆU/output/Kết quả phân tích/`.
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]/`.
@@ -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-qa-template-v1.md`:**
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-qa-template-v1.md`, đặt tên theo chuẩn: `Tên chức năng_Q&A(m).md` trong thư mục `TÀI LIỆU/output/QA/`.
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)`.
@@ -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 `TÀI LIỆU/output/design/`.
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: `Tên chức năng_design.html` trong thư mục `TÀI LIỆU/output/design/`.
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]/`.
@@ -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-ve-luong-mermaid-v1.md` để vẽ và nhúng biểu đồ Mermaid.
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-xay-dung-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.
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-uc-v1.md` 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-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: `Tên chức năng_UC.md` trong thư mục `TÀI LIỆU/output/UC/`.
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
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
@@ -0,0 +1,158 @@
1
+ # 00. Directory Structure & File Naming Convention
2
+
3
+ ## Objective
4
+
5
+ Define and standardize directory organization and file naming rules for all Artifacts generated in the QA Workflow. Ensures consistency, traceability, and maintainability across the project.
6
+
7
+ > **Important**: This document is the **mandatory reference** for the entire workflow. All generated Artifacts (Result, QA, TestCase) must strictly follow the rules defined here before executing any step in the workflow.
8
+
9
+ ---
10
+
11
+ ## 1. Directory Overview
12
+
13
+ ```text
14
+ 03.Testing/
15
+ ├── 01.Testcases/
16
+ │ └── [functionId]/
17
+ │ └── [functionId]_TestCase.md ← Gate 4 tạo
18
+ └── 07.AI-Artifacts/
19
+ └── [functionId]/
20
+ ├── [functionId]_01_Requirement_Analysis_Result.md ← Gate 1 tạo
21
+ ├── [functionId]_01_Requirement_Analysis_QA.md ← Gate 1 tạo (nếu có issue)
22
+ ├── [functionId]_02_Test_Scenarios_Result.md ← Gate 2 tạo
23
+ ├── [functionId]_02_Scenario_Building_QA.md ← Gate 2 tạo (nếu có issue)
24
+ ├── [functionId]_03_Test_Cases_Draft_Result.md ← Gate 3 tạo
25
+ ├── [functionId]_03_Test_Design_QA.md ← Gate 3 tạo (nếu có issue)
26
+ ├── [functionId]_04_Test_Cases_Final_Result.md ← Gate 4 tạo (cùng TestCase)
27
+ └── [functionId]_04_Test_Review_QA.md ← Gate 4 tạo
28
+ ```
29
+
30
+ Example: `functionId = AD06` → root folder is `03.Testing/`
31
+
32
+ ---
33
+
34
+ ## 2. 07.AI-Artifacts/ Directory Rules
35
+
36
+ - **Root path**: `03.Testing/07.AI-Artifacts/[functionId]/`
37
+ - **Purpose**: Store all official result artifacts and QA tracking files generated at each workflow gate.
38
+
39
+ ### 2.1. File Naming Convention
40
+
41
+ Files are placed under `03.Testing/07.AI-Artifacts/[functionId]/` with the `[functionId]` as prefix:
42
+
43
+ ```
44
+ [functionId]_[step]_Result.md
45
+ [functionId]_[step]_QA.md
46
+ ```
47
+
48
+ ### 2.2. File Name Table by Gate
49
+
50
+ | Gate | Step Name | Result File Name | QA File Name (if issues) |
51
+ | :---: | :--- | :--- | :--- |
52
+ | **01** | `01_Requirement_Analysis` | `[functionId]_01_Requirement_Analysis_Result.md` | `[functionId]_01_Requirement_Analysis_QA.md` |
53
+ | **02** | `02_Test_Scenarios` | `[functionId]_02_Test_Scenarios_Result.md` | `[functionId]_02_Scenario_Building_QA.md` |
54
+ | **03** | `03_Test_Cases_Draft` | `[functionId]_03_Test_Cases_Draft_Result.md` | `[functionId]_03_Test_Design_QA.md` |
55
+ | **04** | `04_Test_Cases_Final` | `[functionId]_04_Test_Cases_Final_Result.md` | `[functionId]_04_Test_Review_QA.md` |
56
+
57
+ ### 2.3. Full Path Examples
58
+
59
+ ```
60
+ 03.Testing/07.AI-Artifacts/AD06/AD06_01_Requirement_Analysis_Result.md
61
+ 03.Testing/07.AI-Artifacts/AD06/AD06_01_Requirement_Analysis_QA.md
62
+ 03.Testing/07.AI-Artifacts/AD06/AD06_02_Test_Scenarios_Result.md
63
+ 03.Testing/07.AI-Artifacts/AD06/AD06_03_Test_Cases_Draft_Result.md
64
+ 03.Testing/07.AI-Artifacts/AD06/AD06_04_Test_Cases_Final_Result.md
65
+ ```
66
+
67
+ > QA files are only created when there are issues (Critical/Major block, or Minor carry-forward).
68
+
69
+ ---
70
+
71
+ ## 3. 01.Testcases/ Directory Rules
72
+
73
+ - **Root path**: `03.Testing/01.Testcases/[functionId]/`
74
+ - **Purpose**: Store the final test case artifact ready for execution. This file contains only the **test case tables** (not review summaries, findings, or coverage validation) and is generated **simultaneously** with `04_Test_Cases_Final_Result.md` at the end of Gate 4.
75
+
76
+ ### 3.1. File Naming Convention
77
+
78
+ ```
79
+ [functionId]_TestCase.md
80
+ ```
81
+
82
+ ### 3.2. Full Path Example
83
+
84
+ ```
85
+ 03.Testing/01.Testcases/AD06/AD06_TestCase.md
86
+ ```
87
+
88
+ ### 3.3. File Content
89
+
90
+ The TestCase file follows the **standard template** at `.claude/skills/test-skills/template/testcase-template.md` and **only includes**:
91
+
92
+ - **Section 1**: General Information (fill in functionId, creation date)
93
+ - **Section 2**: Test Execution Summary (reset to 0, waiting for execution)
94
+ - **Section 3**: Detailed Test Cases (all 5 groups and test case tables)
95
+
96
+ > **Does NOT include**: Review Summary, Review Findings, Coverage Validation (RTM), Sign-off Status — these belong in `04_Test_Cases_Final_Result.md` within `07.AI-Artifacts/[functionId]/`.
97
+
98
+ ### 3.4. Generation Timing
99
+
100
+ The TestCase file is generated **simultaneously** with `04_Test_Cases_Final_Result.md` at the end of Gate 4, after all Critical/Major issues are resolved and the test case set has been signed off.
101
+
102
+ ---
103
+
104
+ ## 4. Full Artifact Matrix
105
+
106
+ | Gate | Description | Result Artifact | QA Artifact | TestCase Artifact |
107
+ | :---: | :--- | :--- | :--- | :--- |
108
+ | **01** | Requirement & Risk Analysis | `[fId]_01_Requirement_Analysis_Result.md` | `[fId]_01_Requirement_Analysis_QA.md` | — |
109
+ | **02** | Scenario Building | `[fId]_02_Test_Scenarios_Result.md` | `[fId]_02_Scenario_Building_QA.md` | — |
110
+ | **03** | Test Case Design | `[fId]_03_Test_Cases_Draft_Result.md` | `[fId]_03_Test_Design_QA.md` | — |
111
+ | **04** | Review & Optimization | `[fId]_04_Test_Cases_Final_Result.md` | `[fId]_04_Test_Review_QA.md` | `[fId]_TestCase.md` |
112
+
113
+ > `[fId]` = `[functionId]`
114
+
115
+ ---
116
+
117
+ ## 5. Additional Rules
118
+
119
+ ### 5.1. Update Rule
120
+
121
+ - If a file already exists, **update and overwrite** with the latest content.
122
+ - **Do not create duplicate files** with version suffixes (e.g. `_v1`, `_v2`, `_final`, `_new`).
123
+
124
+ ### 5.2. functionId Naming
125
+
126
+ - Use the **exact functionId** determined in Gate 1 Pre-flight (e.g. `AD06`, `AD10`, `LOGIN`).
127
+ - Valid examples: `AD06`, `AD10_Create_Product`, `LOGIN`, `ORD002`
128
+ - **Invalid**: `product`, `login`, `tag_feature` (custom names diverging from the functionId)
129
+ - The workflow **MUST** strictly require a `functionId` before starting.
130
+
131
+ ### 5.3. Consistency Principle
132
+
133
+ - `07.AI-Artifacts/` and `01.Testcases/` artifacts for the same functionId **must all use the same functionId prefix** and be grouped in a `[functionId]` subfolder.
134
+ - This ensures fast cross-lookup and traceability.
135
+
136
+ ---
137
+
138
+ ## 6. Application Checklist
139
+
140
+ Before starting any workflow gate, verify:
141
+
142
+ - [ ] functionId has been confirmed in Gate 1 Pre-flight?
143
+ - [ ] Root folder `03.Testing/` exists?
144
+ - [ ] `07.AI-Artifacts/[functionId]/` subfolder exists?
145
+ - [ ] Result file name follows pattern `[functionId]_[step]_Result.md`?
146
+ - [ ] QA file name follows pattern `[functionId]_[step]_QA.md`?
147
+ - [ ] (After Gate 4) `01.Testcases/[functionId]/` subfolder exists?
148
+ - [ ] (After Gate 4) TestCase file name follows pattern `[functionId]_TestCase.md`?
149
+ - [ ] (After Gate 4) TestCase file contains only Section 1+2+3 per template (no review metadata)?
150
+ - [ ] No duplicate or incorrectly named files?
151
+
152
+ ---
153
+
154
+ ## 7. References
155
+
156
+ - `create-testcase-workflow.md` — Full 4-Gate QA workflow definition
157
+ - `.claude/skills/test-skills/template/testcase-template.md` — Standard test case template
158
+ - `.claude/skills/test-skills/rules/qa-writing-standards.md` — QA writing standards
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
@@ -0,0 +1,15 @@
1
+ ## /coding — Manual Trigger for the DEV Coding Workflow
2
+
3
+ **Why this command exists:** the `[DEV] 5-Gate Development Workflow` (for `taskType`: `bug-fix`, `feature`, `refactor`, `investigation`, `documentation`) normally auto-starts via the `SessionStart` hook, which only fires when a Claude Code session **starts, resumes, or is cleared**. If a ticket was loaded with `ak use <TICKET-ID>` while this chat session was already open, the hook never re-ran — so this session has no ticket context yet, and typing "start" does nothing because nothing told the AI what "start" means. `/coding` fixes that by loading the ticket context manually, right now.
4
+
5
+ **Steps — do these now, in order:**
6
+
7
+ 1. Read `.aiflow/context/current.json`.
8
+ - Missing, or no `taskId` field → tell the developer to run `ak use <TICKET-ID>` first, then stop here.
9
+ 2. Read `.aiflow/tasks/[taskId]/task-state.json` if it exists.
10
+ - If `currentGate > 1` (task already in progress) → **resume at that gate** — do NOT restart from Gate 1. List which gates are already `APPROVED` before continuing.
11
+ - Otherwise → start fresh at Gate 1.
12
+ 3. In this project's main AI instruction file (`CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, or `.github/copilot-instructions.md` — whichever is present), find the section **`## [DEV] 5-Gate Development Workflow`** and follow it exactly, beginning at the gate identified in step 2.
13
+ 4. This workflow applies regardless of the ticket's `taskType` value — `bug-fix`, `feature`, `refactor`, `investigation`, and `documentation` all share this same 5-gate flow (see the "Workflow Selection" table above that section for the full routing).
14
+
15
+ Do not wait for further confirmation from the developer before starting — begin the identified gate immediately.