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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (268) hide show
  1. moai_adk/core/issue_creator.py +2 -2
  2. moai_adk/core/project/detector.py +195 -12
  3. moai_adk/core/tags/ci_validator.py +1 -1
  4. moai_adk/core/tags/pre_commit_validator.py +1 -1
  5. moai_adk/core/tags/validator.py +1 -1
  6. moai_adk/templates/.claude/agents/alfred/cc-manager.md +316 -0
  7. moai_adk/templates/.claude/agents/alfred/debug-helper.md +208 -0
  8. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +214 -0
  9. moai_adk/templates/.claude/agents/alfred/git-manager.md +406 -0
  10. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +350 -0
  11. moai_adk/templates/.claude/agents/alfred/project-manager.md +273 -0
  12. moai_adk/templates/.claude/agents/alfred/quality-gate.md +343 -0
  13. moai_adk/templates/.claude/agents/alfred/skill-factory.md +865 -0
  14. moai_adk/templates/.claude/agents/alfred/spec-builder.md +287 -0
  15. moai_adk/templates/.claude/agents/alfred/tag-agent.md +287 -0
  16. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +326 -0
  17. moai_adk/templates/.claude/agents/alfred/trust-checker.md +375 -0
  18. moai_adk/templates/.claude/commands/alfred/0-project.md +1275 -0
  19. moai_adk/templates/.claude/commands/alfred/1-plan.md +734 -0
  20. moai_adk/templates/.claude/commands/alfred/2-run.md +551 -0
  21. moai_adk/templates/.claude/commands/alfred/3-sync.md +689 -0
  22. moai_adk/templates/.claude/commands/alfred/9-feedback.md +149 -0
  23. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +206 -0
  24. moai_adk/templates/.claude/hooks/alfred/core/project.py +742 -0
  25. moai_adk/templates/.claude/hooks/alfred/core/timeout.py +136 -0
  26. moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +108 -0
  27. moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +198 -0
  28. moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +95 -0
  29. moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +95 -0
  30. moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +101 -0
  31. moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +95 -0
  32. moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +97 -0
  33. moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +170 -0
  34. moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +271 -0
  35. moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +67 -0
  36. moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +749 -0
  37. moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +230 -0
  38. moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +198 -0
  39. moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +21 -0
  40. moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +154 -0
  41. moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +174 -0
  42. moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +87 -0
  43. moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +61 -0
  44. moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +95 -0
  45. moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +95 -0
  46. moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +111 -0
  47. moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +1 -0
  48. moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +136 -0
  49. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +640 -0
  50. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +696 -0
  51. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +474 -0
  52. moai_adk/templates/.claude/settings.json +144 -0
  53. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +113 -0
  54. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/examples.md +29 -0
  55. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/reference.md +28 -0
  56. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +122 -0
  57. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/examples.md +29 -0
  58. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/reference.md +29 -0
  59. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +237 -0
  60. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +615 -0
  61. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +653 -0
  62. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +113 -0
  63. moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +29 -0
  64. moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +28 -0
  65. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +113 -0
  66. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/examples.md +29 -0
  67. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/reference.md +28 -0
  68. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +113 -0
  69. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/examples.md +29 -0
  70. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/reference.md +28 -0
  71. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +113 -0
  72. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/examples.md +29 -0
  73. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/reference.md +28 -0
  74. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +269 -0
  75. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
  76. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +298 -0
  77. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
  78. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +307 -0
  79. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
  80. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +252 -0
  81. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
  82. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
  83. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
  84. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +199 -0
  85. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
  86. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +316 -0
  87. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
  88. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +263 -0
  89. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
  90. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +291 -0
  91. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
  92. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +290 -0
  93. moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +1633 -0
  94. moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +660 -0
  95. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +123 -0
  96. moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +29 -0
  97. moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +30 -0
  98. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +123 -0
  99. moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +29 -0
  100. moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +30 -0
  101. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +123 -0
  102. moai_adk/templates/.claude/skills/moai-domain-database/examples.md +29 -0
  103. moai_adk/templates/.claude/skills/moai-domain-database/reference.md +30 -0
  104. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +124 -0
  105. moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +29 -0
  106. moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +31 -0
  107. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +124 -0
  108. moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +29 -0
  109. moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +31 -0
  110. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +123 -0
  111. moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +29 -0
  112. moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +30 -0
  113. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +123 -0
  114. moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +29 -0
  115. moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +30 -0
  116. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +123 -0
  117. moai_adk/templates/.claude/skills/moai-domain-security/examples.md +29 -0
  118. moai_adk/templates/.claude/skills/moai-domain-security/reference.md +30 -0
  119. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +123 -0
  120. moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +29 -0
  121. moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +30 -0
  122. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +303 -0
  123. moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +1064 -0
  124. moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +1047 -0
  125. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +113 -0
  126. moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +29 -0
  127. moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +28 -0
  128. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +113 -0
  129. moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +29 -0
  130. moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +28 -0
  131. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +113 -0
  132. moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +29 -0
  133. moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +28 -0
  134. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +116 -0
  135. moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +29 -0
  136. moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +28 -0
  137. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +122 -0
  138. moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +29 -0
  139. moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +29 -0
  140. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +113 -0
  141. moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +29 -0
  142. moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +28 -0
  143. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +113 -0
  144. moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +29 -0
  145. moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +28 -0
  146. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +113 -0
  147. moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +29 -0
  148. moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +28 -0
  149. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +307 -0
  150. moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
  151. moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +1099 -0
  152. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +124 -0
  153. moai_adk/templates/.claude/skills/moai-lang-c/examples.md +29 -0
  154. moai_adk/templates/.claude/skills/moai-lang-c/reference.md +31 -0
  155. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +124 -0
  156. moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +29 -0
  157. moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +31 -0
  158. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +123 -0
  159. moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +29 -0
  160. moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +30 -0
  161. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +123 -0
  162. moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +29 -0
  163. moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +30 -0
  164. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +124 -0
  165. moai_adk/templates/.claude/skills/moai-lang-go/examples.md +29 -0
  166. moai_adk/templates/.claude/skills/moai-lang-go/reference.md +31 -0
  167. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +124 -0
  168. moai_adk/templates/.claude/skills/moai-lang-java/examples.md +29 -0
  169. moai_adk/templates/.claude/skills/moai-lang-java/reference.md +31 -0
  170. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +125 -0
  171. moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +29 -0
  172. moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +32 -0
  173. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +124 -0
  174. moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +29 -0
  175. moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +31 -0
  176. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +123 -0
  177. moai_adk/templates/.claude/skills/moai-lang-php/examples.md +29 -0
  178. moai_adk/templates/.claude/skills/moai-lang-php/reference.md +30 -0
  179. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +431 -0
  180. moai_adk/templates/.claude/skills/moai-lang-python/examples.md +624 -0
  181. moai_adk/templates/.claude/skills/moai-lang-python/reference.md +316 -0
  182. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +123 -0
  183. moai_adk/templates/.claude/skills/moai-lang-r/examples.md +29 -0
  184. moai_adk/templates/.claude/skills/moai-lang-r/reference.md +30 -0
  185. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +124 -0
  186. moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +29 -0
  187. moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +31 -0
  188. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +124 -0
  189. moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +29 -0
  190. moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +31 -0
  191. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +123 -0
  192. moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +29 -0
  193. moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +30 -0
  194. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +123 -0
  195. moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +29 -0
  196. moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +30 -0
  197. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +124 -0
  198. moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +29 -0
  199. moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +31 -0
  200. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +123 -0
  201. moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +29 -0
  202. moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +30 -0
  203. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +127 -0
  204. moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +29 -0
  205. moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +34 -0
  206. moai_adk/templates/.claude/skills/moai-skill-factory/CHECKLIST.md +482 -0
  207. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +278 -0
  208. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +524 -0
  209. moai_adk/templates/.claude/skills/moai-skill-factory/METADATA.md +477 -0
  210. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
  211. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
  212. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
  213. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-UPDATE-ADVISOR.md +577 -0
  214. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +271 -0
  215. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
  216. moai_adk/templates/.claude/skills/moai-skill-factory/STRUCTURE.md +583 -0
  217. moai_adk/templates/.claude/skills/moai-skill-factory/WEB-RESEARCH.md +526 -0
  218. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +465 -0
  219. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/generate-structure.sh +328 -0
  220. moai_adk/templates/.claude/skills/moai-skill-factory/scripts/validate-skill.sh +312 -0
  221. moai_adk/templates/.claude/skills/moai-skill-factory/templates/SKILL_TEMPLATE.md +245 -0
  222. moai_adk/templates/.claude/skills/moai-skill-factory/templates/examples-template.md +285 -0
  223. moai_adk/templates/.claude/skills/moai-skill-factory/templates/reference-template.md +278 -0
  224. moai_adk/templates/.claude/skills/moai-skill-factory/templates/scripts-template.sh +303 -0
  225. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +137 -0
  226. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +219 -0
  227. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +161 -0
  228. moai_adk/templates/.claude/skills/moai-spec-authoring/examples.md +541 -0
  229. moai_adk/templates/.claude/skills/moai-spec-authoring/reference.md +622 -0
  230. moai_adk/templates/.github/workflows/c-tag-validation.yml +83 -0
  231. moai_adk/templates/.github/workflows/cpp-tag-validation.yml +79 -0
  232. moai_adk/templates/.github/workflows/csharp-tag-validation.yml +65 -0
  233. moai_adk/templates/.github/workflows/dart-tag-validation.yml +82 -0
  234. moai_adk/templates/.github/workflows/java-tag-validation.yml +75 -0
  235. moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +67 -0
  236. moai_adk/templates/.github/workflows/php-tag-validation.yml +56 -0
  237. moai_adk/templates/.github/workflows/ruby-tag-validation.yml +68 -0
  238. moai_adk/templates/.github/workflows/rust-tag-validation.yml +73 -0
  239. moai_adk/templates/.github/workflows/shell-tag-validation.yml +65 -0
  240. moai_adk/templates/.github/workflows/swift-tag-validation.yml +79 -0
  241. moai_adk/templates/.moai/config.json +113 -0
  242. moai_adk/templates/.moai/memory/CLAUDE-AGENTS-GUIDE.md +208 -0
  243. moai_adk/templates/.moai/memory/CLAUDE-PRACTICES.md +369 -0
  244. moai_adk/templates/.moai/memory/CLAUDE-RULES.md +539 -0
  245. moai_adk/templates/.moai/memory/DEVELOPMENT-GUIDE.md +344 -0
  246. moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +330 -0
  247. moai_adk/templates/.moai/memory/ISSUE-LABEL-MAPPING.md +150 -0
  248. moai_adk/templates/.moai/memory/SKILLS-DESCRIPTION-POLICY.md +218 -0
  249. moai_adk/templates/.moai/memory/SPEC-METADATA.md +356 -0
  250. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +330 -0
  251. moai_adk/templates/.moai/memory/spec-metadata.md +356 -0
  252. moai_adk/templates/.moai/project/product.md +161 -0
  253. moai_adk/templates/.moai/project/structure.md +156 -0
  254. moai_adk/templates/.moai/project/tech.md +227 -0
  255. moai_adk/templates/CLAUDE.md +90 -10
  256. moai_adk/templates/workflows/go-tag-validation.yml +130 -0
  257. moai_adk/templates/workflows/javascript-tag-validation.yml +135 -0
  258. moai_adk/templates/workflows/python-tag-validation.yml +118 -0
  259. moai_adk/templates/workflows/typescript-tag-validation.yml +154 -0
  260. {moai_adk-0.11.0.dist-info → moai_adk-0.12.0.dist-info}/METADATA +43 -1
  261. moai_adk-0.12.0.dist-info/RECORD +330 -0
  262. moai_adk-0.11.0.dist-info/RECORD +0 -77
  263. /moai_adk/templates/.github/workflows/{release.yml → moai-adk-release.yml} +0 -0
  264. /moai_adk/templates/.github/workflows/{spec-issue-sync.yml → moai-adk-spec-issue-sync.yml} +0 -0
  265. /moai_adk/templates/.github/workflows/{tag-validation.yml → moai-adk-tag-validation.yml} +0 -0
  266. {moai_adk-0.11.0.dist-info → moai_adk-0.12.0.dist-info}/WHEEL +0 -0
  267. {moai_adk-0.11.0.dist-info → moai_adk-0.12.0.dist-info}/entry_points.txt +0 -0
  268. {moai_adk-0.11.0.dist-info → moai_adk-0.12.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,689 @@
1
+ ---
2
+ name: alfred:3-sync
3
+ description: "Document synchronization + PR Ready conversion"
4
+ # Translations:
5
+ # - ko: "문서 동기화 + PR Ready 전환"
6
+ # - ja: "ドキュメント同期 + PR Ready変換"
7
+ # - zh: "文档同步 + PR Ready转换"
8
+ argument-hint: 'Mode target path - Mode: auto (default)|force|status|project, target
9
+ path: Synchronization target path'
10
+ allowed-tools:
11
+ - Read
12
+ - Write
13
+ - Edit
14
+ - MultiEdit
15
+ - Bash(git:*)
16
+ - Bash(gh:*)
17
+ - Bash(python3:*)
18
+ - Task
19
+ - Grep
20
+ - Glob
21
+ - TodoWrite
22
+ ---
23
+
24
+ # 📚 MoAI-ADK Step 3: Document Synchronization (+Optional PR Ready)
25
+ > **Note**: Interactive prompts use `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` for TUI selection menus. The skill is loaded on-demand when user interaction is required.
26
+ >
27
+ > **Batched Design**: All AskUserQuestion calls follow batched design principles (1-4 questions per call) to minimize user interaction turns. See CLAUDE.md section "Alfred Command Completion Pattern" for details.
28
+
29
+ <!-- @CODE:ALF-WORKFLOW-001:CMD-SYNC -->
30
+
31
+ **4-Step Workflow Integration**: This command implements Step 4 of Alfred's workflow (Report & Commit with conditional report generation). See CLAUDE.md for full workflow details.
32
+
33
+ ## 🚀 START HERE
34
+
35
+ **CRITICAL**: Load the TUI Survey Skill FIRST before any user interaction:
36
+
37
+ ```
38
+ AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)
39
+ ```
40
+
41
+ This Skill MUST be loaded at the very beginning to enable TUI menu rendering for AskUserQuestion calls throughout this workflow.
42
+
43
+ ## 🎯 Command Purpose
44
+
45
+ Synchronize code changes to Living Documents and verify @TAG system to ensure complete traceability.
46
+
47
+ **Document sync to**: $ARGUMENTS
48
+
49
+ > **Standard two-step workflow** (see `CLAUDE.md` - "Alfred Command Execution Pattern" for details)
50
+
51
+ ## 📋 Execution flow
52
+
53
+ **Phase 0: Skill Loading** (IMMEDIATE)
54
+ - Load `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` at the very start
55
+ - This enables TUI menu rendering for all user interactions
56
+
57
+ **Phase 1: Analysis & Planning**
58
+ 1. **Project status analysis**: Git changes and TAG system verification
59
+ 2. **Determine the scope of synchronization**: Full/partial/selective synchronization strategy
60
+ 3. **User Confirmation**: Review and approve synchronization plan via AskUserQuestion (TUI menu)
61
+
62
+ **Phase 2: Conditional Execution** (based on user choice)
63
+ 4. **Document Synchronization**: Living Document updates and TAG integrity guaranteed (IF user selects "Proceed")
64
+ 5. **Git operations**: Commit and PR state transitions via git-manager (IF user selects "Proceed")
65
+ - OR abort workflow (IF user selects "Abort")
66
+ - OR revise plan (IF user selects "Modify")
67
+
68
+ ## 🧠 Associated Skills & Agents
69
+
70
+ | Agent | Core Skill | Purpose |
71
+ | ------------ | ------------------------------ | ------------------------------ |
72
+ | tag-agent | `moai-alfred-tag-scanning` | Verify TAG system integrity |
73
+ | quality-gate | `moai-alfred-trust-validation` | Check code quality before sync |
74
+ | doc-syncer | `moai-alfred-tag-scanning` | Synchronize Living Documents |
75
+ | git-manager | `moai-alfred-git-workflow` | Handle Git operations |
76
+
77
+ **Note**: TUI Survey Skill is loaded once at Phase 0 and reused throughout all user interactions.
78
+
79
+ ## 🔗 Associated Agent
80
+
81
+ - **Phase 1**: quality-gate (🛡️ Quality Assurance Engineer) - Quality verification before synchronization (conditional)
82
+ - **Primary**: doc-syncer (📖 Technical Writer) - Dedicated to document synchronization
83
+ - **Secondary**: git-manager (🚀 Release Engineer) - Dedicated to Git commits/PR
84
+
85
+ ## 💡 Example of use
86
+
87
+ Users can run the command as follows:
88
+ - `/alfred:3-sync` - Auto-sync (PR Ready only)
89
+ - `/alfred:3-sync --auto-merge` - PR auto-merge + branch cleanup
90
+ - `/alfred:3-sync force` - Force full synchronization
91
+ - `/alfred:3-sync status` - Check synchronization status
92
+ - `/alfred:3-sync project` - Integrated project synchronization
93
+
94
+ ### 🚀 Fully automated GitFlow (--auto-merge)
95
+
96
+ **Automatically performs the following actions when used in Team mode**:
97
+ 1. Document synchronization complete
98
+ 2. Switch to PR Ready
99
+ 3. Check CI/CD status
100
+ 4. PR automatic merge (squash)
101
+ 5. Develop checkout and synchronization
102
+ 6. Organizing local feature branches
103
+ 7. **Ready for next task** ✅
104
+
105
+ **Recommended use time**: When you want to complete the merge in one go after completing TDD implementation.
106
+
107
+ **Personal mode**: Automate local main/develop merges and branch cleanups
108
+
109
+ ## 🔍 STEP 1: Analyze synchronization scope and establish plan
110
+
111
+ STEP 1 consists of **two independent phases** to provide flexible workflow based on project complexity:
112
+
113
+ ### 📋 STEP 1 Workflow Overview
114
+
115
+ ```
116
+ ┌─────────────────────────────────────────────────────────────┐
117
+ │ STEP 1: Synchronization Analysis & Planning │
118
+ ├─────────────────────────────────────────────────────────────┤
119
+ │ │
120
+ │ Phase A (OPTIONAL) │
121
+ │ ┌─────────────────────────────────────────┐ │
122
+ │ │ 🔍 Explore Agent │ │
123
+ │ │ • Navigate complex TAG chains │ │
124
+ │ │ • Scan entire TAG system │ │
125
+ │ │ • Identify orphan TAGs │ │
126
+ │ └─────────────────────────────────────────┘ │
127
+ │ ↓ │
128
+ │ (exploration results) │
129
+ │ ↓ │
130
+ │ Phase B (REQUIRED) │
131
+ │ ┌─────────────────────────────────────────┐ │
132
+ │ │ ⚙️ tag-agent + doc-syncer Agents │ │
133
+ │ │ • Verify TAG integrity (full project) │ │
134
+ │ │ • Analyze Git changes │ │
135
+ │ │ • Create synchronization plan │ │
136
+ │ │ • Request user approval │ │
137
+ │ └─────────────────────────────────────────┘ │
138
+ │ ↓ │
139
+ │ (user approval via AskUserQuestion) │
140
+ │ ↓ │
141
+ │ PROCEED TO STEP 2 │
142
+ └─────────────────────────────────────────────────────────────┘
143
+ ```
144
+
145
+ **Key Points**:
146
+ - **Phase A is optional** - Skip for simple single-SPEC changes
147
+ - **Phase B is required** - Always runs to verify TAGs and plan sync
148
+ - **Results flow forward** - Exploration results (if any) are passed to tag-agent
149
+ - **⚠️ Important**: tag-agent verifies ENTIRE PROJECT, not just changed files
150
+
151
+ ---
152
+
153
+ ### 🔍 Phase A: TAG Chain Navigation (OPTIONAL)
154
+
155
+ **Use the Explore agent for complex or extensive TAG chains.**
156
+
157
+ #### When to use Phase A:
158
+
159
+ - ✅ Large projects (100+ files)
160
+ - ✅ Need comprehensive TAG chain integrity verification
161
+ - ✅ Changes span multiple SPECs or modules
162
+ - ❌ Simple changes to a single SPEC (skip to Phase B)
163
+
164
+ #### How to invoke Explore agent:
165
+
166
+ ```
167
+ Invoking the Task tool (Explore agent):
168
+ - subagent_type: "Explore"
169
+ - description: "Scan entire TAG system"
170
+ - prompt: "Please scan @TAG system throughout the project:
171
+ - @SPEC TAG location (.moai/specs/)
172
+ - @TEST TAG location (tests/)
173
+ - @CODE TAG location (src/)
174
+ - @DOC TAG location (docs/)
175
+ - Detect orphan TAGs and broken references
176
+ thoroughness level: very thorough"
177
+ ```
178
+
179
+ **Note**: For simple changes, skip Phase A and proceed directly to Phase B.
180
+
181
+ ---
182
+
183
+ ### ⚙️ Phase B: TAG Verification & Sync Planning (REQUIRED)
184
+
185
+ **Call tag-agent and doc-syncer to verify TAG integrity and plan synchronization.**
186
+
187
+ This phase is **always required** and runs **two agents sequentially**:
188
+
189
+ #### How to invoke agents:
190
+
191
+ ```
192
+ 1. Tag-agent call (TAG verification - FULL PROJECT SCOPE):
193
+ - subagent_type: "tag-agent"
194
+ - description: "Verify TAG system across entire project"
195
+ - prompt: "Please perform a COMPREHENSIVE TAG system verification across the ENTIRE PROJECT.
196
+
197
+ **Required scope**: Scan all source files, not just changed files.
198
+
199
+ **Verification items**:
200
+ 1. @SPEC TAGs in .moai/specs/ directory
201
+ 2. @TEST TAGs in tests/ directory
202
+ 3. @CODE TAGs in src/ directory
203
+ 4. @DOC TAGs in docs/ directory
204
+
205
+ **Orphan detection** (MANDATORY):
206
+ - Detect @CODE TAGs without matching @SPEC
207
+ - Detect @SPEC TAGs without matching @CODE
208
+ - Detect @TEST TAGs without matching @SPEC
209
+ - Detect @DOC TAGs without matching @SPEC/@CODE
210
+
211
+ **Output format**: Provide complete list of orphan TAGs with locations.
212
+
213
+ (Optional) Explore results: $EXPLORE_RESULTS"
214
+
215
+ 2. doc-syncer call (synchronization plan):
216
+ - subagent_type: "doc-syncer"
217
+ - description: "Establish a document synchronization plan"
218
+ - prompt: """You are doc-syncer agent.
219
+
220
+ LANGUAGE CONFIGURATION:
221
+ - conversation_language: {{CONVERSATION_LANGUAGE}}
222
+ - language_name: {{CONVERSATION_LANGUAGE_NAME}}
223
+
224
+ CRITICAL INSTRUCTION:
225
+ Documentation updates MUST respect conversation_language:
226
+ - User-facing documentation (README, guides): {{CONVERSATION_LANGUAGE}}
227
+ - SPEC documents (spec.md, plan.md, acceptance.md): {{CONVERSATION_LANGUAGE}}
228
+ - Code comments: {{CONVERSATION_LANGUAGE}} (when not technical keywords)
229
+ - Technical documentation and YAML frontmatter: English
230
+
231
+ SKILL INVOCATION:
232
+ Use explicit Skill() calls when needed:
233
+ - Skill("moai-foundation-tags") for TAG chain validation
234
+ - Skill("moai-foundation-trust") for quality gate checks
235
+ - Skill("moai-alfred-tag-scanning") for TAG inventory updates
236
+
237
+ TASK:
238
+ Please analyze Git changes and establish a document synchronization plan.
239
+ Ensure all documentation updates align with the conversation_language setting.
240
+
241
+ $ARGUMENTS
242
+ (Optional) TAG validation results: $TAG_VALIDATION_RESULTS"""
243
+ ```
244
+
245
+ **Note**:
246
+ - **Sequential execution**: Run tag-agent first, then doc-syncer
247
+ - **Results flow**: TAG validation results from tag-agent are passed to doc-syncer via `$TAG_VALIDATION_RESULTS`
248
+ - **Phase A results**: If Phase A was executed, exploration results are passed to tag-agent via `$EXPLORE_RESULTS`
249
+
250
+ ---
251
+
252
+ ### Synchronization analysis in progress
253
+
254
+ 1. **Check project status**
255
+ - Git status and changed file list
256
+ - Code-document consistency check
257
+ - @TAG system verification (using tag-agent or Explore)
258
+ - (Optional) Extensive TAG scan based on Explore results
259
+
260
+ 2. **Determine the scope of synchronization**
261
+ - Living Document area requiring update
262
+ - TAG index need to be updated
263
+ - PR status transition possibility (team mode)
264
+
265
+ 3. **Establish a synchronization strategy**
266
+ - Synchronization approach for each mode
267
+ - Estimated work time and priorities
268
+ - Identify potential risks
269
+
270
+ ### Phase 1 Details: Quality pre-verification (conditional automatic execution)
271
+
272
+ Quickly check code quality before synchronization.
273
+
274
+ **Differences from Phase 3 (2-build)**:
275
+ - **Phase 3**: In-depth verification after completion of TDD implementation (test coverage, code quality, security)
276
+ - **Phase 1**: Quick scan before synchronization (file corruption, critical issues only)
277
+
278
+ **Purpose**: Prevent documentation of code with quality issues
279
+
280
+ **Execution conditions (automatic judgment)**:
281
+ - Check the number of code change lines with Git diff
282
+ - Changed lines > 50 lines: Automatically run
283
+ - Changed lines ≤ 50 lines: Skip
284
+ - Change only document: Skip
285
+
286
+ **Verification items**:
287
+ - **Verify only changed files**: File targets verified by Git diff
288
+ - **TRUST principle verification**: Run trust-checker script
289
+ - **Code style**: Run linter (changed files only)
290
+ - **TAG chain**: Verify changed TAG integrity
291
+
292
+ **How ​​it works**:
293
+ Alfred automatically calls the quality-gate agent when there are a lot of code changes to perform quick quality verification before document synchronization.
294
+
295
+ **Handling verification results**:
296
+
297
+ ✅ **PASS (0 Critical)**: Synchronization in progress
298
+
299
+ ⚠️ **WARNING (0 Critical, Warning included)**: Synchronization proceeds after displaying warning.
300
+
301
+ ❌ **CRITICAL (1 or more Critical)**: Synchronization stopped, correction recommended
302
+ - Critical issue found: Synchronization stopped, correction recommended
303
+ - User selection: “Retry after modification” or “Force proceed”
304
+
305
+ **Skip verification option**:
306
+ To skip pre-verification, use the `/alfred:3-sync --skip-pre-check` option.
307
+
308
+ ---
309
+
310
+ ### User verification steps
311
+
312
+ After reviewing your sync plan, `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)` presents the following options for user decision:
313
+ - **"Proceed"** or **"Start"**: Start synchronization as planned
314
+ - **"Modify [Contents]"**: Request modifications to your sync plan
315
+ - **"Abort"**: Abort the sync operation
316
+
317
+ ---
318
+
319
+ ## 🚀 STEP 2: Execute document synchronization (after user approval)
320
+
321
+ After user approval (collected via `AskUserQuestion tool (documented in moai-alfred-interactive-questions skill)`), the doc-syncer agent performs **Living Document synchronization and @TAG updates**, and optionally executes PR Ready transitions only in team mode.
322
+
323
+ ### Phase 2 Details: SPEC Completion Processing (Automatic)
324
+
325
+ The doc-syncer agent automatically determines whether TDD implementation is complete and updates SPEC metadata.
326
+
327
+ **Automatic update conditions**:
328
+ - SPEC with status `draft`
329
+ - RED → GREEN → REFACTOR commit exists
330
+ - @TEST and @CODE TAG exist
331
+
332
+ **Update details**:
333
+ - `status: draft` → `status: completed`
334
+ - `version: 0.0.x` → `version: 0.1.0`
335
+ - Automatic addition of HISTORY section
336
+
337
+ **If conditions are not met**: Phase 2 detailed work is automatically skipped
338
+
339
+ ## function
340
+
341
+ - **Automatic Document Synchronization**: The doc-syncer agent performs Living Document synchronization and @TAG updates. Optionally implements the PR Ready transition only in team mode.
342
+
343
+ ## Synchronization output
344
+
345
+ - `.moai/reports/sync-report.md` creation/update
346
+ - TAG chain verification: Direct code scan (`rg '@TAG' -n src/ tests/`)
347
+
348
+ ## Execution method by mode
349
+
350
+ ## 📋 STEP 1 Implementation Guide: Analyzing the scope of synchronization and establishing a plan
351
+
352
+ ### 1. Project status analysis
353
+
354
+ Alfred calls the doc-syncer agent to analyze synchronization targets and scopes.
355
+
356
+ #### Analysis Checklist
357
+
358
+ - [ ] **Git status**: Changed files, branch status, commit history
359
+ - [ ] **Document consistency**: Need for code-to-document synchronization
360
+ - [ ] **TAG system**: @TAG scheme verification and broken links
361
+ - [ ] **Sync scope**: Full vs partial vs specific path synchronization
362
+
363
+ ### 2. Determine synchronization strategy
364
+
365
+ #### Mode-specific synchronization approach
366
+
367
+ | mode | Synchronization range | PR processing | Key Features |
368
+ | ------------ | ------------------------------- | ---------------------- | ---------------------- |
369
+ | **Personal** | Local document synchronization | checkpoint only | Focus on personal work |
370
+ | **Team** | Full Sync + TAG | PR Ready conversion | Collaboration support |
371
+ | **Auto** | Intelligent automatic selection | Decisions by situation | Optimal strategy |
372
+ | **Force** | Force full sync | Full regeneration | For error recovery |
373
+
374
+ #### Expected scope of work
375
+
376
+ - **Living Document**: API documentation, README, architecture document
377
+ - **TAG index**: Update `.moai/indexes/tags.db`
378
+ - **Sync report**: `.moai/reports/sync-report.md`
379
+ - **PR status**: Draft → Ready for Review transition
380
+
381
+ ### 3. Generate synchronization plan report
382
+
383
+ Present your plan in the following format:
384
+
385
+ ```
386
+ ## Document Synchronization Plan Report: [TARGET]
387
+
388
+ ### 📊 Health Analysis Results
389
+ - **Changed Files**: [Number and Type]
390
+ - **Synchronization Required**: [High/Medium/Low]
391
+ - **TAG System Status**: [Healthy/Problem Detected]
392
+
393
+ ### 🎯 Sync Strategy
394
+ - **Selected Mode**: [auto/force/status/project]
395
+ - **Sync Scope**: [Full/Partial/Selective]
396
+ - **PR Handling**: [Maintain/Switch Ready/Create New PR]
397
+
398
+ ### ⚠️ Notes
399
+ - **Potential conflicts**: [Possible document conflicts]
400
+ - **TAG issues**: [Broken links, duplicate TAGs]
401
+ - **Performance impact**: [Estimated time for large synchronization]
402
+
403
+ ### ✅ Expected deliverables
404
+ - **sync-report.md**: [Summary of sync results]
405
+ - **tags.db**: [Updated TAG index]
406
+ - **Living Documents**: [Updated document list]
407
+ - **PR Status**: [PR transition in team mode]
408
+
409
+ ---
410
+ **Approval Request**: Do you want to proceed with synchronization using the above plan?
411
+ (select “Proceed”, “Modify [Content]”, or “Abort”)
412
+ ```
413
+
414
+ ---
415
+
416
+ ## 🚀 STEP 2 Implementation Guide: Document Synchronization (After Approval)
417
+
418
+ Only when the user selects **"Proceed"** or **"Start"** will Alfred call the doc-syncer agent to perform Living Document synchronization and TAG updates.
419
+
420
+ ### Sync step-by-step guide
421
+
422
+ 1. **Living Document Synchronization**: Code → Document automatically reflected
423
+ 2. **TAG System Verification**: @TAG System Integrity Verification
424
+ 3. **Index Update**: Traceability Matrix Update
425
+ 4. **Create Report**: Create a summary of synchronization results
426
+
427
+ ### Agent collaboration structure
428
+
429
+ - **Step 1**: The `doc-syncer` agent is dedicated to Living Document synchronization and @TAG management.
430
+ - **Step 2**: The `git-manager` agent is dedicated to all Git commits, PR state transitions, and synchronization.
431
+ - **Single Responsibility Principle**: doc-syncer only performs document tasks, and git-manager only performs Git tasks.
432
+ - **Sequential execution**: Executes in the order doc-syncer → git-manager to maintain clear dependencies.
433
+ - **No inter-agent calls**: Each agent does not directly call other agents, and executes commands. Runs sequentially in levels only.
434
+
435
+ ## 🚀 Optimized parallel/sequential hybrid workflow
436
+
437
+ ### Phase 1: Quick status check (parallel execution)
438
+
439
+ Do the following **simultaneously**:
440
+
441
+ ```
442
+ Task 1 (haiku): Check Git status
443
+ ├── Collect list of changed files
444
+ ├── Check branch status
445
+ └── Determine need for synchronization
446
+
447
+ Task 2 (sonnet): Analyze document structure
448
+ ├── Detect project type
449
+ ├── Collect TAG list
450
+ └── Determine synchronization scope
451
+ ```
452
+
453
+ ### Phase 2: Document synchronization (sequential execution)
454
+
455
+ The `doc-syncer` agent (sonnet) handles intensive processing:
456
+
457
+ - Living Document synchronization
458
+ - @TAG system verification and update
459
+ - Document-code consistency check
460
+ - TAG traceability matrix update
461
+
462
+ ### Phase 3: Git task processing (sequential execution)
463
+
464
+ Final processing by the `git-manager` agent (haiku):
465
+
466
+ - Commit document changes
467
+ - Apply synchronization strategy for each mode
468
+ - Switch PR Ready in Team mode
469
+ - Automatically assign reviewers (using gh CLI)
470
+
471
+ ### Phase 4: PR merge and branch cleanup (optional)
472
+
473
+ Additional processing by `git-manager` when using the `--auto-merge` flag:
474
+
475
+ **Team mode (GitFlow)**:
476
+ 1. Check PR status (CI/CD pass check)
477
+ 2. PR automatic merge (to develop branch)
478
+ 3. Delete remote feature branch
479
+ 4. Local develop checkout and synchronization
480
+ 5. Organizing local feature branches
481
+ 6. Notification that the next task is ready
482
+
483
+ **Personal Mode**:
484
+ 1. Local main/develop merge
485
+ 2. Delete feature branch
486
+ 3. Check out the base branch
487
+ 4. Notification that the next task is ready
488
+
489
+ **Performance improvements**: Minimize latency by parallelizing the initial verification step
490
+
491
+ ### Argument handling
492
+
493
+ - **$1 (mode)**: `$1` → `auto` (default)|`force`|`status`|`project`
494
+ - **$2 (path)**: `$2` → Sync target path (optional)
495
+ - **flags**:
496
+ - `--auto-merge`: Enable PR automatic merge and branch cleanup (Team mode)
497
+ - `--skip-pre-check`: Skip pre-quality check
498
+ - `--skip-quality-check`: Skip final quality check
499
+
500
+ **Command usage example**:
501
+ - `/alfred:3-sync` - Basic automatic synchronization (optimized by mode)
502
+ - `/alfred:3-sync --auto-merge` - PR automatic merge + branch cleanup (Team mode recommended)
503
+ - `/alfred:3-sync force` - Force full synchronization
504
+ - `/alfred:3-sync status` - Check synchronization status
505
+ - `/alfred:3-sync project` - Integrated project synchronization
506
+ - `/alfred:3-sync auto src/auth/` - Specific path Synchronization
507
+ - `/alfred:3-sync --auto-merge --skip-pre-check` - Fast merge
508
+
509
+ ### Agent role separation
510
+
511
+ #### doc-syncer dedicated area
512
+
513
+ - Living Document synchronization (code ↔ document)
514
+ - @TAG system verification and update
515
+ - Automatic creation/update of API document
516
+ - README and architecture document synchronization
517
+ - Verification of document-code consistency
518
+
519
+ #### git-manager dedicated area
520
+
521
+ - All Git commit operations (add, commit, push)
522
+ - Apply synchronization strategy for each mode
523
+ - PR status transition (Draft → Ready)
524
+ - **PR auto merge** (when --auto-merge flag)
525
+ - Check CI/CD status
526
+ - Conflict verification
527
+ - Execute Squash merge
528
+ - Remote branch deletion
529
+ - **Branch cleanup and conversion**
530
+ - Local develop checkout
531
+ - Remote synchronization (git pull)
532
+ - Local feature branch deletion
533
+ - Automatic assignment and labeling of reviewers
534
+ - GitHub CLI integration and remote synchronization
535
+
536
+ ### 🧪 Personal Mode
537
+
538
+ - The git-manager agent automatically creates checkpoints before and after synchronization
539
+ - The README, in-depth documentation, and PR body are organized manually according to the checklist.
540
+
541
+ ### 🏢 Team Mode
542
+
543
+ - Full synchronization of Living Document + @TAG verification/correction
544
+ - Optionally perform PR Ready conversion and labeling only when gh CLI is set
545
+ - Fully automated when using **--auto-merge flag**:
546
+ 1. Document synchronization complete.
547
+ 2. git push origin feature/SPEC-{ID}
548
+ 3. gh pr ready {PR_NUMBER}
549
+ 4. Check CI/CD status (gh pr checks)
550
+ 5. gh pr merge --squash --delete-branch
551
+ 6. git checkout develop && git pull origin develop
552
+ 7. Notification that the next task is ready
553
+
554
+ **Important**: All Git operations (commit, sync, PR management) are handled by the git-manager agent, so this command does not run Git operations directly.
555
+
556
+ **Branch Policy**:
557
+ - Base branch: `develop` (GitFlow standard)
558
+ - After merge: automatically checkout `develop`
559
+ - Next `/alfred:1-plan` automatically starts in `develop`
560
+
561
+ ## Synchronization Details (Summary)
562
+
563
+ 1. Project analysis and TAG verification → Check broken/duplicate/orphaned TAG
564
+ 2. Code ↔ Document synchronization → API/README/architecture document update, SPEC ↔ Code TODO synchronization
565
+ 3. TAG chain verification → `rg '@TAG' -n src/ tests/` (scan code directly)
566
+
567
+ ## Next steps
568
+
569
+ **Recommendation**: For better performance and context management, start a new chat session with the `/clear` or `/new` command before proceeding to the next step.
570
+
571
+ - The entire MoAI-ADK workflow is completed after document synchronization is completed
572
+ - All Git operations are dedicated to the git-manager agent to ensure consistency
573
+ - Only command-level orchestration is used without direct calls between agents
574
+
575
+ ## Report results
576
+
577
+ Report synchronization results in a structured format:
578
+
579
+ ### Successful synchronization (summary example)
580
+
581
+ ✅ Document synchronization complete — Update N, Create M, TAG Modify K, Verification passed
582
+
583
+ ### Partial synchronization (problem detected)
584
+
585
+ ```
586
+ ⚠️ Partial sync completed (issue found)
587
+
588
+ ❌ Problems that need solving:
589
+ ├── Broken links: X (specific list)
590
+ ├── Duplicate TAG: X
591
+ └── Orphan TAG: X
592
+
593
+ 🛠️ Auto-correction recommendations:
594
+ 1. Broken link recovery
595
+ 2. Merge duplicate TAGs
596
+ 3. Orphan TAG cleanup
597
+ ```
598
+
599
+ ## Next steps guidance
600
+
601
+ ### Development cycle complete
602
+
603
+ **Default mode (PR Ready only)**:
604
+ ```
605
+ 🔄 MoAI-ADK 3-step workflow completion:
606
+ ✅ /alfred:1-plan → Create EARS specification (feature/SPEC-{ID} branch)
607
+ ✅ /alfred:2-run → TDD implementation
608
+ ✅ /alfred:3-sync → Document synchronization + PR Ready
609
+
610
+ ⏳ Next steps: PR review and manual merge required
611
+ > gh pr view (check PR)
612
+ > gh pr merge --squash (merge after review)
613
+ ```
614
+
615
+ **Auto Merge Mode (Recommended)**:
616
+ ```
617
+ 🔄 Fully automated GitFlow workflow:
618
+ ✅ /alfred:1-plan → EARS specification creation (from develop)
619
+ ✅ /alfred:2-run → TDD implementation
620
+ ✅ /alfred:3-sync --auto-merge → Document synchronization + PR Merge + branch cleanup
621
+
622
+ 🎉 Automatic switch to develop branch done!
623
+ 📍 You are here: develop (ready for next work)
624
+ > /alfred:1-plan "Describe next feature" # Create new branch in develop
625
+ ```
626
+
627
+ ### Integrated project mode
628
+
629
+ **When to use**:
630
+ - When the implementation of multiple SPECs has been completed and the entire project documentation needs to be updated
631
+ - When periodic synchronization of the entire document in Personal mode is required.
632
+
633
+ **Differences from Personal/Team mode**:
634
+ - **Personal/Team mode**: Synchronize only specific SPEC-related documents
635
+ - **Project mode**: Synchronize README, architecture documentation, and entire API documentation
636
+
637
+ **Output**:
638
+ - README.md (updated complete feature list)
639
+ - docs/architecture.md (updated system design)
640
+ - docs/api/ (unified API documentation)
641
+ - .moai/indexes/ (rebuilt full TAG index)
642
+
643
+ ```
644
+ 🏢 Integrated branch sync complete!
645
+
646
+ 📋 Entire project synchronization:
647
+ ├── README.md (full feature list)
648
+ ├── docs/architecture.md (system design)
649
+ ├── docs/api/ (unified API documentation)
650
+ └── .moai/indexes/ (full TAG index)
651
+
652
+ 🎯 PR conversion support completed
653
+ ```
654
+
655
+ ## Constraints and Assumptions
656
+
657
+ **Environment Dependency:**
658
+
659
+ - Git repository required
660
+ - gh CLI (required for GitHub integration)
661
+ - Python3 (TAG verification script)
662
+
663
+ **Prerequisites:**
664
+
665
+ - MoAI-ADK project structure (.moai/, .claude/)
666
+ - TDD implementation completion status
667
+ - Compliance with TRUST 5 principles
668
+
669
+ **Limitations:**
670
+
671
+ - TAG verification is based on file existence
672
+ - PR automatic conversion only works in gh CLI environment
673
+ - Coverage figures need to be measured separately
674
+
675
+ ---
676
+
677
+ ## 🧠 Context Management
678
+
679
+ > For more information: `.moai/memory/development-guide.md` - see section "Context Engineering"
680
+
681
+ ### Core strategy of this command
682
+
683
+ **Load first**: `.moai/reports/sync-report-latest.md` (old sync state)
684
+
685
+ **Recommendation**: Document synchronization is complete. Now that the entire MoAI-ADK cycle (1-spec → 2-build → 3-sync) has been completed, start a new conversation session with the `/clear` or `/new` command before developing the next feature.
686
+
687
+ ---
688
+
689
+ **Aims to improve code-document consistency and ensure @TAG traceability by linking with the doc-syncer subagent.**