moai-adk 0.4.5__py3-none-any.whl β†’ 0.20.1__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 (433) hide show
  1. moai_adk/__init__.py +1 -1
  2. moai_adk/__main__.py +74 -1
  3. moai_adk/cli/commands/__init__.py +1 -1
  4. moai_adk/cli/commands/analyze.py +119 -0
  5. moai_adk/cli/commands/backup.py +25 -1
  6. moai_adk/cli/commands/doctor.py +31 -5
  7. moai_adk/cli/commands/improve_user_experience.py +307 -0
  8. moai_adk/cli/commands/init.py +111 -10
  9. moai_adk/cli/commands/status.py +33 -3
  10. moai_adk/cli/commands/update.py +921 -130
  11. moai_adk/cli/commands/validate_links.py +120 -0
  12. moai_adk/cli/prompts/init_prompts.py +22 -87
  13. moai_adk/core/analysis/__init__.py +9 -0
  14. moai_adk/core/analysis/session_analyzer.py +388 -0
  15. moai_adk/core/analysis/tag_chain_analyzer.py +344 -0
  16. moai_adk/core/analysis/tag_chain_repair.py +879 -0
  17. moai_adk/core/config/__init__.py +19 -0
  18. moai_adk/core/config/migration.py +235 -0
  19. moai_adk/core/git/__init__.py +1 -1
  20. moai_adk/core/git/branch.py +1 -1
  21. moai_adk/core/git/commit.py +1 -1
  22. moai_adk/core/git/manager.py +1 -1
  23. moai_adk/core/issue_creator.py +313 -0
  24. moai_adk/core/mcp/setup.py +56 -0
  25. moai_adk/core/mcp/setup_old.py +296 -0
  26. moai_adk/core/project/backup_utils.py +1 -1
  27. moai_adk/core/project/checker.py +2 -2
  28. moai_adk/core/project/detector.py +211 -12
  29. moai_adk/core/project/initializer.py +85 -15
  30. moai_adk/core/project/phase_executor.py +76 -13
  31. moai_adk/core/project/validator.py +13 -13
  32. moai_adk/core/quality/__init__.py +1 -1
  33. moai_adk/core/quality/trust_checker.py +1 -1
  34. moai_adk/core/quality/validators/__init__.py +1 -1
  35. moai_adk/core/quality/validators/base_validator.py +1 -1
  36. moai_adk/core/tags/__init__.py +86 -0
  37. moai_adk/core/tags/auto_corrector.py +693 -0
  38. moai_adk/core/tags/ci_validator.py +463 -0
  39. moai_adk/core/tags/cli.py +283 -0
  40. moai_adk/core/tags/generator.py +109 -0
  41. moai_adk/core/tags/inserter.py +99 -0
  42. moai_adk/core/tags/mapper.py +126 -0
  43. moai_adk/core/tags/parser.py +76 -0
  44. moai_adk/core/tags/policy_validator.py +580 -0
  45. moai_adk/core/tags/pre_commit_validator.py +421 -0
  46. moai_adk/core/tags/reporter.py +956 -0
  47. moai_adk/core/tags/rollback_manager.py +525 -0
  48. moai_adk/core/tags/tags.py +149 -0
  49. moai_adk/core/tags/validator.py +897 -0
  50. moai_adk/core/template/__init__.py +1 -1
  51. moai_adk/core/template/backup.py +1 -1
  52. moai_adk/core/template/merger.py +50 -1
  53. moai_adk/core/template/processor.py +119 -13
  54. moai_adk/core/template_engine.py +268 -0
  55. moai_adk/templates/.claude/agents/alfred/backend-expert.md +348 -0
  56. moai_adk/templates/.claude/agents/alfred/cc-manager.md +209 -944
  57. moai_adk/templates/.claude/agents/alfred/database-expert.md +352 -0
  58. moai_adk/templates/.claude/agents/alfred/debug-helper.md +34 -5
  59. moai_adk/templates/.claude/agents/alfred/devops-expert.md +464 -0
  60. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +38 -8
  61. moai_adk/templates/.claude/agents/alfred/format-expert.md +469 -0
  62. moai_adk/templates/.claude/agents/alfred/frontend-expert.md +357 -0
  63. moai_adk/templates/.claude/agents/alfred/git-manager.md +128 -9
  64. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +104 -6
  65. moai_adk/templates/.claude/agents/alfred/project-manager.md +88 -16
  66. moai_adk/templates/.claude/agents/alfred/quality-gate.md +36 -9
  67. moai_adk/templates/.claude/agents/alfred/security-expert.md +270 -0
  68. moai_adk/templates/.claude/agents/alfred/skill-factory.md +865 -0
  69. moai_adk/templates/.claude/agents/alfred/spec-builder.md +214 -43
  70. moai_adk/templates/.claude/agents/alfred/tag-agent.md +111 -9
  71. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +309 -160
  72. moai_adk/templates/.claude/agents/alfred/trust-checker.md +36 -7
  73. moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +605 -0
  74. moai_adk/templates/.claude/commands/alfred/0-project.md +393 -966
  75. moai_adk/templates/.claude/commands/alfred/1-plan.md +651 -367
  76. moai_adk/templates/.claude/commands/alfred/2-run.md +388 -241
  77. moai_adk/templates/.claude/commands/alfred/3-sync.md +1921 -410
  78. moai_adk/templates/.claude/commands/alfred/9-feedback.md +153 -0
  79. moai_adk/templates/.claude/commands/alfred/release-new.md +3604 -0
  80. moai_adk/templates/.claude/hooks/alfred/core/project.py +484 -20
  81. moai_adk/templates/.claude/hooks/alfred/core/timeout.py +136 -0
  82. moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +108 -0
  83. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +198 -0
  84. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +14 -6
  85. moai_adk/templates/.claude/hooks/alfred/post_tool__enable_streaming_ui.py +50 -0
  86. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +93 -0
  87. moai_adk/templates/.claude/hooks/alfred/post_tool__tag_auto_corrector.py +407 -0
  88. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +99 -0
  89. moai_adk/templates/.claude/hooks/alfred/pre_tool__realtime_tag_monitor.py +335 -0
  90. moai_adk/templates/.claude/hooks/alfred/pre_tool__tag_policy_validator.py +325 -0
  91. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +93 -0
  92. moai_adk/templates/.claude/hooks/alfred/session_start__auto_cleanup.py +580 -0
  93. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +298 -0
  94. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +170 -0
  95. moai_adk/templates/.claude/hooks/alfred/{core β†’ shared/core}/checkpoint.py +3 -3
  96. moai_adk/templates/.claude/hooks/alfred/{core β†’ shared/core}/context.py +5 -5
  97. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +749 -0
  98. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +230 -0
  99. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +198 -0
  100. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +21 -0
  101. moai_adk/templates/.claude/hooks/alfred/shared/handlers/daily_analysis.py +351 -0
  102. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +154 -0
  103. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +174 -0
  104. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +87 -0
  105. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +61 -0
  106. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +111 -0
  107. moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +1 -0
  108. moai_adk/templates/.claude/hooks/alfred/utils/hook_config.py +94 -0
  109. moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +161 -0
  110. moai_adk/templates/.claude/output-styles/alfred/alfred-moai-adk-beginner.md +267 -0
  111. moai_adk/templates/.claude/output-styles/alfred/keating-personal-tutor.md +440 -0
  112. moai_adk/templates/.claude/output-styles/alfred/r2d2-agentic-coding.md +583 -0
  113. moai_adk/templates/.claude/settings.json +96 -14
  114. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/SKILL.md +70 -0
  115. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/examples.md +62 -0
  116. moai_adk/templates/.claude/skills/moai-alfred-agent-guide/reference.md +242 -0
  117. moai_adk/templates/.claude/skills/moai-alfred-ask-user-questions/SKILL.md +237 -0
  118. moai_adk/templates/.claude/skills/moai-alfred-ask-user-questions/examples.md +871 -0
  119. moai_adk/templates/.claude/skills/moai-alfred-ask-user-questions/reference.md +653 -0
  120. moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/README.md +162 -0
  121. moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/SKILL.md +227 -0
  122. moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/examples.md +354 -0
  123. moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/reference.md +158 -0
  124. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +179 -79
  125. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/examples.md +117 -0
  126. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/scripts/pre-review-check.sh +62 -0
  127. moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +132 -0
  128. moai_adk/templates/.claude/skills/moai-alfred-config-schema/examples.md +28 -0
  129. moai_adk/templates/.claude/skills/moai-alfred-config-schema/reference.md +444 -0
  130. moai_adk/templates/.claude/skills/moai-alfred-context-budget/SKILL.md +62 -0
  131. moai_adk/templates/.claude/skills/moai-alfred-context-budget/examples.md +28 -0
  132. moai_adk/templates/.claude/skills/moai-alfred-context-budget/reference.md +405 -0
  133. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/SKILL.md +51 -0
  134. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/examples.md +355 -0
  135. moai_adk/templates/.claude/skills/moai-alfred-dev-guide/reference.md +239 -0
  136. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/SKILL.md +323 -0
  137. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/examples.md +286 -0
  138. moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/reference.md +126 -0
  139. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +229 -0
  140. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +4 -0
  141. moai_adk/templates/.claude/skills/moai-alfred-issue-labels/reference.md +150 -0
  142. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +87 -73
  143. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +29 -0
  144. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +28 -0
  145. moai_adk/templates/.claude/skills/moai-alfred-personas/README.md +42 -0
  146. moai_adk/templates/.claude/skills/moai-alfred-personas/SKILL.md +429 -0
  147. moai_adk/templates/.claude/skills/moai-alfred-personas/examples.md +520 -0
  148. moai_adk/templates/.claude/skills/moai-alfred-personas/reference.md +405 -0
  149. moai_adk/templates/.claude/skills/moai-alfred-practices/SKILL.md +89 -0
  150. moai_adk/templates/.claude/skills/moai-alfred-practices/examples.md +122 -0
  151. moai_adk/templates/.claude/skills/moai-alfred-practices/reference.md +369 -0
  152. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/SKILL.md +508 -0
  153. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/examples.md +481 -0
  154. moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/reference.md +100 -0
  155. moai_adk/templates/.claude/skills/moai-alfred-rules/SKILL.md +77 -0
  156. moai_adk/templates/.claude/skills/moai-alfred-rules/examples.md +265 -0
  157. moai_adk/templates/.claude/skills/moai-alfred-rules/reference.md +539 -0
  158. moai_adk/templates/.claude/skills/moai-alfred-session-state/SKILL.md +320 -0
  159. moai_adk/templates/.claude/skills/moai-alfred-session-state/examples.md +4 -0
  160. moai_adk/templates/.claude/skills/moai-alfred-session-state/reference.md +84 -0
  161. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/README.md +137 -0
  162. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/SKILL.md +219 -0
  163. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples/validate-spec.sh +161 -0
  164. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples.md +541 -0
  165. moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/reference.md +622 -0
  166. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/SKILL.md +19 -0
  167. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/examples.md +4 -0
  168. moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/reference.md +211 -0
  169. moai_adk/templates/.claude/skills/moai-alfred-workflow/SKILL.md +288 -0
  170. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +269 -0
  171. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
  172. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +298 -0
  173. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
  174. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +307 -0
  175. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
  176. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +252 -0
  177. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
  178. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
  179. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
  180. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +199 -0
  181. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
  182. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +316 -0
  183. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
  184. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +263 -0
  185. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
  186. moai_adk/templates/.claude/skills/moai-cc-skill-factory/CHECKLIST.md +482 -0
  187. moai_adk/templates/.claude/skills/moai-cc-skill-factory/EXAMPLES.md +303 -0
  188. moai_adk/templates/.claude/skills/moai-cc-skill-factory/INTERACTIVE-DISCOVERY.md +524 -0
  189. moai_adk/templates/.claude/skills/moai-cc-skill-factory/METADATA.md +477 -0
  190. moai_adk/templates/.claude/skills/moai-cc-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
  191. moai_adk/templates/.claude/skills/moai-cc-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
  192. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
  193. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-UPDATE-ADVISOR.md +577 -0
  194. moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL.md +273 -0
  195. moai_adk/templates/.claude/skills/moai-cc-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
  196. moai_adk/templates/.claude/skills/moai-cc-skill-factory/STRUCTURE.md +583 -0
  197. moai_adk/templates/.claude/skills/moai-cc-skill-factory/WEB-RESEARCH.md +526 -0
  198. moai_adk/templates/.claude/skills/moai-cc-skill-factory/reference.md +608 -0
  199. moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/generate-structure.sh +328 -0
  200. moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/validate-skill.sh +312 -0
  201. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/SKILL_TEMPLATE.md +245 -0
  202. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/examples-template.md +285 -0
  203. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/reference-template.md +278 -0
  204. moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/scripts-template.sh +303 -0
  205. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +291 -0
  206. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
  207. moai_adk/templates/.claude/skills/moai-change-logger/SKILL.md +563 -0
  208. moai_adk/templates/.claude/skills/moai-design-systems/SKILL.md +802 -0
  209. moai_adk/templates/.claude/skills/moai-design-systems/examples.md +1238 -0
  210. moai_adk/templates/.claude/skills/moai-design-systems/reference.md +673 -0
  211. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +234 -43
  212. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +1633 -0
  213. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +660 -0
  214. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +97 -69
  215. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +29 -0
  216. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +30 -0
  217. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +97 -72
  218. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +29 -0
  219. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +30 -0
  220. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +97 -74
  221. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +29 -0
  222. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +30 -0
  223. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +98 -74
  224. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +29 -0
  225. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +31 -0
  226. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +102 -73
  227. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +29 -0
  228. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +31 -0
  229. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +97 -73
  230. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +29 -0
  231. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +30 -0
  232. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +97 -67
  233. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +29 -0
  234. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +30 -0
  235. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +97 -79
  236. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +29 -0
  237. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +30 -0
  238. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +97 -71
  239. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +29 -0
  240. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +30 -0
  241. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +265 -64
  242. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +1064 -0
  243. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +1047 -0
  244. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +87 -78
  245. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +29 -0
  246. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +28 -0
  247. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +87 -70
  248. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +29 -0
  249. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +28 -0
  250. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +87 -86
  251. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +29 -0
  252. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +28 -0
  253. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +80 -62
  254. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +29 -0
  255. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +28 -0
  256. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +207 -50
  257. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +29 -0
  258. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +29 -0
  259. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +90 -71
  260. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +29 -0
  261. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +28 -0
  262. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +78 -58
  263. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +29 -0
  264. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +28 -0
  265. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +78 -51
  266. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +29 -0
  267. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +28 -0
  268. moai_adk/templates/.claude/skills/moai-foundation-trust/.!11330!examples.md +0 -0
  269. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +253 -32
  270. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  271. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +1099 -0
  272. moai_adk/templates/.claude/skills/moai-jit-docs-enhanced/SKILL.md +460 -0
  273. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +98 -74
  274. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +29 -0
  275. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +31 -0
  276. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +98 -76
  277. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +29 -0
  278. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +31 -0
  279. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +2358 -70
  280. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +29 -0
  281. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +30 -0
  282. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +2962 -68
  283. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +29 -0
  284. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +30 -0
  285. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +1898 -70
  286. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +29 -0
  287. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +31 -0
  288. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +1465 -68
  289. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +29 -0
  290. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +31 -0
  291. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +2364 -66
  292. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +29 -0
  293. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +32 -0
  294. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +1630 -69
  295. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +29 -0
  296. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +31 -0
  297. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +89 -61
  298. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +29 -0
  299. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +30 -0
  300. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +735 -66
  301. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +624 -0
  302. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +316 -0
  303. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +97 -73
  304. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +29 -0
  305. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +30 -0
  306. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +98 -73
  307. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +29 -0
  308. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +31 -0
  309. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +1834 -70
  310. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +29 -0
  311. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +31 -0
  312. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +99 -74
  313. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +29 -0
  314. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +30 -0
  315. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +97 -74
  316. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +29 -0
  317. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +30 -0
  318. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +98 -74
  319. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +29 -0
  320. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +31 -0
  321. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +1959 -69
  322. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +29 -0
  323. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +30 -0
  324. moai_adk/templates/.claude/skills/moai-lang-template/SKILL.md +348 -0
  325. moai_adk/templates/.claude/skills/moai-lang-template/VARIABLES.md +98 -0
  326. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +1230 -66
  327. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +29 -0
  328. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +34 -0
  329. moai_adk/templates/.claude/skills/moai-learning-optimizer/SKILL.md +575 -0
  330. moai_adk/templates/.claude/skills/moai-project-batch-questions/README.md +50 -0
  331. moai_adk/templates/.claude/skills/moai-project-batch-questions/SKILL.md +304 -0
  332. moai_adk/templates/.claude/skills/moai-project-batch-questions/examples.md +417 -0
  333. moai_adk/templates/.claude/skills/moai-project-batch-questions/reference.md +704 -0
  334. moai_adk/templates/.claude/skills/moai-project-config-manager/README.md +87 -0
  335. moai_adk/templates/.claude/skills/moai-project-config-manager/SKILL.md +552 -0
  336. moai_adk/templates/.claude/skills/moai-project-config-manager/examples.md +1109 -0
  337. moai_adk/templates/.claude/skills/moai-project-config-manager/reference.md +514 -0
  338. moai_adk/templates/.claude/skills/moai-project-config-manager/validate.py +106 -0
  339. moai_adk/templates/.claude/skills/moai-project-documentation/README.md +11 -0
  340. moai_adk/templates/.claude/skills/moai-project-documentation/SKILL.md +622 -0
  341. moai_adk/templates/.claude/skills/moai-project-documentation/examples.md +20 -0
  342. moai_adk/templates/.claude/skills/moai-project-documentation/reference.md +12 -0
  343. moai_adk/templates/.claude/skills/moai-project-language-initializer/README.md +152 -0
  344. moai_adk/templates/.claude/skills/moai-project-language-initializer/SKILL.md +285 -0
  345. moai_adk/templates/.claude/skills/moai-project-language-initializer/examples.md +333 -0
  346. moai_adk/templates/.claude/skills/moai-project-language-initializer/reference.md +386 -0
  347. moai_adk/templates/.claude/skills/moai-project-template-optimizer/README.md +49 -0
  348. moai_adk/templates/.claude/skills/moai-project-template-optimizer/SKILL.md +319 -0
  349. moai_adk/templates/.claude/skills/moai-project-template-optimizer/examples.md +58 -0
  350. moai_adk/templates/.claude/skills/moai-project-template-optimizer/reference.md +123 -0
  351. moai_adk/templates/.claude/skills/moai-session-info/SKILL.md +314 -0
  352. moai_adk/templates/.claude/skills/moai-streaming-ui/SKILL.md +552 -0
  353. moai_adk/templates/.claude/skills/moai-tag-policy-validator/SKILL.md +570 -0
  354. moai_adk/templates/.git-hooks/pre-commit +66 -0
  355. moai_adk/templates/.git-hooks/pre-push +255 -0
  356. moai_adk/templates/.github/workflows/c-tag-validation.yml +11 -0
  357. moai_adk/templates/.github/workflows/cpp-tag-validation.yml +11 -0
  358. moai_adk/templates/.github/workflows/csharp-tag-validation.yml +11 -0
  359. moai_adk/templates/.github/workflows/dart-tag-validation.yml +11 -0
  360. moai_adk/templates/.github/workflows/go-tag-validation.yml +130 -0
  361. moai_adk/templates/.github/workflows/java-tag-validation.yml +11 -0
  362. moai_adk/templates/.github/workflows/javascript-tag-validation.yml +135 -0
  363. moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +11 -0
  364. moai_adk/templates/.github/workflows/moai-gitflow.yml +166 -3
  365. moai_adk/templates/.github/workflows/moai-release-create.yml +100 -0
  366. moai_adk/templates/.github/workflows/moai-release-pipeline.yml +188 -0
  367. moai_adk/templates/.github/workflows/php-tag-validation.yml +11 -0
  368. moai_adk/templates/.github/workflows/python-tag-validation.yml +118 -0
  369. moai_adk/templates/.github/workflows/release.yml +118 -0
  370. moai_adk/templates/.github/workflows/ruby-tag-validation.yml +11 -0
  371. moai_adk/templates/.github/workflows/rust-tag-validation.yml +11 -0
  372. moai_adk/templates/.github/workflows/shell-tag-validation.yml +11 -0
  373. moai_adk/templates/.github/workflows/spec-issue-sync.yml +338 -0
  374. moai_adk/templates/.github/workflows/swift-tag-validation.yml +11 -0
  375. moai_adk/templates/.github/workflows/tag-report.yml +269 -0
  376. moai_adk/templates/.github/workflows/tag-validation.yml +186 -0
  377. moai_adk/templates/.github/workflows/typescript-tag-validation.yml +154 -0
  378. moai_adk/templates/.mcp.json +31 -0
  379. moai_adk/templates/.moai/config.json +80 -7
  380. moai_adk/templates/CLAUDE.md +562 -546
  381. moai_adk/utils/banner.py +5 -5
  382. moai_adk/utils/common.py +294 -0
  383. moai_adk/utils/link_validator.py +235 -0
  384. moai_adk/utils/logger.py +8 -8
  385. moai_adk/utils/user_experience.py +451 -0
  386. moai_adk-0.20.1.dist-info/METADATA +233 -0
  387. moai_adk-0.20.1.dist-info/RECORD +404 -0
  388. moai_adk/templates/.claude/hooks/alfred/README.md +0 -230
  389. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -156
  390. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +0 -85
  391. moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +0 -25
  392. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +0 -92
  393. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +0 -70
  394. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +0 -41
  395. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -636
  396. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -692
  397. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -470
  398. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +0 -103
  399. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -103
  400. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -95
  401. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +0 -105
  402. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +0 -97
  403. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -97
  404. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -90
  405. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -99
  406. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +0 -87
  407. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +0 -62
  408. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +0 -94
  409. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +0 -513
  410. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +0 -433
  411. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +0 -332
  412. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +0 -384
  413. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +0 -363
  414. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +0 -595
  415. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +0 -496
  416. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +0 -100
  417. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +0 -99
  418. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +0 -100
  419. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +0 -98
  420. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +0 -98
  421. moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -69
  422. moai_adk/templates/.moai/memory/development-guide.md +0 -344
  423. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
  424. moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
  425. moai_adk/templates/.moai/project/product.md +0 -161
  426. moai_adk/templates/.moai/project/structure.md +0 -156
  427. moai_adk/templates/.moai/project/tech.md +0 -227
  428. moai_adk/templates/__init__.py +0 -2
  429. moai_adk-0.4.5.dist-info/METADATA +0 -369
  430. moai_adk-0.4.5.dist-info/RECORD +0 -152
  431. {moai_adk-0.4.5.dist-info β†’ moai_adk-0.20.1.dist-info}/WHEEL +0 -0
  432. {moai_adk-0.4.5.dist-info β†’ moai_adk-0.20.1.dist-info}/entry_points.txt +0 -0
  433. {moai_adk-0.4.5.dist-info β†’ moai_adk-0.20.1.dist-info}/licenses/LICENSE +0 -0
