Навыки configuration-validator

configuration-validator

Безопасно 🌐 Доступ к сети🔑 Переменные окружения⚙️ Внешние команды📁 Доступ к файловой системе

Проверка конфигурационных файлов и переменных окружения

Отсутствующие или неправильно настроенные переменные окружения вызывают ошибки времени выполнения и сбои развёртывания. Этот навык предоставляет систематические методы для поиска конфигурационных файлов, проверки обязательных переменных, проверки форматов и обеспечения актуальности документации.

Поддерживает: Claude Codex Code(CC)
📊 70 Адекватно
1

Скачать ZIP навыка

2

Загрузить в Claude

Перейдите в Settings → Capabilities → Skills → Upload skill

3

Включите и начните использовать

Протестировать

Использование «configuration-validator». Validate my .env file and check for missing variables against .env.example

Ожидаемый результат:

  • Missing required variables: API_KEY, JWT_SECRET
  • Format issues found: DATABASE_URL missing quotes around value with spaces
  • Security check: .env is present in .gitignore
  • Recommendations: Add API_KEY and JWT_SECRET to your .env file. Wrap values containing spaces in quotes.

Использование «configuration-validator». Generate a .env.example template from my current configuration

Ожидаемый результат:

  • Generated .env.example with all current variables
  • Replaced actual values with placeholder text
  • Added comments documenting each variable's purpose
  • Next step: Review and update documentation as needed

Использование «configuration-validator». Check my codebase for hardcoded secrets in config files

Ожидаемый результат:

  • No hardcoded secrets found in main config files
  • .env is properly gitignored
  • Consider adding config validation to your CI pipeline
  • Recommended: Use a secrets scanner for comprehensive coverage

Аудит безопасности

Безопасно
v5 • 1/16/2026

This is a pure documentation skill containing only instructional guidance for configuration validation. The static analyzer flagged example code patterns in documentation as security issues, but all findings are FALSE POSITIVES. The skill provides educational examples of env var validation patterns using standard Claude tools (Read, Grep, Glob, Write, Bash). No executable code, scripts, or binaries are present. The credential strings (DATABASE_URL, API_KEY) and shell commands (grep, sed) shown are example placeholders in documentation, not actual credential access or malicious behavior.

2
Просканировано файлов
440
Проанализировано строк
4
находки
5
Всего аудитов

Факторы риска

🌐 Доступ к сети (3)
🔑 Переменные окружения (41)
⚙️ Внешние команды (55)
📁 Доступ к файловой системе (1)

Оценка качества

38
Архитектура
100
Сопровождаемость
87
Контент
21
Сообщество
100
Безопасность
91
Соответствие спецификации

Что вы можете построить

Проверка окружения разработки

Убедитесь, что все обязательные переменные окружения присутствуют перед запуском сервера разработки или запуском тестов.

Аудит производственных конфигураций

Проверьте конфигурации развёртывания, чтобы убедиться, что обязательные переменные задокументированы и правильно отформатированы для производства.

Генерация шаблонов конфигурации

Создайте файлы .env.example из существующих конфигураций для распространения среди членов команды и документирования обязательных настроек.

Попробуйте эти промпты

Проверка отсутствующих переменных
Use the configuration-validator skill to check my .env file against .env.example. List any missing required variables and suggest defaults.
Проверка форматов конфигурации
Use the configuration-validator skill to validate the format of my environment variables. Check for missing quotes, invalid URLs, and type issues.

Лучшие практики

  • Always maintain an up-to-date .env.example file that documents all required variables with examples
  • Validate configuration at application startup to fail fast when required variables are missing
  • Keep sensitive values out of version control by properly configuring .gitignore

Избегать

  • Committing .env files to version control with real credentials
  • Using hardcoded secrets or API keys directly in source code
  • Skipping documentation of optional configuration variables and their defaults

Часто задаваемые вопросы

What file types does this skill support?
Supports .env, .env.example, .env.local, config.json, config.js, settings.py, application.yml, and appsettings.json files.
What are the limits on variable validation?
Validates presence, format, and basic type checking. Complex nested configurations or dynamic environment setups require manual review.
How does this integrate with existing projects?
Works alongside existing configurations by reading files directly. Does not modify your code or require installation of additional dependencies.
Is my configuration data safe?
All validation happens locally within your environment. The skill only reads files you specify and does not transmit any data externally.
Why is my validation failing?
Common causes include missing variables in .env, typos in variable names, missing quotes around values with spaces, and incorrect URL formats.
How is this different from other config tools?
This skill focuses on educational guidance and manual validation workflows. Unlike automated tools, it explains why each validation matters and provides context-aware recommendations.

Сведения для разработчиков

Автор

CrazyDubya

Лицензия

MIT

Ссылка

main

Структура файлов

📄 SKILL.md