python-configuration Skill for Claude Code: Typed Settings From Env Vars
Teaches Claude to move Python config out of code into environment variables and typed pydantic settings that fail fast when something is missing.
- Installs
- 11.8K
- on skills.sh
- Stars
- 42.1K
- on GitHub
- Files
- 1
- besides SKILL.md
- Updated
- Oct 2026
- last repo commit
python-configuration shows Claude how to externalize configuration with pydantic-settings. It covers a central typed Settings class, failing at startup with a clear message when a required value is missing, local development defaults, and namespaced variable names like DB_HOST. A details file adds type coercion, per-environment settings, nested groups, secrets read from files and validation.
It triggers when you ask about config, env vars, pydantic-settings or secrets. The folder holds 2 Markdown files and no scripts. The SKILL.md suggests a local .env file with placeholder values and says to keep it out of git.
Good for
- Python developers replacing hardcoded values with env vars
- Teams who want secrets kept out of code and git
- Developers who need dev, staging and prod settings from one codebase
Install python-configuration
Claude Code
- 1
Copy this prompt.
Install the python-configuration skill in Claude Code. Run this command: /plugin marketplace add wshobson/agents /plugin install python-development@claude-code-workflows Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Pick one route. The python-development plugin adds 15 more Python skills, 3 agents and a /python-development:python-scaffold command. The skills-only route installs just this skill, without the plugin's agents or commands (README).
From the project README. Source.
What's in the skill
When it loads
Python configuration management via environment variables and typed settings. Use when externalizing config, setting up pydantic-settings, managing secrets, or implementing environment-specific behavior.
Sections in SKILL.md
- When to Use This Skill
- Core Concepts
- 1. Externalized Configuration
- 2. Typed Settings
- 3. Fail Fast
- 4. Sensible Defaults
- Quick Start
- Fundamental Patterns
- Pattern 1: Typed Settings with Pydantic
- Pattern 2: Fail Fast on Missing Configuration
- Pattern 3: Local Development Defaults
- Pattern 4: Namespaced Environment Variables
- Detailed worked examples and patterns
- Best Practices Summary
Key facts
- Author
- Seth Hobson
- Repo
- wshobson/agents
- License
- MIT
- Installs on skills.sh
- 11,771 (Nov 2, 2026)
- GitHub stars
- 42,081 (Nov 2, 2026), whole repo
- Last commit
- Oct 30, 2026 (repo)
- Files in the skill folder
- 2 files including SKILL.md
What it includes
One Settings class that loads and validates all config.
Pattern 1, using pydantic-settings and an optional .env file.
Typed settings with PydanticCrashes at startup with a clear error list.
Pattern 2: catch ValidationError and exit.
Fail fast on missing configDefaults for dev values, none for secrets.
Pattern 3, with a .env example to keep out of git.
Local development defaultsPrefixes related variables, such as DB_ and REDIS_.
Pattern 4, with a command that prints variable names only, not values.
Namespaced variablesTurns env strings into typed values.
Pattern 5, in references/details.md.
Type coercionSeparate dev, staging and prod settings.
Pattern 6, in references/details.md.
Environment-specific configGroups related settings into sub-models.
Pattern 7, in references/details.md.
Nested configuration groupsReads secrets from mounted files.
Pattern 8, in references/details.md.
Secrets from filesChecks config correctness at boot.
Pattern 9, in references/details.md.
Configuration validationA 10-point checklist ending the SKILL.md.
Includes never committing secrets and not calling os.getenv() across the code.
Best practices summary
From the official docs
Questions
What does python-configuration do?
It teaches Claude to handle Python config with environment variables and pydantic-settings. That means one typed Settings object, startup validation, safe defaults and secrets kept out of code.
How do I install it?
Use the install box above. The README offers the python-development plugin, which adds 16 Python skills and 3 agents, or a skills-only install of just this skill.
Does it work in Claude.ai, Codex or Cursor?
The README documents Claude Code and Codex plugins and a Cursor plugin marketplace, plus skills-only installers for other tools. It does not describe the Claude app.
Does it need pydantic-settings?
The examples import pydantic_settings and pydantic. The skill has no install command, so add the package to your project.
Is it safe?
The skill bundles no scripts. It tells Claude to put secrets in env vars or a gitignored .env file, not in code, and its debug command prints variable names rather than values. Still check that a .env is in .gitignore before committing.
Does it cover secret managers?
Only briefly. The best practices in the SKILL.md say to use gitignored .env files or secret managers, and one pattern reads secrets from mounted files. It gives no code for a specific manager.
Information
updated Nov 2, 2026
- Repository
- wshobson/agents
- Folder
plugins/python-development/skills/python-configuration
Sources
Docs, issue trackers and discussions this page is built from.
Show all 4Hide
- wshobson/agents README · github.com
- python-configuration SKILL.md · github.com
- python-configuration details.md · github.com
- python-development plugin.json · github.com