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.
- package/.claude-plugin/plugin.json +42 -0
- package/CONTEXT.md +58 -0
- package/README.md +165 -0
- package/agents/build-resolvers/de/python-resolver.md +64 -0
- package/agents/build-resolvers/de/typescript-resolver.md +65 -0
- package/agents/build-resolvers/es/python-resolver.md +64 -0
- package/agents/build-resolvers/es/typescript-resolver.md +65 -0
- package/agents/build-resolvers/fr/python-resolver.md +64 -0
- package/agents/build-resolvers/fr/typescript-resolver.md +65 -0
- package/agents/build-resolvers/nl/python-resolver.md +64 -0
- package/agents/build-resolvers/nl/typescript-resolver.md +65 -0
- package/agents/build-resolvers/python-resolver.md +62 -0
- package/agents/build-resolvers/typescript-resolver.md +63 -0
- package/agents/core/architect.md +64 -0
- package/agents/core/code-reviewer.md +78 -0
- package/agents/core/de/architect.md +66 -0
- package/agents/core/de/code-reviewer.md +80 -0
- package/agents/core/de/planner.md +63 -0
- package/agents/core/de/security-reviewer.md +93 -0
- package/agents/core/es/architect.md +66 -0
- package/agents/core/es/code-reviewer.md +80 -0
- package/agents/core/es/planner.md +63 -0
- package/agents/core/es/security-reviewer.md +93 -0
- package/agents/core/fr/architect.md +66 -0
- package/agents/core/fr/code-reviewer.md +80 -0
- package/agents/core/fr/planner.md +63 -0
- package/agents/core/fr/security-reviewer.md +93 -0
- package/agents/core/nl/architect.md +66 -0
- package/agents/core/nl/code-reviewer.md +80 -0
- package/agents/core/nl/planner.md +63 -0
- package/agents/core/nl/security-reviewer.md +93 -0
- package/agents/core/planner.md +61 -0
- package/agents/core/security-reviewer.md +91 -0
- package/guides/agent-orchestration.md +231 -0
- package/guides/de/agent-orchestration.md +174 -0
- package/guides/de/getting-started.md +164 -0
- package/guides/de/hooks-cookbook.md +160 -0
- package/guides/de/memory-management.md +153 -0
- package/guides/de/security.md +180 -0
- package/guides/de/skill-authoring.md +214 -0
- package/guides/de/token-optimization.md +156 -0
- package/guides/es/agent-orchestration.md +174 -0
- package/guides/es/getting-started.md +164 -0
- package/guides/es/hooks-cookbook.md +160 -0
- package/guides/es/memory-management.md +153 -0
- package/guides/es/security.md +180 -0
- package/guides/es/skill-authoring.md +214 -0
- package/guides/es/token-optimization.md +156 -0
- package/guides/fr/agent-orchestration.md +174 -0
- package/guides/fr/getting-started.md +164 -0
- package/guides/fr/hooks-cookbook.md +227 -0
- package/guides/fr/memory-management.md +169 -0
- package/guides/fr/security.md +180 -0
- package/guides/fr/skill-authoring.md +214 -0
- package/guides/fr/token-optimization.md +158 -0
- package/guides/getting-started.md +164 -0
- package/guides/hooks-cookbook.md +423 -0
- package/guides/memory-management.md +192 -0
- package/guides/nl/agent-orchestration.md +174 -0
- package/guides/nl/getting-started.md +164 -0
- package/guides/nl/hooks-cookbook.md +160 -0
- package/guides/nl/memory-management.md +153 -0
- package/guides/nl/security.md +180 -0
- package/guides/nl/skill-authoring.md +214 -0
- package/guides/nl/token-optimization.md +156 -0
- package/guides/security.md +229 -0
- package/guides/skill-authoring.md +226 -0
- package/guides/token-optimization.md +169 -0
- package/hooks/lifecycle/cost-tracker.md +49 -0
- package/hooks/lifecycle/cost-tracker.sh +59 -0
- package/hooks/lifecycle/pre-compact-save.md +56 -0
- package/hooks/lifecycle/pre-compact-save.sh +37 -0
- package/hooks/lifecycle/session-start.md +50 -0
- package/hooks/lifecycle/session-start.sh +47 -0
- package/hooks/post-tool-use/audit-log.md +53 -0
- package/hooks/post-tool-use/audit-log.sh +53 -0
- package/hooks/post-tool-use/prettier.md +53 -0
- package/hooks/post-tool-use/prettier.sh +49 -0
- package/hooks/pre-tool-use/block-dangerous.md +48 -0
- package/hooks/pre-tool-use/block-dangerous.sh +76 -0
- package/hooks/pre-tool-use/git-push-confirm.md +46 -0
- package/hooks/pre-tool-use/git-push-confirm.sh +36 -0
- package/mcp/configs/github.json +11 -0
- package/mcp/configs/postgres.json +11 -0
- package/mcp/de/recommended-servers.md +170 -0
- package/mcp/es/recommended-servers.md +170 -0
- package/mcp/fr/recommended-servers.md +170 -0
- package/mcp/nl/recommended-servers.md +170 -0
- package/mcp/recommended-servers.md +168 -0
- package/package.json +45 -0
- package/prompts/project-starters/de/fastapi-project.md +62 -0
- package/prompts/project-starters/de/nextjs-project.md +82 -0
- package/prompts/project-starters/es/fastapi-project.md +62 -0
- package/prompts/project-starters/es/nextjs-project.md +82 -0
- package/prompts/project-starters/fastapi-project.md +60 -0
- package/prompts/project-starters/fr/fastapi-project.md +62 -0
- package/prompts/project-starters/fr/nextjs-project.md +82 -0
- package/prompts/project-starters/nextjs-project.md +80 -0
- package/prompts/project-starters/nl/fastapi-project.md +62 -0
- package/prompts/project-starters/nl/nextjs-project.md +82 -0
- package/prompts/system-prompts/ai-product.md +80 -0
- package/prompts/system-prompts/data-pipeline.md +76 -0
- package/prompts/system-prompts/de/ai-product.md +82 -0
- package/prompts/system-prompts/de/data-pipeline.md +78 -0
- package/prompts/system-prompts/de/saas-backend.md +71 -0
- package/prompts/system-prompts/es/ai-product.md +82 -0
- package/prompts/system-prompts/es/data-pipeline.md +78 -0
- package/prompts/system-prompts/es/saas-backend.md +71 -0
- package/prompts/system-prompts/fr/ai-product.md +82 -0
- package/prompts/system-prompts/fr/data-pipeline.md +78 -0
- package/prompts/system-prompts/fr/saas-backend.md +71 -0
- package/prompts/system-prompts/nl/ai-product.md +82 -0
- package/prompts/system-prompts/nl/data-pipeline.md +78 -0
- package/prompts/system-prompts/nl/saas-backend.md +71 -0
- package/prompts/system-prompts/saas-backend.md +69 -0
- package/prompts/task-specific/changelog.md +81 -0
- package/prompts/task-specific/de/changelog.md +83 -0
- package/prompts/task-specific/de/debugging.md +78 -0
- package/prompts/task-specific/de/pr-description.md +69 -0
- package/prompts/task-specific/debugging.md +76 -0
- package/prompts/task-specific/es/changelog.md +83 -0
- package/prompts/task-specific/es/debugging.md +78 -0
- package/prompts/task-specific/es/pr-description.md +69 -0
- package/prompts/task-specific/fr/changelog.md +83 -0
- package/prompts/task-specific/fr/debugging.md +78 -0
- package/prompts/task-specific/fr/pr-description.md +69 -0
- package/prompts/task-specific/nl/changelog.md +83 -0
- package/prompts/task-specific/nl/debugging.md +78 -0
- package/prompts/task-specific/nl/pr-description.md +69 -0
- package/prompts/task-specific/pr-description.md +67 -0
- package/rules/common/coding-style.md +45 -0
- package/rules/common/de/coding-style.md +47 -0
- package/rules/common/de/git.md +48 -0
- package/rules/common/de/performance.md +40 -0
- package/rules/common/de/security.md +45 -0
- package/rules/common/de/testing.md +45 -0
- package/rules/common/es/coding-style.md +47 -0
- package/rules/common/es/git.md +48 -0
- package/rules/common/es/performance.md +40 -0
- package/rules/common/es/security.md +45 -0
- package/rules/common/es/testing.md +45 -0
- package/rules/common/fr/coding-style.md +47 -0
- package/rules/common/fr/git.md +48 -0
- package/rules/common/fr/performance.md +40 -0
- package/rules/common/fr/security.md +45 -0
- package/rules/common/fr/testing.md +45 -0
- package/rules/common/git.md +46 -0
- package/rules/common/nl/coding-style.md +47 -0
- package/rules/common/nl/git.md +48 -0
- package/rules/common/nl/performance.md +40 -0
- package/rules/common/nl/security.md +45 -0
- package/rules/common/nl/testing.md +45 -0
- package/rules/common/performance.md +38 -0
- package/rules/common/security.md +43 -0
- package/rules/common/testing.md +43 -0
- package/rules/language-specific/de/go.md +48 -0
- package/rules/language-specific/de/python.md +38 -0
- package/rules/language-specific/de/typescript.md +51 -0
- package/rules/language-specific/es/go.md +48 -0
- package/rules/language-specific/es/python.md +38 -0
- package/rules/language-specific/es/typescript.md +51 -0
- package/rules/language-specific/fr/go.md +48 -0
- package/rules/language-specific/fr/python.md +38 -0
- package/rules/language-specific/fr/typescript.md +51 -0
- package/rules/language-specific/go.md +46 -0
- package/rules/language-specific/nl/go.md +48 -0
- package/rules/language-specific/nl/python.md +38 -0
- package/rules/language-specific/nl/typescript.md +51 -0
- package/rules/language-specific/python.md +36 -0
- package/rules/language-specific/typescript.md +49 -0
- package/scripts/cli.js +161 -0
- package/scripts/link-skills.sh +35 -0
- package/scripts/list-skills.sh +34 -0
- package/skills/ai-engineering/agent-construction.md +285 -0
- package/skills/ai-engineering/claude-api.md +248 -0
- package/skills/ai-engineering/de/agent-construction.md +287 -0
- package/skills/ai-engineering/de/claude-api.md +250 -0
- package/skills/ai-engineering/es/agent-construction.md +287 -0
- package/skills/ai-engineering/es/claude-api.md +250 -0
- package/skills/ai-engineering/fr/agent-construction.md +287 -0
- package/skills/ai-engineering/fr/claude-api.md +250 -0
- package/skills/ai-engineering/nl/agent-construction.md +287 -0
- package/skills/ai-engineering/nl/claude-api.md +250 -0
- package/skills/backend/dotnet/csharp.md +304 -0
- package/skills/backend/dotnet/de/csharp.md +306 -0
- package/skills/backend/dotnet/es/csharp.md +306 -0
- package/skills/backend/dotnet/fr/csharp.md +306 -0
- package/skills/backend/dotnet/nl/csharp.md +306 -0
- package/skills/backend/go/de/go.md +307 -0
- package/skills/backend/go/es/go.md +307 -0
- package/skills/backend/go/fr/go.md +307 -0
- package/skills/backend/go/go.md +305 -0
- package/skills/backend/go/nl/go.md +307 -0
- package/skills/backend/nodejs/de/nestjs.md +274 -0
- package/skills/backend/nodejs/de/nextjs.md +222 -0
- package/skills/backend/nodejs/es/nestjs.md +274 -0
- package/skills/backend/nodejs/es/nextjs.md +222 -0
- package/skills/backend/nodejs/fr/nestjs.md +274 -0
- package/skills/backend/nodejs/fr/nextjs.md +222 -0
- package/skills/backend/nodejs/nestjs.md +272 -0
- package/skills/backend/nodejs/nextjs.md +220 -0
- package/skills/backend/nodejs/nl/nestjs.md +274 -0
- package/skills/backend/nodejs/nl/nextjs.md +222 -0
- package/skills/backend/python/de/django.md +285 -0
- package/skills/backend/python/de/fastapi.md +244 -0
- package/skills/backend/python/django.md +283 -0
- package/skills/backend/python/es/django.md +285 -0
- package/skills/backend/python/es/fastapi.md +244 -0
- package/skills/backend/python/fastapi.md +242 -0
- package/skills/backend/python/fr/django.md +285 -0
- package/skills/backend/python/fr/fastapi.md +244 -0
- package/skills/backend/python/nl/django.md +285 -0
- package/skills/backend/python/nl/fastapi.md +244 -0
- package/skills/data-ml/dbt-data-pipelines.md +155 -0
- package/skills/data-ml/de/dbt-data-pipelines.md +157 -0
- package/skills/data-ml/de/pandas-polars.md +147 -0
- package/skills/data-ml/de/pytorch-tensorflow.md +171 -0
- package/skills/data-ml/es/dbt-data-pipelines.md +157 -0
- package/skills/data-ml/es/pandas-polars.md +147 -0
- package/skills/data-ml/es/pytorch-tensorflow.md +171 -0
- package/skills/data-ml/fr/dbt-data-pipelines.md +157 -0
- package/skills/data-ml/fr/pandas-polars.md +147 -0
- package/skills/data-ml/fr/pytorch-tensorflow.md +171 -0
- package/skills/data-ml/nl/dbt-data-pipelines.md +157 -0
- package/skills/data-ml/nl/pandas-polars.md +147 -0
- package/skills/data-ml/nl/pytorch-tensorflow.md +171 -0
- package/skills/data-ml/pandas-polars.md +145 -0
- package/skills/data-ml/pytorch-tensorflow.md +169 -0
- package/skills/database/de/graphql.md +181 -0
- package/skills/database/es/graphql.md +181 -0
- package/skills/database/fr/graphql.md +181 -0
- package/skills/database/graphql.md +179 -0
- package/skills/database/nl/graphql.md +181 -0
- package/skills/devops-infra/de/docker.md +133 -0
- package/skills/devops-infra/de/github-actions.md +179 -0
- package/skills/devops-infra/de/kubernetes.md +129 -0
- package/skills/devops-infra/de/terraform.md +130 -0
- package/skills/devops-infra/docker.md +131 -0
- package/skills/devops-infra/es/docker.md +133 -0
- package/skills/devops-infra/es/github-actions.md +179 -0
- package/skills/devops-infra/es/kubernetes.md +129 -0
- package/skills/devops-infra/es/terraform.md +130 -0
- package/skills/devops-infra/fr/docker.md +133 -0
- package/skills/devops-infra/fr/github-actions.md +179 -0
- package/skills/devops-infra/fr/kubernetes.md +129 -0
- package/skills/devops-infra/fr/terraform.md +130 -0
- package/skills/devops-infra/github-actions.md +177 -0
- package/skills/devops-infra/kubernetes.md +127 -0
- package/skills/devops-infra/nl/docker.md +133 -0
- package/skills/devops-infra/nl/github-actions.md +179 -0
- package/skills/devops-infra/nl/kubernetes.md +129 -0
- package/skills/devops-infra/nl/terraform.md +130 -0
- package/skills/devops-infra/terraform.md +128 -0
- package/skills/finance-payments/de/stripe.md +187 -0
- package/skills/finance-payments/es/stripe.md +187 -0
- package/skills/finance-payments/fr/stripe.md +187 -0
- package/skills/finance-payments/nl/stripe.md +187 -0
- package/skills/finance-payments/stripe.md +185 -0
- package/workflows/code-review.md +151 -0
- package/workflows/de/code-review.md +153 -0
- package/workflows/de/debugging-session.md +146 -0
- package/workflows/de/feature-development.md +155 -0
- package/workflows/de/new-project-bootstrap.md +175 -0
- package/workflows/de/refactor-safely.md +150 -0
- package/workflows/debugging-session.md +144 -0
- package/workflows/es/code-review.md +153 -0
- package/workflows/es/debugging-session.md +146 -0
- package/workflows/es/feature-development.md +155 -0
- package/workflows/es/new-project-bootstrap.md +175 -0
- package/workflows/es/refactor-safely.md +150 -0
- package/workflows/feature-development.md +153 -0
- package/workflows/fr/code-review.md +153 -0
- package/workflows/fr/debugging-session.md +146 -0
- package/workflows/fr/feature-development.md +155 -0
- package/workflows/fr/new-project-bootstrap.md +175 -0
- package/workflows/fr/refactor-safely.md +150 -0
- package/workflows/new-project-bootstrap.md +173 -0
- package/workflows/nl/code-review.md +153 -0
- package/workflows/nl/debugging-session.md +146 -0
- package/workflows/nl/feature-development.md +155 -0
- package/workflows/nl/new-project-bootstrap.md +175 -0
- package/workflows/nl/refactor-safely.md +150 -0
- package/workflows/refactor-safely.md +148 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# MCP Recommended Servers
|
|
2
|
+
|
|
3
|
+
A practical guide to MCP servers worth enabling in Claude Code. Organized by category with token cost estimates and clear guidance on when to use each.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Token Budget Awareness
|
|
8
|
+
|
|
9
|
+
Every enabled MCP server contributes its tool descriptions to Claude's context window.
|
|
10
|
+
|
|
11
|
+
| MCP servers enabled | Approximate token cost |
|
|
12
|
+
|--------------------|----------------------|
|
|
13
|
+
| 3 servers (~10 tools) | ~10,000 tokens |
|
|
14
|
+
| 10 servers (~30 tools) | ~30,000 tokens |
|
|
15
|
+
| 20 servers (~60 tools) | ~60,000 tokens |
|
|
16
|
+
|
|
17
|
+
With a 200k token window, 10 active MCPs consume ~15% of your context before any conversation. Be selective. Disable servers you're not actively using.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Filesystem & Search
|
|
22
|
+
|
|
23
|
+
### `@modelcontextprotocol/server-filesystem`
|
|
24
|
+
```bash
|
|
25
|
+
npx -y @modelcontextprotocol/server-filesystem /path/to/project
|
|
26
|
+
```
|
|
27
|
+
- **What it gives:** Read, write, list, and search files with configurable path restrictions
|
|
28
|
+
- **Token cost:** ~2,000 tokens
|
|
29
|
+
- **Use when:** You want Claude to explore a codebase directory beyond the current working dir
|
|
30
|
+
- **Avoid when:** Claude Code's built-in Read/Write tools already cover your project
|
|
31
|
+
|
|
32
|
+
### `@modelcontextprotocol/server-brave-search` or `tavily`
|
|
33
|
+
```bash
|
|
34
|
+
npx -y @modelcontextprotocol/server-brave-search
|
|
35
|
+
```
|
|
36
|
+
- **What it gives:** Web search from within Claude
|
|
37
|
+
- **Token cost:** ~1,500 tokens
|
|
38
|
+
- **Use when:** Agents need current information (docs, news, package versions) not in training data
|
|
39
|
+
- **Avoid when:** You only need code generation, no web lookups needed
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Databases
|
|
44
|
+
|
|
45
|
+
### `@modelcontextprotocol/server-postgres`
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"mcpServers": {
|
|
49
|
+
"postgres": {
|
|
50
|
+
"command": "npx",
|
|
51
|
+
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
- **What it gives:** Query, inspect schema, list tables — direct DB access from Claude
|
|
57
|
+
- **Token cost:** ~3,000 tokens
|
|
58
|
+
- **Use when:** Schema exploration, writing complex queries, debugging data issues
|
|
59
|
+
- **Avoid when:** Production database — use a read-only replica or dev DB only
|
|
60
|
+
- **Security:** Never point at production DB. Use a read-only user at minimum.
|
|
61
|
+
|
|
62
|
+
### `@modelcontextprotocol/server-sqlite`
|
|
63
|
+
- **What it gives:** Same as postgres but for SQLite files
|
|
64
|
+
- **Token cost:** ~2,500 tokens
|
|
65
|
+
- **Use when:** Local development with SQLite, embedded databases
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## APIs & Services
|
|
70
|
+
|
|
71
|
+
### `@modelcontextprotocol/server-github`
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"mcpServers": {
|
|
75
|
+
"github": {
|
|
76
|
+
"command": "npx",
|
|
77
|
+
"args": ["-y", "@modelcontextprotocol/server-github"],
|
|
78
|
+
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<token>" }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
- **What it gives:** Read issues, PRs, commits, files from GitHub repos
|
|
84
|
+
- **Token cost:** ~4,000 tokens
|
|
85
|
+
- **Use when:** Reviewing PRs, triaging issues, fetching context from remote repos
|
|
86
|
+
- **Avoid when:** You only need local git context (git CLI is faster)
|
|
87
|
+
|
|
88
|
+
### `@modelcontextprotocol/server-linear`
|
|
89
|
+
- **What it gives:** Create, update, and query Linear issues and projects
|
|
90
|
+
- **Token cost:** ~3,000 tokens
|
|
91
|
+
- **Use when:** Issue tracking integrated into development workflow
|
|
92
|
+
|
|
93
|
+
### `stripe-mcp` (Stripe official)
|
|
94
|
+
```bash
|
|
95
|
+
npx -y @stripe/mcp --api-key sk_test_...
|
|
96
|
+
```
|
|
97
|
+
- **What it gives:** Create customers, products, prices, checkout sessions; query payments
|
|
98
|
+
- **Token cost:** ~5,000 tokens
|
|
99
|
+
- **Use when:** Building Stripe integrations, testing payment flows
|
|
100
|
+
- **Avoid when:** Production Stripe keys — use test mode only in development
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Browser & Testing
|
|
105
|
+
|
|
106
|
+
### `@modelcontextprotocol/server-puppeteer`
|
|
107
|
+
- **What it gives:** Launch a browser, navigate pages, click elements, take screenshots
|
|
108
|
+
- **Token cost:** ~3,500 tokens
|
|
109
|
+
- **Use when:** Testing web UIs, scraping, automating browser interactions
|
|
110
|
+
- **Avoid when:** API testing — overkill, use fetch/curl
|
|
111
|
+
|
|
112
|
+
### `@playwright/mcp`
|
|
113
|
+
```bash
|
|
114
|
+
npx -y @playwright/mcp@latest
|
|
115
|
+
```
|
|
116
|
+
- **What it gives:** Playwright automation — more reliable than Puppeteer for modern SPAs
|
|
117
|
+
- **Token cost:** ~4,000 tokens
|
|
118
|
+
- **Use when:** E2E test writing, UI verification, complex browser automation
|
|
119
|
+
- **Recommended over Puppeteer** for Next.js / React apps
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## AI & Reasoning
|
|
124
|
+
|
|
125
|
+
### `@modelcontextprotocol/server-memory`
|
|
126
|
+
```bash
|
|
127
|
+
npx -y @modelcontextprotocol/server-memory
|
|
128
|
+
```
|
|
129
|
+
- **What it gives:** A knowledge graph that persists across sessions — entities, relations, observations
|
|
130
|
+
- **Token cost:** ~2,000 tokens
|
|
131
|
+
- **Use when:** Long-running projects where you want Claude to remember context between sessions
|
|
132
|
+
- **Avoid when:** Single-session tasks — overhead without benefit
|
|
133
|
+
|
|
134
|
+
### `@modelcontextprotocol/server-sequential-thinking`
|
|
135
|
+
- **What it gives:** Forces Claude through explicit reasoning steps before answering
|
|
136
|
+
- **Token cost:** ~1,500 tokens
|
|
137
|
+
- **Use when:** Complex multi-step problem solving, architectural decisions
|
|
138
|
+
- **Avoid when:** Simple queries — adds latency with no benefit
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Configuration Template
|
|
143
|
+
|
|
144
|
+
Add servers to `~/.claude/settings.json` (global) or `.claude/settings.json` (project):
|
|
145
|
+
|
|
146
|
+
```json
|
|
147
|
+
{
|
|
148
|
+
"mcpServers": {
|
|
149
|
+
"github": {
|
|
150
|
+
"command": "npx",
|
|
151
|
+
"args": ["-y", "@modelcontextprotocol/server-github"],
|
|
152
|
+
"env": {
|
|
153
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"postgres": {
|
|
157
|
+
"command": "npx",
|
|
158
|
+
"args": ["-y", "@modelcontextprotocol/server-postgres", "${DATABASE_URL}"]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Use environment variable references (`${VAR}`) instead of hardcoded secrets.
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
> **Work with us:** Claudient is backed by [Uitbreiden](https://uitbreiden.com/) — we build AI products and B2B solutions with developer communities. [uitbreiden.com](https://uitbreiden.com/)
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claudient",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The definitive Claude Code knowledge system — skills, agents, hooks, rules, and workflows.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"claude-code",
|
|
7
|
+
"claude",
|
|
8
|
+
"anthropic",
|
|
9
|
+
"llm",
|
|
10
|
+
"ai-tools",
|
|
11
|
+
"developer-productivity",
|
|
12
|
+
"skills",
|
|
13
|
+
"agents",
|
|
14
|
+
"hooks"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/Claudient/Claudient",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/Claudient/Claudient.git"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"bin": {
|
|
23
|
+
"claudient": "./scripts/cli.js"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"scripts/",
|
|
27
|
+
"skills/",
|
|
28
|
+
"agents/",
|
|
29
|
+
"hooks/",
|
|
30
|
+
"rules/",
|
|
31
|
+
"workflows/",
|
|
32
|
+
"prompts/",
|
|
33
|
+
"mcp/",
|
|
34
|
+
"guides/",
|
|
35
|
+
".claude-plugin/",
|
|
36
|
+
"CONTEXT.md",
|
|
37
|
+
"README.md"
|
|
38
|
+
],
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"list": "node scripts/cli.js list"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
> 🇩🇪 Dies ist die deutsche Übersetzung. [Englische Version](../fastapi-project.md).
|
|
2
|
+
|
|
3
|
+
# Projekt-Starter: FastAPI
|
|
4
|
+
|
|
5
|
+
Diesen Prompt verwenden, um ein neues FastAPI-Projekt mit Claude Code zu starten.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Kickoff-Prompt
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Bootstrap a new FastAPI project with production-ready defaults.
|
|
13
|
+
|
|
14
|
+
Project: [name and one-sentence description]
|
|
15
|
+
Database: PostgreSQL with SQLAlchemy async + Alembic migrations
|
|
16
|
+
Auth: JWT (python-jose) with refresh tokens
|
|
17
|
+
Testing: pytest + httpx async client
|
|
18
|
+
|
|
19
|
+
Create the following structure:
|
|
20
|
+
app/
|
|
21
|
+
├── api/
|
|
22
|
+
│ └── v1/
|
|
23
|
+
│ ├── routes/ ← One file per resource (users.py, items.py, etc.)
|
|
24
|
+
│ └── deps.py ← Shared dependencies (get_db, get_current_user)
|
|
25
|
+
├── core/
|
|
26
|
+
│ ├── config.py ← Settings via pydantic-settings
|
|
27
|
+
│ ├── security.py ← JWT creation and validation
|
|
28
|
+
│ └── database.py ← Async engine and session factory
|
|
29
|
+
├── models/ ← SQLAlchemy ORM models
|
|
30
|
+
├── schemas/ ← Pydantic request/response schemas
|
|
31
|
+
├── services/ ← Business logic (no HTTP, no ORM)
|
|
32
|
+
├── tests/
|
|
33
|
+
│ ├── conftest.py ← Test database, async client, fixtures
|
|
34
|
+
│ └── test_[resource].py
|
|
35
|
+
├── alembic/ ← Migration files
|
|
36
|
+
├── main.py ← App factory
|
|
37
|
+
└── requirements.txt ← Pinned versions
|
|
38
|
+
|
|
39
|
+
Start with:
|
|
40
|
+
1. Show the full directory structure
|
|
41
|
+
2. Create requirements.txt with pinned versions
|
|
42
|
+
3. Create main.py with app factory pattern
|
|
43
|
+
4. Create core/config.py with Settings class
|
|
44
|
+
5. Create core/database.py with async session
|
|
45
|
+
6. Verify it starts with: uvicorn main:app --reload
|
|
46
|
+
|
|
47
|
+
Do not add business logic yet — skeleton only.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Was als nächstes tun
|
|
53
|
+
|
|
54
|
+
Nachdem das Skeleton läuft:
|
|
55
|
+
|
|
56
|
+
1. Erste Ressource hinzufügen: "Ein User-Modell, CRUD-Endpunkte (GET /users, POST /users, GET /users/{id}) und Tests hinzufügen"
|
|
57
|
+
2. Auth hinzufügen: "JWT-Login und Refresh-Token-Endpunkte implementieren, die mit der eingerichteten security.py arbeiten"
|
|
58
|
+
3. Das erste Business-Feature mit dem Feature-Entwicklungs-Workflow hinzufügen
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
> **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,82 @@
|
|
|
1
|
+
> 🇩🇪 Dies ist die deutsche Übersetzung. [Englische Version](../nextjs-project.md).
|
|
2
|
+
|
|
3
|
+
# Projekt-Starter: Next.js
|
|
4
|
+
|
|
5
|
+
Diesen Prompt verwenden, um ein neues Next.js-Projekt mit Claude Code zu starten.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Kickoff-Prompt
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Bootstrap a new Next.js 15 project with production-ready defaults.
|
|
13
|
+
|
|
14
|
+
Project: [name and one-sentence description]
|
|
15
|
+
Stack: Next.js 15 (App Router), TypeScript, Tailwind CSS, shadcn/ui
|
|
16
|
+
Database: PostgreSQL with Prisma
|
|
17
|
+
Auth: [Clerk / NextAuth.js / custom JWT]
|
|
18
|
+
Testing: Vitest + React Testing Library
|
|
19
|
+
|
|
20
|
+
Create the following structure:
|
|
21
|
+
src/
|
|
22
|
+
├── app/
|
|
23
|
+
│ ├── (auth)/ ← Auth routes (sign-in, sign-up)
|
|
24
|
+
│ ├── (dashboard)/ ← Protected routes
|
|
25
|
+
│ ├── api/ ← API route handlers
|
|
26
|
+
│ ├── layout.tsx ← Root layout
|
|
27
|
+
│ └── page.tsx ← Landing page
|
|
28
|
+
├── components/
|
|
29
|
+
│ ├── ui/ ← shadcn/ui components (auto-generated)
|
|
30
|
+
│ └── [feature]/ ← Feature-specific components
|
|
31
|
+
├── lib/
|
|
32
|
+
│ ├── db.ts ← Prisma client singleton
|
|
33
|
+
│ ├── auth.ts ← Auth utilities
|
|
34
|
+
│ └── utils.ts ← cn() and shared utilities
|
|
35
|
+
├── server/ ← Server-only code (no client imports)
|
|
36
|
+
│ └── actions/ ← Server actions
|
|
37
|
+
└── types/ ← Shared TypeScript types
|
|
38
|
+
|
|
39
|
+
prisma/
|
|
40
|
+
├── schema.prisma
|
|
41
|
+
└── migrations/
|
|
42
|
+
|
|
43
|
+
Start with:
|
|
44
|
+
1. Show the full directory structure
|
|
45
|
+
2. package.json with pinned versions
|
|
46
|
+
3. tsconfig.json and tailwind.config.ts
|
|
47
|
+
4. Root layout.tsx and a working landing page
|
|
48
|
+
5. Prisma schema with a User model
|
|
49
|
+
6. Verify it runs: npm run dev
|
|
50
|
+
|
|
51
|
+
Do not add features yet — skeleton only.
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Zu erzwingende Schlüsselkonventionen
|
|
57
|
+
|
|
58
|
+
Nach dem Bootstrap zu CLAUDE.md hinzufügen:
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## Next.js Konventionen
|
|
62
|
+
- Server Components standardmäßig — 'use client' nur hinzufügen, wenn benötigt (Event-Handler, Hooks, Browser-APIs)
|
|
63
|
+
- Server Actions für Mutationen — niemals API-Routes aus Server Components aufrufen
|
|
64
|
+
- Niemals server-only Code in Client Components importieren (server/-Verzeichnisgrenze verwenden)
|
|
65
|
+
- API-Routes nur für: Webhooks, OAuth-Callbacks, Streaming-Antworten
|
|
66
|
+
- Prisma Client: Singleton in lib/db.ts — niemals inline instanziieren
|
|
67
|
+
- Alle Datenbankzugriffe in server/ — niemals in Client Components
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Was als nächstes tun
|
|
73
|
+
|
|
74
|
+
Nachdem das Skeleton läuft:
|
|
75
|
+
|
|
76
|
+
1. Auth einrichten: "[Clerk/NextAuth] mit den eingerichteten Auth-Routes konfigurieren"
|
|
77
|
+
2. Erste Seite hinzufügen: "Eine Dashboard-Seite erstellen, die [Ressource] mit einer Datentabelle zeigt"
|
|
78
|
+
3. Erste Mutation hinzufügen: "Eine Server Action zum Erstellen von [Ressource] mit Formularvalidierung hinzufügen"
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
> **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,62 @@
|
|
|
1
|
+
> 🇪🇸 Esta es la traducción en español. [Versión en inglés](../fastapi-project.md).
|
|
2
|
+
|
|
3
|
+
# Iniciador de Proyecto: FastAPI
|
|
4
|
+
|
|
5
|
+
Usa este prompt para arrancar un nuevo proyecto FastAPI con Claude Code.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Prompt de inicio
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Bootstrap a new FastAPI project with production-ready defaults.
|
|
13
|
+
|
|
14
|
+
Project: [name and one-sentence description]
|
|
15
|
+
Database: PostgreSQL with SQLAlchemy async + Alembic migrations
|
|
16
|
+
Auth: JWT (python-jose) with refresh tokens
|
|
17
|
+
Testing: pytest + httpx async client
|
|
18
|
+
|
|
19
|
+
Create the following structure:
|
|
20
|
+
app/
|
|
21
|
+
├── api/
|
|
22
|
+
│ └── v1/
|
|
23
|
+
│ ├── routes/ ← One file per resource (users.py, items.py, etc.)
|
|
24
|
+
│ └── deps.py ← Shared dependencies (get_db, get_current_user)
|
|
25
|
+
├── core/
|
|
26
|
+
│ ├── config.py ← Settings via pydantic-settings
|
|
27
|
+
│ ├── security.py ← JWT creation and validation
|
|
28
|
+
│ └── database.py ← Async engine and session factory
|
|
29
|
+
├── models/ ← SQLAlchemy ORM models
|
|
30
|
+
├── schemas/ ← Pydantic request/response schemas
|
|
31
|
+
├── services/ ← Business logic (no HTTP, no ORM)
|
|
32
|
+
├── tests/
|
|
33
|
+
│ ├── conftest.py ← Test database, async client, fixtures
|
|
34
|
+
│ └── test_[resource].py
|
|
35
|
+
├── alembic/ ← Migration files
|
|
36
|
+
├── main.py ← App factory
|
|
37
|
+
└── requirements.txt ← Pinned versions
|
|
38
|
+
|
|
39
|
+
Start with:
|
|
40
|
+
1. Show the full directory structure
|
|
41
|
+
2. Create requirements.txt with pinned versions
|
|
42
|
+
3. Create main.py with app factory pattern
|
|
43
|
+
4. Create core/config.py with Settings class
|
|
44
|
+
5. Create core/database.py with async session
|
|
45
|
+
6. Verify it starts with: uvicorn main:app --reload
|
|
46
|
+
|
|
47
|
+
Do not add business logic yet — skeleton only.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Qué hacer a continuación
|
|
53
|
+
|
|
54
|
+
Después de que el esqueleto funcione:
|
|
55
|
+
|
|
56
|
+
1. Agrega tu primer recurso: "Add a User model, CRUD endpoints (GET /users, POST /users, GET /users/{id}), and tests"
|
|
57
|
+
2. Agrega autenticación: "Implement JWT login and refresh token endpoints using the security.py we set up"
|
|
58
|
+
3. Agrega la primera funcionalidad de negocio usando el flujo de trabajo de desarrollo de funcionalidades
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
> **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,82 @@
|
|
|
1
|
+
> 🇪🇸 Esta es la traducción en español. [Versión en inglés](../nextjs-project.md).
|
|
2
|
+
|
|
3
|
+
# Iniciador de Proyecto: Next.js
|
|
4
|
+
|
|
5
|
+
Usa este prompt para arrancar un nuevo proyecto Next.js con Claude Code.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Prompt de inicio
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Bootstrap a new Next.js 15 project with production-ready defaults.
|
|
13
|
+
|
|
14
|
+
Project: [name and one-sentence description]
|
|
15
|
+
Stack: Next.js 15 (App Router), TypeScript, Tailwind CSS, shadcn/ui
|
|
16
|
+
Database: PostgreSQL with Prisma
|
|
17
|
+
Auth: [Clerk / NextAuth.js / custom JWT]
|
|
18
|
+
Testing: Vitest + React Testing Library
|
|
19
|
+
|
|
20
|
+
Create the following structure:
|
|
21
|
+
src/
|
|
22
|
+
├── app/
|
|
23
|
+
│ ├── (auth)/ ← Auth routes (sign-in, sign-up)
|
|
24
|
+
│ ├── (dashboard)/ ← Protected routes
|
|
25
|
+
│ ├── api/ ← API route handlers
|
|
26
|
+
│ ├── layout.tsx ← Root layout
|
|
27
|
+
│ └── page.tsx ← Landing page
|
|
28
|
+
├── components/
|
|
29
|
+
│ ├── ui/ ← shadcn/ui components (auto-generated)
|
|
30
|
+
│ └── [feature]/ ← Feature-specific components
|
|
31
|
+
├── lib/
|
|
32
|
+
│ ├── db.ts ← Prisma client singleton
|
|
33
|
+
│ ├── auth.ts ← Auth utilities
|
|
34
|
+
│ └── utils.ts ← cn() and shared utilities
|
|
35
|
+
├── server/ ← Server-only code (no client imports)
|
|
36
|
+
│ └── actions/ ← Server actions
|
|
37
|
+
└── types/ ← Shared TypeScript types
|
|
38
|
+
|
|
39
|
+
prisma/
|
|
40
|
+
├── schema.prisma
|
|
41
|
+
└── migrations/
|
|
42
|
+
|
|
43
|
+
Start with:
|
|
44
|
+
1. Show the full directory structure
|
|
45
|
+
2. package.json with pinned versions
|
|
46
|
+
3. tsconfig.json and tailwind.config.ts
|
|
47
|
+
4. Root layout.tsx and a working landing page
|
|
48
|
+
5. Prisma schema with a User model
|
|
49
|
+
6. Verify it runs: npm run dev
|
|
50
|
+
|
|
51
|
+
Do not add features yet — skeleton only.
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Convenciones clave a aplicar
|
|
57
|
+
|
|
58
|
+
Agrega a CLAUDE.md después del bootstrap:
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## Convenciones de Next.js
|
|
62
|
+
- Server Components por defecto — agrega 'use client' solo cuando sea necesario (manejadores de eventos, hooks, APIs del navegador)
|
|
63
|
+
- Server Actions para mutations — nunca llames a rutas de API desde Server Components
|
|
64
|
+
- Nunca importes código solo del servidor en Client Components (usa el límite del directorio server/)
|
|
65
|
+
- Las rutas de API solo para: webhooks, callbacks de OAuth, respuestas con streaming
|
|
66
|
+
- Cliente Prisma: singleton en lib/db.ts — nunca instancies inline
|
|
67
|
+
- Todo el acceso a la base de datos en server/ — nunca en Client Components
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Qué hacer a continuación
|
|
73
|
+
|
|
74
|
+
Después de que el esqueleto funcione:
|
|
75
|
+
|
|
76
|
+
1. Configura la autenticación: "Configure [Clerk/NextAuth] with the auth routes we set up"
|
|
77
|
+
2. Agrega la primera página: "Create a dashboard page showing [resource] with a data table"
|
|
78
|
+
3. Agrega la primera mutation: "Add a server action to create [resource] with form validation"
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
> **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,60 @@
|
|
|
1
|
+
# Project Starter: FastAPI
|
|
2
|
+
|
|
3
|
+
Use this prompt to kick off a new FastAPI project with Claude Code.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Kickoff prompt
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Bootstrap a new FastAPI project with production-ready defaults.
|
|
11
|
+
|
|
12
|
+
Project: [name and one-sentence description]
|
|
13
|
+
Database: PostgreSQL with SQLAlchemy async + Alembic migrations
|
|
14
|
+
Auth: JWT (python-jose) with refresh tokens
|
|
15
|
+
Testing: pytest + httpx async client
|
|
16
|
+
|
|
17
|
+
Create the following structure:
|
|
18
|
+
app/
|
|
19
|
+
├── api/
|
|
20
|
+
│ └── v1/
|
|
21
|
+
│ ├── routes/ ← One file per resource (users.py, items.py, etc.)
|
|
22
|
+
│ └── deps.py ← Shared dependencies (get_db, get_current_user)
|
|
23
|
+
├── core/
|
|
24
|
+
│ ├── config.py ← Settings via pydantic-settings
|
|
25
|
+
│ ├── security.py ← JWT creation and validation
|
|
26
|
+
│ └── database.py ← Async engine and session factory
|
|
27
|
+
├── models/ ← SQLAlchemy ORM models
|
|
28
|
+
├── schemas/ ← Pydantic request/response schemas
|
|
29
|
+
├── services/ ← Business logic (no HTTP, no ORM)
|
|
30
|
+
├── tests/
|
|
31
|
+
│ ├── conftest.py ← Test database, async client, fixtures
|
|
32
|
+
│ └── test_[resource].py
|
|
33
|
+
├── alembic/ ← Migration files
|
|
34
|
+
├── main.py ← App factory
|
|
35
|
+
└── requirements.txt ← Pinned versions
|
|
36
|
+
|
|
37
|
+
Start with:
|
|
38
|
+
1. Show the full directory structure
|
|
39
|
+
2. Create requirements.txt with pinned versions
|
|
40
|
+
3. Create main.py with app factory pattern
|
|
41
|
+
4. Create core/config.py with Settings class
|
|
42
|
+
5. Create core/database.py with async session
|
|
43
|
+
6. Verify it starts with: uvicorn main:app --reload
|
|
44
|
+
|
|
45
|
+
Do not add business logic yet — skeleton only.
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## What to do next
|
|
51
|
+
|
|
52
|
+
After the skeleton runs:
|
|
53
|
+
|
|
54
|
+
1. Add your first resource: "Add a User model, CRUD endpoints (GET /users, POST /users, GET /users/{id}), and tests"
|
|
55
|
+
2. Add auth: "Implement JWT login and refresh token endpoints using the security.py we set up"
|
|
56
|
+
3. Add the first business feature using the feature-development workflow
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
> **Work with us:** Claudient is backed by [Uitbreiden](https://uitbreiden.com/) — we build AI products and B2B solutions with developer communities. [uitbreiden.com](https://uitbreiden.com/)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
> 🇫🇷 This is the French translation. [English version](../fastapi-project.md).
|
|
2
|
+
|
|
3
|
+
# Starter de Projet : FastAPI
|
|
4
|
+
|
|
5
|
+
Utilisez ce prompt pour lancer un nouveau projet FastAPI avec Claude Code.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Prompt de démarrage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Bootstrap a new FastAPI project with production-ready defaults.
|
|
13
|
+
|
|
14
|
+
Project: [name and one-sentence description]
|
|
15
|
+
Database: PostgreSQL with SQLAlchemy async + Alembic migrations
|
|
16
|
+
Auth: JWT (python-jose) with refresh tokens
|
|
17
|
+
Testing: pytest + httpx async client
|
|
18
|
+
|
|
19
|
+
Create the following structure:
|
|
20
|
+
app/
|
|
21
|
+
├── api/
|
|
22
|
+
│ └── v1/
|
|
23
|
+
│ ├── routes/ ← One file per resource (users.py, items.py, etc.)
|
|
24
|
+
│ └── deps.py ← Shared dependencies (get_db, get_current_user)
|
|
25
|
+
├── core/
|
|
26
|
+
│ ├── config.py ← Settings via pydantic-settings
|
|
27
|
+
│ ├── security.py ← JWT creation and validation
|
|
28
|
+
│ └── database.py ← Async engine and session factory
|
|
29
|
+
├── models/ ← SQLAlchemy ORM models
|
|
30
|
+
├── schemas/ ← Pydantic request/response schemas
|
|
31
|
+
├── services/ ← Business logic (no HTTP, no ORM)
|
|
32
|
+
├── tests/
|
|
33
|
+
│ ├── conftest.py ← Test database, async client, fixtures
|
|
34
|
+
│ └── test_[resource].py
|
|
35
|
+
├── alembic/ ← Migration files
|
|
36
|
+
├── main.py ← App factory
|
|
37
|
+
└── requirements.txt ← Pinned versions
|
|
38
|
+
|
|
39
|
+
Start with:
|
|
40
|
+
1. Show the full directory structure
|
|
41
|
+
2. Create requirements.txt with pinned versions
|
|
42
|
+
3. Create main.py with app factory pattern
|
|
43
|
+
4. Create core/config.py with Settings class
|
|
44
|
+
5. Create core/database.py with async session
|
|
45
|
+
6. Verify it starts with: uvicorn main:app --reload
|
|
46
|
+
|
|
47
|
+
Do not add business logic yet — skeleton only.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Que faire ensuite
|
|
53
|
+
|
|
54
|
+
Une fois le squelette en cours d'exécution :
|
|
55
|
+
|
|
56
|
+
1. Ajouter votre première ressource : "Add a User model, CRUD endpoints (GET /users, POST /users, GET /users/{id}), and tests"
|
|
57
|
+
2. Ajouter l'auth : "Implement JWT login and refresh token endpoints using the security.py we set up"
|
|
58
|
+
3. Ajouter la première fonctionnalité métier en utilisant le workflow de développement de fonctionnalité
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
> **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/)
|