moai-adk 0.4.0__py3-none-any.whl → 0.4.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 (125) hide show
  1. moai_adk/__init__.py +1 -8
  2. moai_adk/cli/commands/init.py +10 -5
  3. moai_adk/cli/commands/update.py +274 -118
  4. moai_adk/cli/prompts/init_prompts.py +14 -18
  5. moai_adk/core/diagnostics/slash_commands.py +1 -1
  6. moai_adk/core/project/backup_utils.py +1 -0
  7. moai_adk/core/project/phase_executor.py +3 -1
  8. moai_adk/core/project/validator.py +3 -2
  9. moai_adk/core/template/backup.py +11 -3
  10. moai_adk/core/template/merger.py +16 -3
  11. moai_adk/core/template/processor.py +22 -3
  12. moai_adk/templates/.claude/agents/alfred/cc-manager.md +443 -424
  13. moai_adk/templates/.claude/agents/alfred/debug-helper.md +116 -103
  14. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +130 -116
  15. moai_adk/templates/.claude/agents/alfred/git-manager.md +186 -174
  16. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +227 -213
  17. moai_adk/templates/.claude/agents/alfred/project-manager.md +205 -125
  18. moai_adk/templates/.claude/agents/alfred/quality-gate.md +224 -209
  19. moai_adk/templates/.claude/agents/alfred/spec-builder.md +174 -160
  20. moai_adk/templates/.claude/agents/alfred/tag-agent.md +151 -139
  21. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +209 -196
  22. moai_adk/templates/.claude/agents/alfred/trust-checker.md +247 -233
  23. moai_adk/templates/.claude/commands/alfred/0-project.md +673 -640
  24. moai_adk/templates/.claude/commands/alfred/1-plan.md +342 -333
  25. moai_adk/templates/.claude/commands/alfred/2-run.md +295 -285
  26. moai_adk/templates/.claude/commands/alfred/3-sync.md +366 -356
  27. moai_adk/templates/.claude/hooks/alfred/README.md +52 -52
  28. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +44 -48
  29. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +17 -17
  30. moai_adk/templates/.claude/hooks/alfred/core/checkpoint.py +59 -59
  31. moai_adk/templates/.claude/hooks/alfred/core/context.py +19 -19
  32. moai_adk/templates/.claude/hooks/alfred/core/project.py +52 -52
  33. moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +1 -1
  34. moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +4 -4
  35. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +27 -27
  36. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +16 -17
  37. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +11 -11
  38. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +308 -307
  39. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +297 -296
  40. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +191 -190
  41. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +112 -0
  42. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +103 -0
  43. moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +103 -0
  44. moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +95 -0
  45. moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +99 -0
  46. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +105 -0
  47. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +97 -0
  48. moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +97 -0
  49. moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +90 -0
  50. moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +99 -0
  51. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +87 -0
  52. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +62 -0
  53. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +70 -43
  54. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +141 -141
  55. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +179 -165
  56. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +78 -78
  57. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +90 -90
  58. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +39 -25
  59. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +117 -74
  60. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +131 -134
  61. moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +43 -12
  62. moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +43 -12
  63. moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +43 -12
  64. moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +43 -12
  65. moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +43 -12
  66. moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +43 -12
  67. moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +43 -11
  68. moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +43 -12
  69. moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +43 -12
  70. moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +43 -12
  71. moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +47 -11
  72. moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +47 -11
  73. moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +51 -14
  74. moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +46 -10
  75. moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +62 -25
  76. moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +44 -17
  77. moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +44 -14
  78. moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +45 -13
  79. moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +46 -14
  80. moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +48 -8
  81. moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +44 -12
  82. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +44 -12
  83. moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +44 -11
  84. moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +44 -11
  85. moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +44 -12
  86. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +44 -11
  87. moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +44 -11
  88. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +44 -11
  89. moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +44 -12
  90. moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +44 -12
  91. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +44 -12
  92. moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +44 -12
  93. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +44 -11
  94. moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +44 -11
  95. moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +44 -12
  96. moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +44 -11
  97. moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +44 -11
  98. moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +44 -12
  99. moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +44 -12
  100. moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +44 -11
  101. moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +44 -12
  102. moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +44 -12
  103. moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +44 -12
  104. moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +44 -43
  105. moai_adk/templates/.github/workflows/moai-gitflow.yml +36 -35
  106. moai_adk/templates/.moai/config.json +9 -6
  107. moai_adk/templates/.moai/memory/development-guide.md +220 -221
  108. moai_adk/templates/.moai/memory/gitflow-protection-policy.md +85 -85
  109. moai_adk/templates/.moai/memory/spec-metadata.md +149 -150
  110. moai_adk/templates/.moai/project/product.md +90 -90
  111. moai_adk/templates/.moai/project/structure.md +85 -85
  112. moai_adk/templates/.moai/project/tech.md +117 -117
  113. moai_adk/templates/CLAUDE.md +350 -722
  114. moai_adk-0.4.1.dist-info/METADATA +303 -0
  115. moai_adk-0.4.1.dist-info/RECORD +152 -0
  116. moai_adk/templates/.claude/commands/alfred/1-spec.md +0 -31
  117. moai_adk/templates/.claude/commands/alfred/2-build.md +0 -30
  118. moai_adk/templates/.claude/skills/scripts/standardize_skills.py +0 -166
  119. moai_adk/templates/.claude/skills/scripts/verify_standardization.sh +0 -43
  120. moai_adk/templates/.moai/hooks/pre-push.sample +0 -88
  121. moai_adk-0.4.0.dist-info/METADATA +0 -1816
  122. moai_adk-0.4.0.dist-info/RECORD +0 -145
  123. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/WHEEL +0 -0
  124. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/entry_points.txt +0 -0
  125. {moai_adk-0.4.0.dist-info → moai_adk-0.4.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-domain-security
3
- description: OWASP Top 10, static analysis (SAST), dependency security, and secrets
4
- management
4
+ description: OWASP Top 10, static analysis (SAST), dependency security, and secrets management. Use when working on security and compliance reviews scenarios.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
6
+ - Read
7
+ - Bash
8
8
  ---
9
9
 
10
10
  # Security Expert
11
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand when security keywords appear |
17
+ | Trigger cues | Threat modeling, OWASP findings, secrets management, compliance reviews. |
18
+ | Tier | 4 |
19
+
12
20
  ## What it does
13
21
 
14
22
  Provides expertise in application security, including OWASP Top 10 vulnerabilities, static application security testing (SAST), dependency vulnerability scanning, and secrets management.
15
23
 
16
24
  ## When to use
17
25
 
18
- - "보안 취약점 분석", "OWASP 검증", "시크릿 관리", "의존성 보안"
26
+ - Engages when the team asks about security posture or mitigation steps.
27
+ - “Security vulnerability analysis”, “OWASP verification”, “Secret management”, “Dependency security”
19
28
  - Automatically invoked when security concerns arise
20
- - Security SPEC implementation (`/alfred:2-build`)
29
+ - Security SPEC implementation (`/alfred:2-run`)
21
30
 
22
31
  ## How it works
23
32
 
@@ -58,17 +67,39 @@ Provides expertise in application security, including OWASP Top 10 vulnerabiliti
58
67
  - HTTPS enforcement
59
68
 
60
69
  ## Examples
70
+ ```markdown
71
+ - Run SAST/DAST tools and attach findings summary.
72
+ - Update risk matrix with severity/owner/ETA.
73
+ ```
74
+
75
+ ## Inputs
76
+ - Domain-related design documents and user requirements.
77
+ - Project technology stack and operational constraints.
78
+
79
+ ## Outputs
80
+ - Domain-specific architecture or implementation guidelines.
81
+ - Recommended list of associated sub-agents/skills.
61
82
 
62
- ### Example 1: OWASP compliance check
63
- User: "/alfred:2-build SEC-001"
64
- Claude: (creates RED security test, GREEN implementation with input validation, REFACTOR)
83
+ ## Failure Modes
84
+ - When the domain document does not exist or is ambiguous.
85
+ - When the project strategy is unconfirmed and cannot be specified.
65
86
 
66
- ### Example 2: Dependency vulnerability scan
67
- User: "의존성 보안 스캔"
68
- Claude: (runs npm audit or snyk test and reports vulnerabilities)
87
+ ## Dependencies
88
+ - `.moai/project/` document and latest technical briefing are required.
89
+
90
+ ## References
91
+ - OWASP. "Top 10 Web Application Security Risks." https://owasp.org/www-project-top-ten/ (accessed 2025-03-29).
92
+ - NIST. "Secure Software Development Framework." https://csrc.nist.gov/publications/detail/sp/800-218/final (accessed 2025-03-29).
93
+
94
+ ## Changelog
95
+ - 2025-03-29: Codified input/output and failure responses for domain skills.
69
96
 
70
97
  ## Works well with
71
98
 
72
99
  - alfred-trust-validation (security validation)
73
100
  - web-api-expert (API security)
74
101
  - devops-expert (secure deployments)
102
+
103
+ ## Best Practices
104
+ - Record supporting documentation (version/link) for each domain decision.
105
+ - Review performance, security, and operational requirements simultaneously at an early stage.
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-domain-web-api
3
- description: REST API and GraphQL design patterns with authentication, versioning,
4
- and OpenAPI documentation
4
+ description: REST API and GraphQL design patterns with authentication, versioning, and OpenAPI documentation. Use when working on web API contracts scenarios.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
6
+ - Read
7
+ - Bash
8
8
  ---
9
9
 
10
10
  # Web API Expert
11
11
 
12
+ ## Skill Metadata
13
+ | Field | Value |
14
+ | ----- | ----- |
15
+ | Allowed tools | Read (read_file), Bash (terminal) |
16
+ | Auto-load | On demand for API delivery |
17
+ | Trigger cues | REST/GraphQL design, contract testing, versioning, integration hardening. |
18
+ | Tier | 4 |
19
+
12
20
  ## What it does
13
21
 
14
22
  Provides expertise in designing and implementing RESTful APIs and GraphQL services, including authentication mechanisms (JWT, OAuth2), API versioning strategies, and OpenAPI documentation.
15
23
 
16
24
  ## When to use
17
25
 
18
- - "API 설계", "REST API 패턴", "GraphQL 스키마", "JWT 인증"
26
+ - Engages when designing or validating web APIs and their lifecycle controls.
27
+ - “API design”, “REST API pattern”, “GraphQL schema”, “JWT authentication”
19
28
  - Automatically invoked when working with API projects
20
- - Web API SPEC implementation (`/alfred:2-build`)
29
+ - Web API SPEC implementation (`/alfred:2-run`)
21
30
 
22
31
  ## How it works
23
32
 
@@ -50,17 +59,39 @@ Provides expertise in designing and implementing RESTful APIs and GraphQL servic
50
59
  - **Postman collections**: Request examples
51
60
 
52
61
  ## Examples
62
+ ```bash
63
+ $ uvicorn app.main:app --reload
64
+ $ newman run postman_collection.json
65
+ ```
66
+
67
+ ## Inputs
68
+ - Domain-related design documents and user requirements.
69
+ - Project technology stack and operational constraints.
70
+
71
+ ## Outputs
72
+ - Domain-specific architecture or implementation guidelines.
73
+ - Recommended list of associated sub-agents/skills.
53
74
 
54
- ### Example 1: REST API with JWT
55
- User: "/alfred:2-build API-AUTH-001"
56
- Claude: (creates RED API test, GREEN implementation with JWT middleware, REFACTOR)
75
+ ## Failure Modes
76
+ - When the domain document does not exist or is ambiguous.
77
+ - When the project strategy is unconfirmed and cannot be specified.
57
78
 
58
- ### Example 2: GraphQL schema design
59
- User: "GraphQL 스키마 설계"
60
- Claude: (designs schema with proper types and resolvers)
79
+ ## Dependencies
80
+ - `.moai/project/` document and latest technical briefing are required.
81
+
82
+ ## References
83
+ - Microsoft. "REST API Design Guidelines." https://learn.microsoft.com/azure/architecture/best-practices/api-design (accessed 2025-03-29).
84
+ - OpenAPI Initiative. "OpenAPI Specification." https://spec.openapis.org/oas/latest.html (accessed 2025-03-29).
85
+
86
+ ## Changelog
87
+ - 2025-03-29: Codified input/output and failure responses for domain skills.
61
88
 
62
89
  ## Works well with
63
90
 
64
91
  - alfred-trust-validation (API security validation)
65
92
  - backend-expert (server implementation)
66
93
  - security-expert (authentication patterns)
94
+
95
+ ## Best Practices
96
+ - Record supporting documentation (version/link) for each domain decision.
97
+ - Review performance, security, and operational requirements simultaneously at an early stage.
@@ -1,26 +1,34 @@
1
1
  ---
2
+
2
3
  name: moai-essentials-debug
3
- description: Advanced debugging with stack trace analysis, error pattern detection,
4
- and fix suggestions
4
+ description: Advanced debugging with stack trace analysis, error pattern detection, and fix suggestions. Use when delivering quick diagnostic support for everyday issues.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
8
- - Write
9
- - Edit
10
- - TodoWrite
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Edit
10
+ - TodoWrite
11
11
  ---
12
12
 
13
13
  # Alfred Debugger Pro
14
14
 
15
+ ## Skill Metadata
16
+ | Field | Value |
17
+ | ----- | ----- |
18
+ | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file), Bash (terminal), TodoWrite (todo_write) |
19
+ | Auto-load | On demand during Run stage (debug-helper) |
20
+ | Trigger cues | Runtime error triage, stack trace analysis, root cause investigation requests. |
21
+
15
22
  ## What it does
