[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7538TDQPC1VW4V86B3NHQMF":3,"skill-same:01M7538TDQPC1VW4V86B3NHQMF":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7538TDQPC1VW4V86B3NHQMF","managing-environment-configurations",null,"Implement environment and configuration management with comprehensive guidance and automation.\nUse when you need to work with environment configuration.\nTrigger with phrases like \"manage environments\", \"configure environments\",\nor \"sync configurations\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fmanaging-environment-configurations\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: managing-environment-configurations\ndescription: |\n  Implement environment and configuration management with comprehensive guidance and automation.\n  Use when you need to work with environment configuration.\n  Trigger with phrases like \"manage environments\", \"configure environments\",\n  or \"sync configurations\".\n\nallowed-tools: Read, Write, Edit, Grep, Glob, Bash(cmd:*)\nversion: 1.0.0\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\nlicense: MIT\ncompatible-with: claude-code, codex, openclaw\n---\n# Managing Environment Configurations\n\n## Overview\n\nManage application configurations across development, staging, and production environments using `.env` files, Kubernetes ConfigMaps\u002FSecrets, SSM Parameter Store, and cloud-native configuration services. Enforce consistency, prevent configuration drift, and implement safe promotion workflows between environments.\n\n## Prerequisites\n\n- Access to all target environments (dev, staging, production)\n- Configuration management tool or pattern identified (dotenv, ConfigMaps, SSM, Consul)\n- Version control for configuration files (separate repo or encrypted in application repo)\n- Encryption tool for sensitive values (`sops`, `age`, `sealed-secrets`, or cloud KMS)\n- Understanding of which values differ between environments vs. which are shared\n\n## Instructions\n\n1. Audit existing configuration: scan for `.env` files, `config\u002F` directories, Kubernetes ConfigMaps, and hardcoded values in source code\n2. Classify each configuration value: public (non-sensitive, varies per env), secret (credentials, API keys), and static (same across all envs)\n3. Extract hardcoded values into externalized configuration with a clear naming convention (`APP_DATABASE_HOST`, `APP_REDIS_URL`)\n4. Create environment-specific configuration files: `.env.development`, `.env.staging`, `.env.production`\n5. Encrypt sensitive values using `sops` with cloud KMS or `sealed-secrets` for Kubernetes\n6. Generate Kubernetes ConfigMaps and Secrets from environment files for cluster-based deployments\n7. Set up configuration validation: schema checks to ensure all required variables are present before deployment\n8. Implement promotion workflow: changes go to dev first, then promote to staging after testing, then to production with approval\n9. Add configuration drift detection: compare running environment against source-of-truth on a schedule\n\n## Output\n\n- Environment-specific configuration files (`.env.*`, `config\u002F*.yaml`)\n- Kubernetes ConfigMap and Secret manifests per environment\n- Configuration schema\u002Fvalidation script to catch missing variables\n- SOPS-encrypted secret files with `.sops.yaml` rules\n- CI\u002FCD pipeline steps for configuration validation and deployment\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| `Missing required environment variable` | Variable defined in schema but absent from `.env` file | Add the variable to the environment file; run validation script before deploy |\n| `SOPS decryption failed` | Wrong KMS key or expired credentials | Verify KMS key ARN in `.sops.yaml`; refresh cloud credentials |\n| `ConfigMap too large` | Kubernetes 1MB ConfigMap size limit exceeded | Split into multiple ConfigMaps or mount as files from a volume |\n| `Configuration drift detected` | Manual changes made directly to running environment | Re-apply configuration from source-of-truth; block direct environment edits |\n| `Secret exposed in logs` | Application logging sensitive config values at startup | Mask secrets in logging output; audit code for accidental secret printing |\n\n## Examples\n\n- \"Create an environment configuration system using `.env` files for a Node.js app with SOPS encryption for secrets and validation that all required vars are set.\"\n- \"Generate Kubernetes ConfigMaps and Secrets from environment files for dev, staging, and production namespaces.\"\n- \"Set up a configuration promotion workflow: edit in dev, validate in CI, promote to staging via PR, deploy to production with approval gate.\"\n\n## Resources\n\n- 12-Factor App config: https:\u002F\u002F12factor.net\u002Fconfig\n- SOPS encryption: https:\u002F\u002Fgithub.com\u002Fgetsops\u002Fsops\n- Kubernetes ConfigMaps: https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Fconcepts\u002Fconfiguration\u002Fconfigmap\u002F\n- Sealed Secrets: https:\u002F\u002Fgithub.com\u002Fbitnami-labs\u002Fsealed-secrets\n- Consul KV: https:\u002F\u002Fdeveloper.hashicorp.com\u002Fconsul\u002Fdocs\u002Fdynamic-app-config\u002Fkv","# Managing Environment Configurations\n\n## Overview\n\nManage application configurations across development, staging, and production environments using `.env` files, Kubernetes ConfigMaps\u002FSecrets, SSM Parameter Store, and cloud-native configuration services. Enforce consistency, prevent configuration drift, and implement safe promotion workflows between environments.\n\n## Prerequisites\n\n- Access to all target environments (dev, staging, production)\n- Configuration management tool or pattern identified (dotenv, ConfigMaps, SSM, Consul)\n- Version control for configuration files (separate repo or encrypted in application repo)\n- Encryption tool for sensitive values (`sops`, `age`, `sealed-secrets`, or cloud KMS)\n- Understanding of which values differ between environments vs. which are shared\n\n## Instructions\n\n1. Audit existing configuration: scan for `.env` files, `config\u002F` directories, Kubernetes ConfigMaps, and hardcoded values in source code\n2. Classify each configuration value: public (non-sensitive, varies per env), secret (credentials, API keys), and static (same across all envs)\n3. Extract hardcoded values into externalized configuration with a clear naming convention (`APP_DATABASE_HOST`, `APP_REDIS_URL`)\n4. Create environment-specific configuration files: `.env.development`, `.env.staging`, `.env.production`\n5. Encrypt sensitive values using `sops` with cloud KMS or `sealed-secrets` for Kubernetes\n6. Generate Kubernetes ConfigMaps and Secrets from environment files for cluster-based deployments\n7. Set up configuration validation: schema checks to ensure all required variables are present before deployment\n8. Implement promotion workflow: changes go to dev first, then promote to staging after testing, then to production with approval\n9. Add configuration drift detection: compare running environment against source-of-truth on a schedule\n\n## Output\n\n- Environment-specific configuration files (`.env.*`, `config\u002F*.yaml`)\n- Kubernetes ConfigMap and Secret manifests per environment\n- Configuration schema\u002Fvalidation script to catch missing variables\n- SOPS-encrypted secret files with `.sops.yaml` rules\n- CI\u002FCD pipeline steps for configuration validation and deployment\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| `Missing required environment variable` | Variable defined in schema but absent from `.env` file | Add the variable to the environment file; run validation script before deploy |\n| `SOPS decryption failed` | Wrong KMS key or expired credentials | Verify KMS key ARN in `.sops.yaml`; refresh cloud credentials |\n| `ConfigMap too large` | Kubernetes 1MB ConfigMap size limit exceeded | Split into multiple ConfigMaps or mount as files from a volume |\n| `Configuration drift detected` | Manual changes made directly to running environment | Re-apply configuration from source-of-truth; block direct environment edits |\n| `Secret exposed in logs` | Application logging sensitive config values at startup | Mask secrets in logging output; audit code for accidental secret printing |\n\n## Examples\n\n- \"Create an environment configuration system using `.env` files for a Node.js app with SOPS encryption for secrets and validation that all required vars are set.\"\n- \"Generate Kubernetes ConfigMaps and Secrets from environment files for dev, staging, and production namespaces.\"\n- \"Set up a configuration promotion workflow: edit in dev, validate in CI, promote to staging via PR, deploy to production with approval gate.\"\n\n## Resources\n\n- 12-Factor App config: https:\u002F\u002F12factor.net\u002Fconfig\n- SOPS encryption: https:\u002F\u002Fgithub.com\u002Fgetsops\u002Fsops\n- Kubernetes ConfigMaps: https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Fconcepts\u002Fconfiguration\u002Fconfigmap\u002F\n- Sealed Secrets: https:\u002F\u002Fgithub.com\u002Fbitnami-labs\u002Fsealed-secrets\n- Consul KV: https:\u002F\u002Fdeveloper.hashicorp.com\u002Fconsul\u002Fdocs\u002Fdynamic-app-config\u002Fkv",{"name":5,"author":24,"license":15,"version":25,"description":26,"allowed-tools":27,"compatible-with":28},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement environment and configuration management with comprehensive guidance and automation.\nUse when you need to work with environment configuration.\nTrigger with phrases like \"manage environments\", \"configure environments\",\nor \"sync configurations\".\n","Read, Write, Edit, Grep, Glob, Bash(cmd:*)","claude-code, codex, openclaw","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill managing-environment-configurations",{"tool":41,"command":42},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill managing-environment-configurations",{"tool":44,"command":45},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill managing-environment-configurations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fmanaging-environment-configurations\u002FSKILL.md",true,[49,55,61,67],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002FREADME.md","ASSET","资产文件",368,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fmanaging-environment-configurations\u002Fassets\u002FREADME.md",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002FREADME.md","REFERENCE","参考文档",70,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fmanaging-environment-configurations\u002Freferences\u002FREADME.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fgenerate_config.py","SCRIPT","脚本",3750,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fmanaging-environment-configurations\u002Fscripts\u002Fgenerate_config.py",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002FREADME.md",676,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fmanaging-environment-configurations\u002Fscripts\u002FREADME.md",[72,79,86,93,100,108],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]