moai-adk 0.4.5__py3-none-any.whl → 0.4.8__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 (229) hide show
  1. moai_adk/__init__.py +1 -1
  2. moai_adk/core/project/initializer.py +12 -5
  3. moai_adk/templates/.claude/agents/alfred/cc-manager.md +188 -954
  4. moai_adk/templates/.claude/agents/alfred/debug-helper.md +4 -5
  5. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +2 -2
  6. moai_adk/templates/.claude/agents/alfred/git-manager.md +2 -2
  7. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +3 -3
  8. moai_adk/templates/.claude/agents/alfred/project-manager.md +6 -6
  9. moai_adk/templates/.claude/agents/alfred/quality-gate.md +4 -6
  10. moai_adk/templates/.claude/agents/alfred/skill-factory.md +829 -0
  11. moai_adk/templates/.claude/agents/alfred/spec-builder.md +2 -2
  12. moai_adk/templates/.claude/agents/alfred/tag-agent.md +2 -2
  13. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +3 -3
  14. moai_adk/templates/.claude/agents/alfred/trust-checker.md +5 -5
  15. moai_adk/templates/.claude/commands/alfred/0-project.md +98 -42
  16. moai_adk/templates/.claude/commands/alfred/1-plan.md +7 -7
  17. moai_adk/templates/.claude/commands/alfred/2-run.md +36 -36
  18. moai_adk/templates/.claude/commands/alfred/3-sync.md +10 -10
  19. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +14 -1
  20. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +115 -33
  21. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +8 -9
  22. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +6 -6
  23. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +5 -4
  24. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +1 -1
  25. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +1 -1
  26. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +1 -1
  27. moai_adk/templates/.claude/settings.json +42 -2
  28. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +76 -66
  29. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +29 -0
  30. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +28 -0
  31. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +86 -59
  32. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +29 -0
  33. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +29 -0
  34. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +480 -0
  35. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +257 -0
  36. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +120 -0
  37. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +87 -73
  38. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +29 -0
  39. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +28 -0
  40. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +78 -62
  41. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +29 -0
  42. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +28 -0
  43. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +78 -55
  44. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +29 -0
  45. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +28 -0
  46. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +78 -64
  47. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +29 -0
  48. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +28 -0
  49. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +249 -0
  50. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
  51. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +278 -0
  52. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
  53. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +287 -0
  54. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
  55. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +232 -0
  56. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
  57. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
  58. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
  59. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +179 -0
  60. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
  61. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +296 -0
  62. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
  63. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +243 -0
  64. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
  65. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +271 -0
  66. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
  67. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +234 -43
  68. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +1633 -0
  69. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +660 -0
  70. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +97 -69
  71. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +29 -0
  72. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +30 -0
  73. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +97 -72
  74. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +29 -0
  75. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +30 -0
  76. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +97 -74
  77. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +29 -0
  78. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +30 -0
  79. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +98 -74
  80. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +29 -0
  81. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +31 -0
  82. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +98 -73
  83. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +29 -0
  84. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +31 -0
  85. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +97 -73
  86. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +29 -0
  87. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +30 -0
  88. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +97 -67
  89. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +29 -0
  90. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +30 -0
  91. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +97 -79
  92. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +29 -0
  93. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +30 -0
  94. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +97 -71
  95. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +29 -0
  96. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +30 -0
  97. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +656 -60
  98. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +1107 -0
  99. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +1533 -0
  100. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +87 -78
  101. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +29 -0
  102. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +28 -0
  103. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +87 -70
  104. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +29 -0
  105. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +28 -0
  106. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +87 -86
  107. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +29 -0
  108. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +28 -0
  109. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +77 -62
  110. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +29 -0
  111. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +28 -0
  112. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +88 -56
  113. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +29 -0
  114. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +29 -0
  115. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +90 -71
  116. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +29 -0
  117. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +28 -0
  118. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +78 -58
  119. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +29 -0
  120. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +28 -0
  121. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +78 -51
  122. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +29 -0
  123. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +28 -0
  124. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +253 -32
  125. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  126. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +1099 -0
  127. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +98 -74
  128. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +29 -0
  129. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +31 -0
  130. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +98 -76
  131. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +29 -0
  132. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +31 -0
  133. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +97 -74
  134. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +29 -0
  135. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +30 -0
  136. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +86 -61
  137. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +29 -0
  138. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +30 -0
  139. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +98 -74
  140. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +29 -0
  141. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +31 -0
  142. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +87 -61
  143. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +29 -0
  144. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +31 -0
  145. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +88 -59
  146. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +29 -0
  147. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +32 -0
  148. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +98 -73
  149. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +29 -0
  150. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +31 -0
  151. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +86 -61
  152. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +29 -0
  153. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +30 -0
  154. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +388 -53
  155. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +624 -0
  156. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +316 -0
  157. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +97 -73
  158. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +29 -0
  159. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +30 -0
  160. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +98 -73
  161. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +29 -0
  162. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +31 -0
  163. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +98 -74
  164. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +29 -0
  165. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +31 -0
  166. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +97 -74
  167. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +29 -0
  168. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +30 -0
  169. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +97 -74
  170. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +29 -0
  171. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +30 -0
  172. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +98 -74
  173. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +29 -0
  174. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +31 -0
  175. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +97 -73
  176. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +29 -0
  177. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +30 -0
  178. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +90 -59
  179. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +29 -0
  180. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +34 -0
  181. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +482 -0
  182. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +278 -0
  183. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +524 -0
  184. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +477 -0
  185. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
  186. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
  187. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
  188. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +577 -0
  189. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +560 -0
  190. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
  191. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +583 -0
  192. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +526 -0
  193. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +465 -0
  194. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +328 -0
  195. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +312 -0
  196. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +245 -0
  197. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +285 -0
  198. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +278 -0
  199. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +303 -0
  200. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +129 -0
  201. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +1300 -0
  202. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +161 -0
  203. moai_adk/templates/CLAUDE.md +121 -81
  204. moai_adk-0.4.8.dist-info/METADATA +1553 -0
  205. moai_adk-0.4.8.dist-info/RECORD +265 -0
  206. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +0 -112
  207. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +0 -103
  208. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +0 -105
  209. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +0 -97
  210. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +0 -87
  211. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +0 -62
  212. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +0 -94
  213. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +0 -513
  214. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +0 -433
  215. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +0 -332
  216. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +0 -384
  217. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +0 -363
  218. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +0 -595
  219. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +0 -496
  220. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +0 -100
  221. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +0 -99
  222. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +0 -100
  223. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +0 -98
  224. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +0 -98
  225. moai_adk-0.4.5.dist-info/METADATA +0 -369
  226. moai_adk-0.4.5.dist-info/RECORD +0 -152
  227. {moai_adk-0.4.5.dist-info → moai_adk-0.4.8.dist-info}/WHEEL +0 -0
  228. {moai_adk-0.4.5.dist-info → moai_adk-0.4.8.dist-info}/entry_points.txt +0 -0
  229. {moai_adk-0.4.5.dist-info → moai_adk-0.4.8.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,28 @@
1
+ # moai-alfred-trust-validation - CLI Reference
2
+
3
+ _Last updated: 2025-10-22_
4
+
5
+ ## Quick Reference
6
+
7
+ ### Installation
8
+
9
+ ```bash
10
+ # Installation commands
11
+ ```
12
+
13
+ ### Common Commands
14
+
15
+ ```bash
16
+ # Test
17
+ # Lint
18
+ # Format
19
+ # Build
20
+ ```
21
+
22
+ ## Tool Versions (2025-10-22)
23
+
24
+ _No specific tool versions (workflow/process Skill)_
25
+
26
+ ---
27
+
28
+ _For detailed usage, see SKILL.md_
@@ -0,0 +1,249 @@
1
+ ---
2
+ name: "Creating and Managing Sub-agents in Claude Code"
3
+ description: "Design agent personas, define proactive triggers, set tool permissions, structure agent files. Use when building specialized agents for code review, debugging, architecture, or domain-specific tasks."
4
+ allowed-tools: "Read, Write, Edit, Glob, Bash"
5
+ ---
6
+
7
+ # Creating and Managing Sub-agents
8
+
9
+ Sub-agents are specialized Claude instances with independent context, custom prompts, and restricted tool access. They handle deep analysis, parallel work, and autonomous tasks.
10
+
11
+ ## Agent File Structure
12
+
13
+ **Location**: `.claude/agents/`
14
+
15
+ ```yaml
16
+ ---
17
+ name: agent-name
18
+ description: Use PROACTIVELY for [specific trigger conditions]
19
+ tools: Read, Write, Edit, Glob, Grep, Bash(git:*)
20
+ model: sonnet
21
+ ---
22
+
23
+ # Agent Name — Specialist Role
24
+
25
+ Brief description of agent expertise.
26
+
27
+ ## Core Mission
28
+
29
+ - Primary responsibility
30
+ - Scope boundaries
31
+ - Success criteria
32
+
33
+ ## Proactive Triggers
34
+
35
+ - When to activate automatically
36
+ - Specific conditions for invocation
37
+ - Integration with workflow
38
+
39
+ ## Workflow Steps
40
+
41
+ 1. Input validation
42
+ 2. Task execution
43
+ 3. Output verification
44
+ 4. Handoff to next agent (if applicable)
45
+
46
+ ## Constraints
47
+
48
+ - What NOT to do
49
+ - Delegation rules
50
+ - Quality gates
51
+ ```
52
+
53
+ ## Agent Persona Design Pattern
54
+
55
+ ```markdown
56
+ ---
57
+ name: code-reviewer
58
+ description: Use PROACTIVELY for code review requests, PR analysis, or quality checks
59
+ tools: Read, Glob, Grep, Bash(git:*)
60
+ model: sonnet
61
+ ---
62
+
63
+ # Code Reviewer — Quality Expert
64
+
65
+ Specialized in identifying code quality issues, security risks, and architecture concerns.
66
+
67
+ ## Core Mission
68
+
69
+ - Review code for SOLID principles
70
+ - Identify code smells and anti-patterns
71
+ - Verify security best practices
72
+ - Suggest improvements with rationale
73
+
74
+ ## Proactive Triggers
75
+
76
+ - When user mentions "review", "quality", "audit"
77
+ - After significant code changes
78
+ - Before PR merge
79
+
80
+ ## Workflow Steps
81
+
82
+ 1. **Analyze**: Read changed files, understand context
83
+ 2. **Evaluate**: Check against TRUST 5 principles
84
+ 3. **Report**: List findings with severity & fix suggestions
85
+ 4. **Recommend**: Suggest refactoring or architectural improvements
86
+
87
+ ## Constraints
88
+
89
+ - No direct edits (only suggestions)
90
+ - Focus on maintainability, not style
91
+ - Respect existing architecture decisions
92
+ ```
93
+
94
+ ## High-Freedom: Agent Principles
95
+
96
+ ### Autonomy & Expertise
97
+ - Each agent owns 1 specialization (not 3+)
98
+ - Define clear "when to activate" triggers
99
+ - Agents should make decisions independently
100
+
101
+ ### Tool Access Minimization
102
+ - Grant only necessary tools per role
103
+ - Restrict Bash to specific commands: `Bash(git:*)`, `Bash(python:*)`
104
+ - Never grant `Bash(*)`; always specify pattern
105
+
106
+ ### Handoff & Collaboration
107
+ - Agent A completes → hands off to Agent B
108
+ - Use clear "next agent" instructions
109
+ - No circular dependencies
110
+
111
+ ## Medium-Freedom: Common Agent Patterns
112
+
113
+ ### Pattern 1: Debugger Agent
114
+ ```yaml
115
+ name: debugger
116
+ description: Use PROACTIVELY for error diagnosis, test failures, exception analysis
117
+ tools: Read, Grep, Glob, Bash(pytest:*), Bash(git:*)
118
+ model: sonnet
119
+ ```
120
+
121
+ **Mission**: Diagnose errors, provide fix-forward guidance
122
+ **Triggers**: `error`, `failed`, `exception`, `debug`
123
+ **Output**: Root cause + suggested fixes
124
+
125
+ ### Pattern 2: Architect Agent
126
+ ```yaml
127
+ name: architect
128
+ description: Use PROACTIVELY for system design, refactoring, scalability concerns
129
+ tools: Read, Glob, Grep, Bash(ls:*), Bash(find:*)
130
+ model: sonnet
131
+ ```
132
+
133
+ **Mission**: Design systems, propose architectures
134
+ **Triggers**: `architecture`, `refactor`, `design`, `scalability`
135
+ **Output**: Design document + implementation roadmap
136
+
137
+ ### Pattern 3: Security Agent
138
+ ```yaml
139
+ name: security-auditor
140
+ description: Use PROACTIVELY for vulnerability assessment, OWASP checks, secrets detection
141
+ tools: Read, Glob, Grep
142
+ model: sonnet
143
+ ```
144
+
145
+ **Mission**: Find security issues, verify OWASP compliance
146
+ **Triggers**: `security`, `audit`, `vulnerability`, `secrets`
147
+ **Output**: Risk assessment + remediation steps
148
+
149
+ ## Low-Freedom: Tool Permission Patterns
150
+
151
+ ### Principle of Least Privilege
152
+
153
+ ```yaml
154
+ # ❌ Too permissive
155
+ tools: Read, Write, Edit, Bash(*)
156
+
157
+ # ✅ Appropriate
158
+ tools: Read, Glob, Grep # Read-only analysis
159
+
160
+ # ✅ Appropriate
161
+ tools: Read, Edit, Bash(black:*), Bash(pytest:*) # Formatter + tests only
162
+ ```
163
+
164
+ ### Bash Command Restrictions
165
+
166
+ ```yaml
167
+ # Allowed patterns:
168
+ Bash(git:*) # All git commands
169
+ Bash(npm run:*) # Only npm run scripts
170
+ Bash(python:*) # Python interpreter
171
+ Bash(pytest:*) # Pytest runner
172
+
173
+ # Denied patterns:
174
+ Bash(rm:*) # Dangerous deletion
175
+ Bash(sudo:*) # Privilege escalation
176
+ Bash(curl:*) # Arbitrary downloads
177
+ ```
178
+
179
+ ## Agent Execution Modes
180
+
181
+ ### Mode 1: Inline (main context)
182
+ ```bash
183
+ /role security
184
+ "Check this project for vulnerabilities"
185
+ # Runs in main session context
186
+ ```
187
+
188
+ ### Mode 2: Sub-agent (isolated context)
189
+ ```bash
190
+ /role security --agent
191
+ "Perform comprehensive security audit"
192
+ # Runs in independent context, can work in parallel
193
+ ```
194
+
195
+ ### Mode 3: Parallel Multi-role
196
+ ```bash
197
+ /multi-role security,performance,qa --agent
198
+ "Analyze security, performance, and quality"
199
+ # All roles run in parallel, results merged
200
+ ```
201
+
202
+ ## Agent Registration & Discovery
203
+
204
+ ```bash
205
+ # List available agents
206
+ /agents
207
+
208
+ # Create new agent interactively
209
+ /agents create
210
+
211
+ # View specific agent
212
+ /agents view security-auditor
213
+
214
+ # Edit agent
215
+ /agents edit security-auditor
216
+
217
+ # Delete agent
218
+ /agents delete security-auditor
219
+ ```
220
+
221
+ ## Agent Validation Checklist
222
+
223
+ - [ ] `name` is kebab-case (e.g., `code-reviewer`)
224
+ - [ ] `description` includes "Use PROACTIVELY for"
225
+ - [ ] `tools` list only necessary tools
226
+ - [ ] No `Bash(*)` wildcard; specific patterns only
227
+ - [ ] `model` is `haiku` or `sonnet`
228
+ - [ ] `Proactive Triggers` section clearly defined
229
+ - [ ] No overlapping responsibilities with other agents
230
+ - [ ] YAML frontmatter is valid
231
+
232
+ ## Best Practices
233
+
234
+ ✅ **DO**:
235
+ - Design agents around specific expertise
236
+ - Use `--agent` flag for large analyses
237
+ - Combine multiple agents for complex tasks
238
+ - Name agents descriptively
239
+
240
+ ❌ **DON'T**:
241
+ - Create overpowered agents with all tools
242
+ - Allow direct file modifications without approval
243
+ - Overlap agent responsibilities
244
+ - Use `Bash(*)` without specific patterns
245
+
246
+ ---
247
+
248
+ **Reference**: Claude Code Sub-agents documentation
249
+ **Version**: 1.0.0
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: agent-name
3
+ description: Use PROACTIVELY for [specific trigger conditions]
4
+ tools: Read, Glob, Grep, Bash(git:*)
5
+ model: sonnet
6
+ ---
7
+
8
+ # Agent Name — Specialist Role
9
+
10
+ Brief description of agent expertise.
11
+
12
+ ## Core Mission
13
+
14
+ - Primary responsibility
15
+ - Scope boundaries
16
+ - Success criteria
17
+
18
+ ## Proactive Triggers
19
+
20
+ - When to activate automatically
21
+ - Specific conditions for invocation
22
+
23
+ ## Workflow Steps
24
+
25
+ 1. Input validation
26
+ 2. Task execution
27
+ 3. Output verification
28
+
29
+ ## Constraints
30
+
31
+ - What NOT to do
32
+ - Delegation rules
@@ -0,0 +1,278 @@
1
+ ---
2
+ name: "Authoring CLAUDE.md Project Instructions"
3
+ description: "Design project-specific AI guidance, document workflows, define architecture patterns. Use when creating CLAUDE.md files for projects, documenting team standards, or establishing AI collaboration guidelines."
4
+ allowed-tools: "Read, Write, Edit, Glob"
5
+ ---
6
+
7
+ # Authoring CLAUDE.md Project Instructions
8
+
9
+ CLAUDE.md is a Markdown file that provides Claude with project-specific context, workflows, standards, and guidance. It acts as a living document for AI collaboration patterns.
10
+
11
+ ## CLAUDE.md File Location & Purpose
12
+
13
+ **Location**: `./{PROJECT_ROOT}/CLAUDE.md` or `/~/.claude/CLAUDE.md` (personal)
14
+
15
+ **Purpose**: Tell Claude about your project before every session starts.
16
+
17
+ ## Core Sections
18
+
19
+ ### Section 1: Project Overview
20
+
21
+ ```markdown
22
+ # Project Name
23
+
24
+ **Description**: What does this project do?
25
+
26
+ **Repository**: GitHub URL
27
+ **Tech Stack**: Technologies, languages, frameworks
28
+ **Team**: Size, roles
29
+ **Status**: Active, archived, experimental
30
+ ```
31
+
32
+ ### Section 2: Core Workflow
33
+
34
+ ```markdown
35
+ ## Development Workflow
36
+
37
+ ### Phase 1: Planning
38
+ - Use `/alfred:1-plan` for SPEC creation
39
+ - EARS syntax: Ubiquitous, Event-driven, State-driven, Optional, Constraints
40
+ - Store in `.moai/specs/`
41
+
42
+ ### Phase 2: Implementation (TDD)
43
+ - RED: Write failing tests
44
+ - GREEN: Minimal implementation
45
+ - REFACTOR: Improve quality
46
+ - Tools: pytest, TypeScript, mypy, ruff
47
+
48
+ ### Phase 3: Sync & Documentation
49
+ - Run `/alfred:3-sync` to validate
50
+ - Update Living Documents
51
+ - Verify @TAG chains
52
+ - Prepare PR
53
+ ```
54
+
55
+ ### Section 3: Code Standards
56
+
57
+ ```markdown
58
+ ## Code Standards (TRUST 5 Principles)
59
+
60
+ ### T - Test First
61
+ - Target coverage: ≥ 85%
62
+ - Framework: pytest for Python, Jest for TypeScript
63
+ - Pattern: TDD (RED → GREEN → REFACTOR)
64
+
65
+ ### R - Readable
66
+ - Max file: 300 LOC
67
+ - Max function: 50 LOC
68
+ - Max params: 5
69
+ - Use linters: ruff (Python), ESLint (TypeScript)
70
+
71
+ ### U - Unified
72
+ - Type safety: mypy for Python, TypeScript strict mode
73
+ - Consistent patterns across domain
74
+ - Shared utilities in `src/core/`
75
+
76
+ ### S - Secured
77
+ - Input validation everywhere
78
+ - No hardcoded secrets
79
+ - Use environment variables
80
+ - Run: bandit (Python), npm audit
81
+
82
+ ### T - Trackable
83
+ - @TAG system: @SPEC:ID, @TEST:ID, @CODE:ID, @DOC:ID
84
+ - Document all changes in HISTORY section
85
+ - Link code to SPEC requirements
86
+ ```
87
+
88
+ ### Section 4: Project Architecture
89
+
90
+ ```markdown
91
+ ## Architecture
92
+
93
+ ### Directory Structure
94
+ ```
95
+ src/
96
+ ├── core/ # Shared utilities, domain models
97
+ ├── domain/ # Business logic, DOMAIN-specific
98
+ ├── interfaces/ # API endpoints, CLI commands
99
+ ├── middleware/ # Cross-cutting concerns
100
+ └── infra/ # Database, external services
101
+
102
+ tests/
103
+ ├── unit/ # Unit tests for core/ and domain/
104
+ ├── integration/ # API, database tests
105
+ └── e2e/ # End-to-end workflows
106
+ ```
107
+
108
+ ### Key Design Decisions
109
+ - Monolithic backend (for now)
110
+ - Database: PostgreSQL with migrations
111
+ - Authentication: JWT tokens
112
+ - API: REST with OpenAPI docs
113
+ ```
114
+
115
+ ### Section 5: AI Collaboration Patterns
116
+
117
+ ```markdown
118
+ ## Working with Claude Code
119
+
120
+ ### When to Use Sub-agents
121
+ - `debug-helper`: Errors, test failures, exceptions
122
+ - `security-auditor`: Vulnerability assessment, OWASP checks
123
+ - `architect`: Refactoring, system design, scalability
124
+ - `code-reviewer`: Quality analysis, SOLID violations
125
+
126
+ ### Commands Available
127
+ - `/alfred:1-plan "feature description"` — Create SPEC
128
+ - `/alfred:2-run SPEC-ID` — Implement (TDD)
129
+ - `/alfred:3-sync` — Sync docs and validate
130
+ - `/review-code src/**/*.ts` — Code review
131
+ - `/deploy [env]` — Deploy pipeline
132
+
133
+ ### Context Engineering Tips
134
+ - Always mention relevant SPEC ID
135
+ - Provide file paths relative to project root
136
+ - Link to similar existing features
137
+ - Mention constraints or non-negotiables upfront
138
+ ```
139
+
140
+ ### Section 6: Known Gotchas & Decisions
141
+
142
+ ```markdown
143
+ ## Important Notes
144
+
145
+ ### Why We Use SPEC-First
146
+ - Clarifies requirements upfront
147
+ - Prevents scope creep
148
+ - Enables parallel work (different SPECs)
149
+ - Makes code changes traceable
150
+
151
+ ### Common Mistakes to Avoid
152
+ - ❌ Implementing without SPEC
153
+ - ❌ Skipping tests for "quick" fixes
154
+ - ❌ Mixing multiple features in one PR
155
+ - ❌ Ignoring @TAG system
156
+
157
+ ### Team Decisions
158
+ - Use pytest fixtures for mocking (not monkeypatch)
159
+ - All API responses must include status codes
160
+ - Database migrations are CI/CD blocking
161
+ - Security audit runs on every PR
162
+ ```
163
+
164
+ ## CLAUDE.md Examples by Domain
165
+
166
+ ### Example 1: Web API Project
167
+ ```markdown
168
+ # Transaction API
169
+
170
+ **Tech Stack**: Python (FastAPI), PostgreSQL, pytest
171
+
172
+ ## Phase Workflow
173
+
174
+ 1. **SPEC**: Requirements in EARS syntax
175
+ - Example: `The API must validate transaction amounts > 0`
176
+ - Stored in: `.moai/specs/SPEC-TRANS-{###}/spec.md`
177
+
178
+ 2. **TDD**: Implement with test-first approach
179
+ - Tests: `tests/integration/test_transactions.py`
180
+ - Code: `src/domain/transaction.py`
181
+
182
+ 3. **Sync**: Verify completeness
183
+ - Run: `/alfred:3-sync`
184
+ - Check: TAG chain integrity
185
+ ```
186
+
187
+ ### Example 2: React Frontend Project
188
+ ```markdown
189
+ # Competition Dashboard
190
+
191
+ **Tech Stack**: TypeScript, React 19, Vitest, Tailwind
192
+
193
+ ## Development Standards
194
+
195
+ - Framework: Next.js 15 (App Router)
196
+ - Testing: Vitest + React Testing Library
197
+ - Styling: Tailwind CSS with shadcn/ui
198
+ - State: Zustand for client state, Server Components for data
199
+
200
+ ## Key Patterns
201
+ - Server Components for data fetching
202
+ - Suspense boundaries for loading states
203
+ - Error boundaries for graceful failures
204
+ ```
205
+
206
+ ## High-Freedom: Architectural Decisions
207
+
208
+ ```markdown
209
+ ## Why This Architecture?
210
+
211
+ ### Monolith vs Microservices
212
+ - **Chosen**: Monolithic backend
213
+ - **Reason**: Team < 10, throughput manageable
214
+ - **When to reconsider**: >10M requests/month or 3+ teams
215
+
216
+ ### Database: PostgreSQL
217
+ - **Reason**: Strong ACID guarantees, mature ecosystem
218
+ - **Alternatives considered**: MongoDB (rejected: unclear schema)
219
+ ```
220
+
221
+ ## Medium-Freedom: Workflow Definition
222
+
223
+ ```markdown
224
+ ## Code Review Checklist
225
+
226
+ Before merging, reviewer must verify:
227
+ 1. [ ] SPEC ID linked in PR description
228
+ 2. [ ] All tests passing (>85% coverage)
229
+ 3. [ ] No security issues (bandit clean)
230
+ 4. [ ] Code follows TRUST 5 principles
231
+ 5. [ ] @TAG chain complete (@SPEC → @TEST → @CODE → @DOC)
232
+ 6. [ ] CHANGELOG updated
233
+ ```
234
+
235
+ ## Low-Freedom: Explicit Rules
236
+
237
+ ```markdown
238
+ ## Non-negotiable Rules
239
+
240
+ - ❌ No commits without @TAG references
241
+ - ❌ No merging PRs without passing tests
242
+ - ❌ No pushing secrets to repo
243
+ - ❌ No force-pushing to main/master
244
+ - ✅ All features must have SPEC document
245
+ - ✅ All code changes must have corresponding tests
246
+ - ✅ All SPECs must use EARS syntax
247
+ ```
248
+
249
+ ## Validation Checklist
250
+
251
+ - [ ] Project name and description clear
252
+ - [ ] Tech stack documented
253
+ - [ ] Development workflow defined (Plan → Run → Sync)
254
+ - [ ] TRUST 5 principles explained
255
+ - [ ] Architecture diagram or structure described
256
+ - [ ] AI collaboration patterns defined
257
+ - [ ] Known gotchas documented
258
+ - [ ] Examples provided for key workflows
259
+
260
+ ## Best Practices
261
+
262
+ ✅ **DO**:
263
+ - Keep CLAUDE.md up-to-date as standards evolve
264
+ - Include real examples (links to actual files/PRs)
265
+ - Document why (not just what)
266
+ - Link to external docs (architecture decisions, security policy)
267
+ - Review with team before finalizing
268
+
269
+ ❌ **DON'T**:
270
+ - Explain general programming concepts (Claude already knows)
271
+ - List every possible workflow (focus on your specific patterns)
272
+ - Write as instruction to humans (write as guidance to Claude)
273
+ - Update CLAUDE.md only at project start (evolve as needed)
274
+
275
+ ---
276
+
277
+ **Reference**: Claude Code CLAUDE.md documentation
278
+ **Version**: 1.0.0
@@ -0,0 +1,26 @@
1
+ # Project Name
2
+
3
+ **Description**: What does this project do?
4
+
5
+ ## Development Workflow
6
+
7
+ ### Phase 1: Planning
8
+ - Use `/alfred:1-plan` for SPEC creation
9
+ - Use EARS syntax
10
+
11
+ ### Phase 2: Implementation (TDD)
12
+ - RED: Write failing tests
13
+ - GREEN: Minimal implementation
14
+ - REFACTOR: Improve quality
15
+
16
+ ### Phase 3: Sync & Documentation
17
+ - Run `/alfred:3-sync`
18
+ - Update Living Documents
19
+
20
+ ## Code Standards (TRUST 5)
21
+
22
+ - **T**est First: ≥85% coverage
23
+ - **R**eadable: Max 300 LOC per file
24
+ - **U**nified: Type safety
25
+ - **S**ecured: Input validation
26
+ - **T**rackable: @TAG system