16
23
 
17
24
  Advanced debugging support with stack trace analysis, common error pattern detection, and actionable fix suggestions.
18
25
 
19
26
  ## When to use
20
27
 
21
- - "에러 해결해줘", "이 오류 원인은?", "스택 트레이스 분석"
28
+ - Loads when users share stack traces or ask why a failure occurred.
29
+ - “Resolve the error”, “What is the cause of this error?”, “Stack trace analysis”
22
30
  - Automatically invoked on runtime errors (via debug-helper sub-agent)
23
- - " 안 돼?", "NullPointerException 해결"
31
+ - "Why not?", "Solving NullPointerException"
24
32
 
25
33
  ## How it works
26
34
 
@@ -58,9 +66,37 @@ jwt.exceptions.ExpiredSignatureError: Signature has expired
58
66
  - **Java**: Optional, try-with-resources
59
67
 
60
68
  ## Examples
69
+ ```markdown
70
+ - Checks the current diff and lists items that can be modified immediately.
71
+ - Schedule follow-up tasks with TodoWrite.
72
+ ```
73
+
74
+ ## Inputs
75
+ - A snapshot of the code/tests/documentation you are currently working on.
76
+ - Ongoing agent status information.
77
+
78
+ ## Outputs
79
+ - Immediately actionable checklists or improvement suggestions.
80
+ - Recommendations on whether to take next steps or not.
81
+
82
+ ## Failure Modes
83
+ - If you cannot find the required files or test results.
84
+ - When the scope of work is excessively large and cannot be resolved with simple support.
85
+
86
+ ## Dependencies
87
+ - Mainly used in conjunction with `tdd-implementer`, `quality-gate`, etc.
88
+
89
+ ## References
90
+ - Microsoft. "Debugging Techniques." https://learn.microsoft.com/visualstudio/debugger/ (accessed 2025-03-29).
91
+ - JetBrains. "Debugging Code." https://www.jetbrains.com/help/idea/debugging-code.html (accessed 2025-03-29).
92
+
93
+ ## Changelog
94
+ - 2025-03-29: Overhauled input/output definitions for Essentials skills.
61
95
 
