env-manager
管理環境變數
在不同環境中管理環境變數可能導致錯誤、安全問題和配置難題。此技能協助您驗證、記錄和保護任何專案的環境配置。
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "env-manager". @env-manager Generate .env.example template for a Node.js API
Résultat attendu:
- 必要變數:DATABASE_URL、JWT_SECRET、NODE_ENV
- 選用變數:PORT、LOG_LEVEL、REDIS_URL
- 安全注意事項:絕不提交 .env 檔案,在正式環境使用機密管理器
- 驗證:使用 envalid 等程式庫在啟動時檢查類型
Utilisation de "env-manager". @env-manager How do I validate environment variables in Python
Résultat attendu:
- 使用 pydantic BaseSettings 進行自動驗證
- 為每個變數定義類型和預設值
- 新增驗證器以實現自訂驗證邏輯
- 使用 python-dotenv 從 .env 檔案載入
Utilisation de "env-manager". @env-manager What should I include in .gitignore for environment files
Résultat attendu:
- .env - 包含機密的主要環境檔案
- .env.local - 本機覆寫
- .env.*.local - 特定環境的本機檔案
- *.pem, *.key - 憑證和金鑰檔案
- secrets/ - 機密目錄
Audit de sécurité
SûrThis is a pure prompt-based documentation skill containing only instructional markdown. The static analyzer flagged 188 patterns that appear in documentation examples, but all are false positives. The skill teaches legitimate environment variable management practices, explicitly recommends against committing secrets, and has no executable code, file access, network calls, or command execution capability.
Facteurs de risque
🌐 Accès réseau (4)
🔑 Variables d’environnement (51)
⚙️ Commandes externes (50)
Score de qualité
Ce que vous pouvez construire
設定新專案
為新專案生成具有適當驗證和文件的環境配置範本
稽核配置
檢視程式碼庫中的環境變數使用情況,並識別缺失或配置錯誤的變數
執行最佳實踐
驗證專案是否遵循機密管理指南,且未將敏感值寫死在程式碼中
Essayez ces prompts
@env-manager Generate a .env.example template for a Node.js application with PostgreSQL, Redis, and JWT authentication
@env-manager What environment variables are required for a production Node.js application and how should they be validated
@env-manager Create documentation template for environment variables including descriptions, examples, and security notes
@env-manager What security best practices should I follow for environment variable management in production
Bonnes pratiques
- 使用驗證程式庫在應用程式啟動時檢查環境變數
- 將 .env.example 以佔位值提交到版本控制中
- 為開發、預備和正式環境使用不同的配置檔案
Éviter
- 將機密直接寫死在原始碼中
- 將包含真實憑證的 .env 檔案提交到版本控制
- 跳過驗證,讓缺失的變數導致執行時錯誤