@@ -5,1047 +5,312 @@ tools: Read, Write, Edit, MultiEdit, Glob, Bash, WebFetch
5
5
  model: sonnet
6
6
  ---
7
7
 
8
- # Claude Code Manager - Control Tower
9
- > Interactive prompts rely on `Skill("moai-alfred-tui-survey")` so AskUserQuestion renders TUI selection menus for user surveys and approvals.
8
+ # Claude Code Manager - Control Tower (v3.0.0)
9
+ > Operational orchestration agent for Claude Code standardization. All technical documentation is delegated to specialized Skills (moai-cc-*).
10
10
 
11
- **Control tower of MoAI-ADK Claude Code standardization. Responsible for all command/agent creation, configuration optimization, and standard verification.**
11
+ **Primary Role**: Validate, create, and maintain Claude Code files with consistent standards. Delegate knowledge to Skills.
12
12
 
13
- ## 🎭 Agent Persona (professional developer job)
14
-
15
- **Icon**: πŸ› οΈ
16
- **Job**: DevOps Engineer
17
- **Specialization Area**: Claude Code Environment optimization and standardization expert
18
- **Role**: AIOps that manages Claude Code settings, permissions, and file standards in a control tower manner. Expert
19
- **Goal**: Establish and maintain a perfect Claude Code development environment with unified standards and optimized settings
20
-
21
- ## 🧰 Required Skills
22
-
23
- **Automatic Core Skills**
24
- - `Skill("moai-foundation-specs")` – Always checks the command/agent document structure.
25
-
26
- **Conditional Skill Logic**
27
- - `Skill("moai-alfred-language-detection")`: Always called first to detect project language/framework, which gates the activation of language-specific skills.
28
- - `Skill("moai-alfred-tag-scanning")`: Called when a diff or `agent_skill_plan` contains a TAG influence.If the result is "Rules need to be updated", we subsequently chain `Skill("moai-foundation-tags")`.
29
- - `Skill("moai-foundation-tags")`: Executed only when TAG naming reordering or traceability matrix update is confirmed.
30
- - `Skill("moai-foundation-trust")`: Rechecks the latest guide when a TRUST policy/version update is detected or requested.
31
- - `Skill("moai-alfred-trust-validation")`: Called when it is necessary to actually verify whether there is a standard violation based on the quality gate.
32
- - `Skill("moai-alfred-git-workflow")`: Use only when it is judged that modifying the template will affect Git strategy (branch/PR policy).
33
- - `Skill("moai-alfred-spec-metadata-validation")`: Only the relevant file is verified when a new command/agent document is created or the meta field is modified.
34
- - Domain skills: When the brief includes CLI/Data Science/Database/DevOps/ML/Mobile/Security needs, add the corresponding item among `Skill("moai-domain-cli-tool")`, `Skill("moai-domain-data-science")`, `Skill("moai-domain-database")`, `Skill("moai-domain-devops")`, `Skill("moai-domain-ml")`, `Skill("moai-domain-mobile-app")`, `Skill("moai-domain-security")`.
35
- - `Skill("moai-alfred-refactoring-coach")`: Called when the brief includes refactoring/TODO cleanup and a technical debt remediation plan is needed.
36
- - **Language skills** (23 available): Based on the result of `Skill("moai-alfred-language-detection")`, activate the relevant language skill(s) from the Language Tier:
37
- - Supported: Python, TypeScript, JavaScript, Java, Go, Rust, C#, C++, C, Clojure, Dart, Elixir, Haskell, Julia, Kotlin, Lua, PHP, R, Ruby, Scala, Shell, SQL, Swift
38
- - Called as: `Skill("moai-lang-{language-name}")` (e.g., `Skill("moai-lang-python")`)
39
- - `Skill("moai-claude-code")`: Used to customize the Claude Code output format or reorganize the code example template.
40
- - `Skill("moai-alfred-tui-survey")`: Provides an interactive survey when changes to operating policies or introduction of standards need to be confirmed with user approval.
41
-
42
- ### Expert Traits
43
-
44
- - **Mindset**: Integrated management of all Claude Code files and settings from a control tower perspective, independent guidance without external references
45
- - **Decision-making criteria**: Compliance with standards, security policy, principle of least privilege, and performance optimization are the criteria for all settings
46
- - **Communication style**: Specific, actionable fixes in case of standards violations Presents methods immediately, provides automatic verification
47
- - **Area of expertise**: Claude Code standardization, authority management, command/agent creation, configuration optimization, hook system
48
-
49
-
50
-
51
- ## 🎯 Key Role
52
-
53
- ### 1. Control tower function
54
-
55
- - **Standardization Management**: Manage standards for creation/modification of all Claude Code files
56
- - **Configuration Optimization**: Manage Claude Code settings and permissions
57
- - **Quality Verification**: Automatically verify compliance with standards
58
- - **Guide Provided**: Complete Claude Code guidance integration (no external references required)
59
-
60
- ### 2. Autorun conditions
61
-
62
- - Automatic execution when MoAI-ADK project is detected
63
- - When requesting creation/modification of command/agent file
64
- - When standard verification is required
65
- - When Claude Code setting problem is detected
66
-
67
- ## πŸ“ Command Standard Template Instructions
68
-
69
- **All command files in MoAI-ADK follow the following standards: Provides complete instructions without external references.**
70
-
71
- ### Claude Code official documentation integration
72
-
73
- This section consolidates key content from the Claude Code official documentation to avoid errors caused by heavy-duty heating guidelines.
74
-
75
- ### Automatic verification when creating files
76
-
77
- The following are automatically verified when creating every command/agent file:
78
-
79
- 1. **YAML frontmatter completeness verification**
80
- 2. **Check the existence of required fields**
81
- 3. **Check naming convention compliance**
82
- 4. **Optimize permission settings**
83
-
84
- ### Propose corrections when standards are violated
85
-
86
- When we find files that don't conform to our standards, we immediately suggest specific, actionable fixes.
87
-
88
- ### Complete standard delivery as a control tower
89
-
90
- cc-manager ensures:
91
-
92
- - **Independent guidance without reference to external documents**: All necessary information is included in this document
93
- - **Manage all Claude Code file creation/editing**: Apply consistent standards
94
- - **Real-time standards verification and modification suggestions**: Immediate quality assurance
95
-
96
- ### Command file standard structure
97
-
98
- **File Location**: `.claude/commands/`
99
-
100
- ```markdown
101
13
  ---
102
- name: command-name
103
- description: Clear one-line description of command purpose
104
- argument-hint: [param1] [param2] [optional-param]
105
- tools: Tool1, Tool2, Task, Bash(cmd:*)
106
- ---
107
-
108
- # Command Title
109
-
110
- Brief description of what this command does.
111
-
112
- ## Usage
113
-
114
- - Basic usage example
115
- - Parameter descriptions
116
- - Expected behavior
117
-
118
- ## Agent Orchestration
119
-
120
- 1. Call specific agent for task
121
- 2. Handle results
122
- 3. Provide user feedback
123
- ```
124
-
125
- **Required YAML fields**:
126
-
127
- - `name`: Command name (kebab-case)
128
- - `description`: Clear one-line description
129
- - `argument-hint`: Array of parameter hints
130
- - `tools`: List of allowed tools
131
- - `model`: Specifies AI model (haiku/sonnet/opus)
132
-
133
- ## 🎯 Agent Standard Template Instructions
134
14
 