62
- User: "JWT ExpiredSignatureError 해결해줘"
63
- Claude: (analyzes stack trace, identifies root cause, suggests fix)
64
96
  ## Works well with
65
97
 
66
98
  - moai-essentials-refactor
99
+
100
+ ## Best Practices
101
+ - Record results, even for simple improvements, to increase traceability.
102
+ - Clearly mark items that require human review to distinguish them from automation.
@@ -1,25 +1,33 @@
1
1
  ---
2
+
2
3
  name: moai-essentials-perf
3
- description: Performance optimization with profiling, bottleneck detection, and tuning
4
- strategies
4
+ description: Performance optimization with profiling, bottleneck detection, and tuning strategies. Use when performing baseline performance reviews.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
8
- - Write
9
- - Edit
10
- - TodoWrite
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Edit
10
+ - TodoWrite
11
11
  ---
12
12
 
13
13
  # Alfred Performance Optimizer
14
14
 
15
+ ## Skill Metadata
16
+ | Field | Value |
17
+ | ----- | ----- |
18
+ | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file), Bash (terminal), TodoWrite (todo_write) |
19
+ | Auto-load | On demand during Run stage (performance triage) |
20
+ | Trigger cues | Latency complaints, profiling requests, throughput bottleneck analysis. |
21
+
15
22
  ## What it does
