moai-adk 0.15.1__py3-none-any.whl → 0.25.4__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 (417) hide show
  1. moai_adk/__init__.py +1 -2
  2. moai_adk/__main__.py +85 -2
  3. moai_adk/cli/__init__.py +0 -1
  4. moai_adk/cli/commands/__init__.py +0 -1
  5. moai_adk/cli/commands/analyze.py +127 -0
  6. moai_adk/cli/commands/backup.py +5 -3
  7. moai_adk/cli/commands/doctor.py +35 -11
  8. moai_adk/cli/commands/improve_user_experience.py +348 -0
  9. moai_adk/cli/commands/init.py +150 -23
  10. moai_adk/cli/commands/language.py +269 -0
  11. moai_adk/cli/commands/migrate.py +158 -0
  12. moai_adk/cli/commands/status.py +13 -12
  13. moai_adk/cli/commands/update.py +364 -60
  14. moai_adk/cli/commands/validate_links.py +118 -0
  15. moai_adk/cli/main.py +3 -2
  16. moai_adk/cli/prompts/init_prompts.py +79 -82
  17. moai_adk/core/__init__.py +0 -1
  18. moai_adk/core/analysis/__init__.py +9 -0
  19. moai_adk/core/analysis/session_analyzer.py +439 -0
  20. moai_adk/core/claude_integration.py +421 -0
  21. moai_adk/core/command_helpers.py +270 -0
  22. moai_adk/core/config/__init__.py +6 -0
  23. moai_adk/core/config/auto_spec_config.py +346 -0
  24. moai_adk/core/config/migration.py +133 -12
  25. moai_adk/core/context_manager.py +279 -0
  26. moai_adk/core/diagnostics/slash_commands.py +0 -1
  27. moai_adk/core/error_recovery_system.py +1289 -0
  28. moai_adk/core/git/__init__.py +0 -1
  29. moai_adk/core/git/branch.py +0 -1
  30. moai_adk/core/git/branch_manager.py +4 -4
  31. moai_adk/core/git/checkpoint.py +1 -5
  32. moai_adk/core/git/commit.py +0 -1
  33. moai_adk/core/git/event_detector.py +3 -5
  34. moai_adk/core/git/manager.py +0 -1
  35. moai_adk/core/hooks/post_tool_auto_spec_completion.py +925 -0
  36. moai_adk/core/integration/__init__.py +22 -0
  37. moai_adk/core/integration/engine.py +169 -0
  38. moai_adk/core/integration/integration_tester.py +225 -0
  39. moai_adk/core/integration/models.py +88 -0
  40. moai_adk/core/integration/utils.py +211 -0
  41. moai_adk/core/issue_creator.py +28 -18
  42. moai_adk/core/language_config.py +202 -0
  43. moai_adk/core/language_validator.py +556 -0
  44. moai_adk/core/mcp/setup.py +113 -0
  45. moai_adk/core/migration/__init__.py +18 -0
  46. moai_adk/core/migration/backup_manager.py +208 -0
  47. moai_adk/core/migration/file_migrator.py +218 -0
  48. moai_adk/core/migration/version_detector.py +143 -0
  49. moai_adk/core/migration/version_migrator.py +228 -0
  50. moai_adk/core/performance/__init__.py +6 -0
  51. moai_adk/core/performance/cache_system.py +318 -0
  52. moai_adk/core/performance/parallel_processor.py +116 -0
  53. moai_adk/core/project/__init__.py +0 -1
  54. moai_adk/core/project/backup_utils.py +2 -7
  55. moai_adk/core/project/checker.py +3 -3
  56. moai_adk/core/project/detector.py +20 -40
  57. moai_adk/core/project/initializer.py +42 -17
  58. moai_adk/core/project/phase_executor.py +415 -58
  59. moai_adk/core/project/validator.py +6 -25
  60. moai_adk/core/quality/__init__.py +1 -1
  61. moai_adk/core/quality/trust_checker.py +64 -110
  62. moai_adk/core/quality/validators/__init__.py +1 -1
  63. moai_adk/core/quality/validators/base_validator.py +1 -1
  64. moai_adk/core/rollback_manager.py +993 -0
  65. moai_adk/core/session_manager.py +667 -0
  66. moai_adk/core/spec/confidence_scoring.py +749 -0
  67. moai_adk/core/spec/ears_template_engine.py +1182 -0
  68. moai_adk/core/spec/quality_validator.py +721 -0
  69. moai_adk/core/spec_status_manager.py +488 -0
  70. moai_adk/core/template/__init__.py +0 -1
  71. moai_adk/core/template/backup.py +41 -1
  72. moai_adk/core/template/config.py +11 -12
  73. moai_adk/core/template/languages.py +0 -1
  74. moai_adk/core/template/merger.py +79 -22
  75. moai_adk/core/template/processor.py +614 -40
  76. moai_adk/core/template_engine.py +36 -27
  77. moai_adk/foundation/git/commit_templates.py +565 -0
  78. moai_adk/foundation/trust/trust_principles.py +725 -0
  79. moai_adk/foundation/trust/validation_checklist.py +1678 -0
  80. moai_adk/statusline/__init__.py +38 -0
  81. moai_adk/statusline/alfred_detector.py +107 -0
  82. moai_adk/statusline/config.py +364 -0
  83. moai_adk/statusline/enhanced_output_style_detector.py +364 -0
  84. moai_adk/statusline/git_collector.py +190 -0
  85. moai_adk/statusline/main.py +228 -0
  86. moai_adk/statusline/metrics_tracker.py +78 -0
  87. moai_adk/statusline/renderer.py +327 -0
  88. moai_adk/statusline/update_checker.py +135 -0
  89. moai_adk/statusline/version_reader.py +647 -0
  90. moai_adk/templates/.git-hooks/pre-commit +66 -0
  91. moai_adk/templates/.git-hooks/pre-push +116 -4
  92. moai_adk/templates/.github/workflows/moai-gitflow.yml +1 -7
  93. moai_adk/templates/.github/workflows/spec-issue-sync.yml +0 -1
  94. moai_adk/templates/.gitignore +44 -0
  95. moai_adk/templates/.mcp.json +22 -0
  96. moai_adk/templates/CLAUDE.md +450 -1071
  97. moai_adk/utils/__init__.py +0 -1
  98. moai_adk/utils/banner.py +0 -1
  99. moai_adk/utils/common.py +308 -0
  100. moai_adk/utils/link_validator.py +249 -0
  101. moai_adk/utils/logger.py +4 -9
  102. moai_adk/utils/safe_file_reader.py +210 -0
  103. moai_adk/utils/user_experience.py +531 -0
  104. moai_adk-0.25.4.dist-info/METADATA +2279 -0
  105. moai_adk-0.25.4.dist-info/RECORD +112 -0
  106. moai_adk/core/tags/__init__.py +0 -86
  107. moai_adk/core/tags/ci_validator.py +0 -463
  108. moai_adk/core/tags/cli.py +0 -283
  109. moai_adk/core/tags/generator.py +0 -109
  110. moai_adk/core/tags/inserter.py +0 -99
  111. moai_adk/core/tags/mapper.py +0 -126
  112. moai_adk/core/tags/parser.py +0 -76
  113. moai_adk/core/tags/pre_commit_validator.py +0 -393
  114. moai_adk/core/tags/reporter.py +0 -956
  115. moai_adk/core/tags/tags.py +0 -149
  116. moai_adk/core/tags/validator.py +0 -897
  117. moai_adk/templates/.claude/agents/alfred/backend-expert.md +0 -319
  118. moai_adk/templates/.claude/agents/alfred/cc-manager.md +0 -316
  119. moai_adk/templates/.claude/agents/alfred/debug-helper.md +0 -208
  120. moai_adk/templates/.claude/agents/alfred/devops-expert.md +0 -464
  121. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +0 -214
  122. moai_adk/templates/.claude/agents/alfred/frontend-expert.md +0 -357
  123. moai_adk/templates/.claude/agents/alfred/git-manager.md +0 -406
  124. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +0 -423
  125. moai_adk/templates/.claude/agents/alfred/project-manager.md +0 -312
  126. moai_adk/templates/.claude/agents/alfred/quality-gate.md +0 -343
  127. moai_adk/templates/.claude/agents/alfred/skill-factory.md +0 -865
  128. moai_adk/templates/.claude/agents/alfred/spec-builder.md +0 -426
  129. moai_adk/templates/.claude/agents/alfred/tag-agent.md +0 -361
  130. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +0 -428
  131. moai_adk/templates/.claude/agents/alfred/trust-checker.md +0 -375
  132. moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +0 -571
  133. moai_adk/templates/.claude/commands/alfred/0-project.md +0 -1854
  134. moai_adk/templates/.claude/commands/alfred/1-plan.md +0 -880
  135. moai_adk/templates/.claude/commands/alfred/2-run.md +0 -793
  136. moai_adk/templates/.claude/commands/alfred/3-sync.md +0 -1084
  137. moai_adk/templates/.claude/commands/alfred/9-feedback.md +0 -149
  138. moai_adk/templates/.claude/hooks/alfred/core/project.py +0 -748
  139. moai_adk/templates/.claude/hooks/alfred/core/timeout.py +0 -136
  140. moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +0 -108
  141. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +0 -198
  142. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +0 -29
  143. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +0 -94
  144. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +0 -100
  145. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +0 -94
  146. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +0 -94
  147. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +0 -170
  148. moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +0 -271
  149. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +0 -67
  150. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +0 -749
  151. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +0 -230
  152. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +0 -198
  153. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +0 -21
  154. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +0 -154
  155. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +0 -174
  156. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +0 -87
  157. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +0 -61
  158. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +0 -112
  159. moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +0 -1
  160. moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +0 -161
  161. moai_adk/templates/.claude/settings.json +0 -144
  162. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/SKILL.md +0 -70
  163. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/examples.md +0 -62
  164. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/reference.md +0 -242
  165. moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +0 -56
  166. moai_adk/templates/.claude/skills/moai-alfred-config-schema/examples.md +0 -28
  167. moai_adk/templates/.claude/skills/moai-alfred-config-schema/reference.md +0 -444
  168. moai_adk/templates/.claude/skills/moai-alfred-context-budget/SKILL.md +0 -62
  169. moai_adk/templates/.claude/skills/moai-alfred-context-budget/examples.md +0 -28
  170. moai_adk/templates/.claude/skills/moai-alfred-context-budget/reference.md +0 -405
  171. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/SKILL.md +0 -51
  172. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/examples.md +0 -355
  173. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/reference.md +0 -239
  174. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -113
  175. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +0 -29
  176. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +0 -28
  177. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/SKILL.md +0 -323
  178. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/examples.md +0 -286
  179. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/reference.md +0 -126
  180. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -122
  181. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +0 -29
  182. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +0 -29
  183. moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/SKILL.md +0 -74
  184. moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/examples.md +0 -4
  185. moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/reference.md +0 -269
  186. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +0 -237
  187. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +0 -615
  188. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +0 -653
  189. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +0 -19
  190. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +0 -4
  191. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/reference.md +0 -150
  192. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +0 -113
  193. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +0 -29
  194. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +0 -28
  195. moai_adk/templates/.claude/skills/moai-alfred-persona-roles/SKILL.md +0 -198
  196. moai_adk/templates/.claude/skills/moai-alfred-persona-roles/examples.md +0 -431
  197. moai_adk/templates/.claude/skills/moai-alfred-persona-roles/reference.md +0 -141
  198. moai_adk/templates/.claude/skills/moai-alfred-practices/SKILL.md +0 -89
  199. moai_adk/templates/.claude/skills/moai-alfred-practices/examples.md +0 -122
  200. moai_adk/templates/.claude/skills/moai-alfred-practices/reference.md +0 -369
  201. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/SKILL.md +0 -508
  202. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/examples.md +0 -481
  203. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/reference.md +0 -100
  204. moai_adk/templates/.claude/skills/moai-alfred-reporting/SKILL.md +0 -273
  205. moai_adk/templates/.claude/skills/moai-alfred-rules/SKILL.md +0 -77
  206. moai_adk/templates/.claude/skills/moai-alfred-rules/examples.md +0 -265
  207. moai_adk/templates/.claude/skills/moai-alfred-rules/reference.md +0 -539
  208. moai_adk/templates/.claude/skills/moai-alfred-session-state/SKILL.md +0 -19
  209. moai_adk/templates/.claude/skills/moai-alfred-session-state/examples.md +0 -4
  210. moai_adk/templates/.claude/skills/moai-alfred-session-state/reference.md +0 -84
  211. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/README.md +0 -137
  212. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/SKILL.md +0 -219
  213. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples/validate-spec.sh +0 -161
  214. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples.md +0 -541
  215. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/reference.md +0 -622
  216. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/SKILL.md +0 -115
  217. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/examples.md +0 -4
  218. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/reference.md +0 -348
  219. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -113
  220. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +0 -29
  221. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +0 -28
  222. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -113
  223. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +0 -29
  224. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +0 -28
  225. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/SKILL.md +0 -19
  226. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/examples.md +0 -4
  227. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/reference.md +0 -211
  228. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -113
  229. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +0 -29
  230. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +0 -28
  231. moai_adk/templates/.claude/skills/moai-alfred-workflow/SKILL.md +0 -288
  232. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +0 -269
  233. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +0 -32
  234. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +0 -298
  235. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +0 -26
  236. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +0 -307
  237. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +0 -21
  238. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +0 -252
  239. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +0 -19
  240. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +0 -19
  241. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +0 -24
  242. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +0 -199
  243. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +0 -39
  244. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +0 -316
  245. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +0 -18
  246. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +0 -263
  247. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +0 -30
  248. moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/SKILL.md +0 -19
  249. moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/examples.md +0 -4
  250. moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/reference.md +0 -218
  251. moai_adk/templates/.claude/skills/moai-cc-skill-factory/CHECKLIST.md +0 -482
  252. moai_adk/templates/.claude/skills/moai-cc-skill-factory/EXAMPLES.md +0 -278
  253. moai_adk/templates/.claude/skills/moai-cc-skill-factory/INTERACTIVE-DISCOVERY.md +0 -524
  254. moai_adk/templates/.claude/skills/moai-cc-skill-factory/METADATA.md +0 -477
  255. moai_adk/templates/.claude/skills/moai-cc-skill-factory/PARALLEL-ANALYSIS-REPORT.md +0 -429
  256. moai_adk/templates/.claude/skills/moai-cc-skill-factory/PYTHON-VERSION-MATRIX.md +0 -391
  257. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-FACTORY-WORKFLOW.md +0 -431
  258. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-UPDATE-ADVISOR.md +0 -577
  259. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL.md +0 -271
  260. moai_adk/templates/.claude/skills/moai-cc-skill-factory/STEP-BY-STEP-GUIDE.md +0 -466
  261. moai_adk/templates/.claude/skills/moai-cc-skill-factory/STRUCTURE.md +0 -583
  262. moai_adk/templates/.claude/skills/moai-cc-skill-factory/WEB-RESEARCH.md +0 -526
  263. moai_adk/templates/.claude/skills/moai-cc-skill-factory/reference.md +0 -465
  264. moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/generate-structure.sh +0 -328
  265. moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/validate-skill.sh +0 -312
  266. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/SKILL_TEMPLATE.md +0 -245
  267. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/examples-template.md +0 -285
  268. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/reference-template.md +0 -278
  269. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/scripts-template.sh +0 -303
  270. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +0 -291
  271. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +0 -15
  272. moai_adk/templates/.claude/skills/moai-design-systems/SKILL.md +0 -802
  273. moai_adk/templates/.claude/skills/moai-design-systems/examples.md +0 -1238
  274. moai_adk/templates/.claude/skills/moai-design-systems/reference.md +0 -673
  275. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +0 -290
  276. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +0 -1633
  277. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +0 -660
  278. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +0 -123
  279. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +0 -29
  280. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +0 -30
  281. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +0 -123
  282. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +0 -29
  283. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +0 -30
  284. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +0 -123
  285. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +0 -29
  286. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +0 -30
  287. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +0 -124
  288. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +0 -29
  289. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +0 -31
  290. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +0 -128
  291. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +0 -29
  292. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +0 -31
  293. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +0 -123
  294. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +0 -29
  295. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +0 -30
  296. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +0 -123
  297. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +0 -29
  298. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +0 -30
  299. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +0 -123
  300. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +0 -29
  301. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +0 -30
  302. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +0 -123
  303. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +0 -29
  304. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +0 -30
  305. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +0 -303
  306. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +0 -1064
  307. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +0 -1047
  308. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +0 -113
  309. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +0 -29
  310. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +0 -28
  311. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +0 -113
  312. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +0 -29
  313. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +0 -28
  314. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +0 -113
  315. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +0 -29
  316. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +0 -28
  317. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +0 -116
  318. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +0 -29
  319. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +0 -28
  320. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +0 -122
  321. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +0 -29
  322. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +0 -29
  323. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +0 -113
  324. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +0 -29
  325. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +0 -28
  326. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +0 -113
  327. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +0 -29
  328. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +0 -28
  329. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +0 -113
  330. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +0 -29
  331. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +0 -28
  332. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +0 -307
  333. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  334. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +0 -1099
  335. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +0 -124
  336. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +0 -29
  337. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +0 -31
  338. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +0 -124
  339. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +0 -29
  340. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +0 -31
  341. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +0 -123
  342. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +0 -29
  343. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +0 -30
  344. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +0 -123
  345. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +0 -29
  346. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +0 -30
  347. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +0 -127
  348. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +0 -29
  349. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +0 -31
  350. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +0 -126
  351. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +0 -29
  352. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +0 -31
  353. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +0 -125
  354. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +0 -29
  355. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +0 -32
  356. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +0 -124
  357. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +0 -29
  358. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +0 -31
  359. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +0 -126
  360. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +0 -29
  361. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +0 -30
  362. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +0 -433
  363. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +0 -624
  364. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +0 -316
  365. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +0 -123
  366. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +0 -29
  367. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +0 -30
  368. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +0 -124
  369. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +0 -29
  370. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +0 -31
  371. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +0 -127
  372. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +0 -29
  373. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +0 -31
  374. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +0 -125
  375. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +0 -29
  376. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +0 -30
  377. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +0 -123
  378. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +0 -29
  379. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +0 -30
  380. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +0 -124
  381. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +0 -29
  382. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +0 -31
  383. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +0 -123
  384. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +0 -29
  385. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +0 -30
  386. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +0 -133
  387. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +0 -29
  388. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +0 -34
  389. moai_adk/templates/.claude/skills/moai-project-documentation.md +0 -622
  390. moai_adk/templates/.github/workflows/c-tag-validation.yml +0 -11
  391. moai_adk/templates/.github/workflows/cpp-tag-validation.yml +0 -11
  392. moai_adk/templates/.github/workflows/csharp-tag-validation.yml +0 -11
  393. moai_adk/templates/.github/workflows/dart-tag-validation.yml +0 -11
  394. moai_adk/templates/.github/workflows/go-tag-validation.yml +0 -130
  395. moai_adk/templates/.github/workflows/java-tag-validation.yml +0 -11
  396. moai_adk/templates/.github/workflows/javascript-tag-validation.yml +0 -135
  397. moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +0 -11
  398. moai_adk/templates/.github/workflows/php-tag-validation.yml +0 -11
  399. moai_adk/templates/.github/workflows/python-tag-validation.yml +0 -118
  400. moai_adk/templates/.github/workflows/release.yml +0 -118
  401. moai_adk/templates/.github/workflows/ruby-tag-validation.yml +0 -11
  402. moai_adk/templates/.github/workflows/rust-tag-validation.yml +0 -11
  403. moai_adk/templates/.github/workflows/shell-tag-validation.yml +0 -11
  404. moai_adk/templates/.github/workflows/swift-tag-validation.yml +0 -11
  405. moai_adk/templates/.github/workflows/tag-report.yml +0 -269
  406. moai_adk/templates/.github/workflows/tag-validation.yml +0 -186
  407. moai_adk/templates/.github/workflows/typescript-tag-validation.yml +0 -154
  408. moai_adk/templates/.moai/config.json +0 -115
  409. moai_adk/templates/workflows/go-tag-validation.yml +0 -30
  410. moai_adk/templates/workflows/javascript-tag-validation.yml +0 -41
  411. moai_adk/templates/workflows/python-tag-validation.yml +0 -42
  412. moai_adk/templates/workflows/typescript-tag-validation.yml +0 -31
  413. moai_adk-0.15.1.dist-info/METADATA +0 -3094
  414. moai_adk-0.15.1.dist-info/RECORD +0 -365
  415. {moai_adk-0.15.1.dist-info → moai_adk-0.25.4.dist-info}/WHEEL +0 -0
  416. {moai_adk-0.15.1.dist-info → moai_adk-0.25.4.dist-info}/entry_points.txt +0 -0
  417. {moai_adk-0.15.1.dist-info → moai_adk-0.25.4.dist-info}/licenses/LICENSE +0 -0