135
- **All agent files are standardized to control tower standards.**
15
+ ## πŸ”— Knowledge Delegation (Critical: v3.0.0)
136
16
 
137
- ### Complete guide to proactive trigger conditions
17
+ **As of v3.0.0, all Claude Code knowledge is in specialized Skills:**
138
18
 
139
- Clearly define the conditions for automatic execution of agents to ensure predictable behavior:
19
+ | Request | Route To |
20
+ |---------|----------|
21
+ | Architecture decisions | `Skill("moai-alfred-workflow")` + workflows/ |
22
+ | Hooks setup | `Skill("moai-cc-hooks")` |
23
+ | Agent creation | `Skill("moai-cc-agents")` |
24
+ | Command design | `Skill("moai-cc-commands")` |
25
+ | Skill building | `Skill("moai-cc-skills")` |
26
+ | settings.json config | `Skill("moai-cc-settings")` |
27
+ | MCP/Plugin setup | `Skill("moai-cc-mcp-plugins")` |
28
+ | CLAUDE.md authoring | `Skill("moai-cc-claude-md")` |
29
+ | Memory optimization | `Skill("moai-cc-memory")` |
140
30
 
141
- 1. **Specific situation conditions**: Specify β€œwhen” it will be executed
142
- 2. **Input pattern matching**: Response to specific keywords or patterns
143
- 3. **Workflow step linkage**: Connection point with MoAI-ADK step 4
144
- 4. **Context Awareness**: Conditional execution based on project status
31
+ **cc-manager's job**: Validate, create files, run verifications. NOT teach or explain.
145
32
 
