All skills
extract-python-environment-variables
Scans a Python recipe and updates .env.example, __init__.py, and pyproject.toml with every environment variable it uses.
- Part of google/adk-recipes
- 11 installs
- Developer Tools · Coding skills
When to use it
You have a Python recipe that reads env vars or hardcodes model names, but .env.example is missing entries or still has stale TODOs.
For example
You say
Use extract-python-environment-variables on contrib/python/my-recipe. It calls os.environ.setdefault("PROJECT_ID", "my-project-id") and hardcodes model="gemini-3.5-flash" in agent.py.
You get
- Updated .env.example
- load_dotenv() in __init__.py
- python-dotenv in pyproject.toml
How it works
- Existing .env.example lines it can't prove it wrote are left untouched, and it fails closed on ambiguous formatting.
- Hardcoded model strings become os.getenv() calls, except in dict keys, list items, subscripts, and comparisons.
- A --dry-run flag previews every change without writing files.
Before installing
The script needs Python 3.11+ (run it via uv) because it uses the stdlib tomllib module.
This skill includes 3 scripts your assistant may run on your computer.
More Coding skills
See all- grill-me1.7MInterviews you relentlessly to sharpen a plan or design before you commit to it.
- grill-with-docs1.4MInterviews you hard about a plan while also writing decision records and a glossary as you go.
- caveman667kMakes the agent answer in terse caveman speech, dropping fluff but keeping every technical fact.
- lark-skill-maker496kTurns Lark API operations into reusable custom skills for the CLI.
Also in this pack
- retail-virtual-tryon19Builds a virtual try-on agent that generates image and video try-ons using Gemini and Veo on Google Cloud.
- retail-product-search17Builds a product search agent with semantic search and RAG on Google Cloud, from catalog ingestion to deployment.
- github-pr-review13Reviews a GitHub pull request and posts inline comments in a natural human voice, drafted for your approval first.
- generate-manifest12Scans an ADK recipe directory and generates a manifest.yaml that matches the repo schema.