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,158 @@
1
+ # Guide d'optimisation des tokens
2
+
3
+ Comment réduire les coûts de Claude Code et améliorer la vitesse de réponse sans sacrifier la qualité.
4
+
5
+ ---
6
+
7
+ ## Le principe fondamental
8
+
9
+ Chaque token dans la fenêtre de contexte de Claude Code coûte de l'argent et ralentit les réponses. L'objectif est de garder la fenêtre de contexte légère — uniquement ce dont Claude a besoin pour bien accomplir la tâche en cours.
10
+
11
+ Il y a quatre leviers :
12
+ 1. **Sélection du modèle** — associer le bon modèle à la tâche
13
+ 2. **Gestion du contexte** — contrôler ce qui est dans la fenêtre
14
+ 3. **Discipline MCP** — limiter la surcharge des outils
15
+ 4. **Stratégie de compactage** — quand et comment comprimer l'historique
16
+
17
+ ---
18
+
19
+ ## 1. Sélection du modèle
20
+
21
+ Claude Code prend en charge plusieurs modèles. Choisir le mauvais modèle pour une tâche est l'erreur la plus coûteuse.
22
+
23
+ | Modèle | Idéal pour | Coût relatif |
24
+ |---|---|---|
25
+ | Claude Haiku 4.5 | Modifications simples, tâches sur un seul fichier, opérations répétitives, résumé | Le plus bas |
26
+ | Claude Sonnet 4.6 | La plupart des travaux de développement — modifications multi-fichiers, débogage, revue de code | Moyen |
27
+ | Claude Opus 4.7 | Décisions d'architecture complexes, analyse de sécurité, orchestration multi-agents | Le plus élevé |
28
+
29
+ **Règles pratiques :**
30
+ - Par défaut, utilisez Sonnet 4.6 pour le développement général
31
+ - Passez à Haiku 4.5 pour : corrections de linting, formatage, renommages simples, modifications de fonctions uniques, génération de code standard à partir d'un modèle
32
+ - Escaladez vers Opus 4.7 uniquement quand : le problème nécessite un raisonnement approfondi sur de nombreux fichiers, des décisions de sécurité sont impliquées, ou vous orchestrez plusieurs sous-agents
33
+
34
+ **Haiku économise environ 60 % par rapport à Sonnet sur les tâches éligibles.** La clé est d'identifier quelles tâches sont éligibles — tout ce dont la sortie est très contrainte et vérifiable est qualifié.
35
+
36
+ ---
37
+
38
+ ## 2. Gestion de la fenêtre de contexte
39
+
40
+ La fenêtre de contexte de Claude Code est grande (jusqu'à 1M tokens sur Opus 4.7 et Sonnet 4.6), mais la fenêtre **utilisable** est plus petite une fois la surcharge prise en compte.
41
+
42
+ ### Ce qui consomme du contexte
43
+
44
+ | Source | Coût approximatif |
45
+ |---|---|
46
+ | Outils MCP (10 activés) | ~30k tokens |
47
+ | CLAUDE.md (projet + utilisateur) | 1k–10k tokens |
48
+ | Historique de conversation | Croît à chaque tour |
49
+ | Contenus de fichiers lus en contexte | Variable — souvent le facteur le plus important |
50
+ | Prompt système | ~5k–10k tokens |
51
+
52
+ ### Garder le contexte léger
53
+
54
+ **CLAUDE.md :**
55
+ - Gardez le CLAUDE.md du projet sous 500 lignes
56
+ - Supprimez les règles qui ne s'appliquent plus à l'état actuel du projet
57
+ - Ne dupliquez pas le contenu du CLAUDE.md au niveau utilisateur dans le CLAUDE.md au niveau projet
58
+
59
+ **Lectures de fichiers :**
60
+ - Demandez à Claude de lire des plages de lignes spécifiques plutôt que des fichiers complets quand c'est possible
61
+ - Évitez de lire le même fichier volumineux plusieurs fois dans une session
62
+ - Utilisez des sous-agents pour les tâches isolées — ils obtiennent une fenêtre de contexte fraîche
63
+
64
+ **Historique de conversation :**
65
+ - Les longues sessions accumulent un contexte mort (fichiers lus mais plus pertinents, tentatives échouées, approches abandonnées)
66
+ - Déclenchez le compactage de manière proactive plutôt que d'attendre le seuil automatique
67
+
68
+ ---
69
+
70
+ ## 3. Discipline MCP
71
+
72
+ Chaque serveur MCP activé charge ses définitions d'outils dans le contexte au démarrage de la session. Avec 10 serveurs MCP et ~8 outils chacun, vous consommez ~80 emplacements d'outils — environ 30k tokens avant d'avoir tapé un mot.
73
+
74
+ **Auditez vos MCPs actifs :**
75
+ - N'activez que les MCPs que vous utilisez dans le projet actuel
76
+ - Désactivez les MCPs spécifiques à un domaine (ex. base de données, cloud) quand vous ne travaillez pas dans ce domaine
77
+ - Vérifiez `.claude/settings.json` et `~/.claude/settings.json` pour les serveurs activés
78
+
79
+ **Objectif :** Gardez les MCPs activés à ce que vous utiliserez réellement dans la session.
80
+
81
+ ---
82
+
83
+ ## 4. Stratégie de compactage
84
+
85
+ Claude Code compacte automatiquement l'historique de conversation quand le contexte approche sa limite. Le seuil par défaut est tardif — se déclenchant à ~95 % de capacité.
86
+
87
+ ### Déclencher le compactage plus tôt
88
+
89
+ Utilisez la commande `/compact` manuellement avant de commencer une nouvelle tâche majeure.
90
+
91
+ **Quand compacter manuellement :**
92
+ - Avant de passer d'une tâche majeure à une autre dans la même session
93
+ - Après une longue session de débogage avec de nombreuses tentatives échouées dans l'historique
94
+ - Avant de commencer une tâche nécessitant la lecture de nombreux fichiers volumineux
95
+
96
+ ### Ce que fait le compactage
97
+
98
+ Le compactage résume l'historique de conversation et le remplace par une représentation compressée. Vous perdez l'historique tour par tour exact mais conservez les décisions, le code écrit et le contexte clé.
99
+
100
+ **Hook pre-compact :** Utilisez un hook `PreCompact` pour sauvegarder l'état critique de la session dans un fichier avant le déclenchement du compactage.
101
+
102
+ ---
103
+
104
+ ## 5. Efficacité des prompts
105
+
106
+ **Soyez spécifique sur la portée :**
107
+
108
+ Au lieu de : "Corrige l'authentification"
109
+ Utilisez : "Corrige la vérification d'expiration JWT dans `auth/middleware.py:45` — elle ne rejette pas les tokens avec `exp` dans le passé"
110
+
111
+ **Limitez la longueur des réponses quand approprié :**
112
+
113
+ Pour les tâches où vous avez besoin d'un changement de code mais pas d'une explication : "Faites le changement, pas d'explication nécessaire."
114
+
115
+ **Regroupez les requêtes liées :**
116
+
117
+ Au lieu de cinq requêtes séparées "ajouter un test pour X", dites "ajoutez des tests pour les cinq fonctions dans `utils.py`."
118
+
119
+ ---
120
+
121
+ ## 6. Isolation du contexte des sous-agents
122
+
123
+ Les sous-agents obtiennent une fenêtre de contexte fraîche. C'est l'une des techniques d'optimisation les plus sous-utilisées.
124
+
125
+ **Utilisez des sous-agents quand :**
126
+ - Une tâche est autonome (entrées claires, sorties claires)
127
+ - La tâche nécessite la lecture de nombreux fichiers non pertinents pour le reste de la session
128
+ - Vous faites quelque chose de répétitif sur plusieurs fichiers
129
+
130
+ ---
131
+
132
+ ## 7. Suivi des coûts
133
+
134
+ Utilisez un hook `PostToolUse` pour journaliser l'utilisation des outils et estimer les coûts par session.
135
+
136
+ Voir `hooks/lifecycle/cost-tracker.sh` pour une implémentation prête à l'emploi.
137
+
138
+ ---
139
+
140
+ ## Référence rapide
141
+
142
+ | Situation | Action |
143
+ |---|---|
144
+ | Modification simple d'un seul fichier | Passer à Haiku 4.5 |
145
+ | Longue session qui ralentit | Compacter manuellement (`/compact`) |
146
+ | Démarrer une nouvelle tâche majeure | Compacter d'abord, puis commencer |
147
+ | Travail dans un domaine que vous ne toucherez pas | Désactiver les MCPs du domaine |
148
+ | Tâche autonome | Utiliser un sous-agent |
149
+ | Requête vague produisant de longues réponses | Réécrire comme un prompt spécifique et délimité |
150
+ | CLAUDE.md de plus de 500 lignes | Auditer et supprimer les règles obsolètes |
151
+
152
+ ---
153
+
154
+ ## Travaillez avec nous
155
+
156
+ Claudient est soutenu par [Uitbreiden](https://uitbreiden.com/) — nous construisons des produits IA avec des communautés de développeurs et livrons des solutions IA B2B. Si vous cherchez à réduire les coûts IA à grande échelle, à créer des outils Claude Code pour votre équipe ou à lancer des produits IA B2B — parlons-en.
157
+
158
+ **[uitbreiden.com](https://uitbreiden.com/)**
@@ -0,0 +1,164 @@
1
+ # Getting Started with Claudient
2
+
3
+ This guide gets you from zero to a working Claude Code environment with your first skill, agent, and hook — in under 10 minutes.
4
+
5
+ ---
6
+
7
+ ## Prerequisites
8
+
9
+ - [Claude Code](https://claude.ai/code) installed and authenticated
10
+ - A project directory you're actively working in
11
+
12
+ ---
13
+
14
+ ## Step 1 — Clone Claudient
15
+
16
+ ```bash
17
+ git clone https://github.com/Claudient/Claudient.git ~/Claudient
18
+ ```
19
+
20
+ You now have the full library locally. Nothing runs automatically — you pick what you want.
21
+
22
+ ---
23
+
24
+ ## Step 2 — Set Up Your Project's `.claude/` Directory
25
+
26
+ Claude Code looks for configuration in `.claude/` at your project root.
27
+
28
+ ```bash
29
+ mkdir -p your-project/.claude/skills
30
+ mkdir -p your-project/.claude/hooks
31
+ ```
32
+
33
+ Your project structure should look like:
34
+
35
+ ```
36
+ your-project/
37
+ ├── .claude/
38
+ │ ├── skills/ ← skills go here (modern)
39
+ │ ├── hooks/ ← hook scripts go here
40
+ │ └── settings.json ← hook config goes here
41
+ ├── CLAUDE.md ← rules go here
42
+ └── src/
43
+ ```
44
+
45
+ ---
46
+
47
+ ## Step 3 — Add Your First Skill
48
+
49
+ Skills are slash commands. Copy any `.md` file from `skills/` into `.claude/skills/`:
50
+
51
+ ```bash
52
+ # Example: add the FastAPI skill
53
+ cp ~/Claudient/skills/backend/python/fastapi.md your-project/.claude/skills/
54
+ ```
55
+
56
+ Now open Claude Code in your project and type `/fastapi` — the skill activates.
57
+
58
+ > **Note:** `.claude/commands/` still works (legacy path) but `.claude/skills/` is the current standard. When both exist, skills take precedence.
59
+
60
+ **How to choose a skill:**
61
+ - Browse `skills/` by category
62
+ - Read the "When to activate" section at the top of each file
63
+ - If it matches your current task, copy it in
64
+
65
+ ---
66
+
67
+ ## Step 4 — Add a Rule
68
+
69
+ Rules live in `CLAUDE.md` at your project root. Claude reads this file at the start of every session.
70
+
71
+ ```bash
72
+ # Copy a common rule set into your project's CLAUDE.md
73
+ cat ~/Claudient/rules/common/coding-style.md >> your-project/CLAUDE.md
74
+ ```
75
+
76
+ Or open `rules/common/` and manually copy the sections relevant to your project.
77
+
78
+ ---
79
+
80
+ ## Step 5 — Add Your First Hook
81
+
82
+ Hooks run automatically on Claude Code events. They live in `.claude/settings.json`.
83
+
84
+ Create or open `.claude/settings.json` in your project:
85
+
86
+ ```json
87
+ {
88
+ "hooks": {}
89
+ }
90
+ ```
91
+
92
+ Copy a hook from `hooks/` — each hook file includes the exact JSON to paste in. For example, the cost-tracking lifecycle hook:
93
+
94
+ ```json
95
+ {
96
+ "hooks": {
97
+ "PostToolUse": [
98
+ {
99
+ "matcher": "",
100
+ "hooks": [
101
+ {
102
+ "type": "command",
103
+ "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/cost-tracker.sh"
104
+ }
105
+ ]
106
+ }
107
+ ]
108
+ }
109
+ }
110
+ ```
111
+
112
+ Then copy the accompanying script:
113
+
114
+ ```bash
115
+ cp ~/Claudient/hooks/lifecycle/cost-tracker.sh your-project/.claude/hooks/
116
+ chmod +x your-project/.claude/hooks/cost-tracker.sh
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Step 6 — (Optional) Add an Agent
122
+
123
+ Agents are subagent definitions you reference in your Claude sessions. They don't require file copying — you call them by `subagent_type` in an Agent tool invocation.
124
+
125
+ Browse `agents/` to understand what's available. When you want Claude to delegate a task to a specialist (e.g., a security reviewer, a database specialist), reference the agent definition to understand what it expects and what it returns.
126
+
127
+ ---
128
+
129
+ ## What to Do Next
130
+
131
+ | Goal | Where to look |
132
+ |---|---|
133
+ | Write your own skill | [guides/skill-authoring.md](skill-authoring.md) |
134
+ | Reduce token costs | [guides/token-optimization.md](token-optimization.md) |
135
+ | Understand memory and session state | [guides/memory-management.md](memory-management.md) |
136
+ | Secure your Claude Code setup | [guides/security.md](security.md) |
137
+ | Build multi-step automated workflows | [guides/agent-orchestration.md](agent-orchestration.md) |
138
+ | Automate quality with hooks | [guides/hooks-cookbook.md](hooks-cookbook.md) |
139
+
140
+ ---
141
+
142
+ ## Troubleshooting
143
+
144
+ **Skill not showing up as a slash command**
145
+ — Check the file is in `.claude/skills/` (or `.claude/commands/` for legacy)
146
+ — Check the file extension is `.md`
147
+ — Restart Claude Code
148
+
149
+ **Hook not firing**
150
+ — Verify the `event` name matches exactly: `PreToolUse`, `PostToolUse`, `PreCompact`, `Notification`
151
+ — Check the script path is relative to the project root
152
+ — Check the script is executable (`chmod +x`)
153
+
154
+ **CLAUDE.md not being read**
155
+ — It must be at the project root (same level as `src/`, `package.json`, etc.)
156
+ — Restart the Claude Code session after editing it
157
+
158
+ ---
159
+
160
+ ## Work With Us
161
+
162
+ Claudient is backed by [Uitbreiden](https://uitbreiden.com/) — we build AI products with developer communities and deliver B2B AI solutions. If you're building something serious with Claude Code and want expert help, a technical partner, or just want to be part of the community — come find us.
163
+
164
+ **[uitbreiden.com](https://uitbreiden.com/)**