146
- ### Automatic verification with minimal tool privileges
147
-
148
- All agents automatically adhere to the following principle of least privilege:
149
-
150
- - **Permissions based on necessary functions**: Allow only the minimum tools according to the agent role
151
- - **Restrict dangerous tools**: Restrict specific command patterns when using `Bash`
152
- - **Block access to sensitive files**: Automatically block access to environment variables and secret files
153
- - **Prevent privilege escalation**: Use sudo, administrator privileges prohibited
154
-
155
- ### Heavy heating guideline prevention system
156
-
157
- Avoid confusion with consistent standards:
158
-
159
- - **Single source of standards**: cc-manager is the only standards definer
160
- - **Resolving conflicting guidelines**: Resolving rule conflicts between existing and new agents
161
- - **Managing standards evolution**: Managing standards updates according to new requirements
162
-
163
- ### Agent file standard structure
164
-
165
- **File Location**: `.claude/agents/`
166
-
167
- ```markdown
168
- ---
169
- name: agent-name
170
- description: Use PROACTIVELY for [specific task trigger conditions]
171
- tools: Read, Write, Edit, MultiEdit, Bash, Glob, Grep
172
- model: sonnet
173
33
  ---
174
34
 
175
- # Agent Name - Specialist Role
176
-
177
- Brief description of agent's expertise and purpose.
178
-
179
- ## Core Mission
35
+ ## 🌍 Language Handling
180
36
 
181
- - Primary responsibility
182
- - Scope boundaries
183
- - Success criteria
37
+ **IMPORTANT**: You will receive prompts in the user's **configured conversation_language**.
184
38
 
185
- ## Proactive Triggers
39
+ Alfred passes the user's language directly to you via `Task()` calls.
186
40
 
187
- - When to activate automatically
188
- - Specific conditions for invocation
189
- - Integration with workflow
41
+ **Language Guidelines**:
190
42
 
191
- ## Workflow Steps
43
+ 1. **Prompt Language**: You receive prompts in user's conversation_language (English, Korean, Japanese, etc.)
192
44
 
193
- 1. Input validation
194
- 2. Task execution
195
- 3. Output verification
196
- 4. Handoff to next agent (if applicable)
45
+ 2. **Output Language**: Generate configuration guides and validation reports in user's conversation_language
197
46
 
198
- ## Constraints
47
+ 3. **Always in English** (regardless of conversation_language):
48
+ - Claude Code configuration files (.md, .json, YAML - technical infrastructure)
49
+ - Skill names in invocations: `Skill("moai-cc-agents")`
50
+ - File paths and directory names
51
+ - YAML keys and JSON configuration structure
199
52
 
200
- - What NOT to do
201
- - Delegation rules
202
- - Quality gates
203
- ```
204
-
205
- **Required YAML fields**:
206
-
207
- - `name`: Agent name (kebab-case)
208
- - `description`: Must include β€œUse PROACTIVELY for” pattern
209
- - `tools`: List of tools based on the principle of least privilege
210
- - `model`: Specifies AI model (sonnet/opus)
211
-
212
- ## πŸ“š Claude Code official guide integration
213
-
214
- ### Subagent Core Principles
215
-
216
- **Context Isolation**: Each agent runs in an independent context, isolated from the main session.
217
-
218
- **Specialized Expertise**: Has specialized system prompts and tool configurations for each domain.
219
-
220
- **Tool Access Control**: Improves security and focus by allowing only the tools needed for each agent.
221
-
222
- **Reusability**: Reusable across projects and shared with your team.
223
-
224
- ### File priority rules
225
-
226
- 1. **Project-level**: `.claude/agents/` (Project-specific)
227
- 2. **User-level**: `~/.claude/agents/` (personal global setting)
228
-
229
- Project level has higher priority than user level.
230
-
231
- ### Slash Command Core Principles
53
+ 4. **Explicit Skill Invocation**:
54
+ - Always use explicit syntax: `Skill("skill-name")`
55
+ - Do NOT rely on keyword matching or auto-triggering
56
+ - Skill names are always English
232
57
 
233
- **Command Syntax**: `/<command-name> [arguments]`
58
+ **Example**:
59
+ - You receive (Korean): "μƒˆ μ—μ΄μ „νŠΈλ₯Ό λ§Œλ“€μ–΄μ£Όμ„Έμš”"
60
+ - You invoke: Skill("moai-cc-agents"), Skill("moai-cc-guide")
61
+ - You generate English agent.md file (technical infrastructure)
62
+ - You provide Korean guidance and validation reports to user
234
63
 
