skateddu/claude-code-python-setup
Ready-to-use .claude configuration for Python projects: agents, skills, commands, rules, and MCP server templates for Claude Code.
field: unknown workflow: PR / code reviewFrontend & designTesting & TDDSecurity reviewPlanning & specs
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · details
Quality 62/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit skateddu/claude-code-python-setup/.claude ./rig-claude-code-python-setup # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit skateddu/claude-code-python-setup/.claude/skills/api-design .claude/skills/api-design $ npx degit skateddu/claude-code-python-setup/.claude/skills/claude-api .claude/skills/claude-api $ npx degit skateddu/claude-code-python-setup/.claude/skills/claude-automation-recommender .claude/skills/claude-automation-recommender $ npx degit skateddu/claude-code-python-setup/.claude/skills/claude-md-improver .claude/skills/claude-md-improver $ npx degit skateddu/claude-code-python-setup/.claude/skills/database-migrations .claude/skills/database-migrations $ npx degit skateddu/claude-code-python-setup/.claude/skills/deployment-patterns .claude/skills/deployment-patterns $ npx degit skateddu/claude-code-python-setup/.claude/skills/django-patterns .claude/skills/django-patterns $ npx degit skateddu/claude-code-python-setup/.claude/skills/django-security .claude/skills/django-security $ npx degit skateddu/claude-code-python-setup/.claude/skills/django-tdd .claude/skills/django-tdd $ npx degit skateddu/claude-code-python-setup/.claude/skills/django-verification .claude/skills/django-verification $ npx degit skateddu/claude-code-python-setup/.claude/skills/doc-coauthoring .claude/skills/doc-coauthoring $ npx degit skateddu/claude-code-python-setup/.claude/skills/docker-patterns .claude/skills/docker-patterns $ npx degit skateddu/claude-code-python-setup/.claude/skills/docx .claude/skills/docx $ npx degit skateddu/claude-code-python-setup/.claude/skills/fastapi-patterns .claude/skills/fastapi-patterns $ npx degit skateddu/claude-code-python-setup/.claude/skills/frontend-design .claude/skills/frontend-design $ npx degit skateddu/claude-code-python-setup/.claude/skills/mcp-builder .claude/skills/mcp-builder $ npx degit skateddu/claude-code-python-setup/.claude/skills/pdf .claude/skills/pdf $ npx degit skateddu/claude-code-python-setup/.claude/skills/playground .claude/skills/playground $ npx degit skateddu/claude-code-python-setup/.claude/skills/postgres-patterns .claude/skills/postgres-patterns $ npx degit skateddu/claude-code-python-setup/.claude/skills/pptx .claude/skills/pptx $ npx degit skateddu/claude-code-python-setup/.claude/skills/skill-creator .claude/skills/skill-creator $ npx degit skateddu/claude-code-python-setup/.claude/skills/webapp-testing .claude/skills/webapp-testing $ npx degit skateddu/claude-code-python-setup/.claude/skills/xlsx .claude/skills/xlsx
$ curl -fsSL --create-dirs -o .claude/agents/architect.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/architect.md $ curl -fsSL --create-dirs -o .claude/agents/code-architect.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/code-architect.md $ curl -fsSL --create-dirs -o .claude/agents/code-explorer.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/code-explorer.md $ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/code-reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/comment-analyzer.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/comment-analyzer.md $ curl -fsSL --create-dirs -o .claude/agents/database-reviewer.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/database-reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/planner.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/planner.md $ curl -fsSL --create-dirs -o .claude/agents/pr-test-analyzer.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/pr-test-analyzer.md $ curl -fsSL --create-dirs -o .claude/agents/refactor-cleaner.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/refactor-cleaner.md $ curl -fsSL --create-dirs -o .claude/agents/security-reviewer.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/security-reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/silent-failure-hunter.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/silent-failure-hunter.md $ curl -fsSL --create-dirs -o .claude/agents/tdd-guide.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/tdd-guide.md $ curl -fsSL --create-dirs -o .claude/agents/type-design-analyzer.md https://raw.githubusercontent.com/skateddu/claude-code-python-setup/main/.claude/agents/type-design-analyzer.md
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Read(./.env)",
"Read(./.env.local)",
"Read(./.env.development)",
"Read(./.env.staging)",
"Read(./.env.production)",
"Read(./.env.test)",
"Read(./.envrc)",
"Read(./secrets/**)",
"Read(./**/credentials.json)",
"Read(./**/credentials)",
"Read(./**/secrets.json)",
"Read(./**/secrets.yaml)",
"Read(./**/secrets.yml)",
"Read(./**/secrets.toml)",
"Read(./**/*.secret)",
"Read(./**/*.pem)",
"Read(./**/*.key)",
"Read(./**/*.p12)",
"Read(./**/*.pfx)",
"Read(./**/*.jks)",
"Read(./**/*.token)",
"Read(./**/token.json)",
"Read(./**/.pypirc)",
"Read(./**/.netrc)",
"Read(~/.pypirc)",
"Read(~/.netrc)",
"Read(~/.aws/credentials)",
"Read(~/.ssh/**)",
"Read(./**/*id_rsa*)",
"Read(./**/*id_ed25519*)",
"Read(./**/*id_ecdsa*)",
"Read(./**/*id_dsa*)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/protect-main.sh\""
}
]
},
{
"matcher": "PowerShell",
"hooks": [
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh\""
},
{
"type": "command",
"command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/protect-main.sh\""
}
]
}
]
}
} Skills (23)
api-designclaude-apiclaude-automation-recommenderclaude-md-improverdatabase-migrationsdeployment-patternsdjango-patternsdjango-securitydjango-tdddjango-verificationdoc-coauthoringdocker-patternsdocxfastapi-patternsfrontend-designmcp-builderpdfplaygroundpostgres-patternspptxskill-creatorwebapp-testingxlsx
Subagents (13)
| architect model: opus | Software architecture specialist for system design, scalability, and technical decision-making. Use PROACTIVELY when a decision changes the system's structure — new services or data stores, integratio |
| code-architect model: sonnet | Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, d |
| code-explorer model: sonnet | Deeply analyzes existing codebase features by tracing execution paths, mapping architecture layers, understanding patterns and abstractions, and documenting dependencies to inform new development |
| code-reviewer model: sonnet | Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use after writing or modifying non-trivial code, before it is committed. |
| comment-analyzer model: inherit | Use this agent when you need to analyze code comments for accuracy, completeness, and long-term maintainability. This includes (1) after generating large documentation comments or docstrings, (2) befo |
| database-reviewer model: sonnet | PostgreSQL database specialist for query optimization, schema design, security, and performance. Use PROACTIVELY when writing SQL, creating migrations, designing schemas, or troubleshooting database p |
| planner model: opus | Expert planning specialist for complex features and refactoring. Use PROACTIVELY when users request feature implementation or complex refactoring that needs a step-by-step implementation plan. For dec |
| pr-test-analyzer model: inherit | Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new fun |
| refactor-cleaner model: sonnet | Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (vulture, ruff, autoflake) to identify dead code and safely r |
| security-reviewer model: sonnet | Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injectio |
| silent-failure-hunter model: inherit | Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. This agent should be invoked proactively after |
| tdd-guide model: sonnet | Test-Driven Development specialist enforcing write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage. |
| type-design-analyzer model: inherit | Use this agent when you need expert analysis of type design in your codebase. Specifically use it (1) when introducing a new type to ensure it follows best practices for encapsulation and invariant ex |
Hooks (24)
| event | matcher | runs |
|---|---|---|
| SessionStart | * | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/session-start.sh" |
| UserPromptSubmit | * | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-secrets.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | Bash | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/protect-main.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/enforce-uv.sh" |
| PreToolUse | PowerShell | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/protect-main.sh" |
| PostToolUse | Edit|Write | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/auto-lint.sh" |
| Stop | * | bash "$CLAUDE_PROJECT_DIR/.claude/hooks/verify.sh" |
Slash commands (10)
/build-fix/clean-gone/commit-push-pr/commit/feature-dev/notebook-review/orchestrate/review-pr/revise-claude-md/test-coverage
Permissions
deny (32)
Read(./.env)
Read(./.env.local)
Read(./.env.development)
Read(./.env.staging)
Read(./.env.production)
Read(./.env.test)
Read(./.envrc)
Read(./secrets/**)
Read(./**/credentials.json)
Read(./**/credentials)
Read(./**/secrets.json)
Read(./**/secrets.yaml)
Read(./**/secrets.yml)
Read(./**/secrets.toml)
Read(./**/*.secret)
Read(./**/*.pem)
Read(./**/*.key)
Read(./**/*.p12)
Read(./**/*.pfx)
Read(./**/*.jks)
Read(./**/*.token)
Read(./**/token.json)
Read(./**/.pypirc)
Read(./**/.netrc)
Read(~/.pypirc)
Read(~/.netrc)
Read(~/.aws/credentials)
Read(~/.ssh/**)
Read(./**/*id_rsa*)
Read(./**/*id_ed25519*)
Read(./**/*id_ecdsa*)
Read(./**/*id_dsa*)
ask (0)
—
allow (6)
Bash(uv sync *)
Bash(uv run pytest *)
Bash(uv run ruff *)
Bash(uv add *)
Bash(uv remove *)
Bash(uv run python *)
Similar rigs
Izangi2714/claude-code-python-stack
Boost Claude Code for Python with ready-made rules, tests, and QA automation for consistent, secure development
Orchestrator 3.3k tok · · Q5
anthropics/skills
Public repository for Agent Skills
Skill Collector 1.3k tok · · Q0
TsinHzl/claude-code-config
—
YOLO Cowboy 10.2k tok · · Q20
talayash/agentrium
Native desktop app for running Claude Code, Codex, Cursor, and Antigravity side by side. Tabs, split view, session restore, git worktrees, and agent handoff. Windows and macOS.
MCP Hoarder 37.7k tok · · Q25