moai-adk 0.4.7__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 (101) hide show
  1. moai_adk/templates/.claude/agents/alfred/cc-manager.md +188 -954
  2. moai_adk/templates/.claude/agents/alfred/debug-helper.md +4 -5
  3. moai_adk/templates/.claude/agents/alfred/doc-syncer.md +2 -2
  4. moai_adk/templates/.claude/agents/alfred/git-manager.md +2 -2
  5. moai_adk/templates/.claude/agents/alfred/implementation-planner.md +3 -3
  6. moai_adk/templates/.claude/agents/alfred/project-manager.md +6 -6
  7. moai_adk/templates/.claude/agents/alfred/quality-gate.md +4 -6
  8. moai_adk/templates/.claude/agents/alfred/skill-factory.md +36 -36
  9. moai_adk/templates/.claude/agents/alfred/spec-builder.md +2 -2
  10. moai_adk/templates/.claude/agents/alfred/tag-agent.md +2 -2
  11. moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +3 -3
  12. moai_adk/templates/.claude/agents/alfred/trust-checker.md +5 -5
  13. moai_adk/templates/.claude/commands/alfred/0-project.md +98 -42
  14. moai_adk/templates/.claude/commands/alfred/1-plan.md +7 -7
  15. moai_adk/templates/.claude/commands/alfred/2-run.md +36 -36
  16. moai_adk/templates/.claude/commands/alfred/3-sync.md +10 -10
  17. moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +14 -1
  18. moai_adk/templates/.claude/hooks/alfred/core/__init__.py +115 -33
  19. moai_adk/templates/.claude/hooks/alfred/handlers/session.py +8 -9
  20. moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +6 -6
  21. moai_adk/templates/.claude/hooks/alfred/handlers/user.py +5 -4
  22. moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +1 -1
  23. moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +1 -1
  24. moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +1 -1
  25. moai_adk/templates/.claude/settings.json +42 -2
  26. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/SKILL.md +480 -0
  27. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/examples.md +257 -0
  28. moai_adk/templates/.claude/skills/moai-alfred-interactive-questions/reference.md +120 -0
  29. moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +249 -0
  30. moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
  31. moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +278 -0
  32. moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
  33. moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +287 -0
  34. moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
  35. moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +232 -0
  36. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
  37. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
  38. moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
  39. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +179 -0
  40. moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
  41. moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +296 -0
  42. moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
  43. moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +243 -0
  44. moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
  45. moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +271 -0
  46. moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
  47. moai_adk/templates/.claude/skills/moai-skill-factory/EXAMPLES.md +261 -35
  48. moai_adk/templates/.claude/skills/moai-skill-factory/INTERACTIVE-DISCOVERY.md +15 -15
  49. moai_adk/templates/.claude/skills/moai-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
  50. moai_adk/templates/.claude/skills/moai-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
  51. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
  52. moai_adk/templates/.claude/skills/moai-skill-factory/SKILL.md +33 -33
  53. moai_adk/templates/.claude/skills/moai-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
  54. moai_adk/templates/.claude/skills/moai-skill-factory/reference.md +438 -42
  55. moai_adk/templates/.claude/skills/moai-spec-authoring/README.md +129 -0
  56. moai_adk/templates/.claude/skills/moai-spec-authoring/SKILL.md +1300 -0
  57. moai_adk/templates/.claude/skills/moai-spec-authoring/examples/validate-spec.sh +161 -0
  58. moai_adk/templates/CLAUDE.md +101 -93
  59. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/METADATA +537 -146
  60. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/RECORD +63 -73
  61. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +0 -113
  62. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/examples.md +0 -29
  63. moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/reference.md +0 -28
  64. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +0 -113
  65. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/examples.md +0 -29
  66. moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/reference.md +0 -28
  67. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +0 -113
  68. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/examples.md +0 -29
  69. moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/reference.md +0 -28
  70. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +0 -113
  71. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/examples.md +0 -29
  72. moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/reference.md +0 -28
  73. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +0 -635
  74. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +0 -992
  75. moai_adk/templates/.claude/skills/moai-alfred-tui-survey/reference.md +0 -801
  76. moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +0 -121
  77. moai_adk/templates/.claude/skills/moai-claude-code/examples.md +0 -29
  78. moai_adk/templates/.claude/skills/moai-claude-code/reference.md +0 -28
  79. moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +0 -332
  80. moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +0 -384
  81. moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +0 -363
  82. moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +0 -595
  83. moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +0 -496
  84. moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +0 -123
  85. moai_adk/templates/.claude/skills/moai-lang-clojure/examples.md +0 -29
  86. moai_adk/templates/.claude/skills/moai-lang-clojure/reference.md +0 -30
  87. moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +0 -124
  88. moai_adk/templates/.claude/skills/moai-lang-elixir/examples.md +0 -29
  89. moai_adk/templates/.claude/skills/moai-lang-elixir/reference.md +0 -31
  90. moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +0 -124
  91. moai_adk/templates/.claude/skills/moai-lang-haskell/examples.md +0 -29
  92. moai_adk/templates/.claude/skills/moai-lang-haskell/reference.md +0 -31
  93. moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +0 -123
  94. moai_adk/templates/.claude/skills/moai-lang-julia/examples.md +0 -29
  95. moai_adk/templates/.claude/skills/moai-lang-julia/reference.md +0 -30
  96. moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +0 -123
  97. moai_adk/templates/.claude/skills/moai-lang-lua/examples.md +0 -29
  98. moai_adk/templates/.claude/skills/moai-lang-lua/reference.md +0 -30
  99. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/WHEEL +0 -0
  100. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/entry_points.txt +0 -0
  101. {moai_adk-0.4.7.dist-info → moai_adk-0.4.8.dist-info}/licenses/LICENSE +0 -0
