/config-secrets-environments
Design, audit, and verify configuration, environment separation, secrets, BYOK flows, key rotation, config schema validation, and drift checks across local, dev, staging, and production. Use when adding env vars, changing runtime config, handling API keys or user-provided keys,
$ npx -y skills add majiayu000/spellbook --skill config-secrets-environments --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/config-secrets-environments
Context preview
The summary Claude sees to decide when to auto-load this skill.
Design, audit, and verify configuration, environment separation, secrets, BYOK flows, key rotation, config schema validation, and drift checks across local, dev, staging, and production. Use when adding env vars, changing runtime config, handling API keys or user-provided keys,
SKILL.md
config-secrets-environments.SKILL.mdname: config-secrets-environments
description: Design, audit, and verify configuration, environment separation, secrets, BYOK flows, key rotation, config schema validation, and drift checks across local, dev, staging, and production. Use when adding env vars, changing runtime config, handling API keys or user-provided keys, diagnosing config drift, or preparing deploy/release configuration.
Config Secrets Environments
Purpose
Use this skill when behavior depends on configuration or secrets. The goal is explicit config ownership, validation, and environment parity without exposing credentials.
Inventory
Collect:
1. Config files and env var declarations. 2. Runtime readers and startup wiring. 3. Secret sources: env, secret manager, local keychain, BYOK storage. 4. Environment matrix: local, test, dev, staging, prod. 5. Rotation, revocation, and audit requirements. 6. Existing `.env.example`, schema, docs, and CI checks.
Never print real secrets. Redact values and report only names, source type, and wiring status.
Design Rules
- Define a schema for required and optional config.
- Fail closed for missing critical config; do not silently fall back to insecure or broad behavior.
- Keep defaults safe for local development and explicit for production.
- Separate build-time and runtime config.
- Keep tenant/user-provided keys isolated from platform keys.
- Document rotation and revocation paths.
- Verify config is wired into startup, not only declared.
Environment Matrix
Use this shape:
| Key | Local | Test | Staging | Prod | Secret? | Owner | Rotation | |---|---|---|---|---|---|---|---|
Mark unknown values as unknown. Do not infer a production value from local files.
Output Shape
config_inventory:
environment_matrix:
secret_flows:
validation_and_startup_wiring:
drift_checks:
rotation_plan:
failure_behavior:
verification_commands:
Read more
name: config-secrets-environments description: Design, audit, and verify configuration, environment separation, secrets, BYOK flows, key rotation, config schema validation, and drift checks across local, dev, staging, and production. Use when adding env vars, changing runtime config, handling API keys or user-provided keys, diagnosing config drift, or preparing deploy/release configuration.
Config Secrets Environments
Purpose
Use this skill when behavior depends on configuration or secrets. The goal is explicit config ownership, validation, and environment parity without exposing credentials.
Inventory
Collect:
1. Config files and env var declarations. 2. Runtime readers and startup wiring. 3. Secret sources: env, secret manager, local keychain, BYOK storage. 4. Environment matrix: local, test, dev, staging, prod. 5. Rotation, revocation, and audit requirements. 6. Existing `.env.example`, schema, docs, and CI checks.
Never print real secrets. Redact values and report only names, source type, and wiring status.
Design Rules
- Define a schema for required and optional config.
- Fail closed for missing critical config; do not silently fall back to insecure or broad behavior.
- Keep defaults safe for local development and explicit for production.
- Separate build-time and runtime config.
- Keep tenant/user-provided keys isolated from platform keys.
- Document rotation and revocation paths.
- Verify config is wired into startup, not only declared.
Environment Matrix
Use this shape:
| Key | Local | Test | Staging | Prod | Secret? | Owner | Rotation | |---|---|---|---|---|---|---|---|
Mark unknown values as unknown. Do not infer a production value from local files.
Output Shape
config_inventory: environment_matrix: secret_flows: validation_and_startup_wiring: drift_checks: rotation_plan: failure_behavior: verification_commands:
Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.
Repo: majiayu000/spellbook
Other skills on spellbook.
- /agentsmd-optimize
Audit AND optimize a CLAUDE.md / AGENTS.md instruction file — score it against the five high-leverage patterns, flag anti-patterns, then apply approved fixes in place. Use when the user says 优化 CLAUDE.md / 优化 AGENTS.md / optimize my agent doc / 帮我改 claudemd, or after an audit
Open skill - /agentsmd-scaffold
Generate or update repository-specific AGENTS.md instruction files from real repo evidence. Use when asked to create, design, scaffold, split, or improve root or scoped AGENTS.md files for Codex/Claude/agent workflows, especially when a repo needs directory-specific rules,
Open skill - /api-design
REST/GraphQL/gRPC API design best practices. Use when designing APIs, defining contracts, handling versioning. Covers OpenAPI 3.2, GraphQL Federation, gRPC streaming.
Open skill - /app-ui-design
Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuring accessibility, or following platform guidelines. Covers Material Design 3, Human Interface Guidelines, color theory, typography, and 2025 trends.
Open skill - /app-user-story-qa
End-to-end app feature inventory and user-story testing workflow with a canonical tracker. Use when the user asks to audit every feature, derive expected behavior from code, test user journeys, or explicitly fix and retest documented UX or logistical defects.
Open skill - /architecture-foundation
Design architecture foundations before implementation. Use when asked to design or refactor architecture, choose Rust/Go crate, package, module, runtime, workflow, or service boundaries, compare mature project architecture, prevent stacked one-off PRs, audit migration debt in
Open skill

