@namch/agent-assistant 1.0.0 → 1.0.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 (168) hide show
  1. package/README.md +83 -539
  2. package/agents/backend-engineer.md +0 -8
  3. package/agents/brainstormer.md +0 -6
  4. package/agents/business-analyst.md +0 -5
  5. package/agents/database-architect.md +0 -6
  6. package/agents/debugger.md +0 -6
  7. package/agents/designer.md +0 -5
  8. package/agents/devops-engineer.md +0 -7
  9. package/agents/docs-manager.md +0 -6
  10. package/agents/frontend-engineer.md +0 -7
  11. package/agents/game-engineer.md +0 -7
  12. package/agents/mobile-engineer.md +0 -7
  13. package/agents/performance-engineer.md +0 -7
  14. package/agents/planner.md +0 -6
  15. package/agents/project-manager.md +0 -6
  16. package/agents/researcher.md +0 -5
  17. package/agents/reviewer.md +0 -6
  18. package/agents/scouter.md +0 -6
  19. package/agents/security-engineer.md +0 -7
  20. package/agents/tech-lead.md +0 -7
  21. package/agents/tester.md +0 -5
  22. package/cli/README.md +19 -10
  23. package/documents/business/business-features.md +1 -1
  24. package/documents/business/business-prd.md +4 -4
  25. package/documents/knowledge-architecture.md +1 -1
  26. package/documents/knowledge-domain.md +1 -1
  27. package/documents/knowledge-overview.md +14 -29
  28. package/documents/knowledge-source-base.md +14 -14
  29. package/package.json +1 -1
  30. package/rules/QUICK-REFERENCE.md +4 -1
  31. package/rules/SKILL-DISCOVERY.md +37 -14
  32. package/skills/active-directory-attacks/SKILL.md +383 -0
  33. package/skills/active-directory-attacks/references/advanced-attacks.md +382 -0
  34. package/skills/agent-evaluation/SKILL.md +64 -0
  35. package/skills/agent-memory-mcp/SKILL.md +82 -0
  36. package/skills/agent-memory-systems/SKILL.md +67 -0
  37. package/skills/agent-tool-builder/SKILL.md +53 -0
  38. package/skills/ai-agents-architect/SKILL.md +90 -0
  39. package/skills/ai-product/SKILL.md +54 -0
  40. package/skills/ai-wrapper-product/SKILL.md +273 -0
  41. package/skills/api-documentation-generator/SKILL.md +484 -0
  42. package/skills/api-fuzzing-bug-bounty/SKILL.md +433 -0
  43. package/skills/api-security-best-practices/SKILL.md +907 -0
  44. package/skills/autonomous-agent-patterns/SKILL.md +761 -0
  45. package/skills/autonomous-agents/SKILL.md +68 -0
  46. package/skills/aws-penetration-testing/SKILL.md +405 -0
  47. package/skills/aws-penetration-testing/references/advanced-aws-pentesting.md +469 -0
  48. package/skills/azure-functions/SKILL.md +42 -0
  49. package/skills/backend-dev-guidelines/SKILL.md +342 -0
  50. package/skills/backend-dev-guidelines/resources/architecture-overview.md +451 -0
  51. package/skills/backend-dev-guidelines/resources/async-and-errors.md +307 -0
  52. package/skills/backend-dev-guidelines/resources/complete-examples.md +638 -0
  53. package/skills/backend-dev-guidelines/resources/configuration.md +275 -0
  54. package/skills/backend-dev-guidelines/resources/database-patterns.md +224 -0
  55. package/skills/backend-dev-guidelines/resources/middleware-guide.md +213 -0
  56. package/skills/backend-dev-guidelines/resources/routing-and-controllers.md +756 -0
  57. package/skills/backend-dev-guidelines/resources/sentry-and-monitoring.md +336 -0
  58. package/skills/backend-dev-guidelines/resources/services-and-repositories.md +789 -0
  59. package/skills/backend-dev-guidelines/resources/testing-guide.md +235 -0
  60. package/skills/backend-dev-guidelines/resources/validation-patterns.md +754 -0
  61. package/skills/broken-authentication/SKILL.md +476 -0
  62. package/skills/bullmq-specialist/SKILL.md +57 -0
  63. package/skills/bun-development/SKILL.md +691 -0
  64. package/skills/burp-suite-testing/SKILL.md +380 -0
  65. package/skills/cloud-penetration-testing/SKILL.md +501 -0
  66. package/skills/cloud-penetration-testing/references/advanced-cloud-scripts.md +318 -0
  67. package/skills/computer-use-agents/SKILL.md +315 -0
  68. package/skills/content-creator/SKILL.md +248 -0
  69. package/skills/content-creator/assets/content_calendar_template.md +99 -0
  70. package/skills/content-creator/references/brand_guidelines.md +199 -0
  71. package/skills/content-creator/references/content_frameworks.md +534 -0
  72. package/skills/content-creator/references/social_media_optimization.md +317 -0
  73. package/skills/content-creator/scripts/brand_voice_analyzer.py +185 -0
  74. package/skills/content-creator/scripts/seo_optimizer.py +419 -0
  75. package/skills/context-window-management/SKILL.md +53 -0
  76. package/skills/conversation-memory/SKILL.md +61 -0
  77. package/skills/copy-editing/SKILL.md +439 -0
  78. package/skills/copywriting/SKILL.md +225 -0
  79. package/skills/crewai/SKILL.md +243 -0
  80. package/skills/discord-bot-architect/SKILL.md +277 -0
  81. package/skills/dispatching-parallel-agents/SKILL.md +180 -0
  82. package/skills/email-sequence/SKILL.md +925 -0
  83. package/skills/email-systems/SKILL.md +54 -0
  84. package/skills/ethical-hacking-methodology/SKILL.md +466 -0
  85. package/skills/executing-plans/SKILL.md +76 -0
  86. package/skills/file-path-traversal/SKILL.md +486 -0
  87. package/skills/finishing-a-development-branch/SKILL.md +200 -0
  88. package/skills/frontend-dev-guidelines/SKILL.md +359 -0
  89. package/skills/frontend-dev-guidelines/resources/common-patterns.md +331 -0
  90. package/skills/frontend-dev-guidelines/resources/complete-examples.md +872 -0
  91. package/skills/frontend-dev-guidelines/resources/component-patterns.md +502 -0
  92. package/skills/frontend-dev-guidelines/resources/data-fetching.md +767 -0
  93. package/skills/frontend-dev-guidelines/resources/file-organization.md +502 -0
  94. package/skills/frontend-dev-guidelines/resources/loading-and-error-states.md +501 -0
  95. package/skills/frontend-dev-guidelines/resources/performance.md +406 -0
  96. package/skills/frontend-dev-guidelines/resources/routing-guide.md +364 -0
  97. package/skills/frontend-dev-guidelines/resources/styling-guide.md +428 -0
  98. package/skills/frontend-dev-guidelines/resources/typescript-standards.md +418 -0
  99. package/skills/gcp-cloud-run/SKILL.md +288 -0
  100. package/skills/git-pushing/SKILL.md +33 -0
  101. package/skills/git-pushing/scripts/smart_commit.sh +19 -0
  102. package/skills/github-workflow-automation/SKILL.md +846 -0
  103. package/skills/html-injection-testing/SKILL.md +498 -0
  104. package/skills/idor-testing/SKILL.md +442 -0
  105. package/skills/inngest/SKILL.md +55 -0
  106. package/skills/javascript-mastery/SKILL.md +645 -0
  107. package/skills/kaizen/SKILL.md +730 -0
  108. package/skills/langfuse/SKILL.md +238 -0
  109. package/skills/langgraph/SKILL.md +287 -0
  110. package/skills/linux-privilege-escalation/SKILL.md +504 -0
  111. package/skills/llm-app-patterns/SKILL.md +760 -0
  112. package/skills/metasploit-framework/SKILL.md +478 -0
  113. package/skills/multi-agent-brainstorming/SKILL.md +256 -0
  114. package/skills/neon-postgres/SKILL.md +56 -0
  115. package/skills/nextjs-supabase-auth/SKILL.md +56 -0
  116. package/skills/nosql-expert/SKILL.md +111 -0
  117. package/skills/pentest-checklist/SKILL.md +334 -0
  118. package/skills/pentest-commands/SKILL.md +438 -0
  119. package/skills/plaid-fintech/SKILL.md +50 -0
  120. package/skills/planning-with-files/SKILL.md +211 -0
  121. package/skills/planning-with-files/examples.md +202 -0
  122. package/skills/planning-with-files/reference.md +218 -0
  123. package/skills/planning-with-files/scripts/check-complete.sh +44 -0
  124. package/skills/planning-with-files/scripts/init-session.sh +120 -0
  125. package/skills/planning-with-files/templates/findings.md +95 -0
  126. package/skills/planning-with-files/templates/progress.md +114 -0
  127. package/skills/planning-with-files/templates/task_plan.md +132 -0
  128. package/skills/privilege-escalation-methods/SKILL.md +333 -0
  129. package/skills/production-code-audit/SKILL.md +540 -0
  130. package/skills/prompt-caching/SKILL.md +61 -0
  131. package/skills/prompt-engineering/SKILL.md +171 -0
  132. package/skills/prompt-library/SKILL.md +322 -0
  133. package/skills/rag-engineer/SKILL.md +90 -0
  134. package/skills/rag-implementation/SKILL.md +63 -0
  135. package/skills/react-ui-patterns/SKILL.md +289 -0
  136. package/skills/red-team-tools/SKILL.md +310 -0
  137. package/skills/scanning-tools/SKILL.md +589 -0
  138. package/skills/shodan-reconnaissance/SKILL.md +503 -0
  139. package/skills/slack-bot-builder/SKILL.md +264 -0
  140. package/skills/smtp-penetration-testing/SKILL.md +500 -0
  141. package/skills/social-content/SKILL.md +807 -0
  142. package/skills/software-architecture/SKILL.md +75 -0
  143. package/skills/sql-injection-testing/SKILL.md +448 -0
  144. package/skills/sqlmap-database-pentesting/SKILL.md +400 -0
  145. package/skills/ssh-penetration-testing/SKILL.md +488 -0
  146. package/skills/stripe-integration/SKILL.md +69 -0
  147. package/skills/subagent-driven-development/SKILL.md +240 -0
  148. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
  149. package/skills/subagent-driven-development/implementer-prompt.md +78 -0
  150. package/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  151. package/skills/tavily-web/SKILL.md +36 -0
  152. package/skills/telegram-bot-builder/SKILL.md +254 -0
  153. package/skills/test-driven-development/SKILL.md +371 -0
  154. package/skills/test-driven-development/testing-anti-patterns.md +299 -0
  155. package/skills/test-fixing/SKILL.md +119 -0
  156. package/skills/top-web-vulnerabilities/SKILL.md +543 -0
  157. package/skills/trigger-dev/SKILL.md +67 -0
  158. package/skills/twilio-communications/SKILL.md +295 -0
  159. package/skills/upstash-qstash/SKILL.md +68 -0
  160. package/skills/verification-before-completion/SKILL.md +139 -0
  161. package/skills/voice-agents/SKILL.md +68 -0
  162. package/skills/voice-ai-development/SKILL.md +302 -0
  163. package/skills/windows-privilege-escalation/SKILL.md +496 -0
  164. package/skills/wireshark-analysis/SKILL.md +497 -0
  165. package/skills/wordpress-penetration-testing/SKILL.md +485 -0
  166. package/skills/workflow-automation/SKILL.md +68 -0
  167. package/skills/xss-html-injection/SKILL.md +499 -0
  168. package/skills/zapier-make-patterns/SKILL.md +67 -0
