[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EQ7WADGW0D2ENHDWSBR39W":3,"skill-same:01M7EQ7WADGW0D2ENHDWSBR39W":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EQ7WADGW0D2ENHDWSBR39W","jenkins-pro",null,"Jenkins guidance — pipeline-as-code, agents, shared libraries, credentials, scaling, and hardening.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-jenkins-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jenkins-pro\ndescription: Jenkins guidance — pipeline-as-code, agents, shared libraries, credentials, scaling, and hardening.\ncategory: development\n---\n\n## Overview\n\nJenkins is the veteran CI server: endlessly flexible, self-hosted, and capable of modeling any pipeline imaginable through Pipeline-as-Code (Jenkinsfile). That flexibility is also its burden — Jenkins installations accumulate plugins, freestyle jobs, and snowflake controllers that become unmaintainable without discipline.\n\nModern Jenkins practice: declarative pipelines in Jenkinsfiles, ephemeral agents (Kubernetes\u002FDocker\u002Fcloud), shared libraries for common patterns, and configuration-as-code for the controller. This skill covers running Jenkins in a way that stays maintainable.\n\n## When to use\n\n- Maintaining or modernizing a Jenkins installation.\n- Writing declarative pipelines (Jenkinsfile best practices).\n- Setting up agents (static, cloud, Kubernetes, Docker).\n- Creating shared libraries for common pipeline patterns.\n- Managing credentials securely in Jenkins.\n- Scaling Jenkins (controller\u002Fagent topology, performance).\n- Hardening Jenkins (auth, authorization, plugin hygiene).\n- Migrating from freestyle jobs to pipelines.\n\n## Core concepts\n\n- **Pipeline as code.** Jenkinsfiles (declarative preferred over scripted) versioned with the repo — pipelines become reviewable, reproducible, and portable. Freestyle jobs configured in the UI are technical debt.\n- **Declarative vs scripted.** Declarative (`pipeline { agent; stages }`) for structure with guardrails; scripted for escape hatches. Prefer declarative; drop to `script {}` blocks sparingly.\n- **Controllers and agents.** The controller orchestrates; agents execute. Never build on the controller (security + stability) — agents should be ephemeral (Kubernetes pods, Docker containers, cloud VMs).\n- **Agent types.** Static agents (persistent, simple, snowflakes), cloud agents (EC2\u002FGCE\u002FAzure VMs on demand), Kubernetes agents (pods per build, the modern default), Docker agents (containers per stage). Ephemeral agents eliminate \"works on agent-3\" mysteries.\n- **Shared libraries.** Versioned Groovy libraries (`vars\u002F`, `src\u002F`) for common steps (notify, deploy, scan) — the DRY mechanism across hundreds of Jenkinsfiles. Version them; untrusted libraries are code execution.\n- **Credentials.** The credentials store with scoped bindings (`withCredentials`) — secrets never in Jenkinsfiles or logs. Credential types: secret text, username\u002Fpassword, SSH keys, certificates, vault integrations.\n- **Configuration as Code (JCasC).** Controller config in YAML — plugins, agents, credentials references, security settings. JCasC makes controllers reproducible and reviewable; without it, the controller is a snowflake.\n- **Multibranch pipelines.** Auto-discovered Jenkinsfiles per branch\u002FPR with branch-specific behavior — the standard for GitHub\u002FGitLab repos on Jenkins.\n- **Blue Ocean (legacy) vs classic UI.** Blue Ocean is deprecated; the classic UI with modern plugins is the current path. Don't build new workflows on Blue Ocean.\n- **Plugins.** The ecosystem's strength and risk: minimize plugin count, keep them updated, remove unused ones. Each plugin is attack surface and maintenance burden.\n- **Security.** Authentication (SSO\u002FLDAP), authorization (matrix\u002Fproject-based), CSRF protection, agent-to-controller security (inbound agents with secrets, not JNLP without auth). Jenkins has a long CVE history — patch promptly.\n- **Pipeline libraries and sandbox.** Shared library code runs in the Groovy sandbox (or with approvals); understand what needs whitelisting.\n- **Build retention.** Discard old builds (`buildDiscarder`) — unbounded history fills disks. Keep what compliance needs, not everything.\n- **Monitoring.** Controller health (heap, executors, queue), agent availability, plugin versions — Jenkins needs its own observability; a sick CI blocks everyone.\n- **Pipeline unit testing.** JenkinsPipelineUnit for testing shared library logic — shared code used by hundreds of pipelines deserves tests.\n- **CloudBees vs OSS.** The enterprise distribution adds support and governance features; evaluate whether the team needs it or OSS suffices.\n\n## Practical workflow\n\n1. **Define the controller as code.** JCasC YAML for all controller config; controller in a container or VM managed by IaC; no manual UI configuration for anything that matters.\n2. **Write declarative Jenkinsfiles.** Agent per stage (or per pipeline), `options` for timeouts\u002Fretention, `post` for notifications\u002Fcleanup, `when` for conditional stages.\n   ```groovy\n   pipeline {\n     agent { kubernetes { yamlFile 'build-pod.yaml' } }\n     options { timeout(time: 30, unit: 'MINUTES'); buildDiscarder(logRotator(numToKeepStr: '20')) }\n     stages {\n       stage('Test') { steps { sh 'npm ci && npm test' } }\n       stage('Build') { when { branch 'main' } steps { sh 'docker build -t app:${BUILD_NUMBER} .' } }\n     }\n     post { failure { slackSend channel: '#builds', message: \"Failed: ${env.JOB_NAME}\" } }\n   }\n   ```\n3. **Use ephemeral agents.** Kubernetes pods per build (or Docker\u002Fcloud agents); resource requests\u002Flimits; no builds on the controller — enforce with agent labels and authorization.\n4. **Extract shared libraries.** Common patterns (checkout+setup, notifications, deployments, scans) into versioned `vars\u002F` steps; pin library versions in Jenkinsfiles.\n5. **Manage credentials properly.** Scoped credentials, `withCredentials` bindings, rotation procedures; integrate with Vault\u002Fcloud secret stores for central management.\n6. **Harden the instance.** SSO auth, least-privilege authorization, updated plugins\u002FJenkins core, no anonymous access, agent-to-controller access control, CSRF protection on.\n7. **Scale deliberately.** Controller sized for the job count (heap, CPU); agent pools autoscaled; build queue monitored; heavy jobs on labeled agents.\n8. **Plan the exit or the upkeep.** Jenkins needs ongoing care (upgrades, plugin management). If the team can't staff it, that's the argument for a managed CI service — make it explicitly.\n\n## Common pitfalls\n\n- **Building on the controller** — resource exhaustion and security risk; agents only.\n- **Freestyle jobs** — unversioned, unreviewable config; pipelines as code.\n- **Plugin sprawl** — dozens of unmaintained plugins; minimize and update.\n- **Unpatched Jenkins** — long CVE history; patch core and plugins promptly.\n- **Snowflake controllers** — UI-configured instances; JCasC for everything.\n- **Static pet agents** — \"works on agent-3\" mysteries; ephemeral agents.\n- **Credentials in Jenkinsfiles** — secrets in code; credentials store + bindings.\n- **No build retention** — disks filling with history; `buildDiscarder` everywhere.\n- **Scripted-pipeline sprawl** — unmaintainable Groovy; prefer declarative.\n- **Missing timeouts** — hung builds blocking executors; `timeout` options.\n- **Anonymous\u002Fadmin-everyone access** — the classic Jenkins breach; proper auth + authorization.\n- **Shared libraries unversioned** — breaking every pipeline at once; version libraries.\n- **Ignoring controller health** — sick CI discovered when builds queue; monitor heap, queue, agents.\n- **Upgrading without backups** — core\u002Fplugin upgrades breaking the controller; snapshot and test upgrades in staging.\n","## Overview\n\nJenkins is the veteran CI server: endlessly flexible, self-hosted, and capable of modeling any pipeline imaginable through Pipeline-as-Code (Jenkinsfile). That flexibility is also its burden — Jenkins installations accumulate plugins, freestyle jobs, and snowflake controllers that become unmaintainable without discipline.\n\nModern Jenkins practice: declarative pipelines in Jenkinsfiles, ephemeral agents (Kubernetes\u002FDocker\u002Fcloud), shared libraries for common patterns, and configuration-as-code for the controller. This skill covers running Jenkins in a way that stays maintainable.\n\n## When to use\n\n- Maintaining or modernizing a Jenkins installation.\n- Writing declarative pipelines (Jenkinsfile best practices).\n- Setting up agents (static, cloud, Kubernetes, Docker).\n- Creating shared libraries for common pipeline patterns.\n- Managing credentials securely in Jenkins.\n- Scaling Jenkins (controller\u002Fagent topology, performance).\n- Hardening Jenkins (auth, authorization, plugin hygiene).\n- Migrating from freestyle jobs to pipelines.\n\n## Core concepts\n\n- **Pipeline as code.** Jenkinsfiles (declarative preferred over scripted) versioned with the repo — pipelines become reviewable, reproducible, and portable. Freestyle jobs configured in the UI are technical debt.\n- **Declarative vs scripted.** Declarative (`pipeline { agent; stages }`) for structure with guardrails; scripted for escape hatches. Prefer declarative; drop to `script {}` blocks sparingly.\n- **Controllers and agents.** The controller orchestrates; agents execute. Never build on the controller (security + stability) — agents should be ephemeral (Kubernetes pods, Docker containers, cloud VMs).\n- **Agent types.** Static agents (persistent, simple, snowflakes), cloud agents (EC2\u002FGCE\u002FAzure VMs on demand), Kubernetes agents (pods per build, the modern default), Docker agents (containers per stage). Ephemeral agents eliminate \"works on agent-3\" mysteries.\n- **Shared libraries.** Versioned Groovy libraries (`vars\u002F`, `src\u002F`) for common steps (notify, deploy, scan) — the DRY mechanism across hundreds of Jenkinsfiles. Version them; untrusted libraries are code execution.\n- **Credentials.** The credentials store with scoped bindings (`withCredentials`) — secrets never in Jenkinsfiles or logs. Credential types: secret text, username\u002Fpassword, SSH keys, certificates, vault integrations.\n- **Configuration as Code (JCasC).** Controller config in YAML — plugins, agents, credentials references, security settings. JCasC makes controllers reproducible and reviewable; without it, the controller is a snowflake.\n- **Multibranch pipelines.** Auto-discovered Jenkinsfiles per branch\u002FPR with branch-specific behavior — the standard for GitHub\u002FGitLab repos on Jenkins.\n- **Blue Ocean (legacy) vs classic UI.** Blue Ocean is deprecated; the classic UI with modern plugins is the current path. Don't build new workflows on Blue Ocean.\n- **Plugins.** The ecosystem's strength and risk: minimize plugin count, keep them updated, remove unused ones. Each plugin is attack surface and maintenance burden.\n- **Security.** Authentication (SSO\u002FLDAP), authorization (matrix\u002Fproject-based), CSRF protection, agent-to-controller security (inbound agents with secrets, not JNLP without auth). Jenkins has a long CVE history — patch promptly.\n- **Pipeline libraries and sandbox.** Shared library code runs in the Groovy sandbox (or with approvals); understand what needs whitelisting.\n- **Build retention.** Discard old builds (`buildDiscarder`) — unbounded history fills disks. Keep what compliance needs, not everything.\n- **Monitoring.** Controller health (heap, executors, queue), agent availability, plugin versions — Jenkins needs its own observability; a sick CI blocks everyone.\n- **Pipeline unit testing.** JenkinsPipelineUnit for testing shared library logic — shared code used by hundreds of pipelines deserves tests.\n- **CloudBees vs OSS.** The enterprise distribution adds support and governance features; evaluate whether the team needs it or OSS suffices.\n\n## Practical workflow\n\n1. **Define the controller as code.** JCasC YAML for all controller config; controller in a container or VM managed by IaC; no manual UI configuration for anything that matters.\n2. **Write declarative Jenkinsfiles.** Agent per stage (or per pipeline), `options` for timeouts\u002Fretention, `post` for notifications\u002Fcleanup, `when` for conditional stages.\n   ```groovy\n   pipeline {\n     agent { kubernetes { yamlFile 'build-pod.yaml' } }\n     options { timeout(time: 30, unit: 'MINUTES'); buildDiscarder(logRotator(numToKeepStr: '20')) }\n     stages {\n       stage('Test') { steps { sh 'npm ci && npm test' } }\n       stage('Build') { when { branch 'main' } steps { sh 'docker build -t app:${BUILD_NUMBER} .' } }\n     }\n     post { failure { slackSend channel: '#builds', message: \"Failed: ${env.JOB_NAME}\" } }\n   }\n   ```\n3. **Use ephemeral agents.** Kubernetes pods per build (or Docker\u002Fcloud agents); resource requests\u002Flimits; no builds on the controller — enforce with agent labels and authorization.\n4. **Extract shared libraries.** Common patterns (checkout+setup, notifications, deployments, scans) into versioned `vars\u002F` steps; pin library versions in Jenkinsfiles.\n5. **Manage credentials properly.** Scoped credentials, `withCredentials` bindings, rotation procedures; integrate with Vault\u002Fcloud secret stores for central management.\n6. **Harden the instance.** SSO auth, least-privilege authorization, updated plugins\u002FJenkins core, no anonymous access, agent-to-controller access control, CSRF protection on.\n7. **Scale deliberately.** Controller sized for the job count (heap, CPU); agent pools autoscaled; build queue monitored; heavy jobs on labeled agents.\n8. **Plan the exit or the upkeep.** Jenkins needs ongoing care (upgrades, plugin management). If the team can't staff it, that's the argument for a managed CI service — make it explicitly.\n\n## Common pitfalls\n\n- **Building on the controller** — resource exhaustion and security risk; agents only.\n- **Freestyle jobs** — unversioned, unreviewable config; pipelines as code.\n- **Plugin sprawl** — dozens of unmaintained plugins; minimize and update.\n- **Unpatched Jenkins** — long CVE history; patch core and plugins promptly.\n- **Snowflake controllers** — UI-configured instances; JCasC for everything.\n- **Static pet agents** — \"works on agent-3\" mysteries; ephemeral agents.\n- **Credentials in Jenkinsfiles** — secrets in code; credentials store + bindings.\n- **No build retention** — disks filling with history; `buildDiscarder` everywhere.\n- **Scripted-pipeline sprawl** — unmaintainable Groovy; prefer declarative.\n- **Missing timeouts** — hung builds blocking executors; `timeout` options.\n- **Anonymous\u002Fadmin-everyone access** — the classic Jenkins breach; proper auth + authorization.\n- **Shared libraries unversioned** — breaking every pipeline at once; version libraries.\n- **Ignoring controller health** — sick CI discovered when builds queue; monitor heap, queue, agents.\n- **Upgrading without backups** — core\u002Fplugin upgrades breaking the controller; snapshot and test upgrades in staging.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-jenkins-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill jenkins-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill jenkins-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill jenkins-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-jenkins-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]