claudient 0.1.0

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 (283) hide show
  1. package/.claude-plugin/plugin.json +42 -0
  2. package/CONTEXT.md +58 -0
  3. package/README.md +165 -0
  4. package/agents/build-resolvers/de/python-resolver.md +64 -0
  5. package/agents/build-resolvers/de/typescript-resolver.md +65 -0
  6. package/agents/build-resolvers/es/python-resolver.md +64 -0
  7. package/agents/build-resolvers/es/typescript-resolver.md +65 -0
  8. package/agents/build-resolvers/fr/python-resolver.md +64 -0
  9. package/agents/build-resolvers/fr/typescript-resolver.md +65 -0
  10. package/agents/build-resolvers/nl/python-resolver.md +64 -0
  11. package/agents/build-resolvers/nl/typescript-resolver.md +65 -0
  12. package/agents/build-resolvers/python-resolver.md +62 -0
  13. package/agents/build-resolvers/typescript-resolver.md +63 -0
  14. package/agents/core/architect.md +64 -0
  15. package/agents/core/code-reviewer.md +78 -0
  16. package/agents/core/de/architect.md +66 -0
  17. package/agents/core/de/code-reviewer.md +80 -0
  18. package/agents/core/de/planner.md +63 -0
  19. package/agents/core/de/security-reviewer.md +93 -0
  20. package/agents/core/es/architect.md +66 -0
  21. package/agents/core/es/code-reviewer.md +80 -0
  22. package/agents/core/es/planner.md +63 -0
  23. package/agents/core/es/security-reviewer.md +93 -0
  24. package/agents/core/fr/architect.md +66 -0
  25. package/agents/core/fr/code-reviewer.md +80 -0
  26. package/agents/core/fr/planner.md +63 -0
  27. package/agents/core/fr/security-reviewer.md +93 -0
  28. package/agents/core/nl/architect.md +66 -0
  29. package/agents/core/nl/code-reviewer.md +80 -0
  30. package/agents/core/nl/planner.md +63 -0
  31. package/agents/core/nl/security-reviewer.md +93 -0
  32. package/agents/core/planner.md +61 -0
  33. package/agents/core/security-reviewer.md +91 -0
  34. package/guides/agent-orchestration.md +231 -0
  35. package/guides/de/agent-orchestration.md +174 -0
  36. package/guides/de/getting-started.md +164 -0
  37. package/guides/de/hooks-cookbook.md +160 -0
  38. package/guides/de/memory-management.md +153 -0
  39. package/guides/de/security.md +180 -0
  40. package/guides/de/skill-authoring.md +214 -0
  41. package/guides/de/token-optimization.md +156 -0
  42. package/guides/es/agent-orchestration.md +174 -0
  43. package/guides/es/getting-started.md +164 -0
  44. package/guides/es/hooks-cookbook.md +160 -0
  45. package/guides/es/memory-management.md +153 -0
  46. package/guides/es/security.md +180 -0
  47. package/guides/es/skill-authoring.md +214 -0
  48. package/guides/es/token-optimization.md +156 -0
  49. package/guides/fr/agent-orchestration.md +174 -0
  50. package/guides/fr/getting-started.md +164 -0
  51. package/guides/fr/hooks-cookbook.md +227 -0
  52. package/guides/fr/memory-management.md +169 -0
  53. package/guides/fr/security.md +180 -0
  54. package/guides/fr/skill-authoring.md +214 -0
  55. package/guides/fr/token-optimization.md +158 -0
  56. package/guides/getting-started.md +164 -0
  57. package/guides/hooks-cookbook.md +423 -0
  58. package/guides/memory-management.md +192 -0
  59. package/guides/nl/agent-orchestration.md +174 -0
  60. package/guides/nl/getting-started.md +164 -0
  61. package/guides/nl/hooks-cookbook.md +160 -0
  62. package/guides/nl/memory-management.md +153 -0
  63. package/guides/nl/security.md +180 -0
  64. package/guides/nl/skill-authoring.md +214 -0
  65. package/guides/nl/token-optimization.md +156 -0
  66. package/guides/security.md +229 -0
  67. package/guides/skill-authoring.md +226 -0
  68. package/guides/token-optimization.md +169 -0
  69. package/hooks/lifecycle/cost-tracker.md +49 -0
  70. package/hooks/lifecycle/cost-tracker.sh +59 -0
  71. package/hooks/lifecycle/pre-compact-save.md +56 -0
  72. package/hooks/lifecycle/pre-compact-save.sh +37 -0
  73. package/hooks/lifecycle/session-start.md +50 -0
  74. package/hooks/lifecycle/session-start.sh +47 -0
  75. package/hooks/post-tool-use/audit-log.md +53 -0
  76. package/hooks/post-tool-use/audit-log.sh +53 -0
  77. package/hooks/post-tool-use/prettier.md +53 -0
  78. package/hooks/post-tool-use/prettier.sh +49 -0
  79. package/hooks/pre-tool-use/block-dangerous.md +48 -0
  80. package/hooks/pre-tool-use/block-dangerous.sh +76 -0
  81. package/hooks/pre-tool-use/git-push-confirm.md +46 -0
  82. package/hooks/pre-tool-use/git-push-confirm.sh +36 -0
  83. package/mcp/configs/github.json +11 -0
  84. package/mcp/configs/postgres.json +11 -0
  85. package/mcp/de/recommended-servers.md +170 -0
  86. package/mcp/es/recommended-servers.md +170 -0
  87. package/mcp/fr/recommended-servers.md +170 -0
  88. package/mcp/nl/recommended-servers.md +170 -0
  89. package/mcp/recommended-servers.md +168 -0
  90. package/package.json +45 -0
  91. package/prompts/project-starters/de/fastapi-project.md +62 -0
  92. package/prompts/project-starters/de/nextjs-project.md +82 -0
  93. package/prompts/project-starters/es/fastapi-project.md +62 -0
  94. package/prompts/project-starters/es/nextjs-project.md +82 -0
  95. package/prompts/project-starters/fastapi-project.md +60 -0
  96. package/prompts/project-starters/fr/fastapi-project.md +62 -0
  97. package/prompts/project-starters/fr/nextjs-project.md +82 -0
  98. package/prompts/project-starters/nextjs-project.md +80 -0
  99. package/prompts/project-starters/nl/fastapi-project.md +62 -0
  100. package/prompts/project-starters/nl/nextjs-project.md +82 -0
  101. package/prompts/system-prompts/ai-product.md +80 -0
  102. package/prompts/system-prompts/data-pipeline.md +76 -0
  103. package/prompts/system-prompts/de/ai-product.md +82 -0
  104. package/prompts/system-prompts/de/data-pipeline.md +78 -0
  105. package/prompts/system-prompts/de/saas-backend.md +71 -0
  106. package/prompts/system-prompts/es/ai-product.md +82 -0
  107. package/prompts/system-prompts/es/data-pipeline.md +78 -0
  108. package/prompts/system-prompts/es/saas-backend.md +71 -0
  109. package/prompts/system-prompts/fr/ai-product.md +82 -0
  110. package/prompts/system-prompts/fr/data-pipeline.md +78 -0
  111. package/prompts/system-prompts/fr/saas-backend.md +71 -0
  112. package/prompts/system-prompts/nl/ai-product.md +82 -0
  113. package/prompts/system-prompts/nl/data-pipeline.md +78 -0
  114. package/prompts/system-prompts/nl/saas-backend.md +71 -0
  115. package/prompts/system-prompts/saas-backend.md +69 -0
  116. package/prompts/task-specific/changelog.md +81 -0
  117. package/prompts/task-specific/de/changelog.md +83 -0
  118. package/prompts/task-specific/de/debugging.md +78 -0
  119. package/prompts/task-specific/de/pr-description.md +69 -0
  120. package/prompts/task-specific/debugging.md +76 -0
  121. package/prompts/task-specific/es/changelog.md +83 -0
  122. package/prompts/task-specific/es/debugging.md +78 -0
  123. package/prompts/task-specific/es/pr-description.md +69 -0
  124. package/prompts/task-specific/fr/changelog.md +83 -0
  125. package/prompts/task-specific/fr/debugging.md +78 -0
  126. package/prompts/task-specific/fr/pr-description.md +69 -0
  127. package/prompts/task-specific/nl/changelog.md +83 -0
  128. package/prompts/task-specific/nl/debugging.md +78 -0
  129. package/prompts/task-specific/nl/pr-description.md +69 -0
  130. package/prompts/task-specific/pr-description.md +67 -0
  131. package/rules/common/coding-style.md +45 -0
  132. package/rules/common/de/coding-style.md +47 -0
  133. package/rules/common/de/git.md +48 -0
  134. package/rules/common/de/performance.md +40 -0
  135. package/rules/common/de/security.md +45 -0
  136. package/rules/common/de/testing.md +45 -0
  137. package/rules/common/es/coding-style.md +47 -0
  138. package/rules/common/es/git.md +48 -0
  139. package/rules/common/es/performance.md +40 -0
  140. package/rules/common/es/security.md +45 -0
  141. package/rules/common/es/testing.md +45 -0
  142. package/rules/common/fr/coding-style.md +47 -0
  143. package/rules/common/fr/git.md +48 -0
  144. package/rules/common/fr/performance.md +40 -0
  145. package/rules/common/fr/security.md +45 -0
  146. package/rules/common/fr/testing.md +45 -0
  147. package/rules/common/git.md +46 -0
  148. package/rules/common/nl/coding-style.md +47 -0
  149. package/rules/common/nl/git.md +48 -0
  150. package/rules/common/nl/performance.md +40 -0
  151. package/rules/common/nl/security.md +45 -0
  152. package/rules/common/nl/testing.md +45 -0
  153. package/rules/common/performance.md +38 -0
  154. package/rules/common/security.md +43 -0
  155. package/rules/common/testing.md +43 -0
  156. package/rules/language-specific/de/go.md +48 -0
  157. package/rules/language-specific/de/python.md +38 -0
  158. package/rules/language-specific/de/typescript.md +51 -0
  159. package/rules/language-specific/es/go.md +48 -0
  160. package/rules/language-specific/es/python.md +38 -0
  161. package/rules/language-specific/es/typescript.md +51 -0
  162. package/rules/language-specific/fr/go.md +48 -0
  163. package/rules/language-specific/fr/python.md +38 -0
  164. package/rules/language-specific/fr/typescript.md +51 -0
  165. package/rules/language-specific/go.md +46 -0
  166. package/rules/language-specific/nl/go.md +48 -0
  167. package/rules/language-specific/nl/python.md +38 -0
  168. package/rules/language-specific/nl/typescript.md +51 -0
  169. package/rules/language-specific/python.md +36 -0
  170. package/rules/language-specific/typescript.md +49 -0
  171. package/scripts/cli.js +161 -0
  172. package/scripts/link-skills.sh +35 -0
  173. package/scripts/list-skills.sh +34 -0
  174. package/skills/ai-engineering/agent-construction.md +285 -0
  175. package/skills/ai-engineering/claude-api.md +248 -0
  176. package/skills/ai-engineering/de/agent-construction.md +287 -0
  177. package/skills/ai-engineering/de/claude-api.md +250 -0
  178. package/skills/ai-engineering/es/agent-construction.md +287 -0
  179. package/skills/ai-engineering/es/claude-api.md +250 -0
  180. package/skills/ai-engineering/fr/agent-construction.md +287 -0
  181. package/skills/ai-engineering/fr/claude-api.md +250 -0
  182. package/skills/ai-engineering/nl/agent-construction.md +287 -0
  183. package/skills/ai-engineering/nl/claude-api.md +250 -0
  184. package/skills/backend/dotnet/csharp.md +304 -0
  185. package/skills/backend/dotnet/de/csharp.md +306 -0
  186. package/skills/backend/dotnet/es/csharp.md +306 -0
  187. package/skills/backend/dotnet/fr/csharp.md +306 -0
  188. package/skills/backend/dotnet/nl/csharp.md +306 -0
  189. package/skills/backend/go/de/go.md +307 -0
  190. package/skills/backend/go/es/go.md +307 -0
  191. package/skills/backend/go/fr/go.md +307 -0
  192. package/skills/backend/go/go.md +305 -0
  193. package/skills/backend/go/nl/go.md +307 -0
  194. package/skills/backend/nodejs/de/nestjs.md +274 -0
  195. package/skills/backend/nodejs/de/nextjs.md +222 -0
  196. package/skills/backend/nodejs/es/nestjs.md +274 -0
  197. package/skills/backend/nodejs/es/nextjs.md +222 -0
  198. package/skills/backend/nodejs/fr/nestjs.md +274 -0
  199. package/skills/backend/nodejs/fr/nextjs.md +222 -0
  200. package/skills/backend/nodejs/nestjs.md +272 -0
  201. package/skills/backend/nodejs/nextjs.md +220 -0
  202. package/skills/backend/nodejs/nl/nestjs.md +274 -0
  203. package/skills/backend/nodejs/nl/nextjs.md +222 -0
  204. package/skills/backend/python/de/django.md +285 -0
  205. package/skills/backend/python/de/fastapi.md +244 -0
  206. package/skills/backend/python/django.md +283 -0
  207. package/skills/backend/python/es/django.md +285 -0
  208. package/skills/backend/python/es/fastapi.md +244 -0
  209. package/skills/backend/python/fastapi.md +242 -0
  210. package/skills/backend/python/fr/django.md +285 -0
  211. package/skills/backend/python/fr/fastapi.md +244 -0
  212. package/skills/backend/python/nl/django.md +285 -0
  213. package/skills/backend/python/nl/fastapi.md +244 -0
  214. package/skills/data-ml/dbt-data-pipelines.md +155 -0
  215. package/skills/data-ml/de/dbt-data-pipelines.md +157 -0
  216. package/skills/data-ml/de/pandas-polars.md +147 -0
  217. package/skills/data-ml/de/pytorch-tensorflow.md +171 -0
  218. package/skills/data-ml/es/dbt-data-pipelines.md +157 -0
  219. package/skills/data-ml/es/pandas-polars.md +147 -0
  220. package/skills/data-ml/es/pytorch-tensorflow.md +171 -0
  221. package/skills/data-ml/fr/dbt-data-pipelines.md +157 -0
  222. package/skills/data-ml/fr/pandas-polars.md +147 -0
  223. package/skills/data-ml/fr/pytorch-tensorflow.md +171 -0
  224. package/skills/data-ml/nl/dbt-data-pipelines.md +157 -0
  225. package/skills/data-ml/nl/pandas-polars.md +147 -0
  226. package/skills/data-ml/nl/pytorch-tensorflow.md +171 -0
  227. package/skills/data-ml/pandas-polars.md +145 -0
  228. package/skills/data-ml/pytorch-tensorflow.md +169 -0
  229. package/skills/database/de/graphql.md +181 -0
  230. package/skills/database/es/graphql.md +181 -0
  231. package/skills/database/fr/graphql.md +181 -0
  232. package/skills/database/graphql.md +179 -0
  233. package/skills/database/nl/graphql.md +181 -0
  234. package/skills/devops-infra/de/docker.md +133 -0
  235. package/skills/devops-infra/de/github-actions.md +179 -0
  236. package/skills/devops-infra/de/kubernetes.md +129 -0
  237. package/skills/devops-infra/de/terraform.md +130 -0
  238. package/skills/devops-infra/docker.md +131 -0
  239. package/skills/devops-infra/es/docker.md +133 -0
  240. package/skills/devops-infra/es/github-actions.md +179 -0
  241. package/skills/devops-infra/es/kubernetes.md +129 -0
  242. package/skills/devops-infra/es/terraform.md +130 -0
  243. package/skills/devops-infra/fr/docker.md +133 -0
  244. package/skills/devops-infra/fr/github-actions.md +179 -0
  245. package/skills/devops-infra/fr/kubernetes.md +129 -0
  246. package/skills/devops-infra/fr/terraform.md +130 -0
  247. package/skills/devops-infra/github-actions.md +177 -0
  248. package/skills/devops-infra/kubernetes.md +127 -0
  249. package/skills/devops-infra/nl/docker.md +133 -0
  250. package/skills/devops-infra/nl/github-actions.md +179 -0
  251. package/skills/devops-infra/nl/kubernetes.md +129 -0
  252. package/skills/devops-infra/nl/terraform.md +130 -0
  253. package/skills/devops-infra/terraform.md +128 -0
  254. package/skills/finance-payments/de/stripe.md +187 -0
  255. package/skills/finance-payments/es/stripe.md +187 -0
  256. package/skills/finance-payments/fr/stripe.md +187 -0
  257. package/skills/finance-payments/nl/stripe.md +187 -0
  258. package/skills/finance-payments/stripe.md +185 -0
  259. package/workflows/code-review.md +151 -0
  260. package/workflows/de/code-review.md +153 -0
  261. package/workflows/de/debugging-session.md +146 -0
  262. package/workflows/de/feature-development.md +155 -0
  263. package/workflows/de/new-project-bootstrap.md +175 -0
  264. package/workflows/de/refactor-safely.md +150 -0
  265. package/workflows/debugging-session.md +144 -0
  266. package/workflows/es/code-review.md +153 -0
  267. package/workflows/es/debugging-session.md +146 -0
  268. package/workflows/es/feature-development.md +155 -0
  269. package/workflows/es/new-project-bootstrap.md +175 -0
  270. package/workflows/es/refactor-safely.md +150 -0
  271. package/workflows/feature-development.md +153 -0
  272. package/workflows/fr/code-review.md +153 -0
  273. package/workflows/fr/debugging-session.md +146 -0
  274. package/workflows/fr/feature-development.md +155 -0
  275. package/workflows/fr/new-project-bootstrap.md +175 -0
  276. package/workflows/fr/refactor-safely.md +150 -0
  277. package/workflows/new-project-bootstrap.md +173 -0
  278. package/workflows/nl/code-review.md +153 -0
  279. package/workflows/nl/debugging-session.md +146 -0
  280. package/workflows/nl/feature-development.md +155 -0
  281. package/workflows/nl/new-project-bootstrap.md +175 -0
  282. package/workflows/nl/refactor-safely.md +150 -0
  283. package/workflows/refactor-safely.md +148 -0
