- Add Newt Blueprint Generator skill (v1.0.0) - Generate and validate Pangolin Newt blueprint configurations - Support YAML and Docker Labels formats - Proxy resources (HTTP/TCP/UDP) and client resources - Authentication and access control configuration - Comprehensive validation with detailed error messages - Add GitLab Stack Creator skill (v0.1.0) - Create new GitLab stack projects from scratch - Complete Phase 1 of GitLab Stack Management Skills - Integrates stack-validator, secrets-manager, config-generator - Git configuration (main branch, ff-only merges) - Validation scripts and pre-commit hooks - Comprehensive documentation generation - No-workaround policy enforced - Update marketplace to v0.7.1 - Mark Phase 1 as COMPLETE in ideas.md - Add comprehensive documentation in docs/ Phase 1 Skills Complete: ✓ stack-validator (v1.0.0) ✓ stack-creator (v0.1.0) ✓ secrets-manager (v1.0.0) ✓ config-generator (v1.0.0)
GitLab Stack Creator
Create new GitLab stack projects with proper directory structure, git configuration, validation hooks, and comprehensive documentation.
Overview
The Stack Creator skill automates the creation of new GitLab stack projects following strict best practices. It integrates with stack-validator, secrets-manager, and docker-validation skills to ensure complete, validated stack setups.
When to Use
Use this skill when you need to:
- Create a new GitLab stack project from scratch
- Initialize a Docker stack with proper directory structure
- Set up git repository with validation hooks
- Bootstrap a project with automated validation
- Create a stack following GitLab Stack Management patterns
Installation
/plugin install stack-creator
Core Principles
Stack Creator follows GitLab Stack Management patterns:
- Everything in docker-compose.yml and ./config
- Secrets in ./secrets and Docker secrets
- docker-entrypoint.sh only when necessary
- No root-owned files
- ./_temporary for transient files
- Complete validation before completion
Stack Creation is Complete When
A stack is considered complete ONLY when:
- ✅ stack-validator reports NO issues
- ✅ secrets-manager is satisfied (NO open issues)
- ✅ docker-validation is satisfied (NO issues)
- ✅ All validation scripts execute successfully
- ✅ Git repository properly initialized and configured
- ✅ Documentation complete in ./docs
IMPORTANT: This skill NEVER uses workarounds. If something fails, it stops and asks for user guidance.
Usage
Triggering the Skill
The skill activates when you mention:
- "Create a new stack"
- "Initialize a GitLab stack"
- "Set up a Docker stack project"
- "Create stack with [services]"
Example Prompts
-
Simple Web Stack:
Create a new stack for a web application with nginx -
Full Application Stack:
Create a stack with nginx, PostgreSQL, and Redis for production -
Development Stack:
Initialize a development stack with PostgreSQL and Redis
Generated Structure
project-name/
├── .git/ # Git repository
│ ├── hooks/ # Git hooks (validation)
│ └── config # Git configuration
├── config/ # Service configurations
│ ├── nginx/ # Nginx configs
│ ├── postgres/ # PostgreSQL configs
│ └── redis/ # Redis configs
├── secrets/ # Docker secrets files
│ └── .gitkeep # Keep directory in git
├── _temporary/ # Temporary files (gitignored)
├── scripts/ # Validation and utility scripts
│ ├── pre-commit # Pre-commit validation hook
│ ├── validate-stack.sh # Full stack validation
│ └── setup-hooks.sh # Hook installation script
├── docs/ # Project documentation
│ ├── decisions/ # Architecture decision records
│ ├── setup.md # Setup instructions
│ └── services.md # Service documentation
├── docker-compose.yml # Main compose file
├── .env.example # Environment template
├── .gitignore # Git exclusions
├── .dockerignore # Docker exclusions
├── CLAUDE.md # Claude Code instructions
└── README.md # Project overview
Features
Git Repository Setup
- Initializes or connects to remote repository
- Configures main branch as default
- Sets ff-only merge strategy
- Creates comprehensive .gitignore
- Installs pre-commit validation hooks
Docker Configuration
- Generates docker-compose.yml with best practices
- Validates with docker-validation skill
- Creates .env.example template
- Ensures proper service configuration
Secrets Management
- Integrates with secrets-manager skill
- Sets up ./secrets directory properly
- Ensures NO secrets in .env or docker-compose.yml
- Generates docker-entrypoint.sh only when needed
Service Configuration
- Uses config-generator for service configs
- Creates configs in ./config//
- Validates all generated configurations
- Supports nginx, PostgreSQL, Redis, and more
Validation Scripts
- validate-stack.sh: Complete stack validation
- pre-commit: Pre-commit validation hook
- setup-hooks.sh: Git hooks installation
All scripts executable and ready to use.
Documentation
- docs/setup.md: Setup instructions
- docs/services.md: Service documentation
- docs/decisions/: Architecture decision records
- CLAUDE.md: Claude Code project instructions
- README.md: Project overview
Workflow
Phase 1: Gather Requirements
Asks for:
- Project name
- Services needed
- Remote git repository URL (optional)
- Environment type
- Special requirements
Phase 2: Create Structure
Creates:
- Directory structure
- Git repository
- Git configuration (main, ff-only)
- .gitignore and .dockerignore
Phase 3: Docker Setup
Generates:
- docker-compose.yml
- .env.example
- Validates with docker-validation
Phase 4: Service Configuration
Uses config-generator to create:
- nginx configuration
- PostgreSQL configuration
- Redis configuration
- Other service configs
Phase 5: Secrets Setup
Uses secrets-manager to:
- Create secure secrets
- Configure Docker secrets
- Validate NO secrets in wrong places
- Generate entrypoint scripts if needed
Phase 6: Validation Scripts
Creates:
- scripts/validate-stack.sh
- scripts/pre-commit
- scripts/setup-hooks.sh
- Installs hooks
Phase 7: Documentation
Generates:
- docs/setup.md
- docs/services.md
- docs/decisions/0001-stack-architecture.md
- CLAUDE.md
- README.md
Phase 8: Final Validation
Runs complete validation:
- stack-validator
- secrets-manager
- docker-validation
- File ownership check
- Git setup verification
Phase 9: Initial Commit
Creates initial commit when validation passes.
Validation
Pre-Commit Hook
Automatically runs before each commit:
- Checks for secrets in staged files
- Checks for root-owned files
- Runs full stack validation
- Blocks commit if issues found
Can skip with: git commit --no-verify (emergency only)
Manual Validation
Run anytime:
./scripts/validate-stack.sh
Validates:
- Stack structure
- Secrets configuration
- Docker configuration
- File ownership
- Git exclusions
Git Configuration
Branch Strategy
- Default Branch: main
- Merge Strategy: ff-only (fast-forward only)
- No Rebase: Unless explicitly requested
Commit Standards
Example commit messages:
feat: add Redis service with persistence
fix: correct nginx proxy configuration
docs: update setup instructions
chore: update validation scripts
Integration with Other Skills
stack-validator
- Called during final validation
- Called in validation scripts
- Called in pre-commit hooks
- Must pass with NO issues
secrets-manager
- Called during secrets setup
- Validates secret configuration
- Ensures NO secrets in .env
- Must be satisfied before completion
docker-validation
- Called during Docker setup
- Validates docker-compose.yml
- Validates Dockerfiles
- Must pass with NO issues
config-generator
- Called for each service
- Generates service configs
- Validates generated configs
- Creates configs in ./config/
Error Handling
Validation Failures
When validation fails:
- Stops immediately
- Reports issue clearly
- Shows validation output
- Asks user how to proceed
- NEVER uses workarounds
Git Issues
When git operations fail:
- Reports the error
- Explains the issue
- Asks for user guidance
- Documents the solution
Permission Issues
When permission problems occur:
- Reports root-owned files
- Asks user to fix ownership
- Validates after fixing
- Documents proper ownership
Best Practices
- Always validate before committing
- Never skip hooks without good reason
- Document decisions in ./docs/decisions/
- Use ff-only merges for clean history
- Keep secrets secure - never commit
- Fix ownership - no root files
- Ask when stuck - no workarounds
- Follow validation - fix all issues
Example: Creating a Web Stack
User: "Create a new stack for mywebapp with nginx"
Stack Creator Response:
"I'll create mywebapp stack with nginx. Let me ask a few questions..."
Result:
✓ Directory structure created
✓ Git repository initialized (main, ff-only)
✓ docker-compose.yml created and validated
✓ nginx configuration generated
✓ Validation scripts installed
✓ Git hooks configured
✓ Documentation complete
All validations passed!
Troubleshooting
Stack Creation Fails
If stack creation stops:
- Review the error message
- Fix the reported issue
- Ask the skill to continue
- NEVER skip validation
Validation Won't Pass
If validation keeps failing:
- Run validators individually:
claude-code run stack-validatorclaude-code run secrets-manager --validateclaude-code run docker-validation
- Fix reported issues one by one
- Re-run validation
- Ask for help if stuck
Git Configuration Issues
If git setup fails:
- Check git is installed:
git --version - Check git config:
git config --list - Set manually if needed:
git config init.defaultBranch main git config merge.ff only git config pull.ff only
Permission Problems
If root-owned files appear:
# Find them
find . -user root -not -path "./.git/*"
# Fix ownership
sudo chown -R $USER:$USER .
# Re-validate
./scripts/validate-stack.sh
Version History
- v0.1.0 (2025-10-20): Initial release
- Complete Phase 1 stack creation
- Integration with stack-validator, secrets-manager, docker-validation, config-generator
- Git repository setup with validation hooks
- Comprehensive documentation generation
- No-workaround policy
Resources
- stack-validator Documentation
- secrets-manager Documentation
- docker-validation Documentation
- config-generator Documentation
- Git Hooks Guide
License
This skill follows the same license as the Skills marketplace repository.