Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

GitLab Stack Creator

БесплатноБез исполняемых скриптовНе проверен

Create new GitLab stack projects from templates with proper directory structure, git configuration, validation hooks, and documentation. Use when initializing…

rknallот rknall★ 94 звезды на GitHub20 установок в других каталогах

Об этом скилле

GitLab Stack Creator

Expert assistance for creating new GitLab stack projects with proper structure, git configuration, validation scripts, and comprehensive documentation.

When to Use This Skill

This skill should be triggered when:

  • Creating a new GitLab stack project
  • Initializing a Docker stack with proper structure
  • Setting up a project with ./config, ./secrets, ./_temporary directories
  • Configuring git repository for stack projects
  • Setting up validation hooks and scripts
  • Bootstrapping a stack project with best practices

Core Principles

This skill follows the GitLab Stack Management patterns:

  1. Everything configured through docker-compose.yml and ./config
  2. Secrets stored in ./secrets and Docker secrets
  3. docker-entrypoint.sh scripts only when containers don't support native secrets
  4. All container files owned by the user running docker (no root-owned files)
  5. ./_temporary directory for transient setup files (cleaned up after use)
  6. Complete validation before considering stack creation complete

Stack Creation is Complete When

A stack creation is considered COMPLETE only when:

  1. ✅ stack-validator skill reports NO issues
  2. ✅ secrets-manager skill is satisfied with NO open issues
  3. ✅ docker-validation skill is satisfied with NO issues
  4. ✅ All validation scripts execute successfully
  5. ✅ Git repository is properly initialized and configured
  6. ✅ Documentation is complete in ./docs

IMPORTANT: NEVER use workarounds. If the direct approach is not working, STOP and ask the user what to do instead.

Stack Creation Workflow

Phase 1: Project Initialization

1.1 Gather Requirements

Ask the user:

  • Project name
  • Primary services needed (nginx, PostgreSQL, Redis, etc.)
  • Remote git repository URL (if any)
  • Environment (development, staging, production)
  • Special requirements

NEVER assume - always ask if information is missing.

1.2 Check Existing Setup

Before creating anything:

  • Check if directory already exists
  • Check if git repository exists
  • Ask user how to proceed if conflicts exist
  • NEVER overwrite without explicit permission

Phase 2: Directory Structure Creation

Create the standard directory structure:

project-name/
├── .git/                       # Git repository
│   ├── hooks/                  # Git hooks (validation scripts)
│   └── config                  # Git configuration
├── config/                     # Service configurations
│   ├── nginx/                  # Nginx configs (if needed)
│   ├── postgres/               # PostgreSQL configs (if needed)
│   └── redis/                  # Redis configs (if needed)
├── 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

Actions:

  1. Create directories: mkdir -p config secrets _temporary scripts docs/decisions
  2. Create placeholder files: touch secrets/.gitkeep
  3. Set proper permissions: chmod 700 secrets

Phase 3: Git Repository Setup

3.1 Initialize or Connect Repository

If NO git repository exists:

  • Strongly suggest creating a local repository
  • Ask if remote repository should be added
  • Initialize with git init
  • Set main as default branch: git config init.defaultBranch main

If remote repository URL provided:

  • Clone repository: git clone <url> <project-name>
  • Or add remote: git remote add origin <url>
  • Verify remote connection: git remote -v

If setup fails: STOP and ask user for guidance. NEVER attempt workarounds.

3.2 Configure Git

Set required git configuration:

# Set main as branch name
git config init.defaultBranch main

# Set ff-only merge strategy
git config pull.ff only
git config merge.ff only

# Ensure no rebase by default
git config pull.rebase false

# Set user info if not set globally
git config user.name "User Name"
git config user.email "[email protected]"

If configuration fails: Ask user to set configuration manually or provide correct values.

3.3 Create .gitignore

Generate comprehensive .gitignore:

# Secrets - NEVER commit
secrets/*
!secrets/
Полный SKILL.md на GitHub

Установить GitLab Stack Creator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdSKILL_COMPLETION.mdgit-hooks-guide.mdtemplates-reference.mdworkflow-examples.md

FAQ

Что делает скилл GitLab Stack Creator?

Create new GitLab stack projects from templates with proper directory structure, git configuration, validation hooks, and documentation. Use when initializing new Docker stack projects that follow GitLab stack patterns.

Как установить скилл GitLab Stack Creator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл GitLab Stack Creator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить GitLab Stack Creator с