Skip to content

AI Skills

The GitLab lexicon ships an AI skill called chant-gitlab that teaches AI coding agents (like Claude Code) how to build, validate, and deploy GitLab CI pipelines from a chant project.

Skills are structured markdown documents bundled with a lexicon. When an AI agent works in a chant project, it discovers and loads relevant skills automatically — giving it operational knowledge about the deployment workflow without requiring the user to explain each step.

When you scaffold a new project with chant init --lexicon gitlab, the skill is installed to skills/chant-gitlab/SKILL.md for automatic discovery by Claude Code.

For existing projects, create the file manually:

.claude/
skills/
chant-gitlab/
SKILL.md # skill content (see below)

The chant-gitlab skill covers the full deployment lifecycle:

  • Buildchant build src/ --output .gitlab-ci.yml
  • Validatechant lint src/ + GitLab CI Lint API
  • Deploy — commit and push the generated YAML
  • Status — GitLab UI or pipelines API
  • Retry — retry failed jobs via UI or API
  • Cancel — cancel running pipelines via API
  • Troubleshooting — job logs, lint rule codes (WGL001–WGL004), post-synth checks (WGL010–WGL015)

The skill is invocable as a slash command: /chant-gitlab

The lexicon also provides MCP (Model Context Protocol) tools and resources that AI agents can use programmatically:

MCP toolDescription
buildBuild the chant project
lintRun lint rules
explainSummarize project resources
scaffoldGenerate starter files
searchSearch available resource types
gitlab:diffCompare current build output against previous
MCP resourceDescription
resource-catalogJSON list of all supported GitLab CI entity types
examples/basic-pipelineExample pipeline with build, test, and deploy jobs