@@ -0,0 +1,93 @@
1
+ > 🇩🇪 Dies ist die deutsche Übersetzung. [Englische Version](../security-reviewer.md).
2
+
3
+ # Security Reviewer Agent
4
+
5
+ ## Zweck
6
+ Führt ein gezieltes Sicherheitsaudit von Code-Änderungen oder einem bestimmten Modul durch — mit Fokus auf OWASP Top 10, Secrets-Exposition, Authentifizierungs-/Autorisierungsfehler und Injection-Schwachstellen.
7
+
8
+ ## Modellempfehlung
9
+ **Opus 4.7** — Sicherheitsreviews erfordern tiefes Reasoning, um nicht offensichtliche Angriffsvektoren zu identifizieren, zu verstehen, wie Schwachstellen zusammenwirken, und zu bewerten, ob Gegenmaßnahmen tatsächlich wirksam sind. Haiku oder Sonnet nicht für sicherheitskritische Reviews verwenden.
10
+
11
+ ## Tools
12
+ - `Read` — zu prüfende Dateien, CLAUDE.md, Auth/Middleware-Code lesen
13
+ - `Bash` (nur lesend: `grep`, `find`) — nach Mustern suchen (hartcodierte Secrets, unsichere Funktionen, fehlende Auth-Prüfungen)
14
+ - `WebFetch` — CVE-Datenbanken oder Sicherheitshinweise für spezifische Abhängigkeiten prüfen
15
+ - Kein `Edit`, `Write` oder destruktive Operationen
16
+
17
+ ## Wann hierher delegieren
18
+ - Vor dem Mergen von Code, der Authentifizierung, Autorisierung oder Session-Verwaltung berĂĽhrt
19
+ - Vor dem Deployen von Code, der Benutzereingaben verarbeitet (Formulare, Datei-Uploads, API-Parameter)
20
+ - ĂśberprĂĽfung von Datenbankabfrage-Konstruktion auf Injection-Risiken
21
+ - Auditierung von API-Endpunkten auf fehlende Auth/Authz-PrĂĽfungen
22
+ - PrĂĽfung auf versehentlich im Code enthaltene Secrets oder Anmeldedaten
23
+ - Überprüfung von Drittanbieter-Abhängigkeiten auf bekannte CVEs
24
+
25
+ ## Wann NICHT hierher delegieren
26
+ - Allgemeine Code-Qualitätsüberprüfung (Code Reviewer verwenden)
27
+ - Infra/Netzwerk-Sicherheit (dediziertes Cloud-Sicherheitstool verwenden)
28
+ - Penetrationstests (dynamisches Testen, keine statische Analyse)
29
+
30
+ ## Prompt-Vorlage
31
+ ```
32
+ You are a security reviewer. Do not modify any files. Report findings only.
33
+
34
+ Files to review:
35
+ [list files or paste code]
36
+
37
+ Application context:
38
+ - What this code does: [brief description]
39
+ - Auth mechanism: [JWT, sessions, API keys, etc.]
40
+ - Database: [PostgreSQL/MySQL/MongoDB + ORM if any]
41
+ - User input sources: [API params, form data, file uploads, etc.]
42
+ - Known sensitive operations: [payments, admin actions, user data access]
43
+
44
+ Audit for:
45
+ 1. Injection (SQL, NoSQL, command, LDAP, XPath)
46
+ 2. Broken authentication (weak tokens, missing expiry, insecure storage)
47
+ 3. Broken access control (missing auth checks, IDOR, privilege escalation)
48
+ 4. Sensitive data exposure (secrets in code, logs, error messages)
49
+ 5. Security misconfiguration (default credentials, verbose errors, open CORS)
50
+ 6. XSS (reflected, stored, DOM-based)
51
+ 7. CSRF (missing tokens on state-changing endpoints)
52
+ 8. Insecure dependencies (known CVEs in imports)
53
+ 9. Insufficient logging (failed auth attempts not logged, no audit trail)
54
+
55
+ Severity: CRITICAL / HIGH / MEDIUM / LOW / INFO
56
+
57
+ For each finding:
58
+ - Severity
59
+ - Location (file:line)
60
+ - Vulnerability description
61
+ - Attack scenario (how would an attacker exploit this?)
62
+ - Recommended fix
63
+ ```
64
+
65
+ ## Beispiel-Anwendungsfall
66
+ **Szenario:** Einen neuen Datei-Upload-Endpunkt ĂĽberprĂĽfen.
67
+
68
+ **Was Security Reviewer zurĂĽckgibt:**
69
+ ```
70
+ CRITICAL — uploads/routes.ts:28
71
+ Dateiendung nicht validiert vor dem Speichern. Angreifer kann .php oder .exe hochladen.
72
+ Angriff: malicious.php hochladen, ĂĽber URL zugreifen, beliebigen Code auf dem Server ausfĂĽhren.
73
+ Lösung: Erlaubte MIME-Typen + Endungen in einer Allowlist, beides validieren. Niemals dem client-bereitgestellten Content-Type vertrauen.
74
+
75
+ HIGH — uploads/routes.ts:41
76
+ Datei in web-zugänglichem Verzeichnis gespeichert (/public/uploads).
77
+ Angriff: Hochgeladene Dateien sind direkt über URL ausführbar/zugänglich.
78
+ Lösung: Außerhalb des Webroots speichern, über signierte URLs mit Ablauf bereitstellen.
79
+
80
+ MEDIUM — uploads/routes.ts:15
81
+ Kein Dateigrößenlimit serverseitig erzwungen (nur client-seitige Prüfung).
82
+ Angriff: Große Dateien senden, um Festplattenplatz zu erschöpfen oder OOM zu verursachen.
83
+ Lösung: multer/busboy-Größenlimit auf Middleware-Ebene hinzufügen.
84
+
85
+ LOW — uploads/routes.ts:55
86
+ Originaler Dateiname im Speicherpfad ohne Bereinigung verwendet.
87
+ Angriff: Path Traversal ĂĽber Dateinamen wie "../../etc/passwd".
88
+ Lösung: UUID-Dateiname generieren, originalen Dateinamen für den Speicherpfad ignorieren.
89
+ ```
90
+
91
+ ---
92
+
93
+ > **Mit uns arbeiten:** Claudient wird von [Uitbreiden](https://uitbreiden.com/) unterstützt — wir bauen KI-Produkte und B2B-Lösungen mit Entwickler-Communities. [uitbreiden.com](https://uitbreiden.com/)
@@ -0,0 +1,66 @@
1
+ > 🇪🇸 Esta es la traducción en español. [Versión en inglés](../architect.md).
2
+
3
+ # Agente Arquitecto
4
+
5
+ ## PropĂłsito
6
+ Evalúa opciones arquitectónicas para un problema de diseño de sistema, considera las compensaciones y recomienda un enfoque específico con justificación.
7
+
8
+ ## OrientaciĂłn sobre el modelo
9
+ **Opus 4.7** — las decisiones arquitectónicas son de alto riesgo, difíciles de revertir y requieren razonamiento genuino sobre compensaciones complejas. Este es uno de los pocos casos donde Opus justifica su costo.
10
+
11
+ ## Herramientas
12
+ - `Read` — leer archivos de arquitectura existentes, CLAUDE.md, CONTEXT.md, ADRs
13
+ - `Bash` (solo lectura: `find`, `grep`) — explorar patrones y dependencias existentes
14
+ - `WebFetch` — verificar documentación para tecnologías específicas bajo consideración
15
+ - Sin `Edit`, `Write` ni operaciones destructivas — el arquitecto recomienda, no implementa
16
+
17
+ ## Cuándo delegar aquí
18
+ - Elegir entre enfoques fundamentalmente diferentes (p.ej., orientado a eventos vs. solicitud-respuesta, monorepo vs. polyrepo, SQL vs. NoSQL)
19
+ - Una decisión que será costosa de revertir (forma del modelo de datos, diseño del contrato de API, estrategia de autenticación)
20
+ - Evaluar si construir vs. comprar un componente
21
+ - Revisar una arquitectura existente por problemas de escalabilidad o mantenibilidad
22
+ - Diseñar un nuevo sistema desde cero con múltiples enfoques viables
23
+
24
+ ## Cuándo NO delegar aquí
25
+ - Decisiones a nivel de implementación (qué biblioteca usar para una utilidad, elecciones de estilo de código)
26
+ - Cuando la arquitectura ya está decidida y solo necesitas implementarla
27
+ - OptimizaciĂłn de rendimiento del cĂłdigo existente (no arquitectĂłnico)
28
+
29
+ ## Plantilla de prompt
30
+ ```
31
+ You are an architecture advisor. Do not write implementation code.
32
+
33
+ Problem: [describe the architectural decision to be made]
34
+
35
+ Current system context:
36
+ - Stack: [languages, frameworks, infrastructure]
37
+ - Scale: [users, requests/sec, data volume]
38
+ - Team: [size, expertise areas]
39
+ - Constraints: [budget, timeline, existing systems that can't change]
40
+
41
+ Existing architectural decisions (from ADRs/CLAUDE.md):
42
+ [paste relevant decisions]
43
+
44
+ Evaluate [2-3 specific options] and recommend one.
45
+
46
+ For each option, cover:
47
+ - How it works in this context
48
+ - Advantages specific to our constraints
49
+ - Disadvantages and risks
50
+ - What it would cost to reverse this decision later
51
+
52
+ End with: your recommendation, one-sentence rationale, and what to record in an ADR.
53
+ ```
54
+
55
+ ## Caso de uso de ejemplo
56
+ **Escenario:** "ÂżDeberĂ­amos usar Kafka, SQS o polling directo a la BD para nuestra cola de jobs asĂ­ncronos?"
57
+
58
+ **Lo que devuelve el Arquitecto:**
59
+ - EvalĂşa las 3 opciones contra: escala actual (5k eventos/dĂ­a), experiencia del equipo (fuerte en AWS, sin experiencia con Kafka), presupuesto (startup)
60
+ - Recomienda: SQS — se adapta a la escala, experiencia del equipo e infraestructura AWS existente. Kafka añade complejidad operacional no justificada al volumen actual.
61
+ - RecomendaciĂłn ADR: Registrar el umbral de escala (>500k eventos/dĂ­a) en el que reconsiderar Kafka.
62
+ - Riesgo señalado: Las colas FIFO de SQS tienen un límite de 3k msg/seg — verificar que esto no se convierta en un techo.
63
+
64
+ ---
65
+
66
+ > **Trabaja con nosotros:** Claudient está respaldado por [Uitbreiden](https://uitbreiden.com/) — construimos productos de IA y soluciones B2B con comunidades de desarrolladores. [uitbreiden.com](https://uitbreiden.com/)
@@ -0,0 +1,80 @@
1
+ > 🇪🇸 Esta es la traducción en español. [Versión en inglés](../code-reviewer.md).
2
+
3
+ # Agente Revisor de CĂłdigo
4
+
5
+ ## PropĂłsito
6
+ Revisa un diff o conjunto de archivos modificados buscando corrección, mantenibilidad, problemas de seguridad y adherencia a las convenciones del proyecto — y devuelve comentarios estructurados y accionables.
7
+
8
+ ## OrientaciĂłn sobre el modelo
9
+ **Haiku 4.5** para revisar diffs pequeños (< 200 líneas modificadas) o cambios de un solo archivo. Rápido y económico.
10
+
11
+ **Sonnet 4.6** para cambios en múltiples archivos, revisión de lógica compleja, o cuando el revisor necesita rastrear el flujo de datos a través de archivos.
12
+
13
+ ## Herramientas
14
+ - `Read` — leer los archivos modificados y sus pruebas
15
+ - `Bash` (solo lectura: `git diff`, `grep`) — comparar cambios, buscar patrones relacionados
16
+ - Sin `Edit`, `Write` ni operaciones destructivas — el revisor reporta, no corrige
17
+
18
+ ## Cuándo delegar aquí
19
+ - RevisiĂłn previa al commit de tus propios cambios antes de hacer push
20
+ - RevisiĂłn de cĂłdigo de una rama PR antes de hacer merge
21
+ - RevisiĂłn de cĂłdigo generado por IA antes de aceptarlo
22
+ - AuditorĂ­a de un mĂłdulo por problemas de calidad de cĂłdigo
23
+ - Segunda opiniĂłn sobre una implementaciĂłn compleja
24
+
25
+ ## Cuándo NO delegar aquí
26
+ - Cuando quieres correcciones automáticas (usa un agente Builder en su lugar)
27
+ - RevisiĂłn de configuraciones de infraestructura (usa el Revisor de Seguridad para infraestructura sensible)
28
+ - RetroalimentaciĂłn solo de estilo (usa hooks de Prettier/ESLint en su lugar)
29
+
30
+ ## Plantilla de prompt
31
+ ```
32
+ You are a code reviewer. Do not modify any files. Report only — do not fix.
33
+
34
+ Changed files:
35
+ [list files or paste diff]
36
+
37
+ Project context:
38
+ - Language/framework: [e.g., TypeScript, Next.js, Prisma]
39
+ - Testing approach: [e.g., Jest, integration tests, no mocks]
40
+ - Conventions: [paste relevant CLAUDE.md sections]
41
+
42
+ Review for:
43
+ 1. Correctness — does it do what it claims? Edge cases not handled?
44
+ 2. Security — SQL injection, XSS, unvalidated input, secret exposure?
45
+ 3. Error handling — are failures handled explicitly? Can this panic/throw unexpectedly?
46
+ 4. Test coverage — are the changed behaviors tested?
47
+ 5. Maintainability — is this easy to understand and modify in 6 months?
48
+ 6. Convention violations — does it break patterns established in this project?
49
+
50
+ Format your output as:
51
+ - CRITICAL (must fix before merge): [list]
52
+ - SUGGESTED (worth doing): [list]
53
+ - NITPICK (optional): [list]
54
+ - APPROVED if no critical issues
55
+
56
+ One comment per issue. File + line number where applicable.
57
+ ```
58
+
59
+ ## Caso de uso de ejemplo
60
+ **Escenario:** Revisar un nuevo endpoint de API para crear cuentas de usuario.
61
+
62
+ **Lo que devuelve el Revisor de CĂłdigo:**
63
+ ```
64
+ CRITICAL:
65
+ - auth/routes.ts:45 — password stored as plaintext. Must hash with bcrypt before save.
66
+ - auth/routes.ts:52 — email not validated before DB insert. Use zod/joi schema.
67
+
68
+ SUGGESTED:
69
+ - auth/routes.ts:60 — no rate limiting on this endpoint. Add rate limiter middleware.
70
+ - auth/tests.ts — no test for duplicate email registration (should return 409).
71
+
72
+ NITPICK:
73
+ - auth/routes.ts:38 — variable name 'u' is ambiguous, use 'user'.
74
+
75
+ APPROVED pending CRITICAL fixes.
76
+ ```
77
+
78
+ ---
79
+
80
+ > **Trabaja con nosotros:** Claudient está respaldado por [Uitbreiden](https://uitbreiden.com/) — construimos productos de IA y soluciones B2B con comunidades de desarrolladores. [uitbreiden.com](https://uitbreiden.com/)
@@ -0,0 +1,63 @@
1
+ > 🇪🇸 Esta es la traducción en español. [Versión en inglés](../planner.md).
2
+
3
+ # Agente Planificador
4
+
5
+ ## PropĂłsito
6
+ Descompone un objetivo vago o complejo en un plan de implementaciĂłn concreto y secuenciado antes de que se escriba cualquier cĂłdigo.
7
+
8
+ ## OrientaciĂłn sobre el modelo
9
+ **Sonnet 4.6** — la planificación requiere razonar sobre el alcance completo del problema pero no la comprensión profunda de código de Opus. Sonnet es suficiente y ~3x más económico.
10
+
11
+ Escala a **Opus 4.7** solo cuando el plan involucra decisiones arquitectónicas a través de muchos sistemas con compensaciones no obvias.
12
+
13
+ ## Herramientas
14
+ - `Read` — leer código existente, CLAUDE.md, CONTEXT.md, archivos relevantes
15
+ - `Bash` (solo lectura: `find`, `grep`, `ls`, `cat`) — explorar la estructura del codebase
16
+ - Sin `Edit`, `Write` ni `Bash` destructivo — este agente planifica, no implementa
17
+
18
+ ## Cuándo delegar aquí
19
+ - El usuario da un objetivo que abarca más de 3 archivos o 2 sistemas
20
+ - La tarea es lo suficientemente ambigua como para que saltar directamente al cĂłdigo arriesgue trabajo desperdiciado
21
+ - Necesitas una lista de verificaciĂłn secuenciada antes de comenzar una sesiĂłn de implementaciĂłn larga
22
+ - Una nueva funcionalidad necesita ser diseñada antes de escribir cualquier código
23
+
24
+ ## Cuándo NO delegar aquí
25
+ - Tareas simples y claramente acotadas (agregar un campo, corregir un bug en una funciĂłn)
26
+ - Cuando ya tienes un plan y solo necesitas ejecutarlo
27
+ - Tareas de refactoring donde el alcance ya es obvio
28
+
29
+ ## Plantilla de prompt
30
+ ```
31
+ You are a planning agent. Do not write code. Do not edit files.
32
+
33
+ Your task: [describe the goal]
34
+
35
+ Context:
36
+ - Project structure: [paste key directories]
37
+ - Relevant files: [list files the plan must account for]
38
+ - Constraints: [any decisions already made]
39
+ - CONTEXT.md: [paste if available]
40
+
41
+ Produce:
42
+ 1. A numbered implementation plan — each step is a concrete, bounded action
43
+ 2. Files that will be created or modified per step
44
+ 3. Dependencies between steps (which must complete before which)
45
+ 4. Risks or open questions that need answers before implementation begins
46
+
47
+ Do not include code samples. Focus on sequencing and scope.
48
+ ```
49
+
50
+ ## Caso de uso de ejemplo
51
+ **Escenario:** "Agregar multi-tenancy a nuestra aplicaciĂłn SaaS existente de un solo tenant."
52
+
53
+ **Lo que devuelve el Planificador:**
54
+ 1. Agregar columna `organization_id` a todas las tablas de ámbito de tenant (5 migraciones listadas)
55
+ 2. Actualizar todas las consultas de Prisma para filtrar por `organization_id` del contexto de solicitud
56
+ 3. Agregar `OrganizationMiddleware` para inyectar el contexto de org desde la claim JWT
57
+ 4. Actualizar datos semilla y pruebas para usar fixtures de organizaciĂłn
58
+ 5. Auditar todos los endpoints admin por falta de ámbito de org — lista de 8 archivos a verificar
59
+ 6. **Riesgo:** Los usuarios creados antes de la migración no tienen `organization_id` — necesita decisión de backfill antes del paso 1
60
+
61
+ ---
62
+
63
+ > **Trabaja con nosotros:** Claudient está respaldado por [Uitbreiden](https://uitbreiden.com/) — construimos productos de IA y soluciones B2B con comunidades de desarrolladores. [uitbreiden.com](https://uitbreiden.com/)
@@ -0,0 +1,93 @@
1
+ > 🇪🇸 Esta es la traducción en español. [Versión en inglés](../security-reviewer.md).
2
+
3
+ # Agente Revisor de Seguridad
4
+
5
+ ## PropĂłsito
6
+ Realiza una auditoría de seguridad orientada de cambios de código o un módulo específico — centrándose en el OWASP Top 10, exposición de secretos, fallos de autenticación/autorización y vulnerabilidades de inyección.
7
+
8
+ ## OrientaciĂłn sobre el modelo
9
+ **Opus 4.7** — la revisión de seguridad requiere razonamiento profundo para identificar vectores de ataque no obvios, entender cómo se encadenan las vulnerabilidades y evaluar si las mitigaciones son realmente efectivas. No uses Haiku ni Sonnet para revisiones de seguridad críticas.
10
+
11
+ ## Herramientas
12
+ - `Read` — leer archivos bajo revisión, CLAUDE.md, código de autenticación/middleware
13
+ - `Bash` (solo lectura: `grep`, `find`) — buscar patrones (secretos hardcodeados, funciones inseguras, verificaciones de autenticación faltantes)
14
+ - `WebFetch` — verificar bases de datos CVE o avisos de seguridad para dependencias específicas
15
+ - Sin `Edit`, `Write` ni operaciones destructivas
16
+
17
+ ## Cuándo delegar aquí
18
+ - Antes de hacer merge de cĂłdigo que toca autenticaciĂłn, autorizaciĂłn o gestiĂłn de sesiones
19
+ - Antes de desplegar código que maneja entradas del usuario (formularios, cargas de archivos, parámetros de API)
20
+ - RevisiĂłn de construcciĂłn de consultas a la base de datos por riesgos de inyecciĂłn
21
+ - AuditorĂ­a de endpoints de API por verificaciones faltantes de autenticaciĂłn/autorizaciĂłn
22
+ - VerificaciĂłn de secretos o credenciales incluidas accidentalmente en el cĂłdigo
23
+ - RevisiĂłn de adiciones de dependencias de terceros por CVEs conocidos
24
+
25
+ ## Cuándo NO delegar aquí
26
+ - RevisiĂłn general de calidad de cĂłdigo (usar el Revisor de CĂłdigo)
27
+ - Seguridad de infraestructura/red (usar una herramienta dedicada de seguridad cloud)
28
+ - Pruebas de penetración (pruebas dinámicas, no análisis estático)
29
+
30
+ ## Plantilla de prompt
31
+ ```
32
+ You are a security reviewer. Do not modify any files. Report findings only.
33
+
34
+ Files to review:
35
+ [list files or paste code]
36
+
37
+ Application context:
38
+ - What this code does: [brief description]
39
+ - Auth mechanism: [JWT, sessions, API keys, etc.]
40
+ - Database: [PostgreSQL/MySQL/MongoDB + ORM if any]
41
+ - User input sources: [API params, form data, file uploads, etc.]
42
+ - Known sensitive operations: [payments, admin actions, user data access]
43
+
44
+ Audit for:
45
+ 1. Injection (SQL, NoSQL, command, LDAP, XPath)
46
+ 2. Broken authentication (weak tokens, missing expiry, insecure storage)
47
+ 3. Broken access control (missing auth checks, IDOR, privilege escalation)
48
+ 4. Sensitive data exposure (secrets in code, logs, error messages)
49
+ 5. Security misconfiguration (default credentials, verbose errors, open CORS)
50
+ 6. XSS (reflected, stored, DOM-based)
51
+ 7. CSRF (missing tokens on state-changing endpoints)
52
+ 8. Insecure dependencies (known CVEs in imports)
53
+ 9. Insufficient logging (failed auth attempts not logged, no audit trail)
54
+
55
+ Severity: CRITICAL / HIGH / MEDIUM / LOW / INFO
56
+
57
+ For each finding:
58
+ - Severity
59
+ - Location (file:line)
60
+ - Vulnerability description
61
+ - Attack scenario (how would an attacker exploit this?)
62
+ - Recommended fix
63
+ ```
64
+
65
+ ## Caso de uso de ejemplo
66
+ **Escenario:** Revisar un nuevo endpoint de carga de archivos.
67
+
68
+ **Lo que devuelve el Revisor de Seguridad:**
69
+ ```
70
+ CRITICAL — uploads/routes.ts:28
71
+ File extension not validated before saving. Attacker can upload .php or .exe.
72
+ Attack: upload malicious.php, access via URL, execute arbitrary code on server.
73
+ Fix: whitelist allowed MIME types + extensions, validate both. Never trust client-provided content-type.
74
+
75
+ HIGH — uploads/routes.ts:41
76
+ File saved to web-accessible directory (/public/uploads).
77
+ Attack: uploaded files are directly executable/accessible by URL.
78
+ Fix: save outside webroot, serve via signed URLs with expiry.
79
+
80
+ MEDIUM — uploads/routes.ts:15
81
+ No file size limit enforced server-side (only client-side check).
82
+ Attack: send large files to exhaust disk space or cause OOM.
83
+ Fix: add multer/busboy size limit at middleware level.
84
+
85
+ LOW — uploads/routes.ts:55
86
+ Original filename used in storage path without sanitization.
87
+ Attack: path traversal via filename like "../../etc/passwd".
88
+ Fix: generate UUID filename, ignore original filename for storage path.
89
+ ```
90
+
91
+ ---
92
+
93
+ > **Trabaja con nosotros:** Claudient está respaldado por [Uitbreiden](https://uitbreiden.com/) — construimos productos de IA y soluciones B2B con comunidades de desarrolladores. [uitbreiden.com](https://uitbreiden.com/)
@@ -0,0 +1,66 @@
1
+ > 🇫🇷 This is the French translation. [English version](../architect.md).
2
+
3
+ # Agent Architecte
4
+
5
+ ## Objectif
6
+ Évalue les options architecturales pour un problème de conception de système, considère les compromis et recommande une approche spécifique avec justification.
7
+
8
+ ## Conseil sur le modèle
9
+ **Opus 4.7** — les décisions architecturales sont à enjeux élevés, difficiles à inverser et nécessitent un vrai raisonnement sur des compromis complexes. C'est l'un des rares cas où Opus justifie son coût.
10
+
11
+ ## Outils
12
+ - `Read` — lire les fichiers d'architecture existants, CLAUDE.md, CONTEXT.md, les ADRs
13
+ - `Bash` (lecture seule : `find`, `grep`) — explorer les patterns et dépendances existants
14
+ - `WebFetch` — vérifier la documentation pour les technologies spécifiques sous considération
15
+ - Pas de `Edit`, `Write`, ou opérations destructives — l'architecte recommande, il n'implémente pas
16
+
17
+ ## Quand déléguer ici
18
+ - Choisir entre des approches fondamentalement différentes (ex: event-driven vs. request-response, monorepo vs. polyrepo, SQL vs. NoSQL)
19
+ - Une décision qui sera coûteuse à inverser (forme du modèle de données, conception du contrat API, stratégie d'auth)
20
+ - Évaluer s'il faut construire ou acheter un composant
21
+ - Réviser une architecture existante pour des problèmes de scalabilité ou de maintenabilité
22
+ - Concevoir un nouveau système de zéro avec plusieurs approches viables
23
+
24
+ ## Quand NE PAS déléguer ici
25
+ - Décisions au niveau implémentation (quelle bibliothèque utiliser pour un utilitaire, choix de style de code)
26
+ - Quand l'architecture est déjà décidée et que vous devez juste l'implémenter
27
+ - Optimisation des performances du code existant (pas architectural)
28
+
29
+ ## Template de prompt
30
+ ```
31
+ You are an architecture advisor. Do not write implementation code.
32
+
33
+ Problem: [describe the architectural decision to be made]
34
+
35
+ Current system context:
36
+ - Stack: [languages, frameworks, infrastructure]
37
+ - Scale: [users, requests/sec, data volume]
38
+ - Team: [size, expertise areas]
39
+ - Constraints: [budget, timeline, existing systems that can't change]
40
+
41
+ Existing architectural decisions (from ADRs/CLAUDE.md):
42
+ [paste relevant decisions]
43
+
44
+ Evaluate [2-3 specific options] and recommend one.
45
+
46
+ For each option, cover:
47
+ - How it works in this context
48
+ - Advantages specific to our constraints
49
+ - Disadvantages and risks
50
+ - What it would cost to reverse this decision later
51
+
52
+ End with: your recommendation, one-sentence rationale, and what to record in an ADR.
53
+ ```
54
+
55
+ ## Exemple de cas d'utilisation
56
+ **Scénario :** "Devrions-nous utiliser Kafka, SQS, ou du polling direct de DB pour notre queue de jobs async ?"
57
+
58
+ **Ce que retourne l'Architecte :**
59
+ - Évalue les 3 contre : l'échelle actuelle (5k événements/jour), l'expertise de l'équipe (forte AWS, pas d'expérience Kafka), le budget (startup)
60
+ - Recommande : SQS — correspond à l'échelle, à l'expertise de l'équipe et à l'infrastructure AWS existante. Kafka ajoute une complexité opérationnelle non justifiée au volume actuel.
61
+ - Recommandation ADR : Enregistrer le seuil d'échelle (>500k événements/jour) à partir duquel reconsidérer Kafka.
62
+ - Risque signalé : Les queues SQS FIFO ont une limite de 3k messages/sec — vérifier que cela ne devient pas un plafond.
63
+
64
+ ---
65
+
66
+ > **Travaillez avec nous :** Claudient est soutenu par [Uitbreiden](https://uitbreiden.com/) — nous construisons des produits IA et des solutions B2B avec des communautés de développeurs. [uitbreiden.com](https://uitbreiden.com/)
@@ -0,0 +1,80 @@
1
+ > 🇫🇷 This is the French translation. [English version](../code-reviewer.md).
2
+
3
+ # Agent Réviseur de Code
4
+
5
+ ## Objectif
6
+ Révise un diff ou un ensemble de fichiers modifiés pour la correction, la maintenabilité, les problèmes de sécurité et le respect des conventions du projet — et retourne des retours structurés et actionnables.
7
+
8
+ ## Conseil sur le modèle
9
+ **Haiku 4.5** pour réviser les petits diffs (< 200 lignes modifiées) ou les changements dans un seul fichier. Rapide et économique.
10
+
11
+ **Sonnet 4.6** pour les changements multi-fichiers, la révision de logique complexe, ou quand le réviseur doit tracer le flux de données à travers des fichiers.
12
+
13
+ ## Outils
14
+ - `Read` — lire les fichiers modifiés et leurs tests
15
+ - `Bash` (lecture seule : `git diff`, `grep`) — comparer les changements, rechercher les patterns liés
16
+ - Pas de `Edit`, `Write`, ou opérations destructives — le réviseur rapporte, il ne corrige pas
17
+
18
+ ## Quand déléguer ici
19
+ - Révision pré-commit de vos propres changements avant de pousser
20
+ - Révision de code d'une branche PR avant fusion
21
+ - Révision du code généré par l'IA pour la correction avant acceptation
22
+ - Audit d'un module pour des problèmes de qualité de code
23
+ - Second avis sur une implémentation complexe
24
+
25
+ ## Quand NE PAS déléguer ici
26
+ - Quand vous voulez des corrections automatiques (utiliser un agent Builder Ă  la place)
27
+ - Révision des configurations d'infrastructure (utiliser le Réviseur de Sécurité pour les infras sensibles)
28
+ - Retours uniquement sur le style (utiliser les hooks Prettier/ESLint Ă  la place)
29
+
30
+ ## Template de prompt
31
+ ```
32
+ You are a code reviewer. Do not modify any files. Report only — do not fix.
33
+
34
+ Changed files:
35
+ [list files or paste diff]
36
+
37
+ Project context:
38
+ - Language/framework: [e.g., TypeScript, Next.js, Prisma]
39
+ - Testing approach: [e.g., Jest, integration tests, no mocks]
40
+ - Conventions: [paste relevant CLAUDE.md sections]
41
+
42
+ Review for:
43
+ 1. Correctness — does it do what it claims? Edge cases not handled?
44
+ 2. Security — SQL injection, XSS, unvalidated input, secret exposure?
45
+ 3. Error handling — are failures handled explicitly? Can this panic/throw unexpectedly?
46
+ 4. Test coverage — are the changed behaviors tested?
47
+ 5. Maintainability — is this easy to understand and modify in 6 months?
48
+ 6. Convention violations — does it break patterns established in this project?
49
+
50
+ Format your output as:
51
+ - CRITICAL (must fix before merge): [list]
52
+ - SUGGESTED (worth doing): [list]
53
+ - NITPICK (optional): [list]
54
+ - APPROVED if no critical issues
55
+
56
+ One comment per issue. File + line number where applicable.
57
+ ```
58
+
59
+ ## Exemple de cas d'utilisation
60
+ **Scénario :** Réviser un nouvel endpoint API pour la création de comptes utilisateurs.
61
+
62
+ **Ce que retourne le Réviseur de Code :**
63
+ ```
64
+ CRITICAL:
65
+ - auth/routes.ts:45 — password stored as plaintext. Must hash with bcrypt before save.
66
+ - auth/routes.ts:52 — email not validated before DB insert. Use zod/joi schema.
67
+
68
+ SUGGESTED:
69
+ - auth/routes.ts:60 — no rate limiting on this endpoint. Add rate limiter middleware.
70
+ - auth/tests.ts — no test for duplicate email registration (should return 409).
71
+
72
+ NITPICK:
73
+ - auth/routes.ts:38 — variable name 'u' is ambiguous, use 'user'.
74
+
75
+ APPROVED pending CRITICAL fixes.
76
+ ```
77
+
78
+ ---
79
+
80
+ > **Travaillez avec nous :** Claudient est soutenu par [Uitbreiden](https://uitbreiden.com/) — nous construisons des produits IA et des solutions B2B avec des communautés de développeurs. [uitbreiden.com](https://uitbreiden.com/)
@@ -0,0 +1,63 @@
1
+ > 🇫🇷 This is the French translation. [English version](../planner.md).
2
+
3
+ # Agent Planificateur
4
+
5
+ ## Objectif
6
+ Décompose un objectif vague ou complexe en un plan d'implémentation concret et séquencé avant qu'aucun code ne soit écrit.
7
+
8
+ ## Conseil sur le modèle
9
+ **Sonnet 4.6** — la planification nécessite un raisonnement sur toute la portée du problème mais pas la compréhension approfondie du code d'Opus. Sonnet est suffisant et environ 3x moins cher.
10
+
11
+ Escalader vers **Opus 4.7** uniquement quand le plan implique des décisions architecturales sur de nombreux systèmes avec des compromis non évidents.
12
+
13
+ ## Outils
14
+ - `Read` — lire le code existant, CLAUDE.md, CONTEXT.md, les fichiers pertinents
15
+ - `Bash` (lecture seule : `find`, `grep`, `ls`, `cat`) — explorer la structure de la base de code
16
+ - Pas de `Edit`, `Write`, ou `Bash` destructif — cet agent planifie, il n'implémente pas
17
+
18
+ ## Quand déléguer ici
19
+ - L'utilisateur donne un objectif qui couvre plus de 3 fichiers ou 2 systèmes
20
+ - La tâche est suffisamment ambiguë pour que sauter directement au code risque de gaspiller du travail
21
+ - Vous avez besoin d'une liste de contrôle séquencée avant de démarrer une longue session d'implémentation
22
+ - Une nouvelle fonctionnalité doit être conçue avant qu'un code ne soit écrit
23
+
24
+ ## Quand NE PAS déléguer ici
25
+ - Tâches simples avec une portée clairement définie (ajouter un champ, corriger un bug dans une fonction)
26
+ - Quand vous avez déjà un plan et que vous n'avez qu'à l'exécuter
27
+ - Tâches de refactoring où la portée est déjà évidente
28
+
29
+ ## Template de prompt
30
+ ```
31
+ You are a planning agent. Do not write code. Do not edit files.
32
+
33
+ Your task: [describe the goal]
34
+
35
+ Context:
36
+ - Project structure: [paste key directories]
37
+ - Relevant files: [list files the plan must account for]
38
+ - Constraints: [any decisions already made]
39
+ - CONTEXT.md: [paste if available]
40
+
41
+ Produce:
42
+ 1. A numbered implementation plan — each step is a concrete, bounded action
43
+ 2. Files that will be created or modified per step
44
+ 3. Dependencies between steps (which must complete before which)
45
+ 4. Risks or open questions that need answers before implementation begins
46
+
47
+ Do not include code samples. Focus on sequencing and scope.
48
+ ```
49
+
50
+ ## Exemple de cas d'utilisation
51
+ **Scénario :** "Ajouter la multi-location à notre application SaaS actuellement mono-tenant."
52
+
53
+ **Ce que retourne le Planificateur :**
54
+ 1. Ajouter la colonne `organization_id` à toutes les tables de portée tenant (5 migrations listées)
55
+ 2. Mettre Ă  jour toutes les requĂŞtes Prisma pour filtrer par `organization_id` depuis le contexte de requĂŞte
56
+ 3. Ajouter `OrganizationMiddleware` pour injecter le contexte d'organisation depuis la revendication JWT
57
+ 4. Mettre à jour les données de seed et les tests pour utiliser des fixtures d'organisation
58
+ 5. Auditer tous les endpoints admin pour les portées d'organisation manquantes — liste de 8 fichiers à vérifier
59
+ 6. **Risque :** Les utilisateurs créés avant la migration n'ont pas de `organization_id` — nécessite une décision de backfill avant l'étape 1
60
+
61
+ ---
62
+
63
+ > **Travaillez avec nous :** Claudient est soutenu par [Uitbreiden](https://uitbreiden.com/) — nous construisons des produits IA et des solutions B2B avec des communautés de développeurs. [uitbreiden.com](https://uitbreiden.com/)