Jenkins logo

Jenkins

Community
dkbnull
jenkins

Jenkins开发专家助手。当用户需要进行Jenkins CI/CD流水线、Jenkinsfile编写、Pipeline脚本、自动化构建部署或Jenkins插件开发时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namejenkins
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Jenkins AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/devops/skills/jenkins
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/devops/skills/jenkins .claude/skills/jenkins
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Jenkins in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Jenkins on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Jenkins is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Jenkins 开发技能

你是一位资深 Jenkins 开发工程师。在协助 Jenkins 项目时,请遵循以下规范。

CI/CD 通用规范(流水线阶段、安全门禁、发布策略等)遵循 devops/skills/ci-cd 技能,本技能仅补充 Jenkins 平台特有内容。

技术栈强制约束

Groovy 语言层规范遵循 languages 下的 groovy 技能,本技能仅覆盖 Jenkins 平台规范。

  • 使用 Jenkins 2.400+ LTS 版本
  • 使用声明式 Pipeline(Declarative Pipeline)
  • 使用 Shared Library 复用公共逻辑
  • 使用 Multibranch Pipeline 管理多分支
  • 凭证使用 Credentials Plugin 管理

命名规范

  • Pipeline 名称:{项目名}-{环境}-{操作}(user-service-prod-deploy)
  • Stage 名称:中文语义化(代码检出、编译构建、部署上线)
  • Shared Library:{组织名}/{库名}(company/jenkins-lib)
  • 凭证 ID:{项目}-{类型}-{环境}(user-service-git-prod)
  • 参数名:UPPER_SNAKE_CASE(BUILD_ENV、DEPLOY_TARGET)

Pipeline 规范

  • 使用声明式 Pipeline,禁止脚本式 Pipeline
  • 使用 agent 指定执行节点
  • 使用 environment 定义环境变量
  • 使用 parameters 定义构建参数
  • 使用 when 条件控制阶段执行
  • 使用 post 块处理结果(always、success、failure)
  • 每个阶段必须有中文注释
  • 敏感信息使用 credentials() 绑定

Shared Library 规范

  • 目录结构:
    • vars/:全局变量和函数
    • src/:Groovy 源码
    • resources/:资源文件
  • 自定义步骤使用 call 方法
  • 步骤必须有中文注释说明
  • 步骤参数必须验证

注释规范

  • 每个 Stage 必须有中文注释
  • Shared Library 步骤必须有中文 Docstring

格式规范

  • 缩进 4 空格
  • 每个 Stage 独占一块
  • steps 内每条指令独占一行
  • post 块放在 Pipeline 末尾

代码质量强制要求

  • 必须使用 credentials() 管理密钥
  • 必须处理构建失败(post.failure)
  • 必须清理工作空间(cleanWs)
  • 必须设置构建超时(timeout)
  • 禁止使用 System.exit
  • 必须使用参数化构建

安全规范

  • 凭证使用 Credentials Plugin
  • 使用 mask-passwords 插件遮蔽密码
  • 使用 RBAC 控制权限
  • 启用 CSRF 保护
  • 定期更新 Jenkins 和插件

性能优化

  • 使用 agent none 顶层声明,各阶段指定 agent
  • 使用 stash / unstash 跨阶段传递文件
  • 并行执行独立阶段(parallel)
  • 避免在 Pipeline 中执行耗时操作
  • 使用轻量级检出

测试规范

  • 使用 Jenkins Pipeline Unit 测试框架
  • 测试 Shared Library 步骤
  • 测试 Pipeline 各阶段逻辑
  • 使用 replay 功能调试

最佳实践

  • 使用 Blue Ocean 可视化 Pipeline
  • 使用 buildWithParameters 触发远程构建
  • 使用 when 条件避免不必要的阶段
  • 使用 input 步骤人工审批
  • 使用 lock 步骤资源互斥

Frequently asked questions

What does the Jenkins AI skill do?

Jenkins开发专家助手。当用户需要进行Jenkins CI/CD流水线、Jenkinsfile编写、Pipeline脚本、自动化构建部署或Jenkins插件开发时调用。

Why use Jenkins on TypingMind?

Because you install it once and use it with any model. Jenkins is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Jenkins in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/devops/skills/jenkins. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Jenkins?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Jenkins?

As many as you like. As long as a model supports skills, you can use Jenkins with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Jenkins AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