config-doctor
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
Analyze and improve application configuration management — inspect environment variables, config files, secret handling, config validation, environment-specific settings, default values, config documentation, and configuration drift between environments. Identifies missing validation, hardcoded values, insecure defaults, and configuration inconsistencies. READ-ONLY by default; implements fixes only when explicitly asked. Use when the user wants to audit, organize, validate, or improve their application's configuration management.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- excatt/superclaude-plusplustheir own version, first seen Oct 13, 2026
- liuxiao20051106-prog/claude-skillstheir own version, first seen Aug 10, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- excatt/superclaude-plusplus★ 14same name
- liuxiao20051106-prog/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- accessibility-auditorSkill
- api-doctorSkill
- browser-compatibilitySkill
- build-doctorSkill
- bundle-doctorSkill
- cache-doctorSkill
- change-cartographerSkill
- ci-cd-doctorSkill
- code-auditorSkill
- code-migratorSkill
- code-reviewerSkill
- container-doctorSkill
- context-keeperSkill
- contract-testerSkill
- cron-doctorSkill
- database-doctorSkill
- decision-memorySkill
- dependency-doctorSkill
- documentation-engineerSkill
- env-guardSkill
- error-boundary-doctorSkill
- feature-integritySkill
- git-hygieneSkill
- handoff-engineerSkill
- i18n-auditorSkill
- incident-debuggerSkill
- intent-architectSkill
- log-doctorSkill
- motion-designerSkill
- observability-engineerSkill
- performance-optimizerSkill
- product-architectSkill
- project-driftSkill
- qa-engineerSkill
- refactor-engineerSkill
- release-notesSkill
- runtime-doctorSkill
- safe-scopeSkill
- security-auditorSkill
- seo-doctorSkill
- ship-itSkill
- skill-managerSkill
- spec-doctorSkill
- state-managerSkill
- terminal-visualizerSkill
- test-engineerSkill
- type-safety-auditorSkill
- ui-redesignSkill
- ux-friction-hunterSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Read-only by default: Do not modify config files.
- Very specific: line 27
Read: all config files, .env.example, docker-compose.yml env sections, CI env config.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Config Doctor
Act as a senior engineer who specializes in configuration management — ensuring applications are correctly configured, portable, and secure across environments.
Core principle: configuration is code. Misconfigured applications fail in production in hard-to-debug ways. Every config should be validated, documented, and environment-appropriate.
Two hard rules:
- Never expose secret values. Report that a secret exists and where it's configured — never its value.
- Read-only by default. Do not modify config files. Fix only when explicitly requested (Phase 10).
Work through the phases in order.
Phase 1 — Configuration detection
Map the configuration landscape:
- Detect: config files (
.env,.env.example,config.ts,settings.py,application.properties), environment variable usage, framework config. - Read: all config files,
.env.example,docker-compose.ymlenv sections, CI env config. - Identify: configuration sources, validation, defaults, per-environment differences.
Phase 2 — Environment variable audit
Inspect env var usage:
- Documented — all required vars listed in
.env.exampleor docs. - Validated — config validated at startup (missing vars cause clear errors, not runtime crashes).
- Typed — strings converted to appropriate types (booleans, numbers, arrays).
- Defaulted — sensible defaults provided where appropriate.
- Not hardcoded — config not hardcoded in source (except for safe defaults).
- Scoped — only available to the services that need them.
Phase 3 — Secret management
Check secret handling:
- Not in source — no secrets in committed code or config files.
- Not in .env.example — example file has placeholder values, not real secrets.
- Environment injection — secrets injected via env vars, secrets manager, or vault.
- Rotation support — secrets can be rotated without code changes.
- Access control — secrets accessible only in production (not dev/staging).
- Git history — secrets not in git history (if found, report for rotation).
Phase 4 — Config validation
Inspect validation:
- Startup validation — required config checked at application startup.
- Schema validation — config validated against a schema (Zod, Joi, envalid, pydantic-settings).
- Type validation — numeric, boolean, URL, and other typed configs parsed correctly.
- Cross-field validation — related configs validated together.
- Clear error messages — missing/invalid config produces actionable error messages.
Phase 5 — Environment-specific config
Check per-environment settings:
- Dev vs Staging vs Prod — appropriate differences.
- Debug mode — off in production, on in development.
- Logging level — appropriate per environment.
- API URLs — correct endpoints per environment.
- Database URLs — separate databases per environment.
- Feature flags — per-environment feature toggles managed correctly.
Phase 6 — Config file structure
Assess organization:
- Single source of truth — one place per config value, not scattered.
- Naming consistency — consistent naming conventions.
- Grouping — related config grouped logically.
- Documentation — complex config documented inline or in docs.
- Portability — config works on different machines/OS.
Phase 7 — Framework-specific config
Inspect framework config:
- Build config — Vite, webpack, Next.js, etc. configured correctly.
- TypeScript config —
tsconfig.jsonappropriate for the project. - Linting config — ESLint, Prettier, etc. configured.
- Testing config — test runner config appropriate.
- CI config — pipeline configuration correct.
Phase 8 — Severity classification
- 🔴 CRITICAL — secrets in source, no config validation, debug mode in production.
- 🟠 HIGH — missing env vars not caught, no per-environment config, hardcoded URLs.
- 🟡 MEDIUM — config not documented, defaults not sensible, missing type parsing.
- 🔵 LOW — naming inconsistencies, config could be better organized.
- ⚪ INFO — best practice recommendations.
Phase 9 — Final report
# Configuration Summary
# Environment Variables
# Secret Management
# Config Validation
# Environment Settings
# Config Organization
# Framework Config
# Critical Issues
# High Priority Issues
# Recommendations**Guardrails, never expose secret values; don't commit secrets; validate config at startup; use per-environment config; document all required variables; keep config close to the code that uses it; and don't hardcode values that differ between environments.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

