hundong2/git-game/python-security-uv
Claude Code and agent skill by hundong2/git-game
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Python development & security guidance when working inside UV environments; enforce .env-based handling for passwords/auth keys and follow UV runtime rules.
Install
npx vskill@latest install hundong2/git-game/python-security-uvSKILL.md
The same SKILL.md was published earlier as hundong2/git-game/python-security-uv.
Python Security & UV Rules
Development guidelines
- Default to uv-native tooling for script entry points: run and test code through
uv run <module>so dependency resolution, environment activation, and logging are consistent. - Keep package versions pinned in
pyproject.tomlorrequirements.txt; useuv lock(if available) orpip-compilebefore publishing to keep reproducible builds. - Rely on uv tasks (e.g.,
uv lint,uv test,uv docs) to encapsulate linters, type checkers, and formatters so reviewers know how to reproduce each step.
Secrets and credentials
- Place every password, API key, database URI, or certificate path inside
.envfiles scoped per environment (e.g.,.env.development,.env.uv) and never commit them. - Use
python-dotenvor uv’s built-in loader to read.envbefore other config layers; treat values as strings, then parse/validate them into typed settings objects. - Define a
config/env_loader.pyhelper that raises on missing required keys and logs ambiguous values; that helper should wrapos.getenv/dotenv.get_keyand document each critical key (e.g.,SERVICE_SECRET,DB_PRIVATE_KEY). - Confirm secrets rely on secure storage (Vault/Secret Manager) for CI/CD; when running
uvtasks locally, source.envviauv env loadorsource .envbefore invoking the command. - Regularly run
uv secrets audit(or a custom script) to ensure env files don’t leak sensitive info and to verify each credential is rotated per policy.
Authentication & keys
- Keep authentication flows declarative: a single module (e.g.,
security/auth.py) should fetch tokens from.env, validate them, and expose helper functions rather than scattering credential logic. - Enforce MFA-enabled service accounts whenever possible; document key rotation timelines inside
security/README.mdand correlate them with env variable names (e.g.,MFA_TOKEN,SERVICE_ACCOUNT_KEY_PATH). - Store key files outside version control (e.g.,
secrets/service-account.key) and reference their paths through.env(e.g.,SERVICE_ACCOUNT_KEY_PATH=secrets/service-account.key). Validate file existence in startup checks.
UV runtime rules
- UV environments expect a consistent startup command; point
uv runatpython -m uvicorn app:appor the uv entry point so that hot reload, logging, and instrumentation behave predictably. - Document required UV variables (e.g.,
UV_ENV,UV_HOST,UV_PORT) in.env.uvfiles and guard them with explicit defaults insideconfig/settings.pyusing uv-safe parsing helpers. - When deploying or running locally, rely on
uv run migratebefore service start to keep schema/state aligned; never skip this step in scripts or CI. - Capture UV health and security telemetry via
uv metricscommands; ensure secrets are never printed by enablingUV_LOG_SENSITIVE=falsebefore any non-dry run execution.
Reviews & validation
- Tie uv tasks to CI workflows (e.g.,
uv test,uv security-check) so PRs automatically enforce linting, typing, and secret detection. - Keep a lightweight
scripts/uv_setup.pyor similar that populates.env.uvfrom templates without exposing real credentials. - Document the above policies in
docs/security.mdordocs/uv.mdso team members can cross-reference naming conventions, env requirements, and uv-specific rules before merging changes.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggit-learning-game/skills/python-security-uv/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hundong2/git-game/python-security-uv)