moai-adk 0.9.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 (260) 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/.git-hooks/pre-push +143 -0
  5. moai_adk/templates/.github/workflows/moai-gitflow.yml +6 -1
  6. moai_adk/templates/.github/workflows/release.yml +6 -2
  7. moai_adk/templates/.github/workflows/tag-validation.yml +57 -8
  8. moai_adk/templates/CLAUDE.md +477 -28
  9. moai_adk/templates/README.md +256 -0
  10. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/METADATA +740 -90
  11. moai_adk-0.11.0.dist-info/RECORD +77 -0
  12. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
  13. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
  14. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
  15. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
  16. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -350
  17. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -273
  18. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
  19. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
  20. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -287
  21. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -287
  22. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -326
  23. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
  24. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1189
  25. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -728
  26. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -545
  27. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -683
  28. moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
  29. moai_adk/templates/.claude/hooks/alfred/.moai/cache/version-check.json +0 -9
  30. moai_adk/templates/.claude/hooks/alfred/README.md +0 -343
  31. moai_adk/templates/.claude/hooks/alfred/TROUBLESHOOTING.md +0 -471
  32. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
  33. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
  34. moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
  35. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -102
  36. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -108
  37. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -102
  38. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -102
  39. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
  40. moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +0 -271
  41. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
  42. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +0 -683
  43. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -198
  44. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
  45. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
  46. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -25
  47. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -175
  48. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -90
  49. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
  50. moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +0 -102
  51. moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +0 -102
  52. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -120
  53. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
  54. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
  55. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
  56. moai_adk/templates/.claude/settings.json +0 -144
  57. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  58. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  59. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  60. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  61. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  62. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  63. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  64. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  65. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  66. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  67. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  68. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  69. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  70. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  71. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  72. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  73. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  74. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  75. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  76. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  77. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  78. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  79. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  80. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  81. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  82. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  83. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  84. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  85. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  86. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  87. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  88. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  89. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  90. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  91. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  92. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  93. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  94. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  95. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  96. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +0 -290
  97. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
  98. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
  99. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  100. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  101. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  102. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  103. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  104. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  105. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +0 -123
  106. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
  107. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
  108. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  109. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  110. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  111. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +0 -124
  112. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
  113. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
  114. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  115. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  116. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  117. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  118. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  119. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  120. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  121. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  122. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  123. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  124. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  125. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  126. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  127. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  128. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  129. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  130. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  131. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  132. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  133. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  134. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  135. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  136. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  137. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  138. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
  139. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  140. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  141. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  142. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  143. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  144. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  145. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  146. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  147. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  148. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  149. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  150. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  151. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  152. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  153. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  154. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  155. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  156. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  157. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  158. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  159. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
  160. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  161. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  162. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
  163. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  164. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  165. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  166. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  167. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  168. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -124
  169. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
  170. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
  171. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -124
  172. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
  173. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
  174. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  175. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  176. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  177. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
  178. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
  179. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
  180. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -123
  181. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  182. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  183. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -431
  184. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
  185. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
  186. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
  187. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  188. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  189. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
  190. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  191. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  192. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -124
  193. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
  194. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
  195. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -123
  196. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
  197. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
  198. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  199. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  200. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  201. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  202. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  203. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  204. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
  205. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
  206. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
  207. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -127
  208. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
  209. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
  210. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +0 -482
  211. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +0 -278
  212. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  213. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +0 -477
  214. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  215. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  216. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  217. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  218. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +0 -271
  219. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  220. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +0 -583
  221. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +0 -526
  222. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +0 -465
  223. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +0 -328
  224. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +0 -312
  225. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  226. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +0 -285
  227. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +0 -278
  228. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +0 -303
  229. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +0 -137
  230. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +0 -219
  231. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +0 -161
  232. moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +0 -541
  233. moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +0 -622
  234. moai_adk/templates/.github/workflows/tag-report.yml +0 -261
  235. moai_adk/templates/.moai/config.json +0 -113
  236. moai_adk/templates/.moai/docs/quick-issue-creation-guide.md +0 -219
  237. moai_adk/templates/.moai/hooks/install.sh +0 -79
  238. moai_adk/templates/.moai/hooks/pre-commit.sh +0 -66
  239. moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +0 -208
  240. moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +0 -369
  241. moai_adk/templates/.moai/memory/CLAUDE-RULES.md +0 -539
  242. moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +0 -344
  243. moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
  244. moai_adk/templates/.moai/memory/ISSUE-LABEL-MAPPING.md +0 -150
  245. moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +0 -218
  246. moai_adk/templates/.moai/memory/SPEC-METADATA.md +0 -356
  247. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
  248. moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
  249. moai_adk/templates/.moai/project/product.md +0 -161
  250. moai_adk/templates/.moai/project/structure.md +0 -156
  251. moai_adk/templates/.moai/project/tech.md +0 -227
  252. moai_adk/templates/src/moai_adk/core/__init__.py +0 -5
  253. moai_adk/templates/src/moai_adk/core/tags/__init__.py +0 -86
  254. moai_adk/templates/src/moai_adk/core/tags/ci_validator.py +0 -433
  255. moai_adk/templates/src/moai_adk/core/tags/cli.py +0 -283
  256. moai_adk/templates/src/moai_adk/core/tags/validator.py +0 -897
  257. moai_adk-0.9.1.dist-info/RECORD +0 -320
  258. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/WHEEL +0 -0
  259. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/entry_points.txt +0 -0
  260. {moai_adk-0.9.1.dist-info → moai_adk-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,477 +0,0 @@
1
- # Skill Metadata Authoring Guide
2
-
3
- This guide details YAML frontmatter requirements for Claude Code Skills, with practical examples and validation rules.
4
-
5
- ---
6
-
7
- ## YAML Frontmatter Structure
8
-
9
- Every SKILL.md requires a valid YAML frontmatter block:
10
-
11
- ```yaml
12
- ---
13
- name: "Skill Name"
14
- description: "What it does and when to use it"
15
- allowed-tools: "Tool1, Tool2, Tool3"
16
- ---
17
- ```
18
-
19
- ### Frontmatter Rules
20
-
21
- | Rule | Example | Reason |
22
- |------|---------|--------|
23
- | Start with `---` | `---` (3 dashes) | YAML document marker |
24
- | No tabs, only spaces | Use 2 spaces for indent | YAML parsing requirements |
25
- | Proper key-value pairs | `name: "value"` | Valid YAML syntax |
26
- | String values in quotes | `"Skill Name"` | Required for special characters |
27
- | End with `---` | `---` (3 dashes) | Marks end of metadata block |
28
-
29
- ---
30
-
31
- ## Field Specifications
32
-
33
- ### `name` (Required)
34
-
35
- The display identifier for the Skill in Claude Code and documentation.
36
-
37
- **Constraints**:
38
- - Maximum 64 characters (strictly enforced)
39
- - Gerund form (action verb): "Processing", "Debugging", "Analyzing"
40
- - Domain-specific and discoverable
41
- - Should NOT include "Skill", "Helper", or redundant prefixes
42
-
43
- **Format**:
44
- ```
45
- [Verb (Gerund)] [Domain/Context]
46
- ```
47
-
48
- **Examples** ✅:
49
- | Name | Character Count | Why It Works |
50
- |------|-----------------|--------------|
51
- | `Processing CSV Files with Python` | 36 | Action + specific domain |
52
- | `Debugging Go Applications with Delve` | 42 | Action + language + tool |
53
- | `Optimizing React Performance` | 31 | Action + framework |
54
- | `Scanning Security Vulnerabilities` | 35 | Action + domain |
55
-
56
- **Anti-examples** ❌:
57
- | Name | Issue |
58
- |------|-------|
59
- | `CSV Helper` | Too generic, no verb |
60
- | `Python Stuff` | Vague, not discoverable |
61
- | `The Ultimate Skill for Processing CSV Files` | Too long (>64), verbose |
62
- | `csv_processor_v2` | Underscore format, not gerund |
63
-
64
- **Character Count Tool**:
65
- ```bash
66
- echo -n "Your Skill Name" | wc -c
67
- # Output: 16 characters
68
- ```
69
-
70
- ---
71
-
72
- ### `description` (Required)
73
-
74
- The discovery and contextualization text. Claude uses this to decide when to activate the Skill.
75
-
76
- **Constraints**:
77
- - Maximum 1024 characters
78
- - Third person perspective ("The Skill does X", NOT "I can do X")
79
- - Includes both WHAT and WHEN
80
- - Contains 3+ discoverable keywords
81
- - Structured as: [Capabilities] + [Use cases/triggers]
82
-
83
- **Format Template**:
84
- ```
85
- "[Capability 1], [Capability 2], or [Capability 3].
86
- Use when [trigger scenario 1], [trigger scenario 2],
87
- or [trigger scenario 3]."
88
- ```
89
-
90
- **Real-World Examples** ✅:
91
-
92
- ```yaml
93
- # Example 1: PDF Processing
94
- description: "Extract text and tables from PDF files,
95
- create and edit presentations, or generate spreadsheets.
96
- Use when working with PDF documents, PowerPoint files,
97
- or when the user mentions document extraction or
98
- data export."
99
-
100
- # Example 2: Go Debugging
101
- description: "Setup and use the Delve debugger for Go
102
- applications with breakpoints, stack inspection, and
103
- step-through execution. Use when debugging Go programs,
104
- investigating runtime errors, or profiling performance
105
- bottlenecks."
106
-
107
- # Example 3: TypeScript Testing
108
- description: "Write and execute Jest or Vitest unit tests
109
- for TypeScript projects with mocking, snapshots, and
110
- coverage reporting. Use when testing TypeScript code,
111
- ensuring code quality, or implementing test-driven
112
- development."
113
- ```
114
-
115
- **Character Count**:
116
- ```bash
117
- # Count description length
118
- description="Your description text here"
119
- echo -n "$description" | wc -c
120
- ```
121
-
122
- **Trigger Keyword Audit**:
123
-
124
- For each description, extract 3+ keywords Claude uses to decide activation:
125
-
126
- ```
127
- Description: "Extract text and tables from PDF files..."
128
- Keywords: ["PDF", "extract", "documents", "data export"]
129
- ↑ Would trigger on user mentioning these
130
- ```
131
-
132
- ### `allowed-tools` (Recommended)
133
-
134
- Specifies which Claude Code tools this Skill can use. Restricts access for safety and clarity.
135
-
136
- **Format**:
137
- - Comma-separated list of tool names
138
- - Can use wildcards for patterns: `Bash(python:*)`
139
- - One tool per comma-separated item
140
-
141
- **Tool Reference**:
142
-
143
- | Tool Category | Examples | Use When |
144
- |---------------|----------|----------|
145
- | **File I/O** | `Read`, `Write`, `Edit`, `Glob` | Reading files, searching, writing output |
146
- | **Search** | `Grep` | Pattern matching in files |
147
- | **Execution** | `Bash(python:*)`, `Bash(git:*)` | Running specific commands |
148
- | **Specialized** | `NotebookEdit` | Jupyter notebooks |
149
- | **Meta** | `Bash(ls:*)`, `Bash(mkdir:*)` | Directory operations |
150
-
151
- **Example Allowed-tools Lists**:
152
-
153
- ```yaml
154
- # Analysis-only Skill
155
- allowed-tools: "Read, Grep, Glob"
156
-
157
- # File manipulation Skill
158
- allowed-tools: "Read, Write, Edit, Bash(mkdir:*), Bash(touch:*)"
159
-
160
- # Language-specific testing
161
- allowed-tools: "Read, Bash(python:*), Bash(pytest:*), Bash(mypy:*)"
162
-
163
- # Git workflow Skill
164
- allowed-tools: "Read, Bash(git:*), Bash(gh:*)"
165
-
166
- # Comprehensive (rare)
167
- allowed-tools: "Read, Write, Edit, Glob, Grep, Bash(python:*), Bash(node:*)"
168
- ```
169
-
170
- **Minimal Principle**:
171
- - Include ONLY tools the Skill actually needs
172
- - If a Skill only reads files, omit `Write` and `Edit`
173
- - If it doesn't run code, omit `Bash(*)`
174
- - Overly broad `allowed-tools` list reduces clarity
175
-
176
- **Decision Matrix**:
177
-
178
- ```
179
- Does the Skill need to create files?
180
- ├─ YES → Include Write, Edit
181
- └─ NO → Omit them
182
-
183
- Does the Skill need to run code?
184
- ├─ YES → Include Bash(language:*) for needed languages
185
- └─ NO → Omit Bash
186
-
187
- Does the Skill analyze text/patterns?
188
- ├─ YES → Include Grep, Read
189
- └─ NO → Omit them
190
- ```
191
-
192
- ---
193
-
194
- ## Metadata Validation Checklist
195
-
196
- Before publishing, verify all fields:
197
-
198
- ```
199
- name:
200
- [ ] ≤ 64 characters
201
- [ ] Gerund format (action verb)
202
- [ ] Specific and discoverable (not generic)
203
- [ ] Matches skill domain
204
-
205
- description:
206
- [ ] ≤ 1024 characters
207
- [ ] Includes what (capabilities)
208
- [ ] Includes when (triggers/use cases)
209
- [ ] Contains 3+ discoverable keywords
210
- [ ] Third person perspective
211
- [ ] No "I can", "we can", subjective language
212
-
213
- allowed-tools:
214
- [ ] All tools listed are actually used
215
- [ ] No overly broad patterns (e.g., Bash(*) without specifics)
216
- [ ] Tools are comma-separated
217
- [ ] No typos in tool names
218
- ```
219
-
220
- ---
221
-
222
- ## Real-World Metadata Examples
223
-
224
- ### Example 1: High Freedom Skill (Principles)
225
-
226
- ```yaml
227
- ---
228
- name: "Architecting Scalable Microservices"
229
- description: "Design microservice architecture with patterns
230
- for service decomposition, communication, and deployment. Use when
231
- planning microservice strategies, discussing service boundaries,
232
- analyzing scalability trade-offs, or implementing distributed systems."
233
- allowed-tools: "Read, Glob"
234
- ---
235
- ```
236
-
237
- **Analysis**:
238
- - ✅ Name: Action verb + domain
239
- - ✅ Description: Capabilities (design, patterns) + triggers (planning, discussing, analyzing)
240
- - ✅ Keywords: "microservice", "architecture", "distributed", "scalability"
241
- - ✅ Tools: Minimal (read-only, no execution)
242
-
243
- ### Example 2: Medium Freedom Skill (Patterns)
244
-
245
- ```yaml
246
- ---
247
- name: "Writing Effective Unit Tests with Pytest"
248
- description: "Write comprehensive unit tests using Pytest
249
- with fixtures, mocking, and parametrization for Python projects.
250
- Use when testing Python code, implementing test-driven development,
251
- or improving test coverage."
252
- allowed-tools: "Read, Bash(python:*), Bash(pytest:*)"
253
- ---
254
- ```
255
-
256
- **Analysis**:
257
- - ✅ Name: Action verb + framework
258
- - ✅ Description: Specific capabilities (fixtures, mocking) + triggers (testing, TDD)
259
- - ✅ Keywords: "testing", "Python", "Pytest", "unit tests"
260
- - ✅ Tools: Specific to testing (python, pytest only)
261
-
262
- ### Example 3: Low Freedom Skill (Scripts)
263
-
264
- ```yaml
265
- ---
266
- name: "Automating Deployment with Git Hooks"
267
- description: "Set up and debug pre-commit, post-commit, and
268
- pre-push Git hooks for automated linting, testing, and deployment.
269
- Use when configuring CI/CD pipelines, preventing bad commits, or
270
- automating deployment workflows."
271
- allowed-tools: "Read, Write, Bash(git:*), Bash(bash:*)"
272
- ---
273
- ```
274
-
275
- **Analysis**:
276
- - ✅ Name: Action verb + mechanism
277
- - ✅ Description: Concrete actions (setup, debug, configure) + use cases
278
- - ✅ Keywords: "Git", "CI/CD", "automation", "deployment"
279
- - ✅ Tools: Script execution for Git operations
280
-
281
- ---
282
-
283
- ## Common Metadata Mistakes & Fixes
284
-
285
- | Mistake | Example | Fix |
286
- |---------|---------|-----|
287
- | **Name too generic** | `"Python Helper"` | `"Optimizing Python Code Performance"` |
288
- | **Name too long** | `"The Complete Guide to Processing CSV Files in Python"` | `"Processing CSV Files with Python"` |
289
- | **Description unclear** | `"Helps with stuff"` | `"Extract, validate, and transform CSV data. Use when..."` |
290
- | **No triggers** | `"Database design patterns"` | `"...Use when designing databases, optimizing queries..."` |
291
- | **Wrong perspective** | `"I can extract text from PDFs"` | `"Extracts text and tables from PDF files"` |
292
- | **Over-scoped tools** | `allowed-tools: "Bash(*)"` | `allowed-tools: "Bash(python:*), Bash(pytest:*)"` |
293
-
294
- ---
295
-
296
- ## Metadata Interaction with Skill Discovery
297
-
298
- Claude uses metadata to **decide whether to activate a Skill**:
299
-
300
- ```
301
- User Request: "I need to extract tables from a PDF"
302
-
303
- Claude searches Skill descriptions for keywords:
304
- ├─ "PDF" → Found in moai-domain-pdf description ✓
305
- ├─ "extract" → Found in same description ✓
306
- └─ "tables" → Found in same description ✓
307
-
308
- Result: Skill activates with ~90% confidence
309
- ```
310
-
311
- **Weak Description** ❌:
312
- ```
313
- "Processes documents"
314
- User: "Extract PDF tables" → No match on "PDF", "extract", or "tables"
315
- Result: Skill doesn't activate ✗
316
- ```
317
-
318
- **Strong Description** ✅:
319
- ```
320
- "Extract text and tables from PDF files, create presentations,
321
- or generate spreadsheets. Use when working with PDF documents..."
322
- User: "Extract PDF tables" → Matches "PDF", "extract", "tables"
323
- Result: Skill activates ✓
324
- ```
325
-
326
- ---
327
-
328
- ## Metadata File Structure in Practice
329
-
330
- ### Correct Structure
331
-
332
- ```yaml
333
- ---
334
- name: "Skill Name"
335
- description: "Description here."
336
- allowed-tools: "Tool1, Tool2"
337
- ---
338
-
339
- # Heading (first line of content after metadata)
340
- ## Subheading
341
- Content starts here...
342
- ```
343
-
344
- ### Common Errors
345
-
346
- **❌ Missing starting dash**:
347
- ```yaml
348
- name: "Skill Name"
349
- description: "..."
350
- ---
351
- ```
352
-
353
- **❌ Missing ending dash**:
354
- ```yaml
355
- ---
356
- name: "Skill Name"
357
- ---
358
- # Content here (metadata incomplete!)
359
- ```
360
-
361
- **❌ Tabs instead of spaces**:
362
- ```yaml
363
- ---
364
- name: "Skill Name" # TAB before name (invalid!)
365
- ---
366
- ```
367
-
368
- **✅ Correct**:
369
- ```yaml
370
- ---
371
- name: "Skill Name"
372
- description: "Description text"
373
- allowed-tools: "Tool1, Tool2"
374
- ---
375
- ```
376
-
377
- ---
378
-
379
- ## Multi-Model Metadata Compatibility
380
-
381
- Metadata must work across Haiku, Sonnet, and Opus:
382
-
383
- | Model | Consideration | Example |
384
- |-------|---------------|---------|
385
- | **Haiku** | Simpler keywords → trigger on broad patterns | Keywords: `["Python", "testing"]` |
386
- | **Sonnet** | More nuanced keyword matching | Keywords: `["fixture-based testing", "parametrization"]` |
387
- | **Opus** | Understands context and implicit triggers | Can infer "Go debugging" from mention of "breakpoints + delve" |
388
-
389
- **Best Practice**: Write descriptions that work for all three models:
390
- - Use common terms (accessible to Haiku)
391
- - Add technical specificity (useful for Sonnet)
392
- - Enable contextual understanding (leverages Opus)
393
-
394
- ---
395
-
396
- ## Version Control for Metadata
397
-
398
- When updating a Skill's metadata:
399
-
400
- ```
401
- Before:
402
- name: "Processing CSV Files"
403
-
404
- After:
405
- name: "Processing CSV Files with Python"
406
-
407
- Rationale: Added "with Python" for better discoverability
408
- Updated: 2025-10-22
409
- ```
410
-
411
- ---
412
-
413
- ## Reference: Full Metadata Audit Template
414
-
415
- ```markdown
416
- # Metadata Audit Checklist
417
-
418
- ## name
419
- - [ ] Exactly 64 characters or fewer
420
- - [ ] Begins with action verb (gerund)
421
- - [ ] Specific to domain (not generic)
422
- - [ ] No "Skill", "Helper", redundant prefixes
423
- - [ ] Capitalized properly
424
-
425
- ## description
426
- - [ ] Exactly 1024 characters or fewer
427
- - [ ] Third person perspective
428
- - [ ] Describes capabilities clearly
429
- - [ ] Includes 3+ use case triggers
430
- - [ ] Contains searchable keywords
431
- - [ ] No subjective language ("great", "amazing")
432
-
433
- ## allowed-tools
434
- - [ ] Comma-separated format
435
- - [ ] Each tool actually used by Skill
436
- - [ ] Specific patterns (not overly broad)
437
- - [ ] No typos in tool names
438
- - [ ] Minimal scope principle applied
439
- ```
440
-
441
- ---
442
-
443
- ## Quick Metadata Generator
444
-
445
- Use this template to generate metadata for new Skills:
446
-
447
- ```yaml
448
- ---
449
- name: "[VERB] [DOMAIN]"
450
- description: "[CAPABILITY 1], [CAPABILITY 2], or [CAPABILITY 3].
451
- Use when [TRIGGER 1], [TRIGGER 2], or [TRIGGER 3]."
452
- allowed-tools: "[TOOL1], [TOOL2], [TOOL3]"
453
- ---
454
- ```
455
-
456
- **Example Fills**:
457
-
458
- ```yaml
459
- ---
460
- name: "Analyzing Performance Bottlenecks in Python"
461
- description: "Profile Python applications using cProfile,
462
- measure execution time, and identify memory leaks. Use when
463
- optimizing performance, debugging slow functions, or analyzing
464
- resource usage."
465
- allowed-tools: "Read, Bash(python:*)"
466
- ---
467
- ```
468
-
469
- ---
470
-
471
- **Version**: 0.3.0 (with Interactive Discovery & Web Research)
472
- **Last Updated**: 2025-10-22
473
- **Framework**: MoAI-ADK + Claude Code Skills + skill-factory
474
- **Related Guides**:
475
- - [INTERACTIVE-DISCOVERY.md](INTERACTIVE-DISCOVERY.md) — TUI survey patterns
476
- - [WEB-RESEARCH.md](WEB-RESEARCH.md) — Web research strategies
477
- - [SKILL-UPDATE-ADVISOR.md](SKILL-UPDATE-ADVISOR.md) — Skill analysis & updates