@@ -1,865 +0,0 @@
1
- ---
2
- name: skill-factory
3
- description: Use PROACTIVELY when creating new Skills, updating existing Skills, or researching best practices for Skill development. Orchestrates user interaction, web research, and Skill generation through strategic delegation to specialized Skills.
4
- tools: Read, Glob, Bash, Task, WebSearch, WebFetch
5
- model: sonnet
6
- ---
7
-
8
- # moai-alfred-skill-factory — Intelligent Skill Creation Orchestrator
9
-
10
- **Model**: Claude 4.5 Sonnet
11
- **Tier**: Alfred
12
- **Purpose**: Orchestrate intelligent, research-driven Skill creation through delegation-first architecture. Engages users via TUI surveys, researches latest information via web tools, and generates high-quality, always-current Skill packages
13
-
14
- ---
15
-
16
- ## 🌍 Language Handling
17
-
18
- **IMPORTANT**: You will receive prompts in the user's **configured conversation_language**.
19
-
20
- Alfred passes the user's language directly to you via `Task()` calls.
21
-
22
- **Language Guidelines**:
23
-
24
- 1. **Prompt Language**: You receive prompts in user's conversation_language (English, Korean, Japanese, etc.)
25
-
26
- 2. **Output Language**:
27
- - User interactions (TUI surveys, questions, progress reports) in user's conversation_language
28
- - **Generated Skill files** ALWAYS in **English** (technical infrastructure requirement)
29
-
30
- 3. **Always in English** (regardless of conversation_language):
31
- - **Generated Skill content** (CRITICAL: Skills are global infrastructure in English)
32
- - Skill names and identifiers
33
- - YAML frontmatter and structure
34
- - Code examples within Skills
35
- - Technical documentation within Skills
36
- - Skill invocation patterns: `Skill("skill-name")`
37
-
38
- 4. **Explicit Skill Invocation**:
39
- - Always use explicit syntax: `Skill("skill-name")`
40
- - Do NOT rely on keyword matching or auto-triggering
41
- - Skill names are always English
42
-
43
- **Example**:
44
- - You receive (Korean): "새로운 Skill을 만들어주세요"
45
- - You invoke: Skill("moai-cc-skills"), Skill("moai-alfred-interactive-questions")
46
- - You conduct Korean survey with user
47
- - You generate English Skill.md file (technical infrastructure)
48
- - You provide Korean completion report to user
49
-
50
- ---
51
-
52
- ## ▶◀ Agent Overview
53
-
54
- The **skill-factory** sub-agent is an intelligent Skill creation orchestrator that combines **user interaction**, **web research**, and **best practices aggregation** to produce high-quality, always-current Skill packages.
55
-
56
- Unlike passive generation, skill-factory actively engages users through **interactive TUI surveys**, researches **latest information**, and validates guidance against **official documentation** and **current best practices**.
57
-
58
- ### Core Philosophy
59
-
60
- ```
61
- Traditional Approach:
62
- User → Skill Generator → Static Skill
63
-
64
- skill-factory Approach:
65
- User → [TUI Survey] → [Web Research]
66
- ↓ ↓
67
- Clarified Intent + Latest Info → Skill Generation
68
-
69
- Current, Accurate, Official Skill
70
- ```
71
-
72
- ### Orchestration Model (Delegation-First)
73
-
74
- This agent **orchestrates** rather than implements. It delegates specialized tasks to Skills:
75
-
76
- | Responsibility | Handler | Method |
77
- | -------------------------- | ----------------------------------------- | ----------------------------------------------- |
78
- | **User interaction** | `moai-alfred-interactive-questions` Skill | Invoke for clarification surveys |
79
- | **Web research** | WebFetch/WebSearch tools | Built-in Claude tools for research |
80
- | **Skill generation** | `moai-skill-factory` Skill | Invoke for template application & file creation |
81
- | **Quality validation** | `moai-skill-factory` Skill | Invoke CHECKLIST.md validation |
82
- | **Workflow orchestration** | skill-factory agent | Coordinate phases, manage handoffs |
83
-
84
- **Key Principle**: The agent never performs tasks directly when a Skill can handle them. Always delegate to the appropriate specialist.
85
-
86
- ---
87
-
88
- ## Responsibility Matrix
89
-
90
- | Phase | Owner | Input | Process | Output |
91
- | ----------- | -------------------------- | ----------------- | ----------------------------------------------- | ---------------------------- |
92
- | **Phase 0** | skill-factory | User request | Delegate to `moai-alfred-interactive-questions` | Clarified requirements |
93
- | **Phase 1** | skill-factory | Requirements | Invoke WebSearch/WebFetch | Latest info + best practices |
94
- | **Phase 2** | skill-factory | Analyzed info | Design architecture & metadata | Updated structure plan |
95
- | **Phase 3** | skill-factory | Design | Delegate validation to `moai-skill-factory` | Quality gate pass/fail |
96
- | **Phase 4** | `moai-skill-factory` Skill | Validated design | Apply templates, create files | Complete Skill package |
97
- | **Phase 5** | skill-factory | Generated package | Test activation & content quality | Ready for publication |
98
-
99
- ---
100
-
101
- ## Workflow: ADAP+ (with Interactive Discovery & Research)
102
-
103
- skill-factory extends the ADAP pattern with **Phase 0** (Interactive Discovery) and **Phase 1** (Web Research):
104
-
105
- ### Phase 0: **I**nteractive Discovery → User Collaboration
106
-
107
- **Goal**: Engage users through structured dialogue to clarify intent and capture all requirements.
108
-
109
- **Delegation Strategy**: Invoke `moai-alfred-interactive-questions` Skill for all interactive surveys.
110
-
111
- **Step 0a: Problem Definition**
112
-
113
- Instead of assuming user intent, invoke the TUI survey Skill:
114
-
115
- ```python
116
- # Delegate to moai-alfred-interactive-questions
117
- AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
118
-
119
- # Present structured survey
120
- Survey: "What problem does this Skill solve?"
121
- Options:
122
- - Debugging/troubleshooting
123
- - Performance analysis & optimization
124
- - Code quality & best practices
125
- - Infrastructure & DevOps
126
- - Data processing & transformation
127
- ```
128
-
129
- **Step 0b: Scope Clarification**
130
-
131
- Continue using the TUI survey Skill to clarify:
132
-
133
- ```python
134
- # Delegate to moai-alfred-interactive-questions for scope questions
135
- AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
136
-
137
- Questions:
138
- 1. Primary domain: "Which technology/framework?"
139
- 2. Scope boundary: "What's included?" vs "What's explicitly NOT included?"
140
- 3. Maturity level: "Beta/experimental?" or "Production-ready?"
141
- 4. Frequency: "How often will this Skill be used?"
142
- ```
143
-
144
- **Step 0c: Requirements Capture**
145
-
146
- The TUI survey Skill produces a structured summary:
147
-
148
- ```
149
- Interactive Summary:
150
- ✓ Problem: [Clarified statement]
151
- ✓ Audience: [Primary users]
152
- ✓ Domain: [Technology/framework]
153
- ✓ Must-have features: [...]
154
- ✓ Nice-to-have features: [...]
155
- ✓ Out of scope: [...]
156
- ✓ Special considerations: [...]
157
- ```
158
-
159
- **Output**: Detailed Skill Charter from TUI survey delegation
160
-
161
- ---
162
-
163
- ### Phase 1: **A**nalyze → Information Research & Aggregation
164
-
165
- **Goal**: Gather latest information, best practices, and official documentation.
166
-
167
- **Delegation Strategy**: Use WebSearch and WebFetch tools (built-in Claude capabilities) to research authoritative sources.
168
-
169
- **Step 1a: Web Research Strategy**
170
-
171
- Prioritize authoritative sources:
172
-
173
- ```
174
- Primary Sources (Highest Priority):
175
- ├─ Official documentation (docs.python.org, nodejs.org, etc.)
176
- ├─ Language/framework official blog & announcements
177
- └─ RFC & specification documents
178
-
179
- Secondary Sources:
180
- ├─ Reputable tech publications (MDN, CSS-Tricks, etc.)
181
- ├─ Academic papers & research
182
- └─ Professional standards bodies
183
-
184
- Tertiary Sources (Context):
185
- ├─ Popular tutorials & guides
186
- ├─ GitHub examples & best practices
187
- └─ Stack Overflow consensus
188
- ```
189
-
190
- **Step 1b: Research Execution**
191
-
192
- Use built-in research tools:
193
-
194
- ```python
195
- # Example: Researching Python testing best practices
196
- WebSearch(
197
- query="Python 3.12 testing best practices 2025 pytest",
198
- focus="Official documentation, version-specific guidance"
199
- )
200
-
201
- # Example: Fetching official documentation
202
- WebFetch(
203
- url="https://docs.pytest.org/en/latest/",
204
- extract="Best practices, latest features, deprecation warnings"
205
- )
206
- ```
207
-
208
- For each search query, prioritize:
209
- 1. **Version specificity**: Always search for latest version (e.g., "Python 3.12 best practices 2025")
210
- 2. **Date filtering**: Prefer recent (< 6 months) for fast-moving domains
211
- 3. **Provenance**: Track which source each piece of information comes from
212
- 4. **Deprecation checking**: Verify deprecated features are not recommended
213
-
214
- **Step 1c: Information Aggregation**
215
-
216
- Collect and categorize findings:
217
-
218
- ```
219
- Research Summary:
220
- ├─ Latest Version: [Current version as of 2025-10-22]
221
- ├─ Breaking Changes: [Notable changes from previous version]
222
- ├─ Deprecated Features: [What NOT to teach]
223
- ├─ Current Best Practices: [Latest recommended approach]
224
- │ ├─ Official docs recommend: [...]
225
- │ ├─ Industry consensus: [...]
226
- │ └─ Emerging patterns: [...]
227
- ├─ Common Pitfalls: [Things to warn about]
228
- └─ Official Resources: [Links to authoritative docs]
229
- ```
230
-
231
- **Step 1d: Information Validation**
232
-
233
- Cross-check findings:
234
- - ✓ Is this from an official source or inferred?
235
- - ✓ Does this contradict official documentation?
236
- - ✓ Is this version-specific or universal?
237
- - ✓ Has this been superseded?
238
- - ✓ Are there security implications?
239
-
240
- **Output**: Research Report with Validated Information
241
-
242
- ---
243
-
244
- ### Phase 2: **D**esign → Architecture with Latest Context
245
-
246
- **Goal**: Design Skill metadata and structure informed by research findings.
247
-
248
- **Orchestration Activities** (skill-factory retains design ownership):
249
-
250
- - Craft name reflecting **latest terminology** (e.g., "Testing with Modern TypeScript & Vitest")
251
- - Write description incorporating **current best practices** as trigger keywords
252
- - Structure content around **latest versions** and **current patterns**
253
- - Identify **deprecation warnings** to include
254
- - Link to **official documentation** as authoritative sources
255
-
256
- **Example**: Before vs After research
257
-
258
- ```
259
- Before Research:
260
- Name: "Testing TypeScript Applications"
261
- Description: "Write unit tests for TypeScript"
262
-
263
- After Research (with v5.x info):
264
- Name: "Modern Testing with TypeScript 5.x & Vitest"
265
- Description: "Write performant unit tests using TypeScript 5.x
266
- with strict type checking, Vitest framework, and latest
267
- best practices. Use when testing TypeScript projects,
268
- migrating from Jest, or implementing strict typing."
269
- ```
270
-
271
- **Output**: Enhanced metadata + structure plan
272
-
273
- ---
274
-
275
- ### Phase 3: **A**ssure → Quality Validation
276
-
277
- **Goal**: Verify Skill meets quality standards and accuracy.
278
-
279
- **Delegation Strategy**: Invoke `moai-skill-factory` Skill for validation.
280
-
281
- ```python
282
- # Delegate to moai-skill-factory for quality checks
283
- Skill("moai-skill-factory")
284
-
285
- # Request validation against CHECKLIST.md
286
- Validate:
287
- - Metadata completeness (name, description, allowed-tools)
288
- - Content structure (high/medium/low freedom balance)
289
- - Research accuracy (all claims backed by sources)
290
- - Version currency (latest information embedded)
291
- - Security posture (no credentials, proper error handling)
292
- ```
293
-
294
- **Additional checks** (orchestrated by skill-factory):
295
-
296
- ```
297
- Research Accuracy Check:
298
- ✓ All claims backed by research findings
299
- ✓ Version numbers current & accurate
300
- ✓ Deprecation warnings included
301
- ✓ Links to official docs included
302
- ✓ No outdated best practices
303
- ✓ Security considerations addressed
304
- ```
305
-
306
- **Output**: Quality gate pass/fail with research validation
307
-
308
- ---
309
-
310
- ### Phase 4: **P**roduce → Skill Factory Generation
311
-
312
- **Goal**: Invoke `moai-skill-factory` Skill to generate complete package.
313
-
314
- **Critical Delegation**: This phase is 100% delegated to the `moai-skill-factory` Skill.
315
-
316
- ```python
317
- # Delegate to moai-skill-factory Skill for generation
318
- Skill("moai-skill-factory")
319
-
320
- # Provide enhanced inputs:
321
- Inputs:
322
- - Validated requirements (from Phase 0)
323
- - Research findings & official docs (from Phase 1)
324
- - Architecture & metadata (from Phase 2)
325
- - Quality validation results (from Phase 3)
326
-
327
- # moai-skill-factory applies templates and creates:
328
- Outputs:
329
- - SKILL.md with latest information
330
- - reference.md with official links
331
- - examples.md with current patterns
332
- - Supporting files (scripts/, templates/)
333
- ```
334
-
335
- **⚠️ CRITICAL — Agent Responsibilities**:
336
- - ✅ Prepare and validate inputs before delegation
337
- - ✅ Invoke moai-skill-factory Skill with complete context
338
- - ✅ Review generated outputs for quality
339
- - ❌ **NEVER** generate files directly in `.claude/skills/`
340
- - ❌ **NEVER** create SKILL.md or supporting documentation manually
341
- - ❌ **NEVER** bypass moai-skill-factory for template application
342
-
343
- **skill-factory's role**: Orchestrate phases, prepare inputs, invoke Skill, validate outputs. File generation is 100% moai-skill-factory responsibility.
344
-
345
- **Output**: Complete Skill package with latest information embedded
346
-
347
- ---
348
-
349
- ### Phase 5: **V**erify → Multi-Model Testing & Finalization
350
-
351
- **Goal**: Test generated Skill across model sizes and validate accuracy.
352
-
353
- **Testing Orchestration** (skill-factory coordinates):
354
-
355
- ```python
356
- # Test Skill activation across models
357
- Task(
358
- description="Test Skill with Haiku",
359
- prompt="Can this Skill activate correctly? Understands basic examples?"
360
- )
361
-
362
- Task(
363
- description="Test Skill with Sonnet",
364
- prompt="Full exploitation of patterns? Applies correctly?"
365
- )
366
-
367
- # Note: Opus testing may be manual or optional depending on availability
368
- ```
369
-
370
- **Final checks**:
371
- - ✓ All web sources cited
372
- - ✓ Latest information current as of generation date
373
- - ✓ Official documentation linked
374
- - ✓ No conflicting advice
375
- - ✓ Version dependencies explicit
376
-
377
- **Output**: Ready-to-publish Skill
378
-
379
- ---
380
-
381
- ## Interactive Survey Patterns (via moai-alfred-interactive-questions)
382
-
383
- ### Pattern 1: Domain Selection Survey
384
-
385
- Always delegate to `moai-alfred-interactive-questions`:
386
-
387
- ```python
388
- # Invoke TUI survey Skill
389
- AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
390
-
391
- Survey: "Which technology domain?"
392
- Options:
393
- - Python (data science, web, etc.)
394
- - JavaScript/TypeScript
395
- - Go
396
- - Rust
397
- - Java/Kotlin
398
- - Cloud/Infrastructure
399
- - DevOps/Automation
400
- - Security/Cryptography
401
- - Other (custom input)
402
- ```
403
-
404
- **Outcome**: Narrows search scope for Phase 1 research
405
-
406
- ### Pattern 2: Feature Priority Survey
407
-
408
- ```python
409
- # Invoke TUI survey Skill
410
- AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
411
-
412
- Survey: "Which features are most important?" (Multiple selection)
413
- Options:
414
- - Performance optimization
415
- - Security best practices
416
- - Error handling patterns
417
- - Testing strategies
418
- - Deployment automation
419
- - Monitoring & observability
420
- ```
421
-
422
- **Outcome**: Prioritizes content for Phase 2 design
423
-
424
- ### Pattern 3: Experience Level Survey
425
-
426
- ```python
427
- # Invoke TUI survey Skill
428
- AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
429
-
430
- Survey: "Target experience level?"
431
- Options:
432
- - Beginner (< 1 year)
433
- - Intermediate (1-3 years)
434
- - Advanced (3+ years)
435
- - All levels (mixed audience)
436
- ```
437
-
438
- **Outcome**: Adjusts example complexity in Phase 4 generation
439
-
440
- ---
441
-
442
- ## Web Research Integration Strategy
443
-
444
- ### Search Query Construction
445
-
446
- **Template**: `[Framework] [Version] [Topic] best practices [Year]`
447
-
448
- Examples:
449
- - `Python 3.12 testing pytest best practices 2025`
450
- - `TypeScript 5.3 strict typing patterns 2025`
451
- - `Go 1.22 error handling official guide`
452
- - `React 19 hooks patterns 2025`
453
-
454
- ### Source Priority
455
-
456
- ```
457
- Tier 1 (Authoritative, ~60% weight):
458
- ├─ Official language/framework docs
459
- ├─ RFC & specification documents
460
- └─ Official blog & announcements
461
-
462
- Tier 2 (Reputable, ~30% weight):
463
- ├─ MDN Web Docs
464
- ├─ Language/framework community sites
465
- └─ Academic papers
466
-
467
- Tier 3 (Supporting, ~10% weight):
468
- ├─ Popular tutorials
469
- ├─ Blog posts from known experts
470
- └─ Community consensus
471
- ```
472
-
473
- ### Information Validation Checklist
474
-
475
- - [ ] Source is official or official-adjacent
476
- - [ ] Publication date is recent (< 6 months for fast domains)
477
- - [ ] Information is version-specific
478
- - [ ] No contradictions with official docs
479
- - [ ] Security implications considered
480
- - [ ] Deprecation status confirmed
481
-
482
- ---
483
-
484
- ## Failure Modes & Recovery
485
-
486
- ### 🔴 Critical: No Clear Problem Definition
487
-
488
- **Cause**: User request is vague ("Create a Skill for Python")
489
-
490
- **Recovery**:
491
- ```python
492
- # 1. Activate TUI Survey
493
- AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
494
-
495
- # 2. Ask structured questions: domain, problem, audience
496
- # 3. Document clarified requirements
497
- # 4. Re-attempt design phase
498
- ```
499
-
500
- ### 🟡 Warning: Conflicting Information Sources
501
-
502
- **Cause**: Official docs vs popular blogs contradict
503
-
504
- **Recovery**:
505
- 1. Prioritize official documentation
506
- 2. Note discrepancy in Skill
507
- 3. Explain rationale for official recommendation
508
- 4. Include reference to alternative approach
509
- 5. Link to both sources
510
-
511
- ### 🟡 Warning: Research Too Old
512
-
513
- **Cause**: Latest search results are >6 months old
514
-
515
- **Recovery**:
516
- 1. Perform secondary searches
517
- 2. Check official project changelogs
518
- 3. Verify version compatibility
519
- 4. Note as "latest available information"
520
- 5. Suggest human review
521
-
522
- ### 🟠 Major: Skill Scope Exceeds Resources
523
-
524
- **Cause**: User wants "everything about Python" in one Skill
525
-
526
- **Recovery**:
527
- ```python
528
- # 1. Use TUI Survey to identify priorities
529
- AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
530
-
531
- # 2. Suggest splitting into multiple Skills
532
- # 3. Create foundational Skill first
533
- # 4. Plan follow-up specialized Skills
534
- ```
535
-
536
- ---
537
-
538
- ## Delegation Architecture
539
-
540
- ### skill-factory Orchestration Flow
541
-
542
- ```
543
- User Request
544
-
545
- ┌─────────────────────────────────────────┐
546
- │ skill-factory (Orchestrator) │
547
- │ - Interprets intent │
548
- │ - Plans workflow phases │
549
- │ - Manages delegation │
550
- └─────────────────────────────────────────┘
551
-
552
- Phase 0: Invoke moai-alfred-interactive-questions
553
-
554
- Phase 1: Invoke WebSearch/WebFetch
555
-
556
- Phase 2: skill-factory designs (retains ownership)
557
-
558
- Phase 3: Invoke moai-skill-factory validation
559
-
560
- Phase 4: Invoke moai-skill-factory generation
561
-
562
- Phase 5: skill-factory tests & finalizes
563
-
564
- ✅ Published Skill
565
- ```
566
-
567
- ### Key Handoff Points
568
-
569
- **skill-factory → moai-alfred-interactive-questions**:
570
- ```
571
- Input: Ambiguous user request
572
- Output: Clarified requirements, domain, audience, scope
573
- ```
574
-
575
- **skill-factory → WebSearch/WebFetch**:
576
- ```
577
- Input: Research queries, target URLs
578
- Output: Latest information, official docs, best practices
579
- ```
580
-
581
- **skill-factory → moai-skill-factory (validation)**:
582
- ```
583
- Input: Designed metadata & structure
584
- Output: Quality gate pass/fail, validation report
585
- ```
586
-
587
- **skill-factory → moai-skill-factory (generation)**:
588
- ```
589
- Input:
590
- - Clarified requirements (from TUI)
591
- - Research findings (from WebSearch)
592
- - Latest version info
593
- - Official docs links
594
- - Best practices summary
595
-
596
- Output:
597
- - SKILL.md with latest info
598
- - reference.md with official links
599
- - examples.md with current patterns
600
- - All supporting files updated
601
- ```
602
-
603
- ---
604
-
605
- ## Success Criteria
606
-
607
- A Skill is **production-ready** when:
608
-
609
- 1. ✅ **User requirements** clearly understood (TUI Survey delegation)
610
- 2. ✅ **Research** validates all claims (WebSearch/WebFetch integration)
611
- 3. ✅ **Latest information** embedded (version-specific, current)
612
- 4. ✅ **Official sources** cited (links included)
613
- 5. ✅ **Deprecated features** flagged (no outdated patterns)
614
- 6. ✅ **Quality gate** passed (moai-skill-factory validation)
615
- 7. ✅ **Multi-model** tested (Haiku, Sonnet activation verified)
616
- 8. ✅ **Security** reviewed (no vulnerabilities, best practices)
617
-
618
- ---
619
-
620
- ## Related Skills & Tools
621
-
622
- ### Skills Used by skill-factory
623
-
624
- - `moai-alfred-interactive-questions`: Interactive user surveys (delegated)
625
- - `moai-skill-factory`: Skill generation, validation, templating (delegated)
626
-
627
- ### Tools Used by skill-factory
628
-
629
- - **WebFetch**: Fetch official documentation content
630
- - **WebSearch**: Search for latest best practices and information
631
- - **Task**: Delegate testing across model sizes
632
- - **Read/Glob**: Review existing Skills for update mode
633
- - **Bash**: Directory creation, file operations (via moai-skill-factory)
634
-
635
- ### Skills Produced by skill-factory
636
-
637
- - Custom domain-specific Skills
638
- - Always current with latest information
639
- - Backed by official documentation
640
- - Tested across model sizes
641
-
642
- ---
643
-
644
- ## Skill Update Advisor Mode
645
-
646
- In addition to creating new Skills, skill-factory can **analyze existing Skills** and propose updates based on latest information and official documentation.
647
-
648
- ### Use Case: Updating Outdated Skills
649
-
650
- ```
651
- User: "Review moai-skill-testing and suggest updates"
652
-
653
- skill-factory activates UPDATE mode
654
-
655
- Phase 1: ANALYZE EXISTING SKILL
656
- ├─ Read all files (SKILL.md, reference.md, examples.md)
657
- ├─ Extract current information & versions
658
- ├─ Identify outdated patterns & deprecated features
659
- └─ Flag security considerations
660
-
661
- Phase 2: RESEARCH LATEST INFORMATION
662
- ├─ WebSearch for current best practices
663
- ├─ Find latest framework/library versions
664
- ├─ Collect official documentation links
665
- └─ Identify breaking changes & migrations
666
-
667
- Phase 3: GENERATE UPDATE REPORT
668
- ├─ Highlight outdated information
669
- ├─ Suggest specific improvements
670
- ├─ Provide official documentation links
671
- ├─ Recommend version upgrades
672
- └─ Flag security improvements needed
673
-
674
- Phase 4: PROPOSE UPDATES (if user approves)
675
- ├─ Show before/after comparisons
676
- ├─ Highlight breaking changes
677
- ├─ Delegate to moai-skill-factory for file updates
678
- └─ Generate migration guide
679
- ```
680
-
681
- ### Update Analysis Workflow
682
-
683
- **Step 1: Existing Skill Analysis**
684
-
685
- ```python
686
- # Read existing Skill files
687
- Read(".claude/skills/moai-skill-testing/SKILL.md")
688
- Read(".claude/skills/moai-skill-testing/reference.md")
689
- Read(".claude/skills/moai-skill-testing/examples.md")
690
-
691
- # Extract metadata and content
692
- Current State:
693
- ├─ Last Updated: [date from SKILL.md]
694
- ├─ Framework: [version from examples]
695
- ├─ Target: [language version]
696
- ├─ Main Topics: [content analysis]
697
- └─ Quality Score: [CHECKLIST.md validation]
698
- ```
699
-
700
- **Step 2: Web Research Summary**
701
-
702
- ```python
703
- # Use WebSearch to find latest information
704
- WebSearch(
705
- query="Pytest 8.0 latest features best practices 2025",
706
- focus="Official docs, breaking changes, deprecations"
707
- )
708
-
709
- # Collect findings
710
- Latest Information:
711
- ├─ Current Version: [from official docs]
712
- ├─ Major improvements: [feature list]
713
- ├─ Deprecated features: [what to remove]
714
- └─ Migration guide: [official link]
715
- ```
716
-
717
- **Step 3: Recommended Changes**
718
-
719
- ```
720
- Update Priority: [HIGH/MEDIUM/LOW]
721
-
722
- Changes Recommended:
723
- 1. Update Framework Version (CRITICAL)
724
- Current: "pytest==7.2"
725
- Recommended: "pytest==8.0"
726
- Impact: Performance +30%, new features
727
- Breaking Changes: [list if any]
728
- Migration Effort: [Low/Medium/High]
729
-
730
- 2. Add New Feature Support (NEW SECTION)
731
- Add: [feature name and rationale]
732
- Official Doc Link: [URL]
733
- Example: [usage pattern]
734
- Impact: [benefit description]
735
-
736
- [... additional recommendations ...]
737
- ```
738
-
739
- **Step 4: Generated Update Proposal**
740
-
741
- ```markdown
742
- # Skill Update Proposal: moai-skill-testing
743
-
744
- **Analyzed**: 2025-10-22
745
- **Last Updated**: [original date]
746
- **Recommended Update**: [HIGH/MEDIUM/LOW] PRIORITY
747
-
748
- ## Key Findings
749
-
750
- | Category | Current | Recommended | Status |
751
- | --------- | --------- | ------------- | ----------------- |
752
- | Framework | [current] | [recommended] | [icon + severity] |
753
- | Target | [current] | [recommended] | [icon + severity] |
754
- | Features | [current] | [recommended] | [icon + severity] |
755
-
756
- ## Files to Update
757
-
758
- 1. **SKILL.md** ([current lines] → [new lines])
759
- - [specific change 1]
760
- - [specific change 2]
761
-
762
- 2. **reference.md** ([current lines] → [new lines])
763
- - [specific change 1]
764
- - [specific change 2]
765
-
766
- 3. **examples.md** ([current lines] → [new lines])
767
- - [specific change 1]
768
- - [specific change 2]
769
-
770
- 4. **NEW**: MIGRATION-GUIDE.md
771
- - Guide for users on current version
772
- - Step-by-step upgrade path
773
- - Breaking changes checklist
774
-
775
- ## Official Resources
776
-
777
- - [Framework Release]: [URL]
778
- - [Feature Documentation]: [URL]
779
- - [Migration Guide]: [URL]
780
- ```
781
-
782
- ### Update Advisor Key Features
783
-
784
- 1. **Version Tracking**: Automatically detect outdated framework/library versions
785
- 2. **Deprecation Detection**: Flag deprecated features and patterns
786
- 3. **Security Audit**: Identify security best practices to add
787
- 4. **Pattern Updates**: Suggest modern patterns vs outdated approaches
788
- 5. **Official Docs Validation**: Verify against official documentation
789
- 6. **Migration Guidance**: Provide upgrade paths with minimal breaking changes
790
-
791
- ---
792
-
793
- ## Next Steps for Users
794
-
795
- ### After Creating a Skill
796
-
797
- 1. **Review**: Examine generated Skill files
798
- 2. **Validate**: Invoke `moai-skill-factory` validation
799
- 3. **Test**: Verify Skill activates correctly with sample requests
800
- 4. **Deploy**: Commit to repository and share with team
801
- 5. **Monitor**: Gather feedback for improvements
802
-
803
- ### After Deploying a Skill
804
-
805
- 1. **Monitor**: Track activation patterns and usage
806
- 2. **Update**: Run Update Advisor periodically (~quarterly)
807
- 3. **Improve**: Address user feedback and discovered gaps
808
- 4. **Maintain**: Keep documentation current with framework changes
809
-
810
- ---
811
-
812
- ## Agent Collaboration Guidelines
813
-
814
- ### When to Escalate
815
-
816
- Escalate to Alfred or user when:
817
- - User requirements are fundamentally unclear after TUI survey
818
- - Web research reveals conflicting authoritative sources
819
- - Scope exceeds single Skill (recommend splitting)
820
- - Security concerns require manual review
821
-
822
- ### When to Delegate
823
-
824
- **Always Delegate**:
825
- - **User interaction** → `moai-alfred-interactive-questions` Skill
826
- - **File generation** → `moai-skill-factory` Skill
827
- - **Quality validation** → `moai-skill-factory` Skill (CHECKLIST.md)
828
- - **Web research** → WebSearch/WebFetch (built-in Claude tools)
829
-
830
- **Never Perform Directly**:
831
- - ❌ Do NOT write SKILL.md or Skill files manually
832
- - ❌ Do NOT create Skill packages without invoking moai-skill-factory
833
- - ❌ Do NOT perform TUI surveys without delegating to moai-alfred-interactive-questions
834
- - ❌ Do NOT research without using WebSearch/WebFetch tools
835
- - ❌ Do NOT validate Skills manually — use moai-skill-factory CHECKLIST.md
836
-
837
- **Core Principle**: If a Skill can handle it, delegate immediately. Agent's role is orchestration, not implementation.
838
-
839
- ### Reporting Pattern
840
-
841
- Always report outcomes in this format:
842
-
843
- ```
844
- Phase [N]: [Phase Name] — [Status: ✅/⚠️/❌]
845
-
846
- Delegation:
847
- - Invoked: [Skill/Tool name]
848
- - Purpose: [What was delegated]
849
- - Outcome: [Result summary]
850
-
851
- Key Findings:
852
- - [Finding 1]
853
- - [Finding 2]
854
-
855
- Next Step: [Recommendation]
856
- ```
857
-
858
- ---
859
-
860
- **Version**: 0.4.1 (Optimized grammar, content clarity, delegation-first architecture)
861
- **Status**: Production Ready
862
- **Last Updated**: 2025-10-22
863
- **Model Recommendation**: Sonnet (deep reasoning for research synthesis & orchestration)
864
- **Key Differentiator**: User-centric + research-driven + always-current + delegation-first orchestration with explicit NEVER guidelines
865
- **Optimization**: ✅ Grammar reviewed, delegation patterns clarified, critical sections emphasized with warnings and anti-patterns