16
23
 
17
24
  Performance analysis and optimization with profiling tools, bottleneck detection, and language-specific optimization techniques.
18
25
 
19
26
  ## When to use
20
27
 
21
- - "성능 개선해줘", "느린 부분 찾아줘", "최적화 방법은?"
22
- - "프로파일링", "병목 지점", "메모리 누수"
28
+ - Loads when diagnosing performance regressions or planning optimization work.
29
+ - “Improve performance”, “Find slow parts”, “How to optimize?”
30
+ - “Profiling”, “Bottleneck”, “Memory leak”
23
31
 
24
32
  ## How it works
25
33
 
@@ -60,9 +68,37 @@ Performance analysis and optimization with profiling tools, bottleneck detection
60
68
  - CPU usage: <70%
61
69
 
62
70
  ## Examples
71
+ ```markdown
72
+ - Checks the current diff and lists items that can be modified immediately.
73
+ - Schedule follow-up tasks with TodoWrite.
74
+ ```
75
+
76
+ ## Inputs
77
+ - A snapshot of the code/tests/documentation you are currently working on.
78
+ - Ongoing agent status information.
79
+
80
+ ## Outputs
81
+ - Immediately actionable checklists or improvement suggestions.
82
+ - Recommendations on whether to take next steps or not.
83
+
84
+ ## Failure Modes
85
+ - If you cannot find the required files or test results.
86
+ - When the scope of work is excessively large and cannot be resolved with simple support.
87
+
88
+ ## Dependencies
89
+ - Mainly used in conjunction with `tdd-implementer`, `quality-gate`, etc.
90
+
91
+ ## References
92
+ - Google SRE. "The Four Golden Signals." https://sre.google/sre-book/monitoring-distributed-systems/ (accessed 2025-03-29).
93
+ - Dynatrace. "Application Performance Monitoring Best Practices." https://www.dynatrace.com/resources/ebooks/ (accessed 2025-03-29).
94
+
95
+ ## Changelog
96
+ - 2025-03-29: Overhauled input/output definitions for Essentials skills.
63
97
 
