moai-adk 0.10.1__py3-none-any.whl → 0.11.0__py3-none-any.whl

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.

Potentially problematic release.


This version of moai-adk might be problematic. Click here for more details.

Files changed (245) hide show
  1. moai_adk/core/project/phase_executor.py +4 -0
  2. moai_adk/core/tags/ci_validator.py +33 -3
  3. moai_adk/core/template_engine.py +6 -2
  4. moai_adk/templates/.github/workflows/moai-gitflow.yml +6 -1
  5. moai_adk/templates/.github/workflows/release.yml +6 -2
  6. moai_adk/templates/.github/workflows/tag-validation.yml +53 -8
  7. moai_adk/templates/CLAUDE.md +458 -67
  8. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/METADATA +28 -13
  9. moai_adk-0.11.0.dist-info/RECORD +77 -0
  10. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
  11. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
  12. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
  13. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
  14. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -350
  15. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -273
  16. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
  17. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
  18. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -287
  19. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -287
  20. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -326
  21. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
  22. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1189
  23. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -728
  24. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -545
  25. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -683
  26. moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
  27. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
  28. moai_adk/templates/.claude/hooks/alfred/core/project.py +0 -750
  29. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
  30. moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
  31. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -102
  32. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -108
  33. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -102
  34. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -102
  35. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
  36. moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +0 -271
  37. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
  38. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +0 -756
  39. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -198
  40. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
  41. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
  42. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -25
  43. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -175
  44. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -90
  45. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
  46. moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +0 -102
  47. moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +0 -102
  48. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -120
  49. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
  50. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
  51. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
  52. moai_adk/templates/.claude/settings.json +0 -144
  53. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  54. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  55. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  56. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  57. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  58. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  59. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  60. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  61. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  62. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  63. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  64. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  65. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  66. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  67. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  68. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  69. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  70. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  71. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  72. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  73. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  74. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  75. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  76. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  77. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  78. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  79. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  80. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  81. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  82. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  83. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  84. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  85. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  86. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  87. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  88. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  89. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  90. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  91. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  92. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +0 -290
  93. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
  94. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
  95. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  96. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  97. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  98. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  99. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  100. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  101. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +0 -123
  102. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
  103. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
  104. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  105. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  106. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  107. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +0 -124
  108. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
  109. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
  110. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  111. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  112. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  113. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  114. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  115. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  116. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  117. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  118. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  119. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  120. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  121. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  122. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  123. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  124. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  125. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  126. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  127. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  128. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  129. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  130. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  131. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  132. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  133. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  134. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
  135. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  136. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  137. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  138. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  139. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  140. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  141. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  142. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  143. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  144. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  145. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  146. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  147. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  148. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  149. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  150. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  151. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  152. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  153. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  154. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  155. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
  156. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  157. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  158. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
  159. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  160. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  161. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  162. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  163. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  164. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -124
  165. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
  166. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
  167. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -124
  168. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
  169. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
  170. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  171. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  172. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  173. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
  174. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
  175. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
  176. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -123
  177. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  178. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  179. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -431
  180. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
  181. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
  182. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
  183. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  184. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  185. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
  186. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  187. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  188. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -124
  189. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
  190. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
  191. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -123
  192. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
  193. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
  194. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  195. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  196. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  197. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  198. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  199. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  200. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
  201. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
  202. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
  203. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -127
  204. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
  205. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
  206. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +0 -482
  207. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +0 -278
  208. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  209. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +0 -477
  210. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  211. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  212. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  213. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  214. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +0 -271
  215. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  216. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +0 -583
  217. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +0 -526
  218. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +0 -465
  219. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +0 -328
  220. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +0 -312
  221. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  222. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +0 -285
  223. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +0 -278
  224. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +0 -303
  225. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
  226. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -219
  227. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +0 -161
  228. moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
  229. moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
  230. moai_adk/templates/.moai/config.json +0 -113
  231. moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +0 -208
  232. moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +0 -369
  233. moai_adk/templates/.moai/memory/CLAUDE-RULES.md +0 -539
  234. moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
  235. moai_adk/templates/.moai/memory/ISSUE-LABEL-MAPPING.md +0 -150
  236. moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +0 -218
  237. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -330
  238. moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
  239. moai_adk/templates/.moai/project/product.md +0 -161
  240. moai_adk/templates/.moai/project/structure.md +0 -156
  241. moai_adk/templates/.moai/project/tech.md +0 -227
  242. moai_adk-0.10.1.dist-info/RECORD +0 -309
  243. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/WHEEL +0 -0
  244. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/entry_points.txt +0 -0
  245. {moai_adk-0.10.1.dist-info → moai_adk-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,344 +0,0 @@
1
- # {{PROJECT_NAME}} Development Guide
2
-
3
- > "No spec, no code. No tests, no implementation."
4
-
5
- This unified guardrail applies to every agent and developer who uses the MoAI-ADK universal development toolkit. The Python-based toolkit supports all major programming languages and enforces a SPEC-first TDD methodology with @TAG traceability. English is the default working language.
6
-
7
- ---
8
-
9
- ## SPEC-First TDD Workflow
10
-
11
- ### Core Development Loop (3 Steps)
12
-
13
- 1. **Write the SPEC** (`/alfred:1-plan`) → no code without a spec
14
- 2. **Implement with TDD** (`/alfred:2-run`) → no implementation without tests
15
- 3. **Sync Documentation** (`/alfred:3-sync`) → no completion without traceability
16
-
17
- ### On-Demand Support
18
-
19
- - **Debugging**: summon `@agent-debug-helper` when failures occur
20
- - **CLI Commands**: init, doctor, status, update, restore, help, version
21
- - **System Diagnostics**: auto-detect language tooling and verify prerequisites
22
-
23
- Every change must comply with the @TAG system, SPEC-derived requirements, and language-specific TDD practices.
24
-
25
- ### EARS Requirement Authoring
26
-
27
- **EARS (Easy Approach to Requirements Syntax)** provides a disciplined method for writing requirements.
28
-
29
- #### Five EARS Patterns
30
- 1. **Ubiquitous Requirements**: The system shall provide [capability].
31
- 2. **Event-driven Requirements**: WHEN [condition], the system shall [behaviour].
32
- 3. **State-driven Requirements**: WHILE [state], the system shall [behaviour].
33
- 4. **Optional Features**: WHERE [condition], the system may [behaviour].
34
- 5. **Constraints**: IF [condition], the system shall enforce [constraint].
35
-
36
- #### Practical Example
37
- ```markdown
38
- ### Ubiquitous Requirements (Baseline)
39
- - The system shall provide user authentication.
40
-
41
- ### Event-driven Requirements
42
- - WHEN a user logs in with valid credentials, the system shall issue a JWT token.
43
- - WHEN a token expires, the system shall return a 401 error.
44
-
45
- ### State-driven Requirements
46
- - WHILE the user remains authenticated, the system shall allow access to protected resources.
47
-
48
- ### Optional Features
49
- - WHERE a refresh token is present, the system may issue a new access token.
50
-
51
- ### Constraints
52
- - IF an invalid token is supplied, the system shall deny access.
53
- - Access tokens shall not exceed a 15-minute lifetime.
54
- ```
55
-
56
- ---
57
-
58
- ## Context Engineering
59
-
60
- MoAI-ADK follows Anthropic's principles from “Effective Context Engineering for AI Agents” to keep context lean and relevant.
61
-
62
- ### 1. JIT (Just-in-Time) Retrieval
63
-
64
- **Principle**: Load documents only when needed to minimize initial context load.
65
-
66
- **Alfred’s JIT Strategy**:
67
-
68
- | Command | Required Load | Optional Load | Timing |
69
- | ---------------- | ---------------- | -------------------------------- | ---------------------------------- |
70
- | `/alfred:1-plan` | product.md | structure.md, tech.md | While discovering SPEC candidates |
71
- | `/alfred:2-run` | SPEC-XXX/spec.md | development-guide.md | At the start of TDD implementation |
72
- | `/alfred:3-sync` | sync-report.md | TAG chain validation (`rg` scan) | During documentation sync |
73
-
74
- **Implementation Notes**:
75
- - Alfred uses the `Read` tool to load only the necessary documents at command time.
76
- - Agents request only the documents relevant to their current task.
77
- - The five documents listed in CLAUDE.md “Memory Strategy” are always loaded.
78
-
79
- ### Context Engineering Checklist
80
-
81
- **When designing commands**:
82
- - [ ] JIT: Do we load only the required documents?
83
- - [ ] Optional Load: Do we load documents conditionally?
84
-
85
- **When designing agents**:
86
- - [ ] Minimum tools: Does the YAML frontmatter declare only the needed tools?
87
- - [ ] Clear roles: Does each agent maintain a single responsibility?
88
-
89
- ---
90
-
91
- ## TRUST Principles (5 Pillars)
92
-
93
- ### T – Test-Driven Development (SPEC-Aligned)
94
-
95
- **SPEC → Test → Code Cycle**:
96
-
97
- - **SPEC**: Author detailed specifications first with `@SPEC:ID` tags (EARS format).
98
- - **RED**: `@TEST:ID` – write failing tests tied to SPEC requirements and confirm failure.
99
- - **GREEN**: `@CODE:ID` – implement the minimal code that passes the tests and satisfies the SPEC.
100
- - **REFACTOR**: `@CODE:ID` – improve the code while preserving SPEC compliance, then document with `@DOC:ID`.
101
-
102
- **Language-Specific TDD Tooling**:
103
-
104
- - **Python**: pytest + SPEC-based test cases (with mypy type hints)
105
- - **TypeScript**: Vitest + SPEC-driven suites (strict typing)
106
- - **Java**: JUnit + SPEC annotations (behaviour-driven tests)
107
- - **Go**: go test + SPEC table-driven tests (interface adherence)
108
- - **Rust**: cargo test + SPEC doc tests (trait validation)
109
- - **Ruby**: RSpec + SPEC-based BDD scenarios
110
-
111
- Each test links SPEC requirements to implementations via `@TEST:ID → @CODE:ID`.
112
-
113
- ### R – Requirement-Driven Readability
114
-
115
- **SPEC-Aligned Clean Code**:
116
-
117
- - Functions implement SPEC requirements directly (≤ 50 LOC per function).
118
- - Names mirror SPEC terminology and domain language.
119
- - Code structure reflects SPEC design decisions.
120
- - Comments are limited to SPEC clarifications and @TAG references.
121
-
122
- **Language-Specific SPEC Implementation**:
123
-
124
- - **Python**: Type hints mirroring SPEC interfaces + mypy validation
125
- - **TypeScript**: Strict interfaces that match SPEC contracts
126
- - **Java**: Classes implementing SPEC components with strong typing
127
- - **Go**: Interfaces that satisfy SPEC requirements + gofmt
128
- - **Rust**: Types enforcing SPEC safety requirements + rustfmt
129
- - **Ruby**: Behaviour reflecting SPEC narratives + RuboCop validation
130
-
131
- Every code element must remain traceable back to the SPEC via @TAG comments.
132
-
133
- ### U – Unified SPEC Architecture
134
-
135
- - **SPEC-Driven Complexity**: Each SPEC defines its complexity threshold. Exceeding it requires a new SPEC or a documented exception.
136
- - **SPEC vs. Implementation**: Keep authoring and implementation separate; never edit the SPEC mid-TDD cycle.
137
- - **Language Boundaries**: SPECs define boundaries across languages (Python modules, TypeScript interfaces, Java packages, Go packages, Rust crates, etc.).
138
- - **SPEC-Guided Architecture**: Domain boundaries follow the SPEC, not language conventions, with the @TAG system ensuring cross-language traceability.
139
-
140
- ### S – SPEC-Compliant Security
141
-
142
- - **Security Requirements**: Every SPEC explicitly defines security needs, data sensitivity, and access control.
143
- - **Security by Design**: Implement security controls during the TDD cycle, not after completion.
144
- - **Language-Agnostic Security Patterns**:
145
- - Input validation based on SPEC interface definitions
146
- - Audit logging for SPEC-defined critical operations
147
- - Access controls aligned with the SPEC permission model
148
- - Secret management tailored to SPEC environment requirements
149
-
150
- ### T – SPEC Traceability
151
-
152
- - **Spec-to-Code Traceability**: Every code change references SPEC IDs and requirements through the @TAG system.
153
- - **Three-Stage Workflow Trace**:
154
- - `/alfred:1-plan`: Write SPECs with `@SPEC:ID` tags (`.moai/specs/`)
155
- - `/alfred:2-run`: Implement via TDD with `@TEST:ID` (tests/) → `@CODE:ID` (src/)
156
- - `/alfred:3-sync`: Sync documentation using `@DOC:ID` (docs/) and validate TAG coverage
157
- - **Code Scan Verification**: Guarantee TAG traceability by scanning the codebase directly with `rg '@(SPEC|TEST|CODE|DOC):' -n`, without intermediate caches.
158
-
159
- ---
160
-
161
- ## SPEC-First Mindset
162
-
163
- 1. **SPEC-Led Decisions**: Reference an existing SPEC or author a new one before making any technical decision. Never implement without clear requirements.
164
- 2. **SPEC Context Review**: Read the relevant SPEC documents before changing code, understand the @TAG relationships, and confirm compliance.
165
- 3. **SPEC Communication**: Default to English for collaboration. SPEC documents should use precise technical terminology and plain, unambiguous explanations.
166
-
167
- ## SPEC-TDD Workflow
168
-
169
- 1. **Start with the SPEC**: Author or reference a SPEC before writing code. Use `/alfred:1-plan` to clarify requirements, design, and tasks.
170
- 2. **Implement with TDD**: Follow the Red–Green–Refactor loop rigorously using `/alfred:2-run` with language-appropriate testing frameworks.
171
- 3. **Maintain Traceability**: Run `/alfred:3-sync` to update documentation and preserve @TAG relationships between SPECs and code.
172
-
173
- ## @TAG System
174
-
175
- ### Core Chain
176
-
177
- ```text
178
- @SPEC:ID → @TEST:ID → @CODE:ID → @DOC:ID
179
- ```
180
-
181
- **Perfect TDD Alignment**:
182
- - `@SPEC:ID` (Preparation) – requirements authored with the EARS pattern
183
- - `@TEST:ID` (RED) – failing tests derived from the SPEC
184
- - `@CODE:ID` (GREEN + REFACTOR) – implementation and refactoring
185
- - `@DOC:ID` (Documentation) – live documents that capture the outcome
186
-
187
- ### TAG Block Template
188
-
189
- > **📋 SPEC Metadata Standard (SSOT)**: see `SPEC-METADATA.md`
190
-
191
- **Every SPEC document must include YAML front matter and a HISTORY section**:
192
- - **Required Fields (7)**: id, version, status, created, updated, author, priority
193
- - **Optional Fields (9)**: category, labels, depends_on, blocks, related_specs, related_issue, scope
194
- - **HISTORY Section**: log every version change (mandatory)
195
-
196
- Find the complete template, field descriptions, and validation commands in `SPEC-METADATA.md`.
197
-
198
- **Quick Reference Example**:
199
- ```yaml
200
- ---
201
- id: AUTH-001
202
- version: 0.0.1
203
- status: draft
204
- created: 2025-09-15
205
- updated: 2025-09-15
206
- author: @Goos
207
- priority: high
208
- ---
209
-
210
- # @SPEC:AUTH-001: JWT Authentication System
211
-
212
- ## HISTORY
213
- ### v0.0.1 (2025-09-15)
214
- - **INITIAL**: Authored the JWT authentication system SPEC
215
- ...
216
- ```
217
-
218
- **Source Code (`src/`)**:
219
- ```text
220
- # @CODE:AUTH-001 | SPEC: SPEC-AUTH-001.md | TEST: tests/auth/service.test.ts
221
- ```
222
-
223
- **Test Code (`tests/`)**:
224
- ```text
225
- # @TEST:AUTH-001 | SPEC: SPEC-AUTH-001.md
226
- ```
227
-
228
- ### @CODE Subcategories (Comment Level)
229
-
230
- Document implementation details inside `@CODE:ID` blocks:
231
- - `@CODE:ID:API` – REST APIs, GraphQL endpoints
232
- - `@CODE:ID:UI` – UI components, views, screens
233
- - `@CODE:ID:DATA` – data models, schemas, types
234
- - `@CODE:ID:DOMAIN` – business logic, domain rules
235
- - `@CODE:ID:INFRA` – infrastructure, databases, integrations
236
-
237
- ### TAG Usage Rules
238
-
239
- - **TAG ID Format**: `<DOMAIN>-<3 digits>` (e.g., `AUTH-003`) – immutable once created.
240
- - **Directory Naming**: `.moai/specs/SPEC-{ID}/` (required)
241
- - ✅ Valid: `SPEC-AUTH-001/`, `SPEC-REFACTOR-001/`, `SPEC-UPDATE-REFACTOR-001/`
242
- - ❌ Invalid: `AUTH-001/`, `SPEC-001-auth/`, `SPEC-AUTH-001-jwt/`
243
- - **Composite Domains**: hyphenated combinations allowed (e.g., `UPDATE-REFACTOR-001`)
244
- - **Guideline**: Prefer fewer than three hyphen segments for clarity
245
- - **TAG Contents**: May evolve freely; always record the rationale in HISTORY.
246
- - **Versioning**: Semantic Versioning (v0.0.1 → v0.1.0 → v1.0.0)
247
- - See `SPEC-METADATA.md#versioning` for details.
248
- - **Duplicate Check**: Run `rg "@SPEC:{ID}" -n .moai/specs/` before creating a new TAG.
249
- - **TAG Validation**: `rg '@(SPEC|TEST|CODE|DOC):' -n .moai/specs/ tests/ src/ docs/`
250
- - **Version Alignment**: `rg "SPEC-{ID}.md v" -n`
251
- - **Code-First Principle**: The source of truth for TAGs lives in the codebase.
252
-
253
- ### HISTORY Authoring Guide
254
-
255
- **Change Type Tags**:
256
- - `INITIAL`: First release (v1.0.0)
257
- - `ADDED`: New requirement or capability → increment MINOR
258
- - `CHANGED`: Adjusted behaviour → increment PATCH
259
- - `FIXED`: Bug or defect fix → increment PATCH
260
- - `REMOVED`: Removed capability → increment MAJOR
261
- - `BREAKING`: Backward-incompatible change → increment MAJOR
262
- - `DEPRECATED`: Marked for future removal
263
-
264
- **Required Metadata**:
265
- - `AUTHOR`: Contributor (GitHub ID)
266
- - `REVIEW`: Reviewer and approval status
267
- - `REASON`: Why the change was made (optional but recommended for significant updates)
268
- - `RELATED`: Linked issues/PRs (optional)
269
-
270
- **HISTORY Search Examples**:
271
- ```bash
272
- # View the full change log for a TAG
273
- rg -A 20 "# @SPEC:AUTH-001" .moai/specs/SPEC-AUTH-001.md
274
-
275
- # Extract only the HISTORY section
276
- rg -A 50 "## HISTORY" .moai/specs/SPEC-AUTH-001.md
277
-
278
- # Check the latest entries
279
- rg "### v[0-9]" .moai/specs/SPEC-AUTH-001.md | head -3
280
- ```
281
-
282
- ---
283
-
284
- ## Development Principles
285
-
286
- ### Code Constraints
287
-
288
- - ≤ 300 LOC per file
289
- - ≤ 50 LOC per function
290
- - ≤ 5 parameters per function
291
- - Cyclomatic complexity ≤ 10
292
-
293
- ### Quality Benchmarks
294
-
295
- - ≥ 85% test coverage
296
- - Use intention-revealing names
297
- - Prefer guard clauses
298
- - Leverage language-standard tooling
299
-
300
- ### Refactoring Rules
301
-
302
- - **Rule of Three**: Plan refactoring when the same pattern appears a third time.
303
- - **Preparatory Refactoring**: Shape the code for easy change before applying the change.
304
- - **Tidy as You Go**: Fix small issues immediately; when scope expands, split into a dedicated effort.
305
-
306
- ## Exception Handling
307
-
308
- When deviating from recommendations, document a waiver and attach it to the relevant PR, issue, or ADR.
309
-
310
- **Waiver Checklist**:
311
-
312
- - Justification and evaluated alternatives
313
- - Risks and mitigation plan
314
- - Temporary vs. permanent status
315
- - Expiry conditions and approver
316
-
317
- ## Language Tooling Map
318
-
319
- - **Python**: pytest (tests), mypy (type checks), black (formatting)
320
- - **TypeScript**: Vitest (tests), Biome (lint + format)
321
- - **Java**: JUnit (tests), Maven/Gradle (build)
322
- - **Go**: go test (tests), gofmt (format)
323
- - **Rust**: cargo test (tests), rustfmt (format)
324
- - **Ruby**: RSpec (tests), RuboCop (lint + format), Bundler (packages)
325
-
326
- ## Variable Role Reference
327
-
328
- | Role | Description | Example |
329
- | ------------------ | ---------------------------------- | ------------------------------------ |
330
- | Fixed Value | Constant after initialization | `const MAX_SIZE = 100` |
331
- | Stepper | Changes sequentially | `for (let i = 0; i < n; i++)` |
332
- | Flag | Boolean state indicator | `let isValid = true` |
333
- | Walker | Traverses a data structure | `while (node) { node = node.next; }` |
334
- | Most Recent Holder | Holds the most recent value | `let lastError` |
335
- | Most Wanted Holder | Holds optimal/maximum value | `let bestScore = -Infinity` |
336
- | Gatherer | Accumulator | `sum += value` |
337
- | Container | Stores multiple values | `const list = []` |
338
- | Follower | Previous value of another variable | `prev = curr; curr = next;` |
339
- | Organizer | Reorganizes data | `const sorted = array.sort()` |
340
- | Temporary | Temporary storage | `const temp = a; a = b; b = temp;` |
341
-
342
- ---
343
-
344
- This guide defines the standards for executing the three-stage MoAI-ADK pipeline.
@@ -1,150 +0,0 @@
1
- # 📌 GitHub Issue Label Mapping Configuration
2
-
3
- > **MoAI-ADK Label Management** - Centralized configuration for issue type labels and priority indicators
4
-
5
- **Version**: 1.0.0
6
- **Related**: `/alfred:9-feedback`
7
-
8
- ---
9
-
10
- ## 🏷️ Issue Type Label Mapping
11
-
12
- ### Bug Issues (`--bug`)
13
-
14
- **Primary Labels**: `bug`, `reported`
15
-
16
- **Optional Labels** (based on priority):
17
- - `priority-critical` - System down, data loss risk
18
- - `priority-high` - Major feature broken
19
- - `priority-medium` - Normal bug
20
- - `priority-low` - Minor issue
21
-
22
- ---
23
-
24
- ### Feature Request Issues (`--feature`)
25
-
26
- **Primary Labels**: `feature-request`, `enhancement`
27
-
28
- **Optional Labels** (based on priority):
29
- - `priority-critical` - Blocking, must implement immediately
30
- - `priority-high` - Important feature
31
- - `priority-medium` - Normal priority feature (default)
32
- - `priority-low` - Nice to have
33
-
34
- ---
35
-
36
- ### Improvement Issues (`--improvement`)
37
-
38
- **Primary Labels**: `improvement`, `enhancement`
39
-
40
- **Optional Labels** (based on priority):
41
- - `priority-critical` - Critical refactoring needed
42
- - `priority-high` - Important improvement
43
- - `priority-medium` - Normal priority (default)
44
- - `priority-low` - Technical debt, can wait
45
-
46
- ---
47
-
48
- ### Question/Discussion Issues (`--question`)
49
-
50
- **Primary Labels**: `question`, `help-wanted`
51
-
52
- **Optional Labels** (based on priority):
53
- - `priority-critical` - Urgent decision needed
54
- - `priority-high` - Important decision
55
- - `priority-medium` - Normal discussion (default)
56
- - `priority-low` - Optional discussion
57
-
58
- ---
59
-
60
- ## 🎯 Priority Emoji Mapping
61
-
62
- | Priority | Emoji | Use Case |
63
- |----------|-------|----------|
64
- | Critical | 🔴 | System outage, data loss, security breach |
65
- | High | 🟠 | Major feature broken, significant impact |
66
- | Medium | 🟡 | Normal bugs/features (default) |
67
- | Low | 🟢 | Minor issues, nice-to-have features |
68
-
69
- ---
70
-
71
- ## 🚀 Issue Type Emoji Mapping
72
-
73
- | Type | Emoji | Description |
74
- |------|-------|-------------|
75
- | Bug | 🐛 | Defect or unexpected behavior |
76
- | Feature | ✨ | New functionality or capability |
77
- | Improvement | ⚡ | Code quality, performance, or design improvement |
78
- | Question | ❓ | Question, discussion, or decision needed |
79
-
80
- ---
81
-
82
- ## 🛠️ GitHub Labels Setup
83
-
84
- To create labels in your GitHub repository, use GitHub CLI:
85
-
86
- ```bash
87
- # Authenticate first
88
- gh auth login
89
-
90
- # Create bug labels
91
- gh label create "bug" \
92
- --description "Something isn't working" \
93
- --color "d73a49"
94
-
95
- gh label create "reported" \
96
- --description "User-reported issue" \
97
- --color "fc2929"
98
-
99
- # Create feature labels
100
- gh label create "feature-request" \
101
- --description "New feature or request" \
102
- --color "a2eeef"
103
-
104
- gh label create "enhancement" \
105
- --description "Improvement or enhancement" \
106
- --color "0075ca"
107
-
108
- # Create improvement label
109
- gh label create "improvement" \
110
- --description "Performance or code quality improvement" \
111
- --color "5ebcf6"
112
-
113
- # Create question labels
114
- gh label create "question" \
115
- --description "Question for discussion" \
116
- --color "fbca04"
117
-
118
- gh label create "help-wanted" \
119
- --description "We need help with this" \
120
- --color "fcfc03"
121
-
122
- # Create priority labels
123
- gh label create "priority-critical" \
124
- --description "Critical priority - URGENT" \
125
- --color "ff0000"
126
-
127
- gh label create "priority-high" \
128
- --description "High priority" \
129
- --color "ff6600"
130
-
131
- gh label create "priority-medium" \
132
- --description "Medium priority" \
133
- --color "ffcc00"
134
-
135
- gh label create "priority-low" \
136
- --description "Low priority" \
137
- --color "00cc00"
138
- ```
139
-
140
- ---
141
-
142
- ## ✨ Summary
143
-
144
- This configuration enables:
145
- - ✅ **Standardized issue labels** across all issue types
146
- - ✅ **Priority indicators** with emoji for visual identification
147
- - ✅ **Type emoji** for quick issue categorization
148
- - ✅ **Automated label assignment** via `/alfred:9-feedback`
149
-
150
- For more information, see `.moai/docs/quick-issue-creation-guide.md`