@hustle-together/api-dev-tools 3.10.0 → 3.11.1

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.
Files changed (97) hide show
  1. package/.claude/api-dev-state.json +159 -0
  2. package/.claude/commands/README.md +185 -0
  3. package/.claude/commands/add-command.md +209 -0
  4. package/.claude/commands/api-create.md +499 -0
  5. package/.claude/commands/api-env.md +50 -0
  6. package/.claude/commands/api-interview.md +331 -0
  7. package/.claude/commands/api-research.md +331 -0
  8. package/.claude/commands/api-status.md +259 -0
  9. package/.claude/commands/api-verify.md +231 -0
  10. package/.claude/commands/beepboop.md +97 -0
  11. package/.claude/commands/busycommit.md +112 -0
  12. package/.claude/commands/commit.md +83 -0
  13. package/.claude/commands/cycle.md +142 -0
  14. package/.claude/commands/gap.md +86 -0
  15. package/.claude/commands/green.md +142 -0
  16. package/.claude/commands/issue.md +192 -0
  17. package/.claude/commands/plan.md +168 -0
  18. package/.claude/commands/pr.md +122 -0
  19. package/.claude/commands/red.md +142 -0
  20. package/.claude/commands/refactor.md +142 -0
  21. package/.claude/commands/spike.md +142 -0
  22. package/.claude/commands/summarize.md +94 -0
  23. package/.claude/commands/tdd.md +144 -0
  24. package/.claude/commands/worktree-add.md +315 -0
  25. package/.claude/commands/worktree-cleanup.md +281 -0
  26. package/.claude/hooks/api-workflow-check.py +227 -0
  27. package/.claude/hooks/enforce-deep-research.py +185 -0
  28. package/.claude/hooks/enforce-disambiguation.py +155 -0
  29. package/.claude/hooks/enforce-documentation.py +192 -0
  30. package/.claude/hooks/enforce-environment.py +253 -0
  31. package/.claude/hooks/enforce-external-research.py +328 -0
  32. package/.claude/hooks/enforce-interview.py +421 -0
  33. package/.claude/hooks/enforce-refactor.py +189 -0
  34. package/.claude/hooks/enforce-research.py +159 -0
  35. package/.claude/hooks/enforce-schema.py +186 -0
  36. package/.claude/hooks/enforce-scope.py +160 -0
  37. package/.claude/hooks/enforce-tdd-red.py +250 -0
  38. package/.claude/hooks/enforce-verify.py +186 -0
  39. package/.claude/hooks/periodic-reground.py +154 -0
  40. package/.claude/hooks/session-startup.py +151 -0
  41. package/.claude/hooks/track-tool-use.py +626 -0
  42. package/.claude/hooks/verify-after-green.py +282 -0
  43. package/.claude/hooks/verify-implementation.py +225 -0
  44. package/.claude/research/index.json +6 -0
  45. package/.claude/settings.json +93 -0
  46. package/.claude/settings.local.json +11 -0
  47. package/.claude-plugin/marketplace.json +112 -0
  48. package/.skills/README.md +291 -0
  49. package/.skills/_shared/convert-commands.py +192 -0
  50. package/.skills/_shared/hooks/api-workflow-check.py +227 -0
  51. package/.skills/_shared/hooks/enforce-deep-research.py +185 -0
  52. package/.skills/_shared/hooks/enforce-disambiguation.py +155 -0
  53. package/.skills/_shared/hooks/enforce-documentation.py +192 -0
  54. package/.skills/_shared/hooks/enforce-environment.py +253 -0
  55. package/.skills/_shared/hooks/enforce-external-research.py +328 -0
  56. package/.skills/_shared/hooks/enforce-interview.py +421 -0
  57. package/.skills/_shared/hooks/enforce-refactor.py +189 -0
  58. package/.skills/_shared/hooks/enforce-research.py +159 -0
  59. package/.skills/_shared/hooks/enforce-schema.py +186 -0
  60. package/.skills/_shared/hooks/enforce-scope.py +160 -0
  61. package/.skills/_shared/hooks/enforce-tdd-red.py +250 -0
  62. package/.skills/_shared/hooks/enforce-verify.py +186 -0
  63. package/.skills/_shared/hooks/periodic-reground.py +154 -0
  64. package/.skills/_shared/hooks/session-startup.py +151 -0
  65. package/.skills/_shared/hooks/track-tool-use.py +626 -0
  66. package/.skills/_shared/hooks/verify-after-green.py +282 -0
  67. package/.skills/_shared/hooks/verify-implementation.py +225 -0
  68. package/.skills/_shared/install.sh +114 -0
  69. package/.skills/_shared/settings.json +93 -0
  70. package/.skills/add-command/SKILL.md +222 -0
  71. package/.skills/api-create/SKILL.md +512 -0
  72. package/.skills/api-env/SKILL.md +63 -0
  73. package/.skills/api-interview/SKILL.md +344 -0
  74. package/.skills/api-research/SKILL.md +344 -0
  75. package/.skills/api-status/SKILL.md +272 -0
  76. package/.skills/api-verify/SKILL.md +244 -0
  77. package/.skills/beepboop/SKILL.md +110 -0
  78. package/.skills/busycommit/SKILL.md +125 -0
  79. package/.skills/commit/SKILL.md +96 -0
  80. package/.skills/cycle/SKILL.md +155 -0
  81. package/.skills/gap/SKILL.md +99 -0
  82. package/.skills/green/SKILL.md +155 -0
  83. package/.skills/issue/SKILL.md +205 -0
  84. package/.skills/plan/SKILL.md +181 -0
  85. package/.skills/pr/SKILL.md +135 -0
  86. package/.skills/red/SKILL.md +155 -0
  87. package/.skills/refactor/SKILL.md +155 -0
  88. package/.skills/spike/SKILL.md +155 -0
  89. package/.skills/summarize/SKILL.md +107 -0
  90. package/.skills/tdd/SKILL.md +157 -0
  91. package/.skills/update-todos/SKILL.md +228 -0
  92. package/.skills/worktree-add/SKILL.md +328 -0
  93. package/.skills/worktree-cleanup/SKILL.md +294 -0
  94. package/CHANGELOG.md +97 -0
  95. package/README.md +66 -20
  96. package/bin/cli.js +7 -6
  97. package/package.json +22 -11