64
- User: "N+1 query 문제 해결해줘"
65
- Claude: (identifies N+1 queries, suggests eager loading, provides optimized code)
66
98
  ## Works well with
67
99
 
68
100
  - moai-essentials-refactor
101
+
102
+ ## Best Practices
103
+ - Record results, even for simple improvements, to increase traceability.
104
+ - Clearly mark items that require human review to distinguish them from automation.
@@ -1,32 +1,41 @@
1
1
  ---
2
+
2
3
  name: moai-essentials-refactor
3
- description: Refactoring guidance with design patterns and code improvement strategies
4
+ description: Refactoring guidance with design patterns and code improvement strategies. Use when planning incremental refactors with safety nets.
4
5
  allowed-tools:
5
- - Read
6
- - Bash
7
- - Write
8
- - Edit
9
- - TodoWrite
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Edit
10
+ - TodoWrite
10
11
  ---
11
12
 
12
13
  # Alfred Refactoring Coach
13
14
 
15
+ ## Skill Metadata
16
+ | Field | Value |
17
+ | ----- | ----- |
18
+ | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file), Bash (terminal), TodoWrite (todo_write) |
19
+ | Auto-load | On demand during Run stage (refactor planning) |
20
+ | Trigger cues | Refactoring plans, code smell cleanup, design pattern coaching. |
21
+
14
22
  ## What it does