@@ -0,0 +1,240 @@
1
+ ---
2
+ name: subagent-driven-development
3
+ description: Use when executing implementation plans with independent tasks in the current session
4
+ ---
5
+
6
+ # Subagent-Driven Development
7
+
8
+ Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
9
+
10
+ **Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
11
+
12
+ ## When to Use
13
+
14
+ ```dot
15
+ digraph when_to_use {
16
+ "Have implementation plan?" [shape=diamond];
17
+ "Tasks mostly independent?" [shape=diamond];
18
+ "Stay in this session?" [shape=diamond];
19
+ "subagent-driven-development" [shape=box];
20
+ "executing-plans" [shape=box];
21
+ "Manual execution or brainstorm first" [shape=box];
22
+
23
+ "Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
24
+ "Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
25
+ "Tasks mostly independent?" -> "Stay in this session?" [label="yes"];
26
+ "Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
27
+ "Stay in this session?" -> "subagent-driven-development" [label="yes"];
28
+ "Stay in this session?" -> "executing-plans" [label="no - parallel session"];
29
+ }
30
+ ```
31
+
32
+ **vs. Executing Plans (parallel session):**
33
+ - Same session (no context switch)
34
+ - Fresh subagent per task (no context pollution)
35
+ - Two-stage review after each task: spec compliance first, then code quality
36
+ - Faster iteration (no human-in-loop between tasks)
37
+
38
+ ## The Process
39
+
40
+ ```dot
41
+ digraph process {
42
+ rankdir=TB;
43
+
44
+ subgraph cluster_per_task {
45
+ label="Per Task";
46
+ "Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
47
+ "Implementer subagent asks questions?" [shape=diamond];
48
+ "Answer questions, provide context" [shape=box];
49
+ "Implementer subagent implements, tests, commits, self-reviews" [shape=box];
50
+ "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [shape=box];
51
+ "Spec reviewer subagent confirms code matches spec?" [shape=diamond];
52
+ "Implementer subagent fixes spec gaps" [shape=box];
53
+ "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [shape=box];
54
+ "Code quality reviewer subagent approves?" [shape=diamond];
55
+ "Implementer subagent fixes quality issues" [shape=box];
56
+ "Mark task complete in TodoWrite" [shape=box];
57
+ }
58
+
59
+ "Read plan, extract all tasks with full text, note context, create TodoWrite" [shape=box];
60
+ "More tasks remain?" [shape=diamond];
61
+ "Dispatch final code reviewer subagent for entire implementation" [shape=box];
62
+ "Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
63
+
64
+ "Read plan, extract all tasks with full text, note context, create TodoWrite" -> "Dispatch implementer subagent (./implementer-prompt.md)";
65
+ "Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer subagent asks questions?";
66
+ "Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
67
+ "Answer questions, provide context" -> "Dispatch implementer subagent (./implementer-prompt.md)";
68
+ "Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits, self-reviews" [label="no"];
69
+ "Implementer subagent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
70
+ "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" -> "Spec reviewer subagent confirms code matches spec?";
71
+ "Spec reviewer subagent confirms code matches spec?" -> "Implementer subagent fixes spec gaps" [label="no"];
72
+ "Implementer subagent fixes spec gaps" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [label="re-review"];
73
+ "Spec reviewer subagent confirms code matches spec?" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="yes"];
74
+ "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" -> "Code quality reviewer subagent approves?";
75
+ "Code quality reviewer subagent approves?" -> "Implementer subagent fixes quality issues" [label="no"];
76
+ "Implementer subagent fixes quality issues" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="re-review"];
77
+ "Code quality reviewer subagent approves?" -> "Mark task complete in TodoWrite" [label="yes"];
78
+ "Mark task complete in TodoWrite" -> "More tasks remain?";
79
+ "More tasks remain?" -> "Dispatch implementer subagent (./implementer-prompt.md)" [label="yes"];
80
+ "More tasks remain?" -> "Dispatch final code reviewer subagent for entire implementation" [label="no"];
81
+ "Dispatch final code reviewer subagent for entire implementation" -> "Use superpowers:finishing-a-development-branch";
82
+ }
83
+ ```
84
+
85
+ ## Prompt Templates
86
+
87
+ - `./implementer-prompt.md` - Dispatch implementer subagent
88
+ - `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer subagent
89
+ - `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer subagent
90
+
91
+ ## Example Workflow
92
+
93
+ ```
94
+ You: I'm using Subagent-Driven Development to execute this plan.
95
+
96
+ [Read plan file once: docs/plans/feature-plan.md]
97
+ [Extract all 5 tasks with full text and context]
98
+ [Create TodoWrite with all tasks]
99
+
100
+ Task 1: Hook installation script
101
+
102
+ [Get Task 1 text and context (already extracted)]
103
+ [Dispatch implementation subagent with full task text + context]
104
+
105
+ Implementer: "Before I begin - should the hook be installed at user or system level?"
106
+
107
+ You: "User level (~/.config/superpowers/hooks/)"
108
+
109
+ Implementer: "Got it. Implementing now..."
110
+ [Later] Implementer:
111
+ - Implemented install-hook command
112
+ - Added tests, 5/5 passing
113
+ - Self-review: Found I missed --force flag, added it
114
+ - Committed
115
+
116
+ [Dispatch spec compliance reviewer]
117
+ Spec reviewer: ✅ Spec compliant - all requirements met, nothing extra
118
+
119
+ [Get git SHAs, dispatch code quality reviewer]
120
+ Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
121
+
122
+ [Mark Task 1 complete]
123
+
124
+ Task 2: Recovery modes
125
+
126
+ [Get Task 2 text and context (already extracted)]
127
+ [Dispatch implementation subagent with full task text + context]
128
+
129
+ Implementer: [No questions, proceeds]
130
+ Implementer:
131
+ - Added verify/repair modes
132
+ - 8/8 tests passing
133
+ - Self-review: All good
134
+ - Committed
135
+
136
+ [Dispatch spec compliance reviewer]
137
+ Spec reviewer: ❌ Issues:
138
+ - Missing: Progress reporting (spec says "report every 100 items")
139
+ - Extra: Added --json flag (not requested)
140
+
141
+ [Implementer fixes issues]
142
+ Implementer: Removed --json flag, added progress reporting
143
+
144
+ [Spec reviewer reviews again]
145
+ Spec reviewer: ✅ Spec compliant now
146
+
147
+ [Dispatch code quality reviewer]
148
+ Code reviewer: Strengths: Solid. Issues (Important): Magic number (100)
149
+
150
+ [Implementer fixes]
151
+ Implementer: Extracted PROGRESS_INTERVAL constant
152
+
153
+ [Code reviewer reviews again]
154
+ Code reviewer: ✅ Approved
155
+
156
+ [Mark Task 2 complete]
157
+
158
+ ...
159
+
160
+ [After all tasks]
161
+ [Dispatch final code-reviewer]
162
+ Final reviewer: All requirements met, ready to merge
163
+
164
+ Done!
165
+ ```
166
+
167
+ ## Advantages
168
+
169
+ **vs. Manual execution:**
170
+ - Subagents follow TDD naturally
171
+ - Fresh context per task (no confusion)
172
+ - Parallel-safe (subagents don't interfere)
173
+ - Subagent can ask questions (before AND during work)
174
+
175
+ **vs. Executing Plans:**
176
+ - Same session (no handoff)
177
+ - Continuous progress (no waiting)
178
+ - Review checkpoints automatic
179
+
180
+ **Efficiency gains:**
181
+ - No file reading overhead (controller provides full text)
182
+ - Controller curates exactly what context is needed
183
+ - Subagent gets complete information upfront
184
+ - Questions surfaced before work begins (not after)
185
+
186
+ **Quality gates:**
187
+ - Self-review catches issues before handoff
188
+ - Two-stage review: spec compliance, then code quality
189
+ - Review loops ensure fixes actually work
190
+ - Spec compliance prevents over/under-building
191
+ - Code quality ensures implementation is well-built
192
+
193
+ **Cost:**
194
+ - More subagent invocations (implementer + 2 reviewers per task)
195
+ - Controller does more prep work (extracting all tasks upfront)
196
+ - Review loops add iterations
197
+ - But catches issues early (cheaper than debugging later)
198
+
199
+ ## Red Flags
200
+
201
+ **Never:**
202
+ - Skip reviews (spec compliance OR code quality)
203
+ - Proceed with unfixed issues
204
+ - Dispatch multiple implementation subagents in parallel (conflicts)
205
+ - Make subagent read plan file (provide full text instead)
206
+ - Skip scene-setting context (subagent needs to understand where task fits)
207
+ - Ignore subagent questions (answer before letting them proceed)
208
+ - Accept "close enough" on spec compliance (spec reviewer found issues = not done)
209
+ - Skip review loops (reviewer found issues = implementer fixes = review again)
210
+ - Let implementer self-review replace actual review (both are needed)
211
+ - **Start code quality review before spec compliance is ✅** (wrong order)
212
+ - Move to next task while either review has open issues
213
+
214
+ **If subagent asks questions:**
215
+ - Answer clearly and completely
216
+ - Provide additional context if needed
217
+ - Don't rush them into implementation
218
+
219
+ **If reviewer finds issues:**
220
+ - Implementer (same subagent) fixes them
221
+ - Reviewer reviews again
222
+ - Repeat until approved
223
+ - Don't skip the re-review
224
+
225
+ **If subagent fails task:**
226
+ - Dispatch fix subagent with specific instructions
227
+ - Don't try to fix manually (context pollution)
228
+
229
+ ## Integration
230
+
231
+ **Required workflow skills:**
232
+ - **superpowers:writing-plans** - Creates the plan this skill executes
233
+ - **superpowers:requesting-code-review** - Code review template for reviewer subagents
234
+ - **superpowers:finishing-a-development-branch** - Complete development after all tasks
235
+
236
+ **Subagents should use:**
237
+ - **superpowers:test-driven-development** - Subagents follow TDD for each task
238
+
239
+ **Alternative workflow:**
240
+ - **superpowers:executing-plans** - Use for parallel session instead of same-session execution
@@ -0,0 +1,20 @@
1
+ # Code Quality Reviewer Prompt Template
2
+
3
+ Use this template when dispatching a code quality reviewer subagent.
4
+
5
+ **Purpose:** Verify implementation is well-built (clean, tested, maintainable)
6
+
7
+ **Only dispatch after spec compliance review passes.**
8
+
9
+ ```
10
+ Task tool (superpowers:code-reviewer):
11
+ Use template at requesting-code-review/code-reviewer.md
12
+
13
+ WHAT_WAS_IMPLEMENTED: [from implementer's report]
14
+ PLAN_OR_REQUIREMENTS: Task N from [plan-file]
15
+ BASE_SHA: [commit before task]
16
+ HEAD_SHA: [current commit]
17
+ DESCRIPTION: [task summary]
18
+ ```
19
+
20
+ **Code reviewer returns:** Strengths, Issues (Critical/Important/Minor), Assessment
@@ -0,0 +1,78 @@
1
+ # Implementer Subagent Prompt Template
2
+
3
+ Use this template when dispatching an implementer subagent.
4
+
5
+ ```
6
+ Task tool (general-purpose):
7
+ description: "Implement Task N: [task name]"
8
+ prompt: |
9
+ You are implementing Task N: [task name]
10
+
11
+ ## Task Description
12
+
13
+ [FULL TEXT of task from plan - paste it here, don't make subagent read file]
14
+
15
+ ## Context
16
+
17
+ [Scene-setting: where this fits, dependencies, architectural context]
18
+
19
+ ## Before You Begin
20
+
21
+ If you have questions about:
22
+ - The requirements or acceptance criteria
23
+ - The approach or implementation strategy
24
+ - Dependencies or assumptions
25
+ - Anything unclear in the task description
26
+
27
+ **Ask them now.** Raise any concerns before starting work.
28
+
29
+ ## Your Job
30
+
31
+ Once you're clear on requirements:
32
+ 1. Implement exactly what the task specifies
33
+ 2. Write tests (following TDD if task says to)
34
+ 3. Verify implementation works
35
+ 4. Commit your work
36
+ 5. Self-review (see below)
37
+ 6. Report back
38
+
39
+ Work from: [directory]
40
+
41
+ **While you work:** If you encounter something unexpected or unclear, **ask questions**.
42
+ It's always OK to pause and clarify. Don't guess or make assumptions.
43
+
44
+ ## Before Reporting Back: Self-Review
45
+
46
+ Review your work with fresh eyes. Ask yourself:
47
+
48
+ **Completeness:**
49
+ - Did I fully implement everything in the spec?
50
+ - Did I miss any requirements?
51
+ - Are there edge cases I didn't handle?
52
+
53
+ **Quality:**
54
+ - Is this my best work?
55
+ - Are names clear and accurate (match what things do, not how they work)?
56
+ - Is the code clean and maintainable?
57
+
58
+ **Discipline:**
59
+ - Did I avoid overbuilding (YAGNI)?
60
+ - Did I only build what was requested?
61
+ - Did I follow existing patterns in the codebase?
62
+
63
+ **Testing:**
64
+ - Do tests actually verify behavior (not just mock behavior)?
65
+ - Did I follow TDD if required?
66
+ - Are tests comprehensive?
67
+
68
+ If you find issues during self-review, fix them now before reporting.
69
+
70
+ ## Report Format
71
+
72
+ When done, report:
73
+ - What you implemented
74
+ - What you tested and test results
75
+ - Files changed
76
+ - Self-review findings (if any)
77
+ - Any issues or concerns
78
+ ```
@@ -0,0 +1,61 @@
1
+ # Spec Compliance Reviewer Prompt Template
2
+
3
+ Use this template when dispatching a spec compliance reviewer subagent.
4
+
5
+ **Purpose:** Verify implementer built what was requested (nothing more, nothing less)
6
+
7
+ ```
8
+ Task tool (general-purpose):
9
+ description: "Review spec compliance for Task N"
10
+ prompt: |
11
+ You are reviewing whether an implementation matches its specification.
12
+
13
+ ## What Was Requested
14
+
15
+ [FULL TEXT of task requirements]
16
+
17
+ ## What Implementer Claims They Built
18
+
19
+ [From implementer's report]
20
+
21
+ ## CRITICAL: Do Not Trust the Report
22
+
23
+ The implementer finished suspiciously quickly. Their report may be incomplete,
24
+ inaccurate, or optimistic. You MUST verify everything independently.
25
+
26
+ **DO NOT:**
27
+ - Take their word for what they implemented
28
+ - Trust their claims about completeness
29
+ - Accept their interpretation of requirements
30
+
31
+ **DO:**
32
+ - Read the actual code they wrote
33
+ - Compare actual implementation to requirements line by line
34
+ - Check for missing pieces they claimed to implement
35
+ - Look for extra features they didn't mention
36
+
37
+ ## Your Job
38
+
39
+ Read the implementation code and verify:
40
+
41
+ **Missing requirements:**
42
+ - Did they implement everything that was requested?
43
+ - Are there requirements they skipped or missed?
44
+ - Did they claim something works but didn't actually implement it?
45
+
46
+ **Extra/unneeded work:**
47
+ - Did they build things that weren't requested?
48
+ - Did they over-engineer or add unnecessary features?
49
+ - Did they add "nice to haves" that weren't in spec?
50
+
51
+ **Misunderstandings:**
52
+ - Did they interpret requirements differently than intended?
53
+ - Did they solve the wrong problem?
54
+ - Did they implement the right feature but wrong way?
55
+
56
+ **Verify by reading code, not by trusting report.**
57
+
58
+ Report:
59
+ - ✅ Spec compliant (if everything matches after code inspection)
60
+ - ❌ Issues found: [list specifically what's missing or extra, with file:line references]
61
+ ```
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: tavily-web
3
+ description: Web search, content extraction, crawling, and research capabilities using Tavily API
4
+ ---
5
+
6
+ # tavily-web
7
+
8
+ ## Overview
9
+ Web search, content extraction, crawling, and research capabilities using Tavily API
10
+
11
+ ## When to Use
12
+ - When you need to search the web for current information
13
+ - When extracting content from URLs
14
+ - When crawling websites
15
+
16
+ ## Installation
17
+ ```bash
18
+ npx skills add -g BenedictKing/tavily-web
19
+ ```
20
+
21
+ ## Step-by-Step Guide
22
+ 1. Install the skill using the command above
23
+ 2. Configure Tavily API key
24
+ 3. Use naturally in Claude Code conversations
25
+
26
+ ## Examples
27
+ See [GitHub Repository](https://github.com/BenedictKing/tavily-web) for examples.
28
+
29
+ ## Best Practices
30
+ - Configure API keys via environment variables
31
+
32
+ ## Troubleshooting
33
+ See the GitHub repository for troubleshooting guides.
34
+
35
+ ## Related Skills
36
+ - context7-auto-research, exa-search, firecrawl-scraper, codex-review
@@ -0,0 +1,254 @@
1
+ ---
2
+ name: telegram-bot-builder
3
+ description: "Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot."
4
+ source: vibeship-spawner-skills (Apache 2.0)
5
+ ---
6
+
7
+ # Telegram Bot Builder
8
+
9
+ **Role**: Telegram Bot Architect
10
+
11
+ You build bots that people actually use daily. You understand that bots
12
+ should feel like helpful assistants, not clunky interfaces. You know
13
+ the Telegram ecosystem deeply - what's possible, what's popular, and
14
+ what makes money. You design conversations that feel natural.
15
+
16
+ ## Capabilities
17
+
18
+ - Telegram Bot API
19
+ - Bot architecture
20
+ - Command design
21
+ - Inline keyboards
22
+ - Bot monetization
23
+ - User onboarding
24
+ - Bot analytics
25
+ - Webhook management
26
+
27
+ ## Patterns
28
+
29
+ ### Bot Architecture
30
+
31
+ Structure for maintainable Telegram bots
32
+
33
+ **When to use**: When starting a new bot project
34
+
35
+ ```python
36
+ ## Bot Architecture
37
+
38
+ ### Stack Options
39
+ | Language | Library | Best For |
40
+ |----------|---------|----------|
41
+ | Node.js | telegraf | Most projects |
42
+ | Node.js | grammY | TypeScript, modern |
43
+ | Python | python-telegram-bot | Quick prototypes |
44
+ | Python | aiogram | Async, scalable |
45
+
46
+ ### Basic Telegraf Setup
47
+ ```javascript
48
+ import { Telegraf } from 'telegraf';
49
+
50
+ const bot = new Telegraf(process.env.BOT_TOKEN);
51
+
52
+ // Command handlers
53
+ bot.start((ctx) => ctx.reply('Welcome!'));
54
+ bot.help((ctx) => ctx.reply('How can I help?'));
55
+
56
+ // Text handler
57
+ bot.on('text', (ctx) => {
58
+ ctx.reply(`You said: ${ctx.message.text}`);
59
+ });
60
+
61
+ // Launch
62
+ bot.launch();
63
+
64
+ // Graceful shutdown
65
+ process.once('SIGINT', () => bot.stop('SIGINT'));
66
+ process.once('SIGTERM', () => bot.stop('SIGTERM'));
67
+ ```
68
+
69
+ ### Project Structure
70
+ ```
71
+ telegram-bot/
72
+ ├── src/
73
+ │ ├── bot.js # Bot initialization
74
+ │ ├── commands/ # Command handlers
75
+ │ │ ├── start.js
76
+ │ │ ├── help.js
77
+ │ │ └── settings.js
78
+ │ ├── handlers/ # Message handlers
79
+ │ ├── keyboards/ # Inline keyboards
80
+ │ ├── middleware/ # Auth, logging
81
+ │ └── services/ # Business logic
82
+ ├── .env
83
+ └── package.json
84
+ ```
85
+ ```
86
+
87
+ ### Inline Keyboards
88
+
89
+ Interactive button interfaces
90
+
91
+ **When to use**: When building interactive bot flows
92
+
93
+ ```python
94
+ ## Inline Keyboards
95
+
96
+ ### Basic Keyboard
97
+ ```javascript
98
+ import { Markup } from 'telegraf';
99
+
100
+ bot.command('menu', (ctx) => {
101
+ ctx.reply('Choose an option:', Markup.inlineKeyboard([
102
+ [Markup.button.callback('Option 1', 'opt_1')],
103
+ [Markup.button.callback('Option 2', 'opt_2')],
104
+ [
105
+ Markup.button.callback('Yes', 'yes'),
106
+ Markup.button.callback('No', 'no'),
107
+ ],
108
+ ]));
109
+ });
110
+
111
+ // Handle button clicks
112
+ bot.action('opt_1', (ctx) => {
113
+ ctx.answerCbQuery('You chose Option 1');
114
+ ctx.editMessageText('You selected Option 1');
115
+ });
116
+ ```
117
+
118
+ ### Keyboard Patterns
119
+ | Pattern | Use Case |
120
+ |---------|----------|
121
+ | Single column | Simple menus |
122
+ | Multi column | Yes/No, pagination |
123
+ | Grid | Category selection |
124
+ | URL buttons | Links, payments |
125
+
126
+ ### Pagination
127
+ ```javascript
128
+ function getPaginatedKeyboard(items, page, perPage = 5) {
129
+ const start = page * perPage;
130
+ const pageItems = items.slice(start, start + perPage);
131
+
132
+ const buttons = pageItems.map(item =>
133
+ [Markup.button.callback(item.name, `item_${item.id}`)]
134
+ );
135
+
136
+ const nav = [];
137
+ if (page > 0) nav.push(Markup.button.callback('◀️', `page_${page-1}`));
138
+ if (start + perPage < items.length) nav.push(Markup.button.callback('▶️', `page_${page+1}`));
139
+
140
+ return Markup.inlineKeyboard([...buttons, nav]);
141
+ }
142
+ ```
143
+ ```
144
+
145
+ ### Bot Monetization
146
+
147
+ Making money from Telegram bots
148
+
149
+ **When to use**: When planning bot revenue
150
+
151
+ ```javascript
152
+ ## Bot Monetization
153
+
154
+ ### Revenue Models
155
+ | Model | Example | Complexity |
156
+ |-------|---------|------------|
157
+ | Freemium | Free basic, paid premium | Medium |
158
+ | Subscription | Monthly access | Medium |
159
+ | Per-use | Pay per action | Low |
160
+ | Ads | Sponsored messages | Low |
161
+ | Affiliate | Product recommendations | Low |
162
+
163
+ ### Telegram Payments
164
+ ```javascript
165
+ // Create invoice
166
+ bot.command('buy', (ctx) => {
167
+ ctx.replyWithInvoice({
168
+ title: 'Premium Access',
169
+ description: 'Unlock all features',
170
+ payload: 'premium_monthly',
171
+ provider_token: process.env.PAYMENT_TOKEN,
172
+ currency: 'USD',
173
+ prices: [{ label: 'Premium', amount: 999 }], // $9.99
174
+ });
175
+ });
176
+
177
+ // Handle successful payment
178
+ bot.on('successful_payment', (ctx) => {
179
+ const payment = ctx.message.successful_payment;
180
+ // Activate premium for user
181
+ await activatePremium(ctx.from.id);
182
+ ctx.reply('🎉 Premium activated!');
183
+ });
184
+ ```
185
+
186
+ ### Freemium Strategy
187
+ ```
188
+ Free tier:
189
+ - 10 uses per day
190
+ - Basic features
191
+ - Ads shown
192
+
193
+ Premium ($5/month):
194
+ - Unlimited uses
195
+ - Advanced features
196
+ - No ads
197
+ - Priority support
198
+ ```
199
+
200
+ ### Usage Limits
201
+ ```javascript
202
+ async function checkUsage(userId) {
203
+ const usage = await getUsage(userId);
204
+ const isPremium = await checkPremium(userId);
205
+
206
+ if (!isPremium && usage >= 10) {
207
+ return { allowed: false, message: 'Daily limit reached. Upgrade?' };
208
+ }
209
+ return { allowed: true };
210
+ }
211
+ ```
212
+ ```
213
+
214
+ ## Anti-Patterns
215
+
216
+ ### ❌ Blocking Operations
217
+
218
+ **Why bad**: Telegram has timeout limits.
219
+ Users think bot is dead.
220
+ Poor experience.
221
+ Requests pile up.
222
+
223
+ **Instead**: Acknowledge immediately.
224
+ Process in background.
225
+ Send update when done.
226
+ Use typing indicator.
227
+
228
+ ### ❌ No Error Handling
229
+
230
+ **Why bad**: Users get no response.
231
+ Bot appears broken.
232
+ Debugging nightmare.
233
+ Lost trust.
234
+
235
+ **Instead**: Global error handler.
236
+ Graceful error messages.
237
+ Log errors for debugging.
238
+ Rate limiting.
239
+
240
+ ### ❌ Spammy Bot
241
+
242
+ **Why bad**: Users block the bot.
243
+ Telegram may ban.
244
+ Annoying experience.
245
+ Low retention.
246
+
247
+ **Instead**: Respect user attention.
248
+ Consolidate messages.
249
+ Allow notification control.
250
+ Quality over quantity.
251
+
252
+ ## Related Skills
253
+
254
+ Works well with: `telegram-mini-app`, `backend`, `ai-wrapper-product`, `workflow-automation`