cajias/claude-skills/gitlab-yamllint-reference-tags
Claude Code and agent skill by cajias/claude-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Fix yamllint failures on GitLab CI `!reference` tags. Use when: (1) yamllint fails with "unknown tag" on `.gitlab-ci.yml`, (2) Pre-commit hooks reject valid GitLab CI syntax, (3) CI lint job fails but GitLab accepts the YAML, (4) Error mentions `!reference` or custom YAML tags. Covers yamllint configuration for GitLab-specific tags.
Install
npx vskill@latest install cajias/claude-skills/gitlab-yamllint-reference-tagsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cajias/claude-skills/gitlab-yamllint-reference-tags.
GitLab yamllint !reference Tag Fix
Problem
yamllint rejects GitLab CI files containing !reference tags with errors like:
GitLab's !reference tag is valid GitLab CI syntax for reusing configuration, but yamllint doesn't recognize it by default.
Context / Trigger Conditions
Use this skill when:
- yamllint fails on
.gitlab-ci.ymlwith "unknown tag" errors - Pre-commit hooks reject valid GitLab CI YAML
- CI lint jobs fail but GitLab's own validator accepts the file
- You see
!referencein error messages
Solution
1. Create or Update .yamllint.yaml
Add custom tag configuration to allow GitLab-specific tags:
2. Alternative: Inline Comment Disable
For one-off cases, disable the rule inline:
3. Pre-commit Hook Configuration
If using pre-commit, ensure yamllint uses your config:
Verification
After applying the fix:
Should pass without "unknown tag" errors.
Example
Before (fails):
After (with .yamllint.yaml config): Same file passes.
Notes
- GitLab supports several custom tags:
!reference,!include, etc. - The
sequencevariant (!reference sequence) may need separate allowlisting - Some older yamllint versions use different syntax for custom tags
- Consider adding all GitLab custom tags you use to the allow list
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gitlab-yamllint-reference-tags/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cajias/claude-skills/gitlab-yamllint-reference-tags)