15
23
 
16
24
  Refactoring guidance with design pattern recommendations, code smell detection, and step-by-step improvement plans.
17
25
 
18
26
  ## When to use
19
27
 
20
- - "리팩토링 도와줘", "이 코드 개선 방법은?", "디자인 패턴 적용"
21
- - "코드 정리", "중복 제거", "함수 분리"
28
+ - Loads when the user asks how to restructure code or apply design patterns.
29
+ - “Help with refactoring”, “How can I improve this code?”, “Apply design patterns”
30
+ - “Code organization”, “Remove duplication”, “Separate functions”
22
31
 
23
32
  ## How it works
24
33
 
25
34
  **Refactoring Techniques**:
26
- - **Extract Method**: 메서드 분리
27
- - **Replace Conditional with Polymorphism**: 조건문 제거
28
- - **Introduce Parameter Object**: 매개변수 그룹화
29
- - **Extract Class**: 거대한 클래스 분리
35
+ - **Extract Method**: Separate long methods
36
+ - **Replace Conditional with Polymorphism**: Remove conditional statements
37
+ - **Introduce Parameter Object**: Group parameters
38
+ - **Extract Class**: Massive class separation
30
39
 
31
40
  **Design Pattern Recommendations**:
32
41
  - Complex object creation → **Builder Pattern**
@@ -51,9 +60,37 @@ Refactoring guidance with design pattern recommendations, code smell detection,
51
60
  - [ ] Commit frequently
52
61
 
53
62
  ## Examples
63
+ ```markdown
64
+ - Checks the current diff and lists items that can be modified immediately.
65
+ - Schedule follow-up tasks with TodoWrite.
66
+ ```
67
+
68
+ ## Inputs
69
+ - A snapshot of the code/tests/documentation you are currently working on.
70
+ - Ongoing agent status information.
71
+
72
+ ## Outputs
73
+ - Immediately actionable checklists or improvement suggestions.
74
+ - Recommendations on whether to take next steps or not.
75
+
76
+ ## Failure Modes
77
+ - If you cannot find the required files or test results.
78
+ - When the scope of work is excessively large and cannot be resolved with simple support.
79
+
80
+ ## Dependencies
81
+ - Mainly used in conjunction with `tdd-implementer`, `quality-gate`, etc.
82
+
83
+ ## References
84
+ - Fowler, Martin. "Refactoring: Improving the Design of Existing Code." Addison-Wesley, 2018.
85
+ - IEEE Software. "Managing Technical Debt." IEEE Software, 2021.
86
+
87
+ ## Changelog
88
+ - 2025-03-29: Overhauled input/output definitions for Essentials skills.
54
89
 
55
- User: "중복 코드 제거해줘"
56
- Claude: (identifies duplicates, suggests Extract Method, provides step-by-step plan)
57
90
  ## Works well with
58
91
 
59
92
  - moai-essentials-review
93
+
94
+ ## Best Practices
95
+ - Record results, even for simple improvements, to increase traceability.
96
+ - Clearly mark items that require human review to distinguish them from automation.
@@ -1,24 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-essentials-review
3
- description: Automated code review with SOLID principles, code smells, and language-specific
4
- best practices
4
+ description: Automated code review with SOLID principles, code smells, and language-specific best practices. Use when preparing concise review checklists for code changes.
5
5
  allowed-tools:
6
- - Read
7
- - Bash
8
- - Write
9
- - Edit
10
- - TodoWrite
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Edit
10
+ - TodoWrite
11
11
  ---
12
12
 
13
13
  # Alfred Code Reviewer
14
14
 
15
+ ## Skill Metadata
16
+ | Field | Value |
17
+ | ----- | ----- |
18
+ | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file), Bash (terminal), TodoWrite (todo_write) |
19
+ | Auto-load | On demand during Sync stage (review gate) |
20
+ | Trigger cues | Code review requests, quality checklist preparation, merge readiness checks. |
21
+
15
22
  ## What it does
16
23
 
17
24
  Automated code review with language-specific best practices, SOLID principles verification, and code smell detection.
18
25
 
19
26
  ## When to use
20
27
 