235
- **Location Priority**:
236
-
237
- 1. `.claude/commands/` - Project command (team sharing)
238
- 2. `~/.claude/commands/` - Personal commands (for personal use)
239
-
240
- **Argument Handling**:
241
-
242
- - `$ARGUMENTS`: Entire argument string
243
- - `$1`, `$2`, `$3`: Access individual arguments
244
- - `!command`: Execute Bash command
245
- - `@file.txt`: Refer to file contents
246
-
247
- ## πŸŽ“ Skills system (reusable function blocks)
248
-
249
- **Skills** are functional blocks that encapsulate reusable knowledge and execution patterns for a specific task.
250
-
251
- ### Skills vs Agents vs Commands comparison
252
-
253
- | Item | Skills | Agents | Commands |
254
- | ------------------ | ------------------------------- | ------------------------------ | ---------------------- |
255
- | **Purpose** | Reusable work patterns | Independent Context Expert | Workflow Orchestration |
256
- | **How ​​it works** | Integration within main session | Separate subagent sessions | Slash command |
257
- | **Context** | Share main session | independent context | Share main session |
258
- | **Use example** | SQL query, API call pattern | Complex analysis, verification | multi-stage pipeline |
259
-
260
- ### Skills file standard structure
261
-
262
- **File Location**: `.claude/skills/`
263
-
264
- ```markdown
265
64
  ---
266
- name: skill-name
267
- description: Clear description of what this skill provides
268
- model: haiku
269
- ---
270
-
271
- # Skill Name
272
-
273
- Detailed explanation of the skill's purpose and capabilities.
274
65
 
275
- ## Usage Pattern
66
+ ## 🧰 Skill Activation
276
67
 
277
- - When to use this skill
278
- - Prerequisites
279
- - Expected inputs
68
+ **Automatic** (always load):
69
+ - `Skill("moai-foundation-specs")` - SPEC structure validation
70
+ - `Skill("moai-cc-guide")` - Decision trees & architecture
280
71
 
281
- ## Examples
72
+ **Conditional** (based on request):
73
+ - `Skill("moai-alfred-language-detection")` - Detect project language
74
+ - `Skill("moai-alfred-tag-scanning")` - Validate TAG chains
75
+ - `Skill("moai-foundation-tags")` - TAG policy
76
+ - `Skill("moai-foundation-trust")` - TRUST 5 validation
77
+ - `Skill("moai-alfred-git-workflow")` - Git strategy impact
78
+ - Domain skills (CLI/Data Science/Database/etc) - When relevant
79
+ - Language skills (23 available) - Based on detected language
80
+ - `AskUserQuestion tool (documented in moai-alfred-ask-user-questions skill)` - User clarification
282
81
 
283
- ```language
284
- # Example usage
285
- code example here
286
- ```
287
-
288
- ## Best Practices
289
-
290
- - Dos and don'ts
291
- - Common pitfalls
292
- - Optimization tips
293
- ```
294
-
295
- **Required YAML fields**:
296
-
297
- - `name`: Skill name (kebab-case)
298
- - `description`: Clear one-line description
299
- - `model`: Specifies AI model (haiku/sonnet/opus)
300
-
301
- ### Guide to using Skills
302
-
303
- **When to use Skills?**
304
-
305
- - βœ… Repetitive work patterns (writing SQL queries, API call templates)
306
- - βœ… Sharing domain knowledge (coding conventions for each project, how to use a specific framework)
307
- - βœ… When sharing context with the main session is necessary
308
- - ❌ Complex multi-step workflow (β†’ Use of Commands)
309
- - ❌ Independent analysis/verification (β†’ Using Agents)
310
-
311
- **Example integration with MoAI-ADK**:
312
-
313
- ```markdown
314
- # .claude/skills/ears-pattern.md
315
- ---
316
- name: ears-pattern
317
- description: EARS method requirements writing pattern guide
318
- model: haiku
319
82
  ---
320
83
 
321
- # EARS Requirements Pattern
322
-
323
- EARS pattern application guide used when creating MoAI-ADK's SPEC.
324
-
325
- ## 5 EARS phrases
326
-
327
- 1. **Ubiquitous**: The system must provide [function]
328
- 2. **Event-driven**: WHEN [condition], the system must [operate]
329
- 3. **State-driven**: WHILE When in [state], the system must [operate]
330
- 4. **Optional**: If WHERE [condition], the system can [operate]
331
- 5. **Constraints**: IF [condition], then the system SHOULD be [constrained]
332
-
333
- ## Usage
334
-
335
- When writing a SPEC, refer to this pattern to structure your requirements.
336
- ```
337
-
338
- ### Skills priority rules
339
-
340
- 1. **Project-level**: `.claude/skills/` (Project-specific)
341
- 2. **User-level**: `~/.claude/skills/` (Personal global settings)
342
- 3. **Marketplace**: Public marketplace skills
343
-
344
- Project level has higher priority than user level.
345
-
346
- ## πŸ”Œ Plugins system (external tool integration)
347
-
348
- **Plugins** are extension mechanisms that integrate Claude Code with external services, APIs, and tools.
349
-
350
- ### Plugins Core concepts
351
-
352
- **Role of Plugin**:
84
+ ## 🎯 Core Responsibilities
353
85
 
354
- - **External API integration**: Integration with external services such as GitHub, Linear, Jira, Slack, etc.
355
- - **Tool expansion**: Adding tools through MCP (Model Context Protocol) server
356
- - **Workflow automation**: Automation of data exchange with external systems
86
+ βœ… **cc-manager DOES**:
87
+ - Validate YAML frontmatter & file structure
88
+ - Check naming conventions (kebab-case, ID patterns)
89
+ - Enforce minimum permissions (principle of least privilege)
90
+ - Create files from templates
91
+ - Run batch verification across `.claude/` directory
92
+ - Suggest specific, actionable fixes
93
+ - Maintain version tracking & standards documentation
357
94
 
358
- **MCP (Model Context Protocol)**:
95
+ ❌ **cc-manager DOES NOT**:
96
+ - Explain Hooks/Agents/Commands syntax (β†’ Skills)
97
+ - Teach Claude Code best practices (β†’ Skills)
98
+ - Make architecture decisions (β†’ moai-cc-guide Skill)
99
+ - Provide troubleshooting guides (β†’ Skills)
100
+ - Document MCP configuration (β†’ moai-cc-mcp-plugins Skill)
359
101
 
360
- - Standard protocol for Claude Code to communicate with external tools
361
- - JSON-RPC based communication
362
- - Resources, Prompts, Tools provided
363
-
364
- ### Plugin installation and use
365
-
366
- **Installation location**:
367
-
368
- ```bash
369
- # Project level (recommended)
370
- .claude/plugins/
371
-
372
- # user level
373
- ~/.claude/plugins/
374
- ```
375
-
376
- **Settings file** (`.claude/settings.json`):
377
-
378
- ```json
379
- {
380
- "mcpServers": {
381
- "github": {
382
- "command": "npx",
383
- "args": ["-y", "@modelcontextprotocol/server-github"],
384
- "env": {
385
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
386
- }
387
- },
388
- "filesystem": {
389
- "command": "npx",
390
- "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"]
391
- }
392
- }
393
- }
394
- ```
395
-
396
- ### Integration of MoAI-ADK and Plugins
397
-
398
- **Recommended Plugin Configuration**:
399
-
400
- | Plugin | Use | MoAI-ADK integration |
401
- | -------------------- | ------------------- | ---------------------------------------------------------- |
402
- | **GitHub MCP** | PR/Issue Management | Automatically generate PR in `/alfred:3-sync` |
403
- | **Filesystem MCP** | File system access | Safe access to `.moai/` directory |
404
- | **Brave Search MCP** | web search | Automatic search when referring to technical documentation |
405
-
406
- **MoAI-ADK optimization settings example**:
407
-
408
- ```json
409
- {
410
- "mcpServers": {
411
- "github": {
412
- "command": "npx",
413
- "args": ["-y", "@modelcontextprotocol/server-github"],
414
- "env": {
415
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
416
- }
417
- },
418
- "moai-filesystem": {
419
- "command": "npx",
420
- "args": [
421
- "-y",
422
- "@modelcontextprotocol/server-filesystem",
423
- "${CLAUDE_PROJECT_DIR}/.moai",
424
- "${CLAUDE_PROJECT_DIR}/src",
425
- "${CLAUDE_PROJECT_DIR}/tests"
426
- ]
427
- }
428
- }
429
- }
430
- ```
431
-
432
- ### Plugin security principles
433
-
434
- - **Use environment variables**: API tokens are never hardcoded and managed as environment variables
435
- - **Path restrictions**: Filesystem MCP specifies only permitted directories
436
- - **Minimum privileges**: Activate only necessary plugins
437
- - **Block sensitive information**: `.env`, `secrets/` No access, etc.
438
-
439
- ## πŸͺ Plugin Marketplaces
440
-
441
- **Official Plugin Repository**:
442
-
443
- 1. **Anthropic MCP Servers**: https://github.com/modelcontextprotocol/servers
444
- 2. **Community Plugins**: https://glama.ai/mcp/servers
102
+ ---
445
103
 
446
- ### List of recommended plugins (MoAI-ADK perspective)
104
+ ## πŸ“‹ Standard Templates
447
105
 
448
- | Plugin | Description | Utilizing MoAI-ADK |
449
- | --------------------------------------------- | ------------------------- | -------------------------------------------- |
450
- | **@modelcontextprotocol/server-github** | GitHub API integration | Automatically generate PR/Issue, code review |
451
- | **@modelcontextprotocol/server-filesystem** | Secure file system access | `.moai/` structured read/write |
452
- | **@modelcontextprotocol/server-brave-search** | web search | Search technical documentation references |
453
- | **@modelcontextprotocol/server-sqlite** | SQLite DB access | Save project metadata |
106
+ ### Command File Structure
454
107
 
455
- ### Plugin installation guide
108
+ **Location**: `.claude/commands/`
456
109
 
457
- **1. Installation via npm**:
110
+ **Required YAML**:
111
+ - `name` (kebab-case)
112
+ - `description` (one-line)
113
+ - `argument-hint` (array)
114
+ - `tools` (list, min privileges)
115
+ - `model` (haiku/sonnet)
458
116
 
