[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DDH0ZGKA3PVBG4D6RYEYSW":3,"skill-same:01M7DDH0ZGKA3PVBG4D6RYEYSW":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7DDH0ZGKA3PVBG4D6RYEYSW","env-management",null,"Set up auto-generated .env.example with idempotent .env sync from typed settings. Works in both interactive (human-in-loop) and headless (automated workspace) contexts.","AgentParadise\u002Fagentic-workspace","AgentParadise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242330113?v=4","01M6C52MXXSE01NH5GKMC3N7JA","01M7DDFCPP7TW5GGJZYGFPKMK2",0,"MIT","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fenv-management\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: Set up auto-generated .env.example with idempotent .env sync from typed settings. Works in both interactive (human-in-loop) and headless (automated workspace) contexts.\nargument-hint: \"[language] - python (default), typescript, go\"\nmodel: sonnet\nallowed-tools: Read, Write, Bash, Glob, Grep\n---\n\n# Env Management\n\n**Three components. One rule: code is the source of truth.**\n\n```\n  Typed config class          ← single source of truth\n  (with descriptions)              field descriptions become docs\n         │\n         │  generate\n         ▼\n     .env.example             ← committed to git, always fresh\n     (documented, organized)       no manual maintenance, no drift\n         │\n         │  idempotent sync\n         ▼\n       .env                   ← gitignored, user secrets\n         ├── existing values  →  never overwritten\n         ├── new variables    →  added with defaults\n         └── unknown vars     →  preserved, flagged\n         │\n         │  startup validation\n         ▼\n    fail fast                 ← crash immediately with a clear error\n    (required vars checked)        not silently at call-time\n```\n\n---\n\n## Philosophy\n\n### 1. Central config at the root\n\nOne place defines every environment variable the application uses.\nEach field has a **type**, a **default** (or is explicitly required), and a **description**\nthat says what the variable does and where to get the value.\n\nNo scattered `os.environ.get(\"THING\")` calls. No undocumented vars.\nNo README section that goes stale. The code *is* the documentation.\n\n### 2. Generator removes noise and deadweight\n\nRun one command (`just gen-env`) and `.env.example` is recreated from the config.\nRemoved fields disappear. New fields appear with their description.\nSecrets are always emitted as `KEY=` (never leak defaults).\nRequired vars are marked `[REQUIRED]`.\n\nFields that are discovered at runtime (not configured upfront) can be **excluded**\nfrom the template entirely — they don't appear in `.env.example`, and users aren't\nconfused about whether they need to set them.\n\nFixed sections (security warnings, deployment notes) live in the generator code —\nthey survive every regeneration.\n\n### 3. Fail fast on startup\n\nAt application boot, validate that all required vars are present and well-formed.\nCrash immediately with a clear message pointing to the missing var.\nNever let a missing secret surface as a cryptic error buried in a stack trace.\n\n---\n\n## Workflow\n\n### 1. Audit existing state\n\n```bash\n# What env vars does the codebase reference today?\ngrep -r \"os\\.environ\\|os\\.getenv\\|process\\.env\\.\" --include=\"*.py\" --include=\"*.ts\" -h \\\n  | grep -oP '(?\u003C=environ\\[\"|getenv\\(\")[^\"]+' | sort -u\n\n# Existing config structure?\nfind . -name \"settings.py\" -o -name \"config.py\" -o -name \"env.ts\" | head -10\n\n# Generator already exists?\nls scripts\u002Fgen* scripts\u002Fgenerate* 2>\u002Fdev\u002Fnull\n```\n\n### 2. Design the config class\n\nSee `references\u002F\u003Clanguage>\u002F` for a full implementation.\n\nKey decisions:\n- **One root config** with nested sub-configs for each concern (GitHub, DB, logging, etc.)\n- **Explicit required** — no default means required; fail fast if missing\n- **Secrets typed distinctly** — `SecretStr` in Python, `z.string()` with `.min(1)` in TS\n- **Descriptions point to where** — \"Get from: https:\u002F\u002F...\" not just \"The API key\"\n- **Exclude dynamic fields** — if a value comes from a webhook payload or API response,\n  it doesn't belong in `.env`\n\n### 3. Write the generator\n\nSee `references\u002F\u003Clanguage>\u002Fgenerate_env_example.py` (or equivalent).\n\nThe generator must:\n1. Introspect the config class — not hand-written, or it will drift\n2. Format field descriptions as comments above each `KEY=value` line\n3. Emit secrets as `KEY=` always (never show the default)\n4. Mark required fields clearly: `[REQUIRED]`\n5. Group vars into named sections with headers\n6. Support `exclude={\"field_name\"}` for dynamic\u002Fruntime-discovered values\n7. Idempotently sync `.env` — preserving existing values, adding new ones,\n   keeping unknown vars in a clearly marked section\n\n### 4. Wire up the command\n\n```makefile\n# justfile\ngen-env:\n    uv run python scripts\u002Fgenerate_env_example.py\n```\n\nRun it, commit `.env.example`. Never commit `.env`.\n\n### 5. Add startup validation\n\n```python\n# At app entry point — not lazily, not on first use\nsettings = get_settings()  # raises immediately if required vars are missing\n```\n\n### 6. Commit and document\n\n```bash\ngit add .env.example scripts\u002Fgenerate_env_example.py\ngit commit -m \"chore: add auto-generated env management\"\necho \".env\" >> .gitignore\n```\n\n---\n\n## Field Patterns\n\n| Pattern | How |\n|---------|-----|\n| Required secret | `SecretStr` with no default → emitted as `KEY=`, marked `[REQUIRED]` |\n| Optional with default | `str = \"info\"` → emitted as `KEY=info` |\n| Dynamic\u002Fruntime value | Use `exclude={\"field\"}` → hidden from template entirely |\n| Feature-gated secret | `SecretStr` with empty default → marked `[REQUIRED when using this feature]` |\n| Persistent header | Written in generator code → survives every regeneration |\n\n---\n\n## Report\n\n```markdown\n## Env Management Setup\n\n**Config class:** `\u003Cpath\u002Fto\u002Fsettings.py>`\n**Generator:** `scripts\u002Fgenerate_env_example.py`\n**Command:** `just gen-env`\n\n**Sections:** \u003Clist sections and var counts>\n**Excluded (dynamic):** \u003Cfield names and why>\n**Startup validation:** ✅ fails fast on missing required vars\n\n**Next:** run `just gen-env`, commit `.env.example`, add `.env` to `.gitignore`\n```\n\n---\n\n## Related\n\n- `references\u002Fpython\u002F` — Full Python implementation (pydantic-settings)\n- `sdlc\u002Fagents\u002Fenv-reviewer` — Audits env config quality\n- `sdlc\u002Fcentralized-configuration` — Broader cross-language patterns\n","# Env Management\n\n**Three components. One rule: code is the source of truth.**\n\n```\n  Typed config class          ← single source of truth\n  (with descriptions)              field descriptions become docs\n         │\n         │  generate\n         ▼\n     .env.example             ← committed to git, always fresh\n     (documented, organized)       no manual maintenance, no drift\n         │\n         │  idempotent sync\n         ▼\n       .env                   ← gitignored, user secrets\n         ├── existing values  →  never overwritten\n         ├── new variables    →  added with defaults\n         └── unknown vars     →  preserved, flagged\n         │\n         │  startup validation\n         ▼\n    fail fast                 ← crash immediately with a clear error\n    (required vars checked)        not silently at call-time\n```\n\n---\n\n## Philosophy\n\n### 1. Central config at the root\n\nOne place defines every environment variable the application uses.\nEach field has a **type**, a **default** (or is explicitly required), and a **description**\nthat says what the variable does and where to get the value.\n\nNo scattered `os.environ.get(\"THING\")` calls. No undocumented vars.\nNo README section that goes stale. The code *is* the documentation.\n\n### 2. Generator removes noise and deadweight\n\nRun one command (`just gen-env`) and `.env.example` is recreated from the config.\nRemoved fields disappear. New fields appear with their description.\nSecrets are always emitted as `KEY=` (never leak defaults).\nRequired vars are marked `[REQUIRED]`.\n\nFields that are discovered at runtime (not configured upfront) can be **excluded**\nfrom the template entirely — they don't appear in `.env.example`, and users aren't\nconfused about whether they need to set them.\n\nFixed sections (security warnings, deployment notes) live in the generator code —\nthey survive every regeneration.\n\n### 3. Fail fast on startup\n\nAt application boot, validate that all required vars are present and well-formed.\nCrash immediately with a clear message pointing to the missing var.\nNever let a missing secret surface as a cryptic error buried in a stack trace.\n\n---\n\n## Workflow\n\n### 1. Audit existing state\n\n```bash\n# What env vars does the codebase reference today?\ngrep -r \"os\\.environ\\|os\\.getenv\\|process\\.env\\.\" --include=\"*.py\" --include=\"*.ts\" -h \\\n  | grep -oP '(?\u003C=environ\\[\"|getenv\\(\")[^\"]+' | sort -u\n\n# Existing config structure?\nfind . -name \"settings.py\" -o -name \"config.py\" -o -name \"env.ts\" | head -10\n\n# Generator already exists?\nls scripts\u002Fgen* scripts\u002Fgenerate* 2>\u002Fdev\u002Fnull\n```\n\n### 2. Design the config class\n\nSee `references\u002F\u003Clanguage>\u002F` for a full implementation.\n\nKey decisions:\n- **One root config** with nested sub-configs for each concern (GitHub, DB, logging, etc.)\n- **Explicit required** — no default means required; fail fast if missing\n- **Secrets typed distinctly** — `SecretStr` in Python, `z.string()` with `.min(1)` in TS\n- **Descriptions point to where** — \"Get from: https:\u002F\u002F...\" not just \"The API key\"\n- **Exclude dynamic fields** — if a value comes from a webhook payload or API response,\n  it doesn't belong in `.env`\n\n### 3. Write the generator\n\nSee `references\u002F\u003Clanguage>\u002Fgenerate_env_example.py` (or equivalent).\n\nThe generator must:\n1. Introspect the config class — not hand-written, or it will drift\n2. Format field descriptions as comments above each `KEY=value` line\n3. Emit secrets as `KEY=` always (never show the default)\n4. Mark required fields clearly: `[REQUIRED]`\n5. Group vars into named sections with headers\n6. Support `exclude={\"field_name\"}` for dynamic\u002Fruntime-discovered values\n7. Idempotently sync `.env` — preserving existing values, adding new ones,\n   keeping unknown vars in a clearly marked section\n\n### 4. Wire up the command\n\n```makefile\n# justfile\ngen-env:\n    uv run python scripts\u002Fgenerate_env_example.py\n```\n\nRun it, commit `.env.example`. Never commit `.env`.\n\n### 5. Add startup validation\n\n```python\n# At app entry point — not lazily, not on first use\nsettings = get_settings()  # raises immediately if required vars are missing\n```\n\n### 6. Commit and document\n\n```bash\ngit add .env.example scripts\u002Fgenerate_env_example.py\ngit commit -m \"chore: add auto-generated env management\"\necho \".env\" >> .gitignore\n```\n\n---\n\n## Field Patterns\n\n| Pattern | How |\n|---------|-----|\n| Required secret | `SecretStr` with no default → emitted as `KEY=`, marked `[REQUIRED]` |\n| Optional with default | `str = \"info\"` → emitted as `KEY=info` |\n| Dynamic\u002Fruntime value | Use `exclude={\"field\"}` → hidden from template entirely |\n| Feature-gated secret | `SecretStr` with empty default → marked `[REQUIRED when using this feature]` |\n| Persistent header | Written in generator code → survives every regeneration |\n\n---\n\n## Report\n\n```markdown\n## Env Management Setup\n\n**Config class:** `\u003Cpath\u002Fto\u002Fsettings.py>`\n**Generator:** `scripts\u002Fgenerate_env_example.py`\n**Command:** `just gen-env`\n\n**Sections:** \u003Clist sections and var counts>\n**Excluded (dynamic):** \u003Cfield names and why>\n**Startup validation:** ✅ fails fast on missing required vars\n\n**Next:** run `just gen-env`, commit `.env.example`, add `.env` to `.gitignore`\n```\n\n---\n\n## Related\n\n- `references\u002Fpython\u002F` — Full Python implementation (pydantic-settings)\n- `sdlc\u002Fagents\u002Fenv-reviewer` — Audits env config quality\n- `sdlc\u002Fcentralized-configuration` — Broader cross-language patterns\n",{"model":23,"description":7,"allowed-tools":24,"argument-hint":25},"sonnet","Read, Write, Bash, Glob, Grep","[language] - python (default), typescript, go","main","8341ffb3b4128f405d0797b5f3f3affb25de91ea","plugins\u002Fsdlc\u002Fskills\u002Fenv-management","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace","https:\u002F\u002Fgithub.com\u002FAgentParadise","2026-11-09 13:31:42",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add AgentParadise\u002Fagentic-workspace --skill env-management",{"tool":38,"command":39},"bunx","bunx skills add AgentParadise\u002Fagentic-workspace --skill env-management",{"tool":41,"command":42},"pnpm","pnpm dlx skills add AgentParadise\u002Fagentic-workspace --skill env-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fenv-management\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fpython\u002Fgenerate_env_example.py","SCRIPT","脚本",12599,"https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fenv-management\u002Freferences\u002Fpython\u002Fgenerate_env_example.py",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7DDJG3VACD4G63HQ3WWDTV5","testing-expert","Expert knowledge for analyzing testing architecture and planning improvements","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Ftesting-expert\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7DDJ3Z86RTM7YBDFF4QED1A","security-hardening","Audit and harden repository security — supply chain, CI\u002FCD scanners, secrets, credentials","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fsecurity-hardening\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7DDHZY3KRZ1PM4YTVR8Y5B5","review","Review implementation against project plan and verify completeness","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7DDHVFQK785K8Z7HX5GRN4A","qa-setup","Verify or create standardized QA commands for polyglot projects","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fqa-setup\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7DDHSD25FQ20METGDRWAWED","prioritize","Prioritize review comments by severity","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fprioritize\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7DDHPHRVKHR1TZBYNSTA0XX","pre-commit-qa","Run standardized QA checks before committing changes","https:\u002F\u002Fgithub.com\u002FAgentParadise\u002Fagentic-workspace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdlc\u002Fskills\u002Fpre-commit-qa\u002FSKILL.md",[],[]]