Skip to main content
skill CX Codex

GitLab Stack Secrets Manager — Claude Code skill: install & use

GitLab Stack Secrets Manager keeps GitLab stack passwords and keys in ./secrets via Docker secrets, then checks permissions and hunts leaks in .env, compose files and git history.

no license 295 installs ★ 93 updated 2025-10-20

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rknall/claude-skills --skill gitlab-stack-secrets-manager -a claude-code
Open on GitHub

What GitLab Stack Secrets Manager does

This skill stores secrets for a GitLab stack project as Docker secrets. Each value gets its own file under ./secrets; the directory holds 700 permissions, every file 600. In docker-compose.yml only the file reference stays, never the value. Secret-looking names in .env or in a service's environment block are treated as a problem to fix.

The agent runs in phases. First it inspects the project: does ./secrets exist, what is declared in compose, are there tokens or passwords in .env. Then it writes the files, wires them into the compose secrets block and checks .gitignore. Validation covers permissions with stat, staged files with git status --porcelain | grep secrets/, and history with git log --all --full-history -- ./secrets/. Output is a report with a pass or fail status.

A file left at 644 instead of 600 lands in that report as a warning, so permission drift shows up before containers start. Secrets in .env count as a critical finding, and the agent lists them at the top of the report.

What it helps with

  • move passwords out of .env into Docker secrets
  • create a secret file at 600 with ./secrets at 700
  • check whether secrets reached the git index or history
  • spot passwords written into compose environment variables
  • match service secret references against files in ./secrets

Example prompts for the agent

  • Create a db_password secret in ./secrets and attach it to the app service in docker-compose.yml.
  • Validate the secrets setup in this project and show me the report.
  • Find secrets in .env and migrate them to Docker secrets.

How to install GitLab Stack Secrets Manager

1Skills CLI (Vercel)

npx skills add rknall/claude-skills --skill gitlab-stack-secrets-manager -a claude-code

2Manually: put the files in place

~/.claude/skills/secrets-manager/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/secrets-manager/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about GitLab Stack Secrets Manager

How to install GitLab Stack Secrets Manager in Claude Code?

Run npx skills add rknall/claude-skills --skill gitlab-stack-secrets-manager -a claude-code. The skill lands in ~/.claude/skills/secrets-manager/SKILL.md.

What does GitLab Stack Secrets Manager do?

It splits project secrets into individual files in ./secrets, attaches them through Docker secrets, and verifies no values remain in .env or compose environment variables.

What counts as a critical issue for this skill?

Secrets in .env and passwords under a service's environment key. Wrong permissions on a secret file appear as a separate warning.

Similar skills

All skills for Security →

From the same set9

SVG Logo Designer SVG Logo Designer generates SVG logos from a brand description: several concepts, layouts and colour versions. Handy when a project needs a logo or an icon right now. CX Codex +1 9,200installs Python Backend Architecture Review Python Backend Architecture Review — a skill that reviews Python backend architecture: patterns, database, API, security, scalability. Useful when the design doc exists and you want the weak spots found before release. CX Codex +1 528installs Web Design Builder Web Design Builder turns a spec or a plain description into HTML5/CSS/JS, then checks accessibility and behaviour through Playwright MCP. CX Codex +1 432installs Docker Configuration Validator Docker Configuration Validator validates Dockerfiles and Docker Compose files for security, syntax and modern requirements. Useful before shipping to production. CX Codex +1 352installs Newt Blueprint Generator Newt Blueprint Generator is a skill for creating and validating Pangolin Newt configurations in YAML or Docker Labels. It covers proxy and client resources, access rules, and Docker Compose setups. CX Codex +1 303installs GitLab Stack Config Generator GitLab Stack Config Generator writes per-service configs for a GitLab stack into ./config, reads values from .env, and checks that secrets stay out of config files. CX Codex +1 303installs GitLab Stack Validator GitLab Stack Validator audits a GitLab stack project before deployment: directory layout, secrets, .env sync and Docker config. Reports problems; fixing them is on you. CX Codex +1 297installs GitLab Stack Creator 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. CX Codex +1 294installs

Project sponsors

Companies that keep this analytics open