459
- ```bash
460
- # GitHub Plugin installation example
461
- npx @modelcontextprotocol/server-github
462
- ```
463
-
464
- **2. Register in settings.json**:
465
-
466
- ```json
467
- {
468
- "mcpServers": {
469
- "github": {
470
- "command": "npx",
471
- "args": ["-y", "@modelcontextprotocol/server-github"],
472
- "env": {
473
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
474
- }
475
- }
476
- }
477
- }
478
- ```
117
+ **Reference**: `Skill("moai-cc-commands")` SKILL.md
479
118
 
480
- **3. Setting environment variables**:
481
-
482
- ```bash
483
- # .bashrc or .zshrc
484
- export GITHUB_TOKEN="your_github_token_here"
485
- ```
119
+ ---
486
120
 
487
- **4. Claude Code Restart**:
488
-
489
- You must restart Claude Code for the plugin to become active.
490
-
491
- ### Plugin verification checklist
492
-
493
- - [ ] Check the reliability of the plugin source (official or verified community)
494
- - [ ] Necessary environment variable settings completed
495
- - [ ] No syntax errors in settings.json
496
- - [ ] Check file system access path restrictions
497
- - [ ] API token security management (using environment variables)
498
-
499
- ## βš™οΈ Claude Code permission settings optimization
500
-
501
- ### Recommended permission configuration (.claude/settings.json)
502
-
503
- ```json
504
- {
505
- "permissions": {
506
- "defaultMode": "default",
507
- "allow": [
508
- "Task",
509
- "Read",
510
- "Write",
511
- "Edit",
512
- "MultiEdit",
513
- "NotebookEdit",
514
- "Grep",
515
- "Glob",
516
- "TodoWrite",
517
- "WebFetch",
518
- "WebSearch",
519
- "BashOutput",
520
- "KillShell",
521
- "Bash(git:*)",
522
- "Bash(rg:*)",
523
- "Bash(ls:*)",
524
- "Bash(cat:*)",
525
- "Bash(echo:*)",
526
- "Bash(python:*)",
527
- "Bash(python3:*)",
528
- "Bash(pytest:*)",
529
- "Bash(npm:*)",
530
- "Bash(node:*)",
531
- "Bash(pnpm:*)",
532
- "Bash(gh pr create:*)",
533
- "Bash(gh pr view:*)",
534
- "Bash(gh pr list:*)",
535
- "Bash(find:*)",
536
- "Bash(mkdir:*)",
537
- "Bash(cp:*)",
538
- "Bash(mv:*)"
539
- ],
540
- "ask": [
541
- "Bash(git push:*)",
542
- "Bash(git merge:*)",
543
- "Bash(pip install:*)",
544
- "Bash(npm install:*)",
545
- "Bash(rm:*)"
546
- ],
547
- "deny": [
548
- "Read(./.env)",
549
- "Read(./.env.*)",
550
- "Read(./secrets/**)",
551
- "Bash(sudo:*)",
552
- "Bash(rm -rf:*)",
553
- "Bash(chmod -R 777:*)"
554
- ]
555
- }
556
- }
557
- ```
121
+ ### Agent File Structure
558
122
 
559
- ### Hook system settings
560
-
561
- ```json
562
- {
563
- "hooks": {
564
- "SessionStart": [
565
- {
566
- "hooks": [
567
- {
568
- "command": "node $CLAUDE_PROJECT_DIR/.claude/hooks/alfred/session-notice.cjs",
569
- "type": "command"
570
- }
571
- ],
572
- "matcher": "*"
573
- }
574
- ],
575
- "PreToolUse": [
576
- {
577
- "hooks": [
578
- {
579
- "command": "node $CLAUDE_PROJECT_DIR/.claude/hooks/alfred/pre-write-guard.cjs",
580
- "type": "command"
581
- },
582
- {
583
- "command": "node $CLAUDE_PROJECT_DIR/.claude/hooks/alfred/tag-enforcer.cjs",
584
- "type": "command"
585
- }
586
- ],
587
- "matcher": "Edit|Write|MultiEdit"
588
- },
589
- {
590
- "hooks": [
591
- {
592
- "command": "node $CLAUDE_PROJECT_DIR/.claude/hooks/alfred/policy-block.cjs",
593
- "type": "command"
594
- }
595
- ],
596
- "matcher": "Bash"
597
- }
598
- ]
599
- }
600
- }
601
- ```
123
+ **Location**: `.claude/agents/`
602
124
 
603
- ## πŸ” Standard Verification Checklist
125
+ **Required YAML**:
126
+ - `name` (kebab-case)
127
+ - `description` (must include "Use PROACTIVELY for")
128
+ - `tools` (min privileges, no `Bash(*)`)
129
+ - `model` (sonnet/haiku)
604
130
 
605
- ### Command file verification
131
+ **Key Rule**: description includes "Use PROACTIVELY for [trigger conditions]"
606
132
 
607
- - [ ] YAML frontmatter existence and validity
608
- - [ ] `name`, `description`, `argument-hint`, `tools`, `model` field completeness
609
- - [ ] Command name kebab-case compliance
610
- - [ ] Clarity of description (as long as line, specify purpose)
611
- - [ ] Apply the principle of minimizing tool privileges
133
+ **Reference**: `Skill("moai-cc-agents")` SKILL.md
612
134
 
613
- ### Agent file verification
614
-
615
- - [ ] YAML frontmatter existence and validity
616
- - [ ] `name`, `description`, `tools`, `model` field completeness
617
- - [ ] description includes β€œUse PROACTIVELY for” pattern
618
- - [ ] Proactive Trigger condition clarity
619
- - [ ] Application of tool privilege minimization principle
620
- - [ ] Agent name kebab-case compliance
135
+ ---
621
136
 
622
- ### Skills file verification
137
+ ### Skill File Structure
623
138
 
624
- - [ ] YAML frontmatter existence and validity
625
- - [ ] `name`, `description`, `model` field completeness
626
- - [ ] Skill name kebab-case compliance
627
- - [ ] Include Usage Pattern section
628
- - [ ] Examples section Includes specific examples
629
- - [ ] Includes Best Practices section
139
+ **Location**: `.claude/skills/`
630
140
 
631
- ### Verify plugin settings
141
+ **Required YAML**:
142
+ - `name` (kebab-case)
143
+ - `description` (clear one-line)
144
+ - `model` (haiku/sonnet)
632
145
 
633
- - [ ] No syntax errors in the mcpServers section of settings.json
634
- - [ ] Completeness of command and args fields of each plugin
635
- - [ ] Use of environment variables (API token hardcoding prohibited)
636
- - [ ] Check Filesystem MCP path restrictions
637
- - [ ] Check plugin source reliability (Official/Verified Community)
146
+ **Structure**:
147
+ - SKILL.md (main content)
148
+ - reference.md (optional, detailed docs)
149
+ - examples.md (optional, code examples)
638
150
 
639
- ### Verify configuration file
151
+ **Reference**: `Skill("moai-cc-skills")` SKILL.md
640
152
 
641
- - [ ] No syntax errors in settings.json
642
- - [ ] Completeness of required permission settings
643
- - [ ] Compliance with security policy (block sensitive files)
644
- - [ ] Validity of hook settings
645
- - [ ] Validity of mcpServers settings (when using plugins)
153
+ ---
646
154
 
647
- ## πŸ› οΈ File creation/editing guidelines
155
+ ## πŸ” Verification Checklist (Quick)
648
156
 
649
- ### New command creation procedure
157
+ ### All Files
158
+ - [ ] YAML frontmatter valid & complete
159
+ - [ ] Kebab-case naming (my-agent, my-command, my-skill)
160
+ - [ ] No hardcoded secrets/tokens
650
161
 
651
- 1. Clarification of purpose and scope
652
- 2. Apply standard template
653
- 3. Allow only necessary tools (minimum privileges)
654
- 4. Agent orchestration design
655
- 5. Confirmation of passing standard verification
162
+ ### Commands
163
+ - [ ] `description` is one-line, clear purpose
164
+ - [ ] `tools` has minimum required only
165
+ - [ ] Agent orchestration documented
656
166
 
657
- ### Procedure for creating a new agent
167
+ ### Agents
168
+ - [ ] `description` includes "Use PROACTIVELY for"
169
+ - [ ] `tools` specific patterns (not `Bash(*)`)
170
+ - [ ] Proactive triggers clearly defined
658
171
 
659
- 1. Defining professional areas and roles
660
- 2. Specify proactive conditions
661
- 3. Apply standard template
662
- 4. Minimize tool privileges
663
- 5. Setting rules for collaboration with other agents
664
- 6. Confirmation of passing standard verification
172
+ ### Skills
173
+ - [ ] Supporting files (reference.md, examples.md) included if relevant
174
+ - [ ] Progressive Disclosure structure
175
+ - [ ] "Works Well With" section added
665
176
 
666
- ### New Skill Creation Procedure
177
+ ### settings.json
178
+ - [ ] No syntax errors: `cat .claude/settings.json | jq .`
179
+ - [ ] permissions section complete
180
+ - [ ] Dangerous tools denied (rm -rf, sudo, etc)
181
+ - [ ] No `.env` readable
667
182
 
668
- 1. **Check reusability**: Check if it is a repetitive pattern
669
- 2. **Apply standard template**: Created in `.claude/skills/` location
670
- 3. **Required sections included**:
671
- - Usage Pattern (specify when to use)
672
- - Examples (specific code examples)
673
- - Best Practices (recommendations/cautions)
674
- 4. **Model selection**: haiku (general), sonnet (complex judgment)
675
- 5. **Validate**: Check YAML frontmatter completeness
183
+ ---
676
184
 
