GitLab Stack Validator
БесплатноБез исполняемых скриптовНе проверенValidates GitLab stack projects before deployment, ensuring proper architecture patterns, directory structure, secrets management, .env configuration, and…
Об этом скилле
GitLab Stack Validator
This skill validates GitLab stack projects to ensure they follow proper architecture patterns and are ready for deployment. It focuses on detection and reporting of issues, working alongside companion skills (stack-creator, secrets-manager) for remediation.
When to Use This Skill
Activate this skill when the user requests:
- Validate a GitLab stack project
- Check stack configuration before deployment
- Verify stack architecture and structure
- Audit stack for best practices compliance
- Ensure stack follows proper patterns
- Pre-deployment validation checks
- Stack health check or readiness verification
Core Validation Principles
This skill validates stacks that follow these architecture principles:
- Configuration Management: All configuration through docker-compose.yml and ./config directory
- Secrets Management: Secrets stored in ./secrets and referenced via Docker secrets
- Environment Variables: .env file with matching .env.example template
- Minimal Custom Scripts: docker-entrypoint.sh only when containers don't support native secrets
- Proper Ownership: No root-owned files (all files owned by Docker user)
- Temporary Files: _temporary directory for transient files that are cleaned up after use
- Docker Best Practices: Leverage docker-validation skill for Docker-specific checks
Validation Workflow
When a user requests stack validation, follow this comprehensive workflow:
Phase 1: Pre-flight Checks
Step 1: Verify Stack Project
- Check if current directory appears to be a stack project
- Look for key indicators:
- docker-compose.yml exists
- Presence of ./config, ./secrets, or ./_temporary directories
- .env file exists
- If not a stack project, report findings and ask if user wants to initialize one
Step 2: Gather Context
- Ask user for validation scope (if needed):
- Full validation or targeted checks?
- Strict mode or permissive mode?
- Output format preference (text report vs JSON)?
- Check if .stack-validator.yml exists for custom rules
- Note the working directory for reporting
Phase 2: Directory Structure Validation
Step 1: Required Directories
- Check for required directories:
./config- Configuration files directory./secrets- Secrets storage directory./_temporary- Temporary files directory
- For each missing directory, record:
- Directory name
- Purpose and why it's required
- Impact on stack functionality
Step 2: Directory Permissions
- Check ./secrets has restricted permissions (700 or 600)
- Verify other directories have appropriate permissions
- Report any permission issues with security implications
Step 3: Directory Ownership
- Scan all project directories for ownership
- Flag any root-owned directories:
- Directory path
- Current owner
- Expected owner (current user or docker user)
- Flag any files with unexpected ownership
Step 4: .gitignore Validation
- Check if .gitignore exists
- Verify it excludes:
./secretsor./secrets/*./_temporaryor./_temporary/*.env(should not be in git)
- Report missing exclusions with security implications
Phase 3: Environment Variables Validation
Step 1: .env File Validation
- Check if .env file exists
- Parse .env file for:
- Syntax errors
- Duplicate variable definitions
- Empty values that might be required
- Record all environment variable names found
Step 2: .env.example Validation
- Check if .env.example exists
- If missing, this is a critical issue - document why it's needed
- Parse .env.example for variable names
Step 3: .env Synchronization Check
- Compare variables in .env with .env.example:
- Variables in .env but NOT in .env.example
- Variables in .env.example but NOT in .env
- This is a critical validation point - they must match
- Report any mismatches with specific variable names
Step 4: Environment Variable Security
- Scan .env for potential secrets:
- Variables with names containing: password, secret, key, token, api
- Base64-encoded looking values
- Long random strings
- If secrets detected in .env, flag as security issue
- Suggest moving to ./secrets and Docker secrets instead
Phase 4: Docker Configuration Validation
Step 1: Invoke docker-validation Skill
- Use the docker-validation skill to validate:
- docker-compose.yml syntax and best practices
- Dockerfile(s) if present
- Multi-stage builds
- Security configurations
- Collect all findings from docker-validation
- Integrate into overall stack validation report
Step 2: Stack-Specific Docker Checks
- Review docker-compose.yml for stack patterns:
- Secrets are defined in top-level
secrets:section - Services reference secrets via
secrets:key (not environment variables) - Volume mounts follow patterns (./config, ./secrets, ./_temporary)
- Networks ar
- Secrets are defined in top-level
Установить GitLab Stack Validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл GitLab Stack Validator?
Validates GitLab stack projects before deployment, ensuring proper architecture patterns, directory structure, secrets management, .env configuration, and Docker best practices. Use when users ask to validate a stack, check stack configuration, verify stack architecture, audit stack setup, or ensure stack deployment readiness.
Как установить скилл GitLab Stack Validator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл GitLab Stack Validator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub