Skip to content
akin-ozer avatar

Jenkinsfile Validator

Validates Jenkinsfiles and shared libraries with local scripts, then optionally enriches findings with plugin docs.

CCM score
58 of 100
skills.sh installs
769
GitHub stars
345
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Declarative and Scripted pipelines plus vars/*.groovy and src/**/*.groovy shared library files
  • Runs syntax, hardcoded credential, and best-practice phases through validate_jenkinsfile.sh with --syntax-only, --security-only, and --strict options
  • Fails closed on unknown pipeline types unless --assume-declarative or --assume-scripted is passed
  • Designed for CI gating and regression checks, with tests/run_local_ci.sh covering script syntax and scenario tests

Install

$ npx -y skills add akin-ozer/cc-devops-skills --skill jenkinsfile-validator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Jenkinsfile Validator Skill

Use this skill to validate Jenkins pipelines and shared libraries with local scripts first, then optionally enrich findings with plugin documentation.

Trigger Phrases

Use this skill when requests look like:

  • "Validate this Jenkinsfile"
  • "Check this pipeline for security issues"
  • "Lint my Declarative/Scripted pipeline"
  • "Why is this Jenkins pipeline failing syntax checks?"
  • "Validate vars/.groovy or src/**/.groovy shared library files"

Scope

This skill validates:

  • Declarative pipelines (pipeline { ... })
  • Scripted pipelines (node { ... } and Groovy-style pipelines)
  • Shared library files (vars/*.groovy, src/**/*.groovy)
  • Hardcoded credential patterns
  • Pipeline best practices and maintainability signals

Prerequisites

Run commands from repository root unless noted.

Required tools

  • bash
  • grep
  • sed
  • awk
  • head
  • wc
  • find (needed for shared-library directory scans)

Recommended tools

  • jq (optional; improves JSON-heavy troubleshooting workflows)

Details

Repository
github.com/akin-ozer/cc-devops-skills
Categories
DevOps & Cloud, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the jenkinsfile-validator skill check?

It validates Jenkinsfiles and shared library files, covering declarative pipelines, scripted pipelines, and vars or src Groovy files. It also scans for hardcoded credential patterns and reviews pipeline best practices and maintainability signals.

Is there a Claude skill to validate Jenkins pipelines?

Yes, jenkinsfile-validator validates Jenkinsfiles and shared libraries. It runs local scripts first and can optionally add plugin documentation to its findings.

How do I install the jenkinsfile-validator skill?

Run npx -y skills add akin-ozer/cc-devops-skills --skill jenkinsfile-validator -y in your project. This lets your agent validate Jenkinsfiles and Jenkins shared library code in that project.

Which other skills are in the DevOps and Cloud category?

Other skills in this category include azure-diagnostics, azure-prepare, azure-deploy, azure-validate, and azure-storage. jenkinsfile-validator focuses on Jenkins pipeline files and shared libraries, not Azure resources.

What tools does the jenkinsfile-validator skill need?

It needs bash, grep, sed, awk, head, wc, and find available on the system. jq is optional and improves JSON-heavy troubleshooting, and missing optional tools do not block validation.

More from akin-ozer/cc-devops-skills

All 31

Similar to Jenkinsfile Validator

More DevOps & Cloud