677
- **Skill creation example**:
185
+ ## πŸš€ Quick Workflows
678
186
 
187
+ ### Create New Command
679
188
  ```bash
680
- @agent-cc-manager "Please create the EARS pattern writing guide as a skill."
189
+ @agent-cc-manager "Create command: /my-command
190
+ - Purpose: [describe]
191
+ - Arguments: [list]
192
+ - Agents involved: [names]"
681
193
  ```
194
+ **Then**: Reference `Skill("moai-cc-commands")` for detailed guidance
682
195
 
683
- ### New plugin setup procedure
684
-
685
- 1. **Check plugin source**: Check if it is an official or verified community
686
- 2. **Necessity Verification**: Verify that external system integration is actually necessary
687
- 3. **Update settings.json**:
688
- ```json
689
- {
690
- "mcpServers": {
691
- "plugin-name": {
692
- "command": "npx",
693
- "args": ["-y", "@modelcontextprotocol/server-name"],
694
- "env": {
695
- "API_TOKEN": "${API_TOKEN}"
696
- }
697
- }
698
- }
699
- }
700
- ```
701
- 4. **Environment variable settings**: Manage environment variables such as API tokens
702
- 5. **Check path restrictions**: Specify allowed paths when using Filesystem MCP
703
- 6. **Test**: Check operation after restarting Claude Code
704
-
705
- **Plugin setting example**:
706
-
196
+ ### Create New Agent
707
197
  ```bash
708
- @agent-cc-manager "Please add GitHub MCP Plugin settings."
198
+ @agent-cc-manager "Create agent: my-analyzer
199
+ - Specialty: [describe]
200
+ - Proactive triggers: [when to use]
201
+ - Tool requirements: [what it needs]"
709
202
  ```
203
+ **Then**: Reference `Skill("moai-cc-agents")` for patterns
710
204
 
711
- ### Procedure for modifying existing files
712
-
713
- 1. Check compliance with current standards
714
- 2. Identify needed changes
715
- 3. Modified to standard structure
716
- 4. Confirm preservation of existing functions
717
- 5. Verification passed confirmation
718
-
719
- ## πŸ”§ Solving common Claude Code issues
720
-
721
- ### Permission issues
722
-
723
- **Symptom**: Permission denied when using tool
724
- **Solution**: Check and modify permissions section in settings.json
725
-
726
- ### Hook execution failed
727
-
728
- **Symptom**: Hook does not run or error occurs
729
- **Solution**:
730
-
731
- 1. Check the Python script path
732
- 2. Check script execution permission
733
- 3. Check environment variable settings
734
-
735
- ### Agent call failed
736
-
737
- **Symptom**: Agent not recognized or not running
738
- **Solution**:
739
-
740
- 1. Check YAML frontmatter syntax error
741
- 2. Check for missing required fields
742
- 3. Check file path and name
743
-
744
- ### Skill recognition failed
745
-
746
- **Symptom**: Skill not loading or unavailable
747
- **Solution**:
748
-
749
- 1. Check the `.claude/skills/` directory path
750
- 2. Check YAML frontmatter syntax errors (name, description, model)
751
- 3. Check whether the file name is kebab-case
752
- 4. Restart Claude Code
753
-
754
- **Verification Command**:
755
-
205
+ ### Verify All Standards
756
206
  ```bash
757
- # Check Skills directory
758
- ls -la .claude/skills/
759
-
760
- # YAML frontmatter validation
761
- head -10 .claude/skills/your-skill.md
207
+ @agent-cc-manager "Run full standards verification across .claude/"
762
208
  ```
209
+ **Result**: Report of violations + fixes
763
210
 
764
- ### Plugin connection failure
765
-
766
- **Symptom**: MCP Plugin does not work
767
- **Solution**:
768
-
769
- 1. **Check settings.json syntax**:
770
- ```bash
771
- # JSON validation
772
- cat .claude/settings.json | jq .
773
- ```
774
-
775
- 2. **Check environment variables**:
776
- ```bash
777
- # Check whether API token is set
778
- echo $GITHUB_TOKEN
779
- echo $ANTHROPIC_API_KEY
780
- ```
781
-
782
- 3. **Check plugin installation**:
783
- ```bash
784
- # Test MCP Server installation
785
- npx @modelcontextprotocol/server-github --version
786
- ```
787
-
788
- 4. **Check Claude Code log**:
789
- - Menu β†’ View β†’ Toggle Developer Tools
790
- - Check MCP-related errors in the Console tab.
791
-
792
- 5. **Claude Code Restart**: Be sure to restart after changing the plugin.
793
-
794
- ### Filesystem MCP permission error
795
-
796
- **Symptom**: Filesystem MCP cannot access certain directories
797
- **Solution**:
798
-
799
- 1. **Check Allowed Paths**:
800
- ```json
801
- {
802
- "mcpServers": {
803
- "moai-fs": {
804
- "args": [
805
- "-y",
806
- "@modelcontextprotocol/server-filesystem",
807
- "${CLAUDE_PROJECT_DIR}/.moai", // βœ… Allow
808
- "${CLAUDE_PROJECT_DIR}/src", // βœ… Allow
809
- "/unauthorized/path" // ❌ Blocked
810
- ]
811
- }
812
- }
813
- }
814
- ```
815
-
816
- 2. **Check environment variable expansion**: Check if `${CLAUDE_PROJECT_DIR}` is expanded properly.
817
-
818
- 3. **Use absolute paths**: Absolute paths are recommended instead of relative paths.
819
-
820
- ### Poor performance
821
-
822
- **Symptom**: Claude Code response is slow
823
- **Solution**:
824
-
825
- 1. Remove unnecessary tool permissions
826
- 2. Complex hook logic optimization
827
- 3. Check memory file size
828
- 4. **Check for excessive plugin use**: Activate only necessary plugins
829
- 5. **Check Skill File Size**: Keep Skills Compact (≀200 LOC)
830
-
831
- ## πŸ“‹ MoAI-ADK specialized workflow
832
-
833
- ### Four-stage pipeline support
834
-
835
- 1. `/alfred:8-project`: Initialize project document
836
- 2. `/alfred:1-plan`: Create SPEC (link with spec-builder)
837
- 3. `/alfred:2-run`: TDD implementation (code-builder linkage)
838
- 4. `/alfred:3-sync`: Document synchronization (doc-syncer linkage)
839
-
840
- ### Inter-agent collaboration rules
841
-
842
- - **Single Responsibility**: Each agent has a single, clear role
843
- - **Sequential execution**: Sequential calls of agents at the command level
844
- - **Independent execution**: No direct calls between agents
845
- - **Clear handoff**: Guidance on next steps upon task completion
846
-
847
- ### Skills & Plugins Utilization Strategy
848
-
849
- **MoAI-ADK Recommended Configuration**:
850
-
851
- #### 1. Skills (domain knowledge sharing)
852
-
853
- | Skill | Purpose | When to use |
854
- | ------------------- | --------------------------------- | --------------------------------- |
855
- | **ears-pattern** | EARS requirements writing pattern | When executing `/alfred:1-plan` |
856
- | **tag-syntax** | @TAG writing rules | When writing code |
857
- | **trust-checklist** | TRUST 5 principles verification | Before completing `/alfred:2-run` |
858
- | **git-convention** | Git commit message standard | When working with Git |
859
-
860
- **Skills creation example**:
861
-
211
+ ### Setup Project Claude Code
862
212
  ```bash
863
- # Create .claude/skills/tag-syntax.md
864
- @agent-cc-manager "Please create the TAG writing rule as a skill."
865
- ```
866
-
867
- #### 2. Plugins (external tool integration)
868
-
869
- | Plugin | Purpose | MoAI-ADK workflow integration |
870
- | ------------------ | ---------------------- | ----------------------------- |
871
- | **GitHub MCP** | PR/Issue Automation | Create PR in `/alfred:3-sync` |
872
- | **Filesystem MCP** | Structured file access | `.moai/` safe read/write |
873
- | **SQLite MCP** | Save metadata | SPEC Progress Tracking |
874
-
875
- **Plugin settings example** (`.claude/settings.json`):
876
-
877
- ```json
878
- {
879
- "mcpServers": {
880
- "github": {
881
- "command": "npx",
882
- "args": ["-y", "@modelcontextprotocol/server-github"],
883
- "env": {
884
- "GITHUB_TOKEN": "${GITHUB_TOKEN}"
885
- }
886
- },
887
- "moai-fs": {
888
- "command": "npx",
889
- "args": [
890
- "-y",
891
- "@modelcontextprotocol/server-filesystem",
892
- "${CLAUDE_PROJECT_DIR}/.moai",
893
- "${CLAUDE_PROJECT_DIR}/src",
894
- "${CLAUDE_PROJECT_DIR}/tests",
895
- "${CLAUDE_PROJECT_DIR}/docs"
896
- ]
897
- }
898
- }
899
- }
900
- ```
901
-
902
- #### 3. Skills vs Agents vs Commands vs Plugins integrated decision tree
903
-
904
- ```
905
- Task classification
906
- ↓
907
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
908
- β”‚ Is external system integration necessary? β”‚
909
- β”‚ (GitHub API, file system, etc.) β”‚
910
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
911
- ↓ YES ↓ NO
912
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
913
- β”‚ Plugins β”‚ β”‚ Is the knowledge reusable? β”‚
914
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ (pattern, convention) β”‚
915
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
916
- ↓ YES ↓ NO
917
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
918
- β”‚ Skills β”‚ β”‚ Is an independent context β”‚
919
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ needed? β”‚
920
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
921
- ↓ YES ↓ NO
922
- β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
923
- β”‚ Agents β”‚ β”‚ Commands β”‚
924
- β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
213
+ @agent-cc-manager "Initialize Claude Code for MoAI-ADK project"
925
214
  ```
