jenkinsfile-generator

jenkinsfile-generator is a skill for Claude Code from akin-ozer/cc-devops-skills. It costs 24 tokens per session (3,638 once invoked), scanned A, original, Apache-2.0.

A generator for Jenkinsfiles, the code files that describe automated build, test, and deployment pipelines.

In plain words
What is it for?
Use it to scaffold Declarative or Scripted pipelines, parallel tests, deployments, security scans, or reusable shared libraries.
Why use it?
It helps create a suitable Jenkins pipeline structure without manually assembling every stage and option.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is bash ../jenkinsfile-validator/scripts/validate_jenkinsfile.sh Jenkinsfile.

Part of the devops-skills-plugin plugin — 31 skills shipped together

Good fit Use it to scaffold Declarative or Scripted pipelines, parallel tests, deployments, security scans, or reusable shared libraries.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/akin-ozer/cc-devops-skills
agentmods
npx agentmods add skills/akin-ozer/cc-devops-skills/jenkinsfile-generator

Made for: Claude Code.

Or install devops-skills-plugin, the plugin that ships this one along with the rest of its 31 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jenkinsfile-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/akin-ozer/cc-devops-skills/jenkinsfile-generator/github.svg)](https://agentmods.dev/skills/akin-ozer/cc-devops-skills/jenkinsfile-generator)
Your own site
<a href="https://agentmods.dev/skills/akin-ozer/cc-devops-skills/jenkinsfile-generator"><img src="https://agentmods.dev/badge/skills/akin-ozer/cc-devops-skills/jenkinsfile-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jenkinsfile-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/akin-ozer/cc-devops-skills/jenkinsfile-generator"><img src="https://agentmods.dev/badge/skills/akin-ozer/cc-devops-skills/jenkinsfile-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,638 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.03638
Opus 5.5 $0.00010 $0.01455
Sonnet 5.5 $0.00005 $0.00728
Haiku 4.5 $0.00002 $0.00364

Measured 2mo ago against content hash eebcb2680fbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jenkinsfile-generator scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/generate_declarative.py, scripts/generate_scripted.py, scripts/generate_shared_library.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

withCredentials([string(credentialsId: 'key', variable: 'KEY')]) { sh 'curl -H "Auth: $KEY" ...' }
devops-skills-plugin/skills/jenkinsfile-generator/SKILL.md · 409 lines

How it starts

The opening of the file, as written. The whole thing — 409 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Jenkinsfile Generator Skill

Generate production-ready Jenkinsfiles following best practices. All generated files are validated using devops-skills:jenkinsfile-validator skill.

Trigger Phrases

  • "Generate a CI pipeline for Maven/Gradle/npm"
  • "Create a Jenkins deployment pipeline with approvals"
  • "Build a Jenkinsfile with parallel test stages"
  • "Create a scripted pipeline with dynamic stage logic"
  • "Scaffold a Jenkins shared library"
  • "Generate a Jenkinsfile for Docker or Kubernetes agents"

When to Use

  • Creating new Jenkinsfiles (declarative or scripted)
  • CI/CD pipelines, Docker/Kubernetes deployments
  • Parallel execution, matrix builds, parameterized pipelines
  • DevSecOps pipelines with security scanning
  • Shared library scaffolding

Declarative vs Scripted Decision Tree

  1. Choose Declarative by default when stage order and behavior are mostly static.
  2. Choose Scripted when runtime-generated stages, complex loops, or dynamic control flow are required.
  3. Choose Shared Library scaffolding when request is about reusable pipeline functions (vars/, src/, resources/).
  4. If unsure, start Declarative and only switch to Scripted if requirements cannot be expressed cleanly.

Template Map

Template Path Use When
Declarative basic assets/templates/declarative/basic.Jenkinsfile Standard CI/CD with predictable stages
Declarative parallel example examples/declarative-parallel.Jenkinsfile Parallel test/build branches with fail-fast behavior
Declarative kubernetes example examples/declarative-kubernetes.Jenkinsfile Kubernetes agent execution using pod templates
Scripted basic assets/templates/scripted/basic.Jenkinsfile Complex conditional logic or generated stages
Shared library scaffold Generated by scripts/generate_shared_library.py Reusable pipeline functions and organization-wide patterns

Quick Reference

// Minimal Declarative Pipeline
pipeline {
    agent any
    stages {
        stage('Build') { steps { sh 'make' } }
        stage('Test') { steps { sh 'make test' } }
    }
}

// Error-tolerant stage
stage('Flaky Tests') {
    steps {
        catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') {
            sh 'run-flaky-tests.sh'
        }
    }
}

// Conditional deployment with approval
stage('Deploy') {
    when { branch 'main'; beforeAgent true }
    input { message 'Deploy to production?' }
    steps { sh './deploy.sh' }
}

Read the full file on GitHub · 409 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 409 lines · 24 tokens per session scan A eebcb2680fbb

Subscribe to this mod's changes

jenkinsfile-generator is a skill published in the GitHub repository akin-ozer/cc-devops-skills (332 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 3,638 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

jenkinsfile-generator compared with skills from other repositories

jenkinsfile-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
jenkinsfile-generatorakin-ozer/cc-devops-skillsSkill3323mo agoApache-2.0A24Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.5k11d agoMITA69Claude Code
atmos-profilescloudposse/atmosSkill1.4kyesterdayApache-2.0A35Claude Code
webhook-managementhoangsonww/Claude-Code-Agent-MonitorSkill1.1kyesterdayMITA56Claude Code, Codex
monorepo-managementwshobson/agentsSkill42kyesterdayMITC54Claude Code
managing-github-actions-secretsPostHog/posthog-fossSkill728yesterdayMITA67Claude Code, Codex
postman-newman-automationLambdaTest/agent-skillsSkill390yesterdayMITA156Claude Code, Codex