@@ -0,0 +1,272 @@
1
+ ---
2
+ name: api-status
3
+ description: Track implementation progress through 13 phases. Shows completed, in-progress, and pending phases. Displays interview decisions and research cache info. Keywords: status, progress, tracking, phases, workflow
4
+ license: MIT
5
+ compatibility: Requires Claude Code with MCP servers (Context7, GitHub), Python 3.9+ for hooks, pnpm 10.11.0+
6
+ metadata:
7
+ version: "3.0.0"
8
+ category: "workflow"
9
+ tags: ['status', 'progress', 'tracking', 'workflow']
10
+ author: "Hustle Together"
11
+ allowed-tools: WebSearch WebFetch mcp__context7 mcp__github AskUserQuestion Read Write Edit Bash TodoWrite
12
+ ---
13
+
14
+ # API Status - Track Implementation Progress
15
+
16
+ **Usage:** `/api-status [endpoint-name]` or `/api-status --all`
17
+
18
+ **Purpose:** View and update API implementation status, track progress, and manage V2 migration.
19
+
20
+ ## State File Integration
21
+
22
+ This command reads from `.claude/api-dev-state.json` which is automatically updated by the enforcement hooks.
23
+
24
+ ### Reading Current State
25
+
26
+ **FIRST: Read the state file to understand current progress:**
27
+
28
+ ```
29
+ Tool: Read
30
+ Path: .claude/api-dev-state.json
31
+ ```
32
+
33
+ Parse the JSON and display a formatted status report showing:
34
+ - Current endpoint being worked on
35
+ - Phase completion status (scope, research, interview, TDD, docs)
36
+ - Sources consulted during research
37
+ - Timestamps for each phase
38
+ - Verification status
39
+
40
+ ### Example State Display
41
+
42
+ ```
43
+ 📊 API Development Progress
44
+
45
+ Endpoint: stream-text
46
+ Library: vercel-ai-sdk
47
+ Started: 2025-12-06T20:00:00Z
48
+
49
+ PHASES:
50
+ ✅ Scope defined (20:00:30)
51
+ ✅ Initial research - 4 sources consulted (20:02:00)
52
+ 🔄 Interview - in progress
53
+ ⬜ Deep research
54
+ ⬜ Schema creation
55
+ ⬜ Environment check
56
+ ⬜ TDD Red
57
+ ⬜ TDD Green
58
+ ⬜ TDD Refactor
59
+ ⬜ Documentation
60
+
61
+ RESEARCH SOURCES:
62
+ • context7: @ai-sdk/core (20:01:00)
63
+ • websearch: "Vercel AI SDK streamText 2025" (20:01:30)
64
+ • webfetch: https://sdk.vercel.ai/docs (20:01:45)
65
+
66
+ VERIFICATION:
67
+ ❌ All sources fetched: false
68
+ ❌ Schema matches docs: false
69
+ ❌ Tests cover params: false
70
+ ❌ All tests passing: false
71
+ ```
72
+
73
+ ## What This Shows
74
+
75
+ ### For Specific Endpoint
76
+ ```
77
+ 📊 Status: /api/v2/generate-css
78
+
79
+ Phase: ✅ Complete
80
+ Tests: 33/33 passing (100% coverage)
81
+ Documentation: ✅ Complete
82
+
83
+ Timeline:
84
+ ✅ Interview completed (2025-12-06)
85
+ ✅ Research completed (2025-12-06)
86
+ ✅ Environment verified (2025-12-06)
87
+ ✅ Tests written (Red phase)
88
+ ✅ Implementation complete (Green phase)
89
+ ✅ Refactored (Refactor phase)
90
+ ✅ Documentation updated
91
+ ✅ Committed to git
92
+
93
+ Files:
94
+ - Route: src/app/api/v2/generate-css/route.ts
95
+ - Tests: src/app/api/v2/generate-css/__tests__/generate-css.api.test.ts
96
+ - Docs: src/v2/docs/endpoints/generate-css.md
97
+ - Research: src/v2/docs/research/gemini-flash.md
98
+
99
+ Next Steps: None - endpoint complete
100
+ ```
101
+
102
+ ### For All Endpoints
103
+ ```
104
+ 📊 V2 API Implementation Status
105
+
106
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
107
+
108
+ ✅ COMPLETE (2)
109
+ • /api/v2/health (15 tests)
110
+ • /api/v2/monitor (23 tests)
111
+
112
+ 🚧 IN PROGRESS (1)
113
+ • /api/v2/generate-css (interview complete, implementing)
114
+
115
+ 📋 PLANNED (3)
116
+ • /api/v2/generate-html
117
+ • /api/v2/chat
118
+ • /api/v2/scrape
119
+
120
+ ❌ NOT STARTED (0)
121
+
122
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
123
+
124
+ Summary:
125
+ Total endpoints: 6
126
+ Complete: 2 (33%)
127
+ In progress: 1 (17%)
128
+ Planned: 3 (50%)
129
+ Total tests: 38
130
+ Coverage: 100%
131
+
132
+ Last updated: 2025-12-06
133
+ ```
134
+
135
+ ## Commands
136
+
137
+ ### View Status
138
+ ```bash
139
+ /api-status generate-css # Specific endpoint
140
+ /api-status --all # All endpoints
141
+ ```
142
+
143
+ ### Update Status
144
+ ```bash
145
+ /api-status generate-css --phase=testing
146
+ /api-status generate-css --complete
147
+ ```
148
+
149
+ ## Status Tracking File
150
+
151
+ Updates: `/src/v2/docs/v2-api-implementation-status.md`
152
+
153
+ **Format:**
154
+ ```markdown
155
+ # V2 API Implementation Status
156
+
157
+ **Last Updated:** 2025-12-06
158
+ **Total Endpoints:** 6
159
+ **Completed:** 2 (33%)
160
+
161
+ ## Endpoints
162
+
163
+ ### ✅ /api/v2/health
164
+ - **Status:** Complete
165
+ - **Tests:** 15/15 passing
166
+ - **Coverage:** 100%
167
+ - **Interview:** [Link to docs]
168
+ - **Implemented:** 2025-12-06
169
+ - **Purpose:** System health check with dependency validation
170
+
171
+ ### 🚧 /api/v2/generate-css
172
+ - **Status:** In Progress (Testing)
173
+ - **Tests:** 20/33 passing
174
+ - **Coverage:** 85%
175
+ - **Interview:** [Link to docs]
176
+ - **Started:** 2025-12-06
177
+ - **Blocked by:** None
178
+ - **Next:** Complete remaining tests
179
+
180
+ ### 📋 /api/v2/generate-html
181
+ - **Status:** Planned
182
+ - **Priority:** High
183
+ - **Dependencies:** None
184
+ - **Interview:** Not started
185
+ - **Estimated effort:** Medium
186
+ ```
187
+
188
+ ## Integration with Workflow
189
+
190
+ ### After Interview
191
+ ```bash
192
+ /api-interview generate-css
193
+ /api-status generate-css --phase=interview-complete
194
+ ```
195
+
196
+ ### After Research
197
+ ```bash
198
+ /api-research gemini-flash
199
+ /api-status generate-css --phase=research-complete
200
+ ```
201
+
202
+ ### After TDD Cycle
203
+ ```bash
204
+ /cycle generate CSS with Gemini
205
+ /api-status generate-css --complete
206
+ ```
207
+
208
+ ### Before Commit
209
+ ```bash
210
+ pnpm test:run
211
+ /api-status --all # Verify all green
212
+ /commit
213
+ ```
214
+
215
+ ## Automatic Updates
216
+
217
+ The `/api-create` command automatically updates status:
218
+ - Interview phase → "Interview Complete"
219
+ - Red phase → "Tests Written"
220
+ - Green phase → "Implementation Complete"
221
+ - Refactor phase → "Refactored"
222
+ - Documentation → "Documentation Updated"
223
+ - Commit → "Complete"
224
+
225
+ ## Status Phases
226
+
227
+ 1. **Not Started** - No work begun
228
+ 2. **Interview Complete** - Understanding documented
229
+ 3. **Research Complete** - External docs reviewed
230
+ 4. **Environment Ready** - API keys verified
231
+ 5. **Tests Written** - Red phase complete
232
+ 6. **Implementation Complete** - Green phase complete
233
+ 7. **Refactored** - Code cleaned up
234
+ 8. **Documentation Updated** - Manifests updated
235
+ 9. **Complete** - All tests passing, committed
236
+
237
+ ## Reports
238
+
239
+ ### Coverage Report
240
+ ```bash
241
+ /api-status --coverage
242
+ ```
243
+ Shows test coverage for all V2 endpoints.
244
+
245
+ ### Migration Report
246
+ ```bash
247
+ /api-status --migration
248
+ ```
249
+ Shows progress from legacy to V2.
250
+
251
+ ### Blockers Report
252
+ ```bash
253
+ /api-status --blocked
254
+ ```
255
+ Shows endpoints blocked by missing keys, dependencies, etc.
256
+
257
+ <claude-commands-template>
258
+ ## Status Management
259
+
260
+ - Update status after each phase completion
261
+ - Keep v2-api-implementation-status.md current
262
+ - Use status to plan next work
263
+ - Reference in standup/progress reports
264
+ - Track blockers and dependencies
265
+
266
+ ## Integration Points
267
+
268
+ - Used by /api-create to track progress
269
+ - Used by /commit to verify readiness
270
+ - Used by team to see what's done
271
+ - Used for planning future work
272
+ </claude-commands-template>
@@ -0,0 +1,244 @@
1
+ ---
2
+ name: api-verify
3
+ description: Manual Phase 10 verification - re-research documentation after tests pass to catch memory-based implementation errors. Compares implementation to docs, reports gaps. Use after TDD Green phase. Keywords: verification, testing, documentation, gaps, quality
4
+ license: MIT
5
+ compatibility: Requires Claude Code with MCP servers (Context7, GitHub), Python 3.9+ for hooks, pnpm 10.11.0+
6
+ metadata:
7
+ version: "3.0.0"
8
+ category: "testing"
9
+ tags: ['verification', 'testing', 'documentation', 'quality']
10
+ author: "Hustle Together"
11
+ allowed-tools: WebSearch WebFetch mcp__context7 mcp__github AskUserQuestion Read Write Edit Bash TodoWrite
12
+ ---
13
+
14
+ # API Verify - Implementation Verification (Phase 10) v3.0
15
+
16
+ **Usage:** `/api-verify [endpoint-name]`
17
+
18
+ **Purpose:** Manually trigger Phase 10 verification - re-research documentation and compare to implementation to catch memory-based errors.
19
+
20
+ ## When to Use
21
+
22
+ - After tests pass (TDD Green complete)
23
+ - Before proceeding to Refactor phase
24
+ - When unsure if implementation matches documentation
25
+ - After significant time has passed since initial research
26
+
27
+ ## Verification Process
28
+
29
+ ### Step 1: Re-Read Original Documentation
30
+
31
+ ```
32
+ ┌────────────────────────────────────────────────────────────┐
33
+ │ RE-RESEARCHING DOCUMENTATION │
34
+ │ │
35
+ │ Fetching current documentation for: [endpoint-name] │
36
+ │ │
37
+ │ Sources: │
38
+ │ - Context7: [library-name] │
39
+ │ - Official docs: [URL] │
40
+ │ - Cached research: .claude/research/[api]/CURRENT.md │
41
+ │ │
42
+ │ Freshness: [X days old] │
43
+ └────────────────────────────────────────────────────────────┘
44
+ ```
45
+
46
+ ### Step 2: Feature-by-Feature Comparison
47
+
48
+ ```
49
+ ┌────────────────────────────────────────────────────────────┐
50
+ │ IMPLEMENTATION VERIFICATION │
51
+ │ │
52
+ │ Comparing documentation to implementation: │
53
+ │ │
54
+ │ │ Feature │ In Docs │ Implemented │ Status │
55
+ │ ├─────────────────┼─────────┼─────────────┼───────────────│
56
+ │ │ domain param │ ✓ │ ✓ │ ✅ Match │
57
+ │ │ format param │ 4 opts │ 3 opts │ ⚠️ Missing │
58
+ │ │ quality range │ 1-100 │ 1-100 │ ✅ Match │
59
+ │ │ size param │ ✓ │ ✗ │ ⚠️ Missing │
60
+ │ │ webhook support │ ✓ │ ✗ │ ℹ️ Intentional │
61
+ │ │ batch mode │ ✓ │ ✗ │ ℹ️ Intentional │
62
+ │ │
63
+ │ MATCHES: 2 │
64
+ │ MISSING: 2 │
65
+ │ INTENTIONAL OMISSIONS: 2 │
66
+ └────────────────────────────────────────────────────────────┘
67
+ ```
68
+
69
+ ### Step 3: Gap Analysis
70
+
71
+ For each discrepancy:
72
+
73
+ ```
74
+ ┌────────────────────────────────────────────────────────────┐
75
+ │ GAP #1: format parameter │
76
+ │ │
77
+ │ Documentation says: ["json", "svg", "png", "raw"] │
78
+ │ Implementation has: ["json", "svg", "png"] │
79
+ │ │
80
+ │ Missing: "raw" format │
81
+ │ │
82
+ │ Action? │
83
+ │ [x] Fix - Add "raw" format support │
84
+ │ [ ] Skip - Mark as intentional omission │
85
+ │ [ ] Defer - Add to backlog for later │
86
+ └────────────────────────────────────────────────────────────┘
87
+
88
+ ┌────────────────────────────────────────────────────────────┐
89
+ │ GAP #2: size parameter │
90
+ │ │
91
+ │ Documentation says: size parameter exists (16-4096) │
92
+ │ Implementation has: not implemented │
93
+ │ │
94
+ │ Action? │
95
+ │ [x] Fix - Add size parameter │
96
+ │ [ ] Skip - Mark as intentional omission │
97
+ │ [ ] Defer - Add to backlog for later │
98
+ └────────────────────────────────────────────────────────────┘
99
+ ```
100
+
101
+ ### Step 4: Loop Back or Proceed
102
+
103
+ ```
104
+ ┌────────────────────────────────────────────────────────────┐
105
+ │ VERIFICATION SUMMARY │
106
+ │ │
107
+ │ Gaps to fix: 2 │
108
+ │ Intentional omissions: 2 │
109
+ │ │
110
+ │ DECISION: │
111
+ │ │
112
+ │ [x] Fix gaps → Return to TDD Red (write tests for gaps) │
113
+ │ [ ] Skip all → Document as omissions, proceed to Refactor │
114
+ └────────────────────────────────────────────────────────────┘
115
+ ```
116
+
117
+ ## State File Updates
118
+
119
+ ```json
120
+ {
121
+ "phases": {
122
+ "verify": {
123
+ "status": "complete",
124
+ "gaps_found": 2,
125
+ "gaps_fixed": 2,
126
+ "intentional_omissions": [
127
+ {
128
+ "feature": "webhook support",
129
+ "reason": "User declined in interview",
130
+ "documented_at": "..."
131
+ },
132
+ {
133
+ "feature": "batch mode",
134
+ "reason": "Out of scope for v1",
135
+ "documented_at": "..."
136
+ }
137
+ ],
138
+ "re_research_done": true,
139
+ "completed_at": "..."
140
+ }
141
+ }
142
+ }
143
+ ```
144
+
145
+ ## Verification Report
146
+
147
+ Creates: `.claude/research/[api-name]/verification.md`
148
+
149
+ ```markdown
150
+ # Verification Report: [API Name]
151
+
152
+ **Date:** [current-date]
153
+ **Implementation File:** src/app/api/v2/[endpoint]/route.ts
154
+ **Test File:** src/app/api/v2/[endpoint]/__tests__/[endpoint].api.test.ts
155
+
156
+ ## Documentation Sources Re-Checked
157
+
158
+ | Source | URL | Checked |
159
+ |--------|-----|---------|
160
+ | Official docs | [URL] | ✓ |
161
+ | Context7 | [library] | ✓ |
162
+ | Cached research | .claude/research/[api]/CURRENT.md | ✓ |
163
+
164
+ ## Feature Comparison
165
+
166
+ | Feature | In Docs | Implemented | Status |
167
+ |---------|---------|-------------|--------|
168
+ | domain param | ✓ | ✓ | ✅ Match |
169
+ | format param | 4 options | 3 options | ⚠️ Fixed |
170
+ | size param | ✓ | ✓ | ⚠️ Fixed |
171
+ | webhook | ✓ | ✗ | ℹ️ Intentional |
172
+
173
+ ## Gaps Fixed
174
+
175
+ 1. **format parameter** - Added "raw" format support
176
+ - Test added: test/format-raw.test.ts:15
177
+ - Implementation: route.ts:45
178
+
179
+ 2. **size parameter** - Added size validation
180
+ - Test added: test/size-param.test.ts:10
181
+ - Implementation: route.ts:52
182
+
183
+ ## Intentional Omissions
184
+
185
+ 1. **webhook support**
186
+ - Reason: User declined in interview (Phase 4)
187
+ - Decision recorded: api-dev-state.json
188
+ - May add in v2
189
+
190
+ 2. **batch mode**
191
+ - Reason: Out of scope for initial release
192
+ - Documented for future consideration
193
+
194
+ ## Verification Result
195
+
196
+ - **Status:** PASSED
197
+ - **All documented features accounted for**
198
+ - **Ready for Refactor phase**
199
+ ```
200
+
201
+ ## Hook Integration
202
+
203
+ This command is normally triggered automatically by `verify-after-green.py` hook after tests pass.
204
+
205
+ Manual invocation is useful when:
206
+ - Hook was skipped or didn't trigger
207
+ - Want to re-verify after changes
208
+ - Research is stale and needs refresh
209
+
210
+ ## Workflow Position
211
+
212
+ ```
213
+ Phase 8: TDD Red (write tests)
214
+
215
+
216
+ Phase 9: TDD Green (implementation)
217
+
218
+
219
+ Phase 10: VERIFY ← /api-verify triggers this
220
+
221
+ ├─► Gaps found? → Loop back to Phase 8
222
+
223
+ └─► All verified → Proceed to Phase 11 (Refactor)
224
+ ```
225
+
226
+ <claude-commands-template>
227
+ ## Verification Guidelines
228
+
229
+ 1. **Re-read, don't remember** - Fresh fetch of docs every time
230
+ 2. **Feature-by-feature** - Systematic comparison
231
+ 3. **Document omissions** - Intentional != forgotten
232
+ 4. **Loop back for gaps** - Return to TDD Red if fixes needed
233
+ 5. **Update state file** - Track everything
234
+ 6. **Create verification report** - Audit trail
235
+
236
+ ## Common Gaps to Check
237
+
238
+ - Parameter counts match?
239
+ - Enum options complete?
240
+ - Range boundaries correct?
241
+ - Error codes handled?
242
+ - Optional features accounted for?
243
+ - Default values match docs?
244
+ </claude-commands-template>
@@ -0,0 +1,110 @@
1
+ ---
2
+ name: beepboop
3
+ description: Communicate AI-generated content with transparent attribution. Adds markers indicating AI authorship. Use when sharing AI-generated code or content. Keywords: attribution, transparency, ai-generated, ethics, communication
4
+ license: MIT
5
+ compatibility: Requires Claude Code with MCP servers (Context7, GitHub), Python 3.9+ for hooks, pnpm 10.11.0+
6
+ metadata:
7
+ version: "3.0.0"
8
+ category: "workflow"
9
+ tags: ['attribution', 'transparency', 'ai-generated', 'ethics']
10
+ author: "Hustle Together"
11
+ allowed-tools: WebSearch WebFetch mcp__context7 mcp__github AskUserQuestion Read Write Edit Bash TodoWrite
12
+ ---
13
+
14
+ ---
15
+ description: Communicate AI-generated content with transparent attribution
16
+ argument-hint: <task-description>
17
+ ---
18
+
19
+ # AI-Attributed Communication Command
20
+
21
+ Execute the user's requested task (e.g., posting PR comments, GitHub issue comments, or other communications through various MCPs), but frame the output with clear AI attribution.
22
+
23
+ ## General Guidelines
24
+
25
+ ### Output Style
26
+
27
+ - **Never explicitly mention TDD** in code, comments, commits, PRs, or issues
28
+ - Write natural, descriptive code without meta-commentary about the development process
29
+ - The code should speak for itself - TDD is the process, not the product
30
+
31
+ ## Instructions
32
+
33
+ Arguments: $ARGUMENTS
34
+
35
+ **IMPORTANT Communication Format:**
36
+
37
+ 1. **Opening**: Begin with "*Beep boop, I am Claude Code 🤖, my user has reviewed and approved the following written by me:*"
38
+ - Use italics for this line
39
+ - Clearly establishes AI authorship
40
+
41
+ 2. **Middle**: Perform the requested task (post comment, create review, etc.)
42
+ - Execute whatever communication task the user requested
43
+ - Write the actual content that accomplishes the user's goal
44
+
45
+ 3. **Closing**: End with "*Beep boop, Claude Code 🤖 out!*"
46
+ - Use italics for this line
47
+ - Provides clear closure
48
+
49
+ ## Purpose
50
+
51
+ This command ensures transparency about AI usage while maintaining that the user has reviewed and approved the content. It prevents offloading review responsibility to other users while being open about AI assistance.
52
+
53
+ ## Examples
54
+
55
+ - Posting a GitHub PR review comment
56
+ - Adding a comment to a GitHub issue
57
+ - Responding to feedback with AI-generated explanations
58
+ - Any communication where AI attribution is valuable
59
+
60
+
61
+ ## 🛡 Project Rules (Injected into every command)
62
+
63
+ 1. **NO BROKEN BUILDS:**
64
+ - Run `pnpm test` before every `/commit`
65
+ - Ensure all tests pass
66
+ - Fix any type errors immediately
67
+
68
+ 2. **API DEVELOPMENT:**
69
+ - All new APIs MUST have Zod request/response schemas
70
+ - All APIs MUST be documented in both:
71
+ - OpenAPI spec ([src/lib/openapi/](src/lib/openapi/))
72
+ - API test manifest ([src/app/api-test/api-tests-manifest.json](src/app/api-test/api-tests-manifest.json))
73
+ - Test ALL parameters and edge cases
74
+ - Include code examples and real-world outputs
75
+
76
+ 3. **TDD WORKFLOW:**
77
+ - ALWAYS use /red → /green → /refactor cycle
78
+ - NEVER write implementation without failing test first
79
+ - Use /cycle for feature development
80
+ - Use characterization tests for refactoring
81
+
82
+ 4. **API KEY MANAGEMENT:**
83
+ - Support three loading methods:
84
+ - Server environment variables
85
+ - NEXT_PUBLIC_ variables (client-side)
86
+ - Custom headers (X-OpenAI-Key, X-Anthropic-Key, etc.)
87
+ - Never hardcode API keys
88
+ - Always validate key availability before use
89
+
90
+ 5. **COMPREHENSIVE TESTING:**
91
+ - When researching APIs, read actual implementation code
92
+ - Discover ALL possible parameters (not just documented ones)
93
+ - Test with various parameter combinations
94
+ - Document custom headers, query params, request/response schemas
95
+ - Include validation rules and testing notes
96
+
97
+ 6. **NO UI BLOAT:**
98
+ - This is an API project with minimal frontend
99
+ - Only keep necessary test/documentation interfaces
100
+ - Delete unused components immediately
101
+ - No unnecessary UI libraries or features
102
+
103
+ 7. **DOCUMENTATION:**
104
+ - If you change an API, you MUST update:
105
+ - OpenAPI spec
106
+ - api-tests-manifest.json
107
+ - Code examples
108
+ - Testing notes
109
+ - Document expected behavior and edge cases
110
+ - Include real-world output examples