GitLab Stack Creator — Claude Code skill: how to install
GitLab Stack Creator scaffolds a new Docker stack project: folders, git settings, validation hooks and docs. Use it when you start a stack in the GitLab stack layout.
no license 294 installs ★ 93 updated 2025-10-20
npx skills add rknall/claude-skills --skill gitlab-stack-creator -a claude-codeWhat GitLab Stack Creator does
This skill sets up a new Docker stack project following the GitLab stack layout. It begins by asking for the project name, the services you need, an optional remote repository URL and the environment. It never guesses. If the directory or repo already exists, it asks before touching anything.
The scaffold has config, secrets (mode 700), _temporary, scripts and docs/decisions, plus docker-compose.yml, .env.example, .gitignore, .dockerignore, CLAUDE.md and README.md. Git gets main as the branch name, fast-forward-only merges and pull.rebase false. The scripts folder holds pre-commit, validate-stack.sh and setup-hooks.sh.
validate-stack.sh calls three other skills: stack-validator, secrets-manager and docker-validation. Without them the check has nothing to run. The stack counts as done only when all three report no issues. When the direct route fails, the skill stops and asks you instead of improvising.
What it helps with
- lay out a new Docker stack with
config,secrets,_temporaryanddocs - set git to branch
mainwith fast-forward-only merges - generate a
.gitignorethat keepssecrets/*and.envout of commits - add a
pre-commithook andscripts/validate-stack.sh - start
docs/setup.mdanddocs/services.mdfor a fresh stack
Example prompts for the agent
- Create a new GitLab stack project with nginx and PostgreSQL for staging
- Initialize a Docker stack with
config,secretsand_temporaryfolders and set up git onmain - Install the
pre-commithook for the new stack and runscripts/validate-stack.sh
How to install GitLab Stack Creator
1Skills CLI (Vercel)
npx skills add rknall/claude-skills --skill gitlab-stack-creator -a claude-code2Manually: put the files in place
~/.claude/skills/stack-creator/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/stack-creator/
1Skills CLI (Vercel)
npx skills add rknall/claude-skills --skill gitlab-stack-creator -a codex2Manually: put the files in place
.agents/skills/stack-creator/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add rknall/claude-skills --skill gitlab-stack-creator -a cursor2Manually: put the files in place
.cursor/skills/stack-creator/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install rknall/claude-skills stack-creator2Manually: put the files in place
.github/skills/stack-creator/SKILL.md1Skills CLI (Vercel)
npx skills add rknall/claude-skills --skill gitlab-stack-creator -a gemini-cli2Platform CLI
gemini skills install https://github.com/rknall/claude-skills --path stack-creatorManually: put the files in place
.devin/skills/stack-creator/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add rknall/claude-skills --skill gitlab-stack-creator -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about GitLab Stack Creator
How do I install GitLab Stack Creator in Claude Code?
Run npx skills add rknall/claude-skills --skill gitlab-stack-creator -a claude-code.
What does GitLab Stack Creator do?
It builds the skeleton of a new Docker stack: directories, docker-compose.yml, git configuration, .gitignore, validation scripts and documentation in docs.
When is a stack created by this skill finished?
When stack-validator, secrets-manager and docker-validation report no issues, the validation scripts run cleanly, git is configured and the docs are in docs.