Към всички skills

env-config

aiskillstore · Разработка

Environment configuration and secrets management skill using UV for Python projects. Handles .env files, environment variables, secrets encryption, multi-environment setups, and secure configuration patterns. Use when setting up project environments, managing API keys, or implementing configuration

Оригинален текст · няма потвърден превод на български

Първо прочетете инструкцията.

Файлът се зарежда от посочения източник само по ваше действие. Можете да го прочетете тук, да го копирате или да го запазите като .md.

Оригинален SKILL.md
GitHub хранилище
Звезди на репото
428
Лиценз
Не е посочен. Проверете в репозитория.
Последна проверка на записа
Няма посочена дата

Добавете в своя инструмент.

Командата отваря избора на skills от репозитория. Прочетете файла и условията на автора преди изпълнение.

npx skills add aiskillstore/marketplace

Страницата копира текст. Не инсталира и не изпълнява нищо на устройството ви.

Откъс от SKILL.md

Началото на файла на автора, без превод.

Environment Configuration Skill

Overview

This skill provides comprehensive guidance for managing environment configurations, secrets, and environment variables in Python projects using UV (the modern Python package and project manager). It covers secure configuration patterns, multi-environment setups, .env file management, and secrets handling with encryption support.

Environment configuration is critical for separating configuration from code (12-factor app principles), managing secrets securely across environments, preventing credential leaks, and supporting team collaboration.

When to Use This Skill

Use this skill when you need to:

  • Set up environment configuration for a new Python project
  • Implement secure secrets management
  • Configure multi-environment setups (dev/staging/prod)
  • Migrate from hardcoded configs to environment variables
  • Audit existing configuration for security issues
  • Standardize configuration across team projects
  • Set up UV-based Python project with proper config management

Core Principles

1. Never Hardcode Secrets

  • All API keys, passwords, tokens go in environment variables or encrypted secrets
  • Configuration files with secrets must be in .gitignore
  • Use templates for sharing structure, not actual secrets

2. Separate by Environment

  • Different configurations for development, staging, production
  • Environment-specific .env files (.env.development, .env.production)
  • Clear naming conventions for environment variables

3. Fail Securely

  • Validate required environment variables on startup
  • Provide clear error messages for missing configuration
  • Use sensible defaults only for non-sensitive values

4. Use UV for Dependency Management

  • UV provides fast, reliable Python package management
  • Replaces pip, pip-tools, virtualenv, and more
  • Ensures reproducible environments across machines

5. Document Everything

  • Template files show structure without exposing secrets
  • README explains required variables and how to set them
  • Comments describe purpose and format of variables

UV Setup

Installing UV

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Or with pip
pip install uv

# Verify installation
uv --version

Initialize UV Project

Целият SKILL.md в GitHub