21
- - "코드 리뷰해줘", "이 코드 개선점은?", "코드 품질 확인"
28
+ - Loads when someone asks for a code review or a pre-merge quality assessment.
29
+ - “Please review the code”, “How can this code be improved?”, “Check the code quality”
22
30
  - Optionally invoked after `/alfred:3-sync`
23
31
  - Before merging PR
24
32
 
@@ -67,10 +75,38 @@ Automated code review with language-specific best practices, SOLID principles ve
67
75
  ```
68
76
 
69
77
  ## Examples
78
+ ```markdown
79
+ - Checks the current diff and lists items that can be modified immediately.
80
+ - Schedule follow-up tasks with TodoWrite.
81
+ ```
82
+
83
+ ## Inputs
84
+ - A snapshot of the code/tests/documentation you are currently working on.
85
+ - Ongoing agent status information.
86
+
87
+ ## Outputs
88
+ - Immediately actionable checklists or improvement suggestions.
89
+ - Recommendations on whether to take next steps or not.
90
+
91
+ ## Failure Modes
92
+ - If you cannot find the required files or test results.
93
+ - When the scope of work is excessively large and cannot be resolved with simple support.
94
+
95
+ ## Dependencies
96
+ - Mainly used in conjunction with `tdd-implementer`, `quality-gate`, etc.
97
+
98
+ ## References
99
+ - IEEE. "Recommended Practice for Software Reviews." IEEE 1028-2008.
100
+ - Cisco. "Peer Review Best Practices." https://www.cisco.com/c/en/us/support/docs/optical/ons-15454-esc/15114-peer-review.html (accessed 2025-03-29).
101
+
102
+ ## Changelog
103
+ - 2025-03-29: Overhauled input/output definitions for Essentials skills.
70
104
 
71
- User: "이 코드 리뷰해줘"
72
- Claude: (analyzes code, detects issues, provides improvement suggestions)
73
105
  ## Works well with
74
106
 
75
107
  - moai-foundation-specs
76
108
  - moai-essentials-refactor
109
+
110
+ ## Best Practices
111
+ - Record results, even for simple improvements, to increase traceability.
112
+ - Clearly mark items that require human review to distinguish them from automation.
@@ -1,23 +1,32 @@
1
1
  ---
2
+
2
3
  name: moai-foundation-ears
3
- description: EARS requirement authoring guide (Ubiquitous/Event/State/Optional/Constraints)
4
+ description: EARS requirement authoring guide (Ubiquitous/Event/State/Optional/Constraints). Use when teams need guidance on EARS requirements structure.
4
5
  allowed-tools:
5
- - Read
6
- - Bash
7
- - Write
8
- - Edit
9
- - TodoWrite
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Edit
10
+ - TodoWrite
10
11
  ---
11
12
 
12
13
  # Alfred EARS Authoring Guide
13
14
 
15
+ ## Skill Metadata
16
+ | Field | Value |
17
+ | ----- | ----- |
18
+ | Allowed tools | Read (read_file), Write (write_file), Edit (edit_file), Bash (terminal), TodoWrite (todo_write) |
19
+ | Auto-load | SessionStart (foundation bootstrap) |
20
+ | Trigger cues | Requests to draft or refine EARS-style requirements, “write spec”, or “requirements format” cues. |
21
+
14
22
  ## What it does
15
23
 
16
24
  EARS (Easy Approach to Requirements Syntax) authoring guide for writing clear, testable requirements using 5 statement patterns.
17
25
 
18
26
  ## When to use
19
27
 
20
- - "SPEC 작성", "요구사항 정리", "EARS 구문"
28
+ - Activates whenever the user asks to draft structured requirements or mentions EARS syntax.
29
+ - “Writing SPEC”, “Requirements summary”, “EARS syntax”
21
30
  - Automatically invoked by `/alfred:1-plan`
22
31
  - When writing or refining SPEC documents
23
32
 
@@ -25,37 +34,65 @@ EARS (Easy Approach to Requirements Syntax) authoring guide for writing clear, t
25
34
 
26
35
  EARS provides 5 statement patterns for structured requirements:
27
36
 
28
- ### 1. Ubiquitous (기본 요구사항)
29
- **Format**: 시스템은 [기능]을 제공해야 한다
30
- **Example**: 시스템은 사용자 인증 기능을 제공해야 한다
37
+ ### 1. Ubiquitous (Basic Requirements)
38
+ **Format**: The system must provide [function]
39
+ **Example**: The system must provide user authentication function
31
40
 
32
- ### 2. Event-driven (이벤트 기반)
33
- **Format**: WHEN [조건]이면, 시스템은 [동작]해야 한다
34
- **Example**: WHEN 사용자가 로그인하면, 시스템은 JWT 토큰을 발급해야 한다
41
+ ### 2. Event-driven (event-based)
42
+ **Format**: WHEN If [condition], the system must [operate]
43
+ **Example**: WHEN When the user logs in, the system must issue a JWT token
35
44
 
36
- ### 3. State-driven (상태 기반)
37
- **Format**: WHILE [상태] 때, 시스템은 [동작]해야 한다
38
- **Example**: WHILE 사용자가 인증된 상태일 때, 시스템은 보호된 리소스 접근을 허용해야 한다
45
+ ### 3. State-driven
46
+ **Format**: WHILE When in [state], the system must [operate]
47
+ **Example**: WHILE When the user is authenticated, the system must allow access to protected resources
39
48
 
40
- ### 4. Optional (선택적 기능)
41
- **Format**: WHERE [조건]이면, 시스템은 [동작]할 수 있다
42
- **Example**: WHERE 리프레시 토큰이 제공되면, 시스템은 새로운 액세스 토큰을 발급할 있다
49
+ ### 4. Optional (Optional function)
50
+ **Format**: If WHERE [condition], the system can [operate]
51
+ **Example**: If WHERE refresh token is provided, the system can issue a new access token
43
52
 
44
- ### 5. Constraints (제약사항)
45
- **Format**: IF [조건]이면, 시스템은 [제약]해야 한다
46
- **Example**: IF 잘못된 토큰이 제공되면, 시스템은 접근을 거부해야 한다
53
+ ### 5. Constraints
54
+ **Format**: IF [condition], the system SHOULD [constrain]
55
+ **Example**: IF an invalid token is provided, the system SHOULD deny access
47
56
 
48
57
  ## Writing Tips
49
58
 
50
59
  ✅ Be specific and measurable
51
- ✅ Avoid vague terms ("적절한", "충분한", "빠른")
60
+ ✅ Avoid vague terms (“adequate”, “sufficient”, “fast”)
52
61
  ✅ One requirement per statement
53
62
  ✅ Make it testable
54
63
 
55
64
  ## Examples
65
+ ```markdown
66
+ - Scan standard documents and report missing sections.
67
+ - Changed regulations are reflected in CLAUDE.md.
68
+ ```
69
+
70
+ ## Inputs
71
+ - Project standard documents (e.g. `CLAUDE.md`, `.moai/config.json`).
72
+ - Latest printouts from relevant sub-agents.
73
+
74
+ ## Outputs
75
+ - Templates or policy summaries conforming to the MoAI-ADK standard.
76
+ - Reusable rules/checklists.
77
+
78
+ ## Failure Modes
79
+ - When required standard files are missing or have limited access rights.
80
+ - When conflicting policies are detected and coordination is required.
81
+
82
+ ## Dependencies
83
+ - There is great synergy when called together with cc-manager.
84
+
85
+ ## References
86
+ - Mavin, A., et al. "Easy Approach to Requirements Syntax (EARS)." IEEE RE, 2009.
87
+ - INCOSE. "Guide for Writing Requirements." INCOSE-TP-2010-006-02 (accessed 2025-03-29).
88
+
89
+ ## Changelog
90
+ - 2025-03-29: Foundation skill templates have been enhanced to align with best practice structures.
56
91
 
57
- User: "JWT 인증 SPEC 작성해줘"
58
- Claude: (applies EARS patterns to structure authentication requirements)
59
92
  ## Works well with
60
93
 
61
94
  - moai-foundation-specs
95
+
96
+ ## Best Practices
97
+ - When changing standards, the reason for change and supporting documents are recorded.
98
+ - Follow the single source principle and avoid modifying the same item in multiple places.