settings-config

settings-config is a skill for Claude Code from robhowley/py-pit-skills. It costs 62 tokens per session (1,325 once invoked), scanned A, original, MIT.

A Python backend configuration setup based on pydantic-settings, a library that reads and validates application settings from environment variables and .env files.

In plain words
What is it for?
Use it to add or improve settings in FastAPI or other Python backends, centralize configuration, standardize environment names, and support local .env files.
Why use it?
It replaces scattered environment-variable reads with one typed, validated, testable settings module and reduces configuration drift and accidental secrets in code.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the py-pit plugin — 16 skills, 1 hook shipped together

Good fit Use it to add or improve settings in FastAPI or other Python backends, centralize configuration, standardize environment names, and support local .env files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robhowley/py-pit-skills/settings-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add robhowley/py-pit-skills --skill settings-config
Clone the repo
git clone --depth 1 https://github.com/robhowley/py-pit-skills

Made for: Claude Code.

Or install py-pit, the plugin that ships this one along with the rest of its 16 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for settings-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/robhowley/py-pit-skills/settings-config.svg)](https://agentmods.dev/skills/robhowley/py-pit-skills/settings-config)
Your own site
<a href="https://agentmods.dev/skills/robhowley/py-pit-skills/settings-config"><img src="https://agentmods.dev/badge/skills/robhowley/py-pit-skills/settings-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,325 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.01325
Opus 5 $0.00031 $0.00662
Sonnet 5 $0.00012 $0.00265
Haiku 4.5 $0.00006 $0.00133

Measured 7d ago against content hash afe5052249c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

settings-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/settings-config/SKILL.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: settings-config

Core position

This skill creates clean, production-ready application configuration management using pydantic-settings.

It enforces disciplined configuration patterns that prevent common problems such as:

  • configuration drift
  • unclear env var naming
  • environment-specific branching
  • accidental secrets in code

The skill favors minimal, explicit configuration surfaces and ensures configuration is:

  • typed
  • validated
  • environment-driven
  • testable

Goals

Produce a configuration system that:

  1. Centralizes configuration in a single settings module
  2. Uses typed settings via pydantic
  3. Reads configuration from environment variables
  4. Allows .env usage in local development
  5. Avoids configuration logic scattered across the codebase

Step 0 — Inspect the existing project first

Before generating anything:

  1. Check whether a config.py or settings.py already exists. If it does, extend it rather than creating a parallel one.

  2. Note the existing package layout. If the project was scaffolded with fastapi-init, config lives at {pkg_name}/core/config.py — use that path, not app/config.py.

  3. Check whether an env_prefix is already in use anywhere (env_prefix=, os.getenv("XYZ_, existing .env keys). If one exists, adopt it.

  4. Check whether .env loading is already part of the project convention (for example a real .env file used locally, documented setup instructions, or an explicit user request). If so, adopt env_file=".env" in the config.

    Do not assume that the presence of .env.example alone means .env should be automatically loaded at runtime.

  5. Only create new files if no config module is present.


Read the full file on GitHub · 249 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 249 lines · 62 tokens per session scan A afe5052249c1

Subscribe to this mod's changes

settings-config is a skill published in the GitHub repository robhowley/py-pit-skills (5 stars, last pushed 5mo ago), licensed MIT. It adds 62 tokens to every session and 1,325 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories