configuration-env
Configure applications safely through environment variables, .env files, and repo-owned runtime config such as Wrangler bindings.
Skill by matt-riley
Chalk Labs
Need help deploying configuration-env?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/matt-riley-configuration-env
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/configuration-env
What's inside
- Skill name
configuration-env- Description
- Configure applications safely through environment variables, .env files, and repo-owned runtime config such as Wrangler bindings. Use for startup failures, environment drift, or deployment bootstrap.
- License
- GPL-3.0
- Metadata
- kind: task · owner: mattriley · version: 1.3.2 · audience: general-coding-agent · category: ops · maturity: stable
- Instructions
- 121 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (7)
- SKILL.md
- openai.yaml · agents/
- evals.json · evals/
- trigger-queries.json · evals/
- edge-cases.md · references/
- examples.md · references/
- check-config.sh · scripts/
SKILL.md (first lines)
# Configuration and environment ## Use this skill when - The server will not start because of missing or invalid configuration. - Bootstrapping a new deployment environment and wiring real env vars or secrets. - Behaviour differs between environments and the question is whether env loading is the cause. - The main problem is repo-owned runtime config drift, such as a missing Cloudflare Worker binding in `wrangler.toml`, `wrangler.json`, or `wrangler.jsonc`, without schema or migration work. ## Do not use this skill when - The deeper concern is auth or sensitive-data exposure (use `security-basics`). - The blocker is standing up a multi-service stack rather than env loading itself (use `docker-compose-dev`). ## Inputs to gather - The authoritative list of required and optional variables (usually `.env.example` or README). - The runtime platform (shell, CI, container) supplying env vars and whether `.env` is used. - Any repo-owned runtime config that supplies bindings or non-secret settings, such as `wrangler.toml`, `wrangler.json`, or `wrangler.jsonc`. - The health-check endpoint or equivalent runtime check used to confirm a good startup. ## First move - Compare real env vars and any `.env` against `.env.example` or the repo's config loader, then inspect runtime config files like `wrangler.*` for missing bindings or drift before starting the service and hitting `/health` or the closest existing startup check. ## Outputs - A concrete config-drift diagnosis across real environment variables, `.env`, `.env.example`, and runtime binding files such as `wrangler.*`. - The required variable, binding, or loader changes needed for the service to start with the expected configuration contract. - Startup or `/health` verification showing the configuration was accepted, or an explicit blocker listing the missing required config. ## Catalog position Keep this easy to reach for startup failures, env drift, and deployment/config debugging. - Prefer `security-basics` when the question is primarily about auth, sensitive exposure, or request-handling safety. - Prefer `docker-compose-dev` when the blocker is bringing up a multi-service stack rather than validating env loading itself. - Prefer `database-migrations` when the task changes D1 schema, migration files, or schema state rather than only fixing the Worker binding/config contract. - Pair this with `rpi-workflow` only when configuration work is part of a larger multi-phase change. ## Loading priority (highest to lowest) 1. Real environment variables (shell, CI secrets, runtime platform) 2. `.env` file (local developer override) 3. `.env.example` (documentation only — never loaded at runtime) ## Setup ```bash cp .env.example .env # start from the documented template # edit .env with real values for your environment ``` Never commit `.env`. Add it to `.gitignore`. ## Variable categories Check `.env.example` or project README for authoritative var names. Common categories: | Category | Examples | | ------------- | ---------------------------------------- | | Database | `DATABASE_URL` — connection string | | Auth | Secret key / bearer token | | Origins/CORS | `ALLOWED_ORIGINS` — comma-separated list | | TLS/Cookies | `SECURE_COOKIES`, `COOKIE_DOMAIN` | | Feature flags | Enable/disable optional subsystems | Required variables cause startup failure. Optional variables activate features. ## Security constraints - Production **must** use real env vars or a secrets manager — not `.env` files. - Never set `ALLOWED_ORIGINS=*` when credentials or cookies are involved — use explicit origins. - Enable secure cookies when behind HTTPS. - Protect sensitive endpoints (metrics, admin) behind auth — do not leave them open by default. - **Never hardcode secrets in source code.** ## Verification commands ```bash make build && ./bin/server # or equivalent start command curl http://localhost:<PORT>/health ``` A healthy response confirms the configuration was accepted. ## Anti-patterns - Hardcoding secrets in source code or test fixtures - Using `.env` in production or CI - `ALLOWED_ORIGINS=*` with cookie/credential-based auth - Silently ignoring missing required config — always fail fast at startup ## Workflow 1. Gather the startup failure or config symptom (missing env, bad binding, wrong environment). 2. Compare live env / `.env` against `.env.example` and the repo config loader. 3. Inspect runtime config files (`wrangler.*`, compose env, secrets mounts) for drift or missing bindings. 4. Confirm required vs optional variables and fail-fast startup expectations. 5. Apply the minimal config fix (example file, loader, binding, or secret wiring). 6. Restart or re-run the service and hit `/health` (or the closest startup probe). 7. Document which variables are required in prod and that production must not rely on committed `.env` files. ## Guardrails - Production must use real env vars or a secrets manager — never `.env` files. - Required variables must fail the server at startup, not silently at request time. - Never commit `.env`; only `.env.example` belongs in source. - Never hardcode secrets in source code or test fixtures. ## Validation Run the verification commands above and confirm the service starts successfully, the health endpoint responds, and missing required variables still fail fast. ## Reference files - Read `references/examples.md` when you need concrete user utterances, expected behaviour, or a model answer shape to mirror. - Read `references/edge-cases.md` when the request is a near miss, partially matches this skill, or the first attempt fails. - [`scripts/check-config.sh`](scripts/check-config.sh) — run with `--help` for a repeatable environment/configuration check.
From matt-riley/agent-skills, GPL-3.0.
More from matt-riley/agent-skills
- 0.614score
code-tour
matt-riley
Use when asked to create a .tour walkthrough — onboarding, PR review, RCA, architecture, or any persona-targeted step-by-step code narrative.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-instructions
matt-riley
Use when creating or updating agent instruction files (AGENTS.md for Pi, copilot-instructions.md for Copilot, per-path guides, or AGENTS.md router) —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-supply-chain
matt-riley
Use this skill when generating SHA-256 integrity manifests for agent plugins, verifying that installed plugins match their manifests, detecting tampered…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agentic-eval
matt-riley
Use when designing or implementing an evaluation loop for AI agent outputs — reflection loops, evaluator-optimizer pipelines, LLM-as-judge scoring, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
api-smoke-validation
matt-riley
Use when running quick, repeatable API smoke tests after changes with hurl, including auth, status-code, response-shape, endpoint sanity, and pre-integration…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
aws-sdk-v2-to-v3-migration
matt-riley
Use when the codebase still imports from 'aws-sdk' v2, uses new AWS.*() constructors, .promise() calls, AWS.config.update(), DocumentClient, or s3.upload() —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
circleci-to-github-actions-migration
matt-riley
Use when a repository still depends on .circleci/config.yml jobs, workflows, or artifacts that need to be replaced or phased out with GitHub Actions —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
mocha-to-jest-migration
matt-riley
Use when a JavaScript or TypeScript suite still depends on Mocha, Chai, or Sinon and needs an incremental Jest migration.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
project-references-migration
matt-riley
Use when a layered TypeScript workspace needs an incremental project-references migration without breaking package boundaries or editor resolution.
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
ast-grep
matt-riley
Use when you need ast-grep structural search, linting, or safe codemod rewrites, especially for requests that mention ast-grep, sg, codemod, rule files, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
code-intelligence
matt-riley
Use when navigating or refactoring code — choosing between LSP, rg, or semantic search tools; an LSP call returns empty and you need to know if it failed; or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-governance
matt-riley
Use this skill when building AI agents that call external tools, implementing policy-based access controls, adding semantic intent classification, creating…
SkillAFreshness: A★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Oct 8, 2026 (27 days ago)
- Last release
- Oct 23, 2026 (12 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.3.2
- License
- GPL-3.0
- Repository
- github.com/matt-riley/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from matt-riley
- 0.614score
agent-instructions
matt-riley
Use when creating or updating agent instruction files (AGENTS.md for Pi, copilot-instructions.md for Copilot, per-path guides, or AGENTS.md router) —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-supply-chain
matt-riley
Use this skill when generating SHA-256 integrity manifests for agent plugins, verifying that installed plugins match their manifests, detecting tampered…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agentic-eval
matt-riley
Use when designing or implementing an evaluation loop for AI agent outputs — reflection loops, evaluator-optimizer pipelines, LLM-as-judge scoring, or…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
api-smoke-validation
matt-riley
Use when running quick, repeatable API smoke tests after changes with hurl, including auth, status-code, response-shape, endpoint sanity, and pre-integration…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
aws-sdk-v2-to-v3-migration
matt-riley
Use when the codebase still imports from 'aws-sdk' v2, uses new AWS.*() constructors, .promise() calls, AWS.config.update(), DocumentClient, or s3.upload() —…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
agent-governance
matt-riley
Use this skill when building AI agents that call external tools, implementing policy-based access controls, adding semantic intent classification, creating…
SkillAFreshness: A★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get configuration-env running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
configuration-env skill. Agent Mart. https://agentmart.dev/skills/matt-riley-configuration-env (last updated 2026-10-24)