@@ -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
@@ -0,0 +1,287 @@
1
+ ---
2
+ name: "Designing Slash Commands for Claude Code"
3
+ description: "Create and optimize slash commands with proper argument parsing, tool permissions, and agent orchestration. Use when building workflow entry points, automation commands, or user-facing shortcuts."
4
+ allowed-tools: "Read, Write, Edit, Glob, Bash"
5
+ ---
6
+
7
+ # Designing Slash Commands
8
+
9
+ Slash commands are user-facing entry points that orchestrate sub-agents, manage approvals, and coordinate multi-step workflows. They follow the Plan → Execute → Sync cadence.
10
+
11
+ ## Command File Structure
12
+
13
+ **Location**: `.claude/commands/`
14
+
15
+ ```yaml
16
+ ---
17
+ name: command-name
18
+ description: Brief description of what the command does
19
+ argument-hint: "[param1] [param2] [optional-param]"
20
+ tools: Read, Write, Task, Bash(git:*)
21
+ model: sonnet
22
+ ---
23
+
24
+ # Command Title
25
+
26
+ Brief description of functionality.
27
+
28
+ ## Usage
29
+
30
+ - `/command-name param1 param2` — Basic usage
31
+ - Parameter descriptions
32
+ - Expected behavior
33
+
34
+ ## Agent Orchestration
35
+
36
+ 1. Call specific agent for task
37
+ 2. Handle results
38
+ 3. Provide user feedback
39
+ ```
40
+
41
+ ## Command Design Patterns
42
+
43
+ ### Pattern 1: Planning Command
44
+ ```yaml
45
+ ---
46
+ name: /alfred:1-plan
47
+ description: Write SPEC requirements in EARS syntax
48
+ argument-hint: "[title]"
49
+ tools: Read, Write, Task
50
+ model: sonnet
51
+ ---
52
+
53
+ # SPEC Planning Command
54
+
55
+ Initiates SPEC authoring via spec-builder sub-agent.
56
+
57
+ ## Usage
58
+
59
+ `/alfred:1-plan "User authentication system"`
60
+
61
+ ## Agent Orchestration
62
+
63
+ 1. Invoke spec-builder agent
64
+ 2. Gather requirements via EARS patterns
65
+ 3. Create SPEC file in `.moai/specs/`
66
+ 4. Suggest next step: `/alfred:2-run`
67
+ ```
68
+
69
+ ### Pattern 2: Code Review Command
70
+ ```yaml
71
+ ---
72
+ name: /review-code
73
+ description: Trigger automated code review with quality analysis
74
+ argument-hint: "[file-pattern] [--strict]"
75
+ tools: Read, Glob, Grep, Task
76
+ model: sonnet
77
+ ---
78
+
79
+ # Code Review Command
80
+
81
+ Analyzes code quality against TRUST 5 principles.
82
+
83
+ ## Usage
84
+
85
+ - `/review-code src/**/*.ts` — Review TypeScript files
86
+ - `/review-code . --strict` — Strict mode (fail on warnings)
87
+
88
+ ## Agent Orchestration
89
+
90
+ 1. Scan files matching pattern
91
+ 2. Invoke code-reviewer agent
92
+ 3. Generate report with findings
93
+ 4. Suggest fixes with severity levels
94
+ ```
95
+
96
+ ### Pattern 3: Deployment Command
97
+ ```yaml
98
+ ---
99
+ name: /deploy
100
+ description: Deploy application with safety gates
101
+ argument-hint: "[env] [--force]"
102
+ tools: Read, Write, Task, Bash(git:*)
103
+ model: haiku
104
+ ---
105
+
106
+ # Deployment Command
107
+
108
+ Orchestrates multi-step deployment with approval gates.
109
+
110
+ ## Usage
111
+
112
+ - `/deploy staging` — Deploy to staging
113
+ - `/deploy production --force` — Force production deploy
114
+
115
+ ## Agent Orchestration
116
+
117
+ 1. Validate deployment readiness
118
+ 2. Run pre-deployment checks
119
+ 3. Ask for user approval
120
+ 4. Execute deployment
121
+ 5. Monitor post-deployment
122
+ ```
123
+
124
+ ## Argument Parsing Pattern
125
+
126
+ ```bash
127
+ # Inside command execution
128
+ $ARGUMENTS # Entire argument string
129
+ $1, $2, $3 # Individual arguments
130
+ $@ # All arguments as array
131
+
132
+ # Example: /my-command arg1 arg2 --flag
133
+ # $ARGUMENTS = "arg1 arg2 --flag"
134
+ # $1 = "arg1"
135
+ # $2 = "arg2"
136
+ # $3 = "--flag"
137
+ ```
138
+
139
+ ## High-Freedom: Orchestration Strategies
140
+
141
+ ### Sequential Execution
142
+ ```
143
+ Command: /plan-and-implement
144
+ ├─ Phase 1: spec-builder (SPEC creation)
145
+ └─ Phase 2: code-builder (TDD implementation)
146
+ ```
147
+
148
+ ### Parallel Execution
149
+ ```
150
+ Command: /analyze-project
151
+ ├─ Agent 1: security-auditor (vulnerability scan)
152
+ ├─ Agent 2: performance-analyzer (bottleneck detection)
153
+ └─ Agent 3: architecture-reviewer (design review)
154
+ ```
155
+
156
+ ### Conditional Branching
157
+ ```
158
+ Command: /fix-errors
159
+ ├─ Check: Are tests failing?
160
+ │ ├─ YES → debug-helper agent
161
+ │ └─ NO → suggest next steps
162
+ ```
163
+
164
+ ## Medium-Freedom: Command Templates
165
+
166
+ ### Status Check Command
167
+ ```yaml
168
+ name: /status
169
+ description: Show project status summary
170
+ argument-hint: "[--verbose]"
171
+ tools: Read, Bash(git:*)
172
+ model: haiku
173
+ ---
174
+
175
+ # Status Check
176
+
177
+ Displays project health: SPEC status, test results, Git state.
178
+
179
+ ## Checks
180
+
181
+ 1. SPEC completeness
182
+ 2. Test coverage
183
+ 3. Git branch status
184
+ 4. Recent commits
185
+ 5. TODO items
186
+ ```
187
+
188
+ ### Bulk Operation Command
189
+ ```yaml
190
+ name: /migrate
191
+ description: Run migration across multiple files
192
+ argument-hint: "[from] [to] [--preview]"
193
+ tools: Read, Glob, Bash
194
+ model: sonnet
195
+ ---
196
+
197
+ # Migration Command
198
+
199
+ Migrates code patterns across project.
200
+
201
+ ## Usage
202
+
203
+ - `/migrate v1-api v2-api --preview` — Show changes without applying
204
+ - `/migrate v1-api v2-api` — Apply migration
205
+ ```
206
+
207
+ ## Low-Freedom: Safety & Approval Patterns
208
+
209
+ ### Approval Gate Pattern
210
+ ```bash
211
+ # Inside command execution
212
+
213
+ echo "🔴 This action is destructive. Review carefully:"
214
+ echo " • Will delete 10 files"
215
+ echo " • Cannot be undone"
216
+ echo ""
217
+ read -p "Type 'yes' to confirm: " confirm
218
+
219
+ if [[ "$confirm" != "yes" ]]; then
220
+ echo "❌ Cancelled"
221
+ exit 1
222
+ fi
223
+
224
+ # Execute dangerous operation
225
+ ```
226
+
227
+ ### Dry-Run Pattern
228
+ ```bash
229
+ if [[ "${3:-}" == "--preview" ]]; then
230
+ echo "🔍 Preview mode (no changes)"
231
+ # Show what would happen
232
+ exit 0
233
+ fi
234
+
235
+ # Execute actual changes
236
+ ```
237
+
238
+ ## Command Registry
239
+
240
+ ```bash
241
+ # List all commands
242
+ /commands
243
+
244
+ # View command details
245
+ /commands view /deploy
246
+
247
+ # Create new command
248
+ /commands create
249
+
250
+ # Edit command
251
+ /commands edit /deploy
252
+
253
+ # Delete command
254
+ /commands delete /deploy
255
+ ```
256
+
257
+ ## Command Validation Checklist
258
+
259
+ - [ ] `name` is kebab-case (e.g., `/review-code`)
260
+ - [ ] `description` clearly explains purpose
261
+ - [ ] `argument-hint` shows expected parameters
262
+ - [ ] `tools` list is minimal and justified
263
+ - [ ] `model` is `haiku` or `sonnet`
264
+ - [ ] Agent orchestration is clearly defined
265
+ - [ ] Arguments are properly parsed
266
+ - [ ] Safety gates are in place for dangerous operations
267
+ - [ ] Feedback to user is clear and actionable
268
+
269
+ ## Best Practices
270
+
271
+ ✅ **DO**:
272
+ - Design commands around workflows, not tools
273
+ - Use agents for complex logic
274
+ - Include preview/dry-run modes for risky operations
275
+ - Provide clear feedback at each step
276
+ - Link to next command in suggestions
277
+
278
+ ❌ **DON'T**:
279
+ - Make commands do too much (limit to 1 coherent workflow)
280
+ - Require multiple parameters without defaults
281
+ - Skip approval gates for destructive operations
282
+ - Leave users guessing what happened
283
+
284
+ ---
285
+
286
+ **Reference**: Claude Code Slash Commands documentation
287
+ **Version**: 1.0.0
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: command-name
3
+ description: Brief description of what the command does
4
+ argument-hint: "[param1] [param2]"
5
+ tools: Read, Write, Task
6
+ model: sonnet
7
+ ---
8
+
9
+ # Command Title
10
+
11
+ Brief description of functionality.
12
+
13
+ ## Usage
14
+
15
+ `/command-name param1 param2` — Basic usage
16
+
17
+ ## Agent Orchestration
18
+
19
+ 1. Call specific agent for task
20
+ 2. Handle results
21
+ 3. Provide user feedback