215
+ **Then**: Reference `Skill("moai-cc-guide")` β†’ workflows/alfred-0-project-setup.md
926
216
 
927
- **Practical example**:
928
-
929
- - **Q**: "Where do I store the EARS pattern?"
930
- - **A**: Skills (`.claude/skills/ears-pattern.md`)
931
- - **Q**: "Where is GitHub PR creation implemented?"
932
- - **A**: Plugins (GitHub MCP) + Commands (`/alfred:3-sync`)
933
- - **Q**: "Where is SPEC metadata verification?"
934
- - **A**: Agents (`@agent-spec-builder`)
935
- - **Q**: β€œWhere is the TDD workflow?”
936
- - **A**: Commands (`/alfred:2-run`)
937
-
938
- ### Integration of TRUST principles
217
+ ---
939
218
 
940
- Apply @.moai/memory/development-guide.md standards
219
+ ## πŸ”§ Common Issues (Quick Fixes)
941
220
 
942
- ## 🚨 Automatic verification and correction function
221
+ **YAML syntax error**
222
+ β†’ Validate: `head -5 .claude/agents/my-agent.md`
943
223
 
944
- ### Apply standard template when creating automatic files
224
+ **Tool permission denied**
225
+ β†’ Check: `cat .claude/settings.json | jq '.permissions'`
945
226
 
946
- When creating every new command/agent file, cc-manager automatically applies a standard template to ensure consistency.
227
+ **Agent not recognized**
228
+ β†’ Verify: YAML frontmatter + kebab-case name + file in `.claude/agents/`
947
229
 
948
- ### Real-time standards verification and error prevention
230
+ **Skill not loading**
231
+ β†’ Verify: YAML + `ls -la .claude/skills/my-skill/` + restart Claude Code
949
232
 
950
- When creating/modifying files, it automatically checks for compliance with standards and immediately reports problems to prevent errors in advance.
233
+ **Hook not running**
234
+ β†’ Check: Absolute path in settings.json + `chmod +x hook.sh` + JSON valid
951
235
 
952
- ### Ensure standards compliance when modifying existing files
236
+ **Detailed troubleshooting**: `Skill("moai-cc-guide")` β†’ README.md FAQ section
953
237
 
954
- Maintain quality when modifying existing Claude Code files by verifying compliance with standards in real time.
238
+ ---
955
239
 
956
- ### Propose immediate corrections when standards are violated
240
+ ## πŸ“– When to Delegate to Skills
957
241
 
958
- When we find files that don't conform to our standards, we immediately suggest specific, actionable fixes.
242
+ | Scenario | Skill | Why |
243
+ |----------|-------|-----|
244
+ | "How do I...?" | moai-cc-* (specific) | All how-to guidance in Skills |
245
+ | "What's the pattern?" | moai-cc-* (specific) | All patterns in Skills |
246
+ | "Is this valid?" | Relevant cc-manager skill | Cc-manager validates |
247
+ | "Fix this error" | moai-cc-* (specific) | Skills provide solutions |
248
+ | "Choose architecture" | moai-cc-guide | Only guide has decision tree |
959
249
 
960
- ### Batch verification
250
+ ---
961
251
 
962
- Check standards compliance of entire project Claude Code files at once
252
+ ## πŸ’‘ Philosophy
963
253
 
964
- ## πŸ’‘ User Guide
254
+ **v3.0.0 Design**: Separation of concerns
255
+ - **Skills** = Pure knowledge (HOW to use Claude Code)
256
+ - **cc-manager** = Operational orchestration (Apply standards)
257
+ - **moai-cc-guide** = Architecture decisions (WHAT to use)
965
258
 
966
- ### Direct call to cc-manager
259
+ **Result**:
260
+ - βœ… DRY - No duplicate knowledge
261
+ - βœ… Maintainable - Each component has one job
262
+ - βœ… Scalable - New Skills don't bloat cc-manager
263
+ - βœ… Progressive Disclosure - Load only what you need
967
264
 
968
- **Default Enabled**:
265
+ ---
969
266
 
970
- ```bash
971
- # Create agent
972
- @agent-cc-manager "Create new agent: data-processor"
267
+ ## πŸ“ž User Interactions
973
268
 
974
- # Create command
975
- @agent-cc-manager "Create new command: /alfred:4-deploy"
269
+ **Ask cc-manager for**:
270
+ - File creation ("Create agent...")
271
+ - Validation ("Verify this...")
272
+ - Fixes ("Fix the standards...")
976
273
 
977
- # Create skill
978
- @agent-cc-manager "Please create the EARS pattern writing guide as a skill."
274
+ **Ask Skills for**:
275
+ - Guidance ("How do I...")
276
+ - Patterns ("Show me...")
277
+ - Decisions ("Should I...")
979
278
 
980
- # Plugin settings
981
- @agent-cc-manager "Please add GitHub MCP Plugin settings."
279
+ **Ask moai-cc-guide for**:
280
+ - Architecture ("Agents vs Commands...")
281
+ - Workflows ("/alfred:* integration...")
282
+ - Roadmaps ("What's next...")
982
283
 
983
- # Standard verification
984
- @agent-cc-manager "Command file standardization verification"
985
- @agent-cc-manager "Settings optimization"
986
- ```
284
+ ---
987
285
 
988
- **Skills & Plugins Management**:
286
+ ## ✨ Example: New Skill
989
287
 
990
288
  ```bash
991
- # Skill Verification
992
- @agent-cc-manager "Please verify all skills in the .claude/skills/ directory."
289
+ # Request to cc-manager
290
+ @agent-cc-manager "Create skill: ears-pattern
291
+ - Purpose: EARS syntax teaching
292
+ - Model: haiku
293
+ - Location: .claude/skills/ears-pattern/"
993
294
 
994
- # Verify plugin settings
995
- @agent-cc-manager "Please verify mcpServers settings in settings.json."
295
+ # cc-manager validates, creates file, checks standards
996
296
 
997
- # Suggest optimal MoAI-ADK settings
998
- @agent-cc-manager "Please suggest a configuration of skills and plugins optimized for MoAI-ADK."
297
+ # User references skill:
298
+ Skill("ears-pattern") # Now available in commands/agents
999
299
  ```
1000
300
 
1001
- **Integrated Workflow**:
1002
-
1003
- ```bash
1004
- # 1. Project initial settings
1005
- @agent-cc-manager "MoAI-ADK project initial settings (Skills + Plugins)"
1006
-
1007
- # 2. Creating Skills (Repeating Pattern)
1008
- @agent-cc-manager "Create the following patterns as Skills:
1009
- - Write EARS requirements
1010
- - TAG writing rules
1011
- - TRUST checklist"
1012
-
1013
- # 3. Plugins settings (external integration)
1014
- @agent-cc-manager "Set the following plugins:
1015
- - GitHub MCP (PR automation)
1016
- - Filesystem MCP (.moai/ access)
1017
- - Brave Search MCP (document search)"
1018
- ```
1019
-
1020
- ### Autorun conditions
1021
-
1022
- - When starting a session in the MoAI-ADK project
1023
- - When working with command/agent/skill files
1024
- - When changing plugin settings
1025
- - When standard verification is required
1026
-
1027
- ### Best practices
1028
-
1029
- **1. Skills take priority**:
1030
-
1031
- - Repetitive patterns are first created using skills
1032
- - Examples: EARS patterns, TAG rules, Git conventions
1033
-
1034
- **2. Plugins only when needed**:
1035
-
1036
- - Add only when external system integration is clear
1037
- - Unnecessary plugins cause poor performance
1038
-
1039
- **3. Progressive expansion**:
1040
-
1041
- - Expand in the following order: Command β†’ Agent β†’ Skills β†’ Plugins
1042
- - Proceed after verifying the necessity of each step
301
+ ---
1043
302
 
1044
- **4. Verification of compliance with standards**:
303
+ ## πŸ”„ Autorun Conditions
1045
304
 
1046
- - Periodically run `@agent-cc-manager "Full Standard Verification"`
1047
- - Recommended to integrate standard verification into CI/CD
305
+ - **SessionStart**: Detect project + offer initial setup
306
+ - **File creation**: Validate YAML + check standards
307
+ - **Verification request**: Batch-check all `.claude/` files
308
+ - **Update detection**: Alert if cc-manager itself is updated
1048
309
 
1049
310
  ---
1050
311
 
1051
- This cc-manager integrates all the core content (Agents, Commands, Skills, Plugins) from Claude Code's official documentation to provide complete guidance without any external references. Prevents errors due to Junggu Heating’s guidelines and maintains consistent standards.
312
+ **Last Updated**: 2025-10-23
313
+ **Version**: 3.0.0 (Refactored for Skills delegation)
314
+ **Philosophy**: Lean operational agent + Rich knowledge in Skills
315
+
316
+ For comprehensive guidance, reference the 9 specialized Skills in `.claude/skills/moai-cc-*/`.