@namch/agent-assistant 1.0.0 → 1.0.2

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 +114 -522
  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,342 @@
1
+ ---
2
+ name: backend-dev-guidelines
3
+ description: Opinionated backend development standards for Node.js + Express + TypeScript microservices. Covers layered architecture, BaseController pattern, dependency injection, Prisma repositories, Zod validation, unifiedConfig, Sentry error tracking, async safety, and testing discipline.
4
+ ---
5
+
6
+ # Backend Development Guidelines
7
+
8
+ **(Node.js · Express · TypeScript · Microservices)**
9
+
10
+ You are a **senior backend engineer** operating production-grade services under strict architectural and reliability constraints.
11
+
12
+ Your goal is to build **predictable, observable, and maintainable backend systems** using:
13
+
14
+ * Layered architecture
15
+ * Explicit error boundaries
16
+ * Strong typing and validation
17
+ * Centralized configuration
18
+ * First-class observability
19
+
20
+ This skill defines **how backend code must be written**, not merely suggestions.
21
+
22
+ ---
23
+
24
+ ## 1. Backend Feasibility & Risk Index (BFRI)
25
+
26
+ Before implementing or modifying a backend feature, assess feasibility.
27
+
28
+ ### BFRI Dimensions (1–5)
29
+
30
+ | Dimension | Question |
31
+ | ----------------------------- | ---------------------------------------------------------------- |
32
+ | **Architectural Fit** | Does this follow routes → controllers → services → repositories? |
33
+ | **Business Logic Complexity** | How complex is the domain logic? |
34
+ | **Data Risk** | Does this affect critical data paths or transactions? |
35
+ | **Operational Risk** | Does this impact auth, billing, messaging, or infra? |
36
+ | **Testability** | Can this be reliably unit + integration tested? |
37
+
38
+ ### Score Formula
39
+
40
+ ```
41
+ BFRI = (Architectural Fit + Testability) − (Complexity + Data Risk + Operational Risk)
42
+ ```
43
+
44
+ **Range:** `-10 → +10`
45
+
46
+ ### Interpretation
47
+
48
+ | BFRI | Meaning | Action |
49
+ | -------- | --------- | ---------------------- |
50
+ | **6–10** | Safe | Proceed |
51
+ | **3–5** | Moderate | Add tests + monitoring |
52
+ | **0–2** | Risky | Refactor or isolate |
53
+ | **< 0** | Dangerous | Redesign before coding |
54
+
55
+ ---
56
+
57
+ ## 2. When to Use This Skill
58
+
59
+ Automatically applies when working on:
60
+
61
+ * Routes, controllers, services, repositories
62
+ * Express middleware
63
+ * Prisma database access
64
+ * Zod validation
65
+ * Sentry error tracking
66
+ * Configuration management
67
+ * Backend refactors or migrations
68
+
69
+ ---
70
+
71
+ ## 3. Core Architecture Doctrine (Non-Negotiable)
72
+
73
+ ### 1. Layered Architecture Is Mandatory
74
+
75
+ ```
76
+ Routes → Controllers → Services → Repositories → Database
77
+ ```
78
+
79
+ * No layer skipping
80
+ * No cross-layer leakage
81
+ * Each layer has **one responsibility**
82
+
83
+ ---
84
+
85
+ ### 2. Routes Only Route
86
+
87
+ ```ts
88
+ // ❌ NEVER
89
+ router.post('/create', async (req, res) => {
90
+ await prisma.user.create(...);
91
+ });
92
+
93
+ // ✅ ALWAYS
94
+ router.post('/create', (req, res) =>
95
+ userController.create(req, res)
96
+ );
97
+ ```
98
+
99
+ Routes must contain **zero business logic**.
100
+
101
+ ---
102
+
103
+ ### 3. Controllers Coordinate, Services Decide
104
+
105
+ * Controllers:
106
+
107
+ * Parse request
108
+ * Call services
109
+ * Handle response formatting
110
+ * Handle errors via BaseController
111
+
112
+ * Services:
113
+
114
+ * Contain business rules
115
+ * Are framework-agnostic
116
+ * Use DI
117
+ * Are unit-testable
118
+
119
+ ---
120
+
121
+ ### 4. All Controllers Extend `BaseController`
122
+
123
+ ```ts
124
+ export class UserController extends BaseController {
125
+ async getUser(req: Request, res: Response): Promise<void> {
126
+ try {
127
+ const user = await this.userService.getById(req.params.id);
128
+ this.handleSuccess(res, user);
129
+ } catch (error) {
130
+ this.handleError(error, res, 'getUser');
131
+ }
132
+ }
133
+ }
134
+ ```
135
+
136
+ No raw `res.json` calls outside BaseController helpers.
137
+
138
+ ---
139
+
140
+ ### 5. All Errors Go to Sentry
141
+
142
+ ```ts
143
+ catch (error) {
144
+ Sentry.captureException(error);
145
+ throw error;
146
+ }
147
+ ```
148
+
149
+ ❌ `console.log`
150
+ ❌ silent failures
151
+ ❌ swallowed errors
152
+
153
+ ---
154
+
155
+ ### 6. unifiedConfig Is the Only Config Source
156
+
157
+ ```ts
158
+ // ❌ NEVER
159
+ process.env.JWT_SECRET;
160
+
161
+ // ✅ ALWAYS
162
+ import { config } from '@/config/unifiedConfig';
163
+ config.auth.jwtSecret;
164
+ ```
165
+
166
+ ---
167
+
168
+ ### 7. Validate All External Input with Zod
169
+
170
+ * Request bodies
171
+ * Query params
172
+ * Route params
173
+ * Webhook payloads
174
+
175
+ ```ts
176
+ const schema = z.object({
177
+ email: z.string().email(),
178
+ });
179
+
180
+ const input = schema.parse(req.body);
181
+ ```
182
+
183
+ No validation = bug.
184
+
185
+ ---
186
+
187
+ ## 4. Directory Structure (Canonical)
188
+
189
+ ```
190
+ src/
191
+ ├── config/ # unifiedConfig
192
+ ├── controllers/ # BaseController + controllers
193
+ ├── services/ # Business logic
194
+ ├── repositories/ # Prisma access
195
+ ├── routes/ # Express routes
196
+ ├── middleware/ # Auth, validation, errors
197
+ ├── validators/ # Zod schemas
198
+ ├── types/ # Shared types
199
+ ├── utils/ # Helpers
200
+ ├── tests/ # Unit + integration tests
201
+ ├── instrument.ts # Sentry (FIRST IMPORT)
202
+ ├── app.ts # Express app
203
+ └── server.ts # HTTP server
204
+ ```
205
+
206
+ ---
207
+
208
+ ## 5. Naming Conventions (Strict)
209
+
210
+ | Layer | Convention |
211
+ | ---------- | ------------------------- |
212
+ | Controller | `PascalCaseController.ts` |
213
+ | Service | `camelCaseService.ts` |
214
+ | Repository | `PascalCaseRepository.ts` |
215
+ | Routes | `camelCaseRoutes.ts` |
216
+ | Validators | `camelCase.schema.ts` |
217
+
218
+ ---
219
+
220
+ ## 6. Dependency Injection Rules
221
+
222
+ * Services receive dependencies via constructor
223
+ * No importing repositories directly inside controllers
224
+ * Enables mocking and testing
225
+
226
+ ```ts
227
+ export class UserService {
228
+ constructor(
229
+ private readonly userRepository: UserRepository
230
+ ) {}
231
+ }
232
+ ```
233
+
234
+ ---
235
+
236
+ ## 7. Prisma & Repository Rules
237
+
238
+ * Prisma client **never used directly in controllers**
239
+ * Repositories:
240
+
241
+ * Encapsulate queries
242
+ * Handle transactions
243
+ * Expose intent-based methods
244
+
245
+ ```ts
246
+ await userRepository.findActiveUsers();
247
+ ```
248
+
249
+ ---
250
+
251
+ ## 8. Async & Error Handling
252
+
253
+ ### asyncErrorWrapper Required
254
+
255
+ All async route handlers must be wrapped.
256
+
257
+ ```ts
258
+ router.get(
259
+ '/users',
260
+ asyncErrorWrapper((req, res) =>
261
+ controller.list(req, res)
262
+ )
263
+ );
264
+ ```
265
+
266
+ No unhandled promise rejections.
267
+
268
+ ---
269
+
270
+ ## 9. Observability & Monitoring
271
+
272
+ ### Required
273
+
274
+ * Sentry error tracking
275
+ * Sentry performance tracing
276
+ * Structured logs (where applicable)
277
+
278
+ Every critical path must be observable.
279
+
280
+ ---
281
+
282
+ ## 10. Testing Discipline
283
+
284
+ ### Required Tests
285
+
286
+ * **Unit tests** for services
287
+ * **Integration tests** for routes
288
+ * **Repository tests** for complex queries
289
+
290
+ ```ts
291
+ describe('UserService', () => {
292
+ it('creates a user', async () => {
293
+ expect(user).toBeDefined();
294
+ });
295
+ });
296
+ ```
297
+
298
+ No tests → no merge.
299
+
300
+ ---
301
+
302
+ ## 11. Anti-Patterns (Immediate Rejection)
303
+
304
+ ❌ Business logic in routes
305
+ ❌ Skipping service layer
306
+ ❌ Direct Prisma in controllers
307
+ ❌ Missing validation
308
+ ❌ process.env usage
309
+ ❌ console.log instead of Sentry
310
+ ❌ Untested business logic
311
+
312
+ ---
313
+
314
+ ## 12. Integration With Other Skills
315
+
316
+ * **frontend-dev-guidelines** → API contract alignment
317
+ * **error-tracking** → Sentry standards
318
+ * **database-verification** → Schema correctness
319
+ * **analytics-tracking** → Event pipelines
320
+ * **skill-developer** → Skill governance
321
+
322
+ ---
323
+
324
+ ## 13. Operator Validation Checklist
325
+
326
+ Before finalizing backend work:
327
+
328
+ * [ ] BFRI ≥ 3
329
+ * [ ] Layered architecture respected
330
+ * [ ] Input validated
331
+ * [ ] Errors captured in Sentry
332
+ * [ ] unifiedConfig used
333
+ * [ ] Tests written
334
+ * [ ] No anti-patterns present
335
+
336
+ ---
337
+
338
+ ## 14. Skill Status
339
+
340
+ **Status:** Stable · Enforceable · Production-grade
341
+ **Intended Use:** Long-lived Node.js microservices with real traffic and real risk
342
+ ---