Agent skill · DevOps & Cloud

kubesphere-devops-pipeline

Use when creating, running, or managing CI/CD pipelines in KubeSphere DevOps, including pipeline API operations and run monitoring

kubespheregithub.com/kubesphereGitHub ↗
claude-codeNOASSERTION
Install
npx skills add kubesphere/kubesphere --skill kubesphere-devops-pipeline --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 44 KB
Bundled scripts: none
Path: skills/kubesphere-devops-pipeline/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 17,016
Language: Go
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Guides a agent to manage KubeSphere DevOps pipelines by creating and triggering PipelineRun resources, checking their status, and handling multi-branch pipelines and credentials. It includes examples for creating PipelineRun, checking status, deleting runs, and monitoring progress, plus steps for single and multi-branch pipelines with consideration for private repositories and required creator annotations.

How it works

  • Emphasizes creating a PipelineRun resource to trigger a pipeline, with metadata (name, namespace) and spec (pipelineRef, parameters).
  • Shows how to apply the PipelineRun using kubectl and how to query status via kubectl get commands.
  • Provides a schema for PipelineRun status fields: status.phase, status.conditions, status.completionTime, status.startTime.
  • Demonstrates creating a Pipeline resource (single-branch and multi-branch) with a Jenkinsfile, including examples using agent kubernetes with a pod YAML and steps such as sh and archiveArtifacts.
  • Details the requirement to include kubesphere.io/creator annotations for tenant-created resources and its impact on ownership and RBAC.
  • Outlines a multi-branch pipeline workflow, including repository checks (private vs public), credential creation for private repos, and referencing credentials via git_source.credential_id.
  • Describes how to trigger multi-branch pipeline runs via PipelineRun with scm.refName and scm.refType.
  • Provides commands to trigger repository scans and fetch logs using v1alpha2, and how to check discovered branches.
  • Includes complete private repo setup steps and examples for verifying creation and retrieving pipeline details, including API calls and jq-based extraction.

When to use it

  • Creating or updating CI/CD pipelines
  • Triggering pipeline runs
  • Monitoring pipeline execution
  • Retrieving pipeline logs and artifacts
  • Troubleshooting failed pipeline runs

What it can touch

  • kubectl: apply, get, delete for PipelineRun and Pipeline resources
  • curl: API calls to kubeSphere DevOps endpoints for credentials and pipelines
  • jq: parsing of API responses for verification
  • YAML payloads for Pipeline and PipelineRun definitions

Caveats

  • Requires the kubesphere.io/creator annotation for tenant-created pipelines; otherwise UI visibility and RBAC may be affected
  • For multi-branch pipelines, repository type must be confirmed before proceeding to credential handling
  • Private repository pipelines require creating a basic-auth credential and referencing it via credential_id
  • Uses v1alpha2 API for repository scanning (not v1alpha3)
From the SKILL.md

# KubeSphere DevOps Pipeline Management ## Overview Pipelines in KubeSphere DevOps are Kubernetes custom resources that integrate with Jenkins. KubeSphere uses a cloud-native, object-reconcile approach where Kubernetes resources are the source of truth. ## When to Use - Creating or updating CI/CD pipelines - Triggering pipeline runs - Monitoring pipeline execution - Retrieving pipeline logs and artifacts - Troubleshooting failed pipeline runs ## Architecture Mapping KubeSphere DevOps maps Kubernetes resources to Jenkins objects: | KubeSphere Resource | K8s Resource | Jenkins Resource | |---------------------|--------------|------------------| | DevOpsProject | DevOpsProject CR + Namespace | Folder | | Pipeline | Pipeline CR | WorkflowJob | | PipelineRun | PipelineRun CR | Build Run | | Workspace | Workspace CR | (authorization context) | ``` KubeSphere Kubernetes Jenkins ───────────────────────────────────────────────────────────── Workspace demo └── DevOpsProject → demo-project NS → Folder demo-project └── Pipeline → Pipeline CR → WorkflowJob └── Run → PipelineRun CR → Build #1 ``` ## Triggering Pipeline Runs (Recommended: Object-Reconcile) > **CRITICAL: ALWAYS Check for Parameter

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Architecture Mapping
  4. Triggering Pipeline Runs (Recommended: Object-Reconcile)
  5. Create a PipelineRun
  6. Check PipelineRun Status
  7. PipelineRun Status Fields
  8. Delete a PipelineRun
  9. Working Pipeline Example
  10. Pipeline Resource
  11. Tenant-Created Resources: Creator Annotation
  12. Multi-Branch Pipeline
  13. Create Multi-Branch Pipeline
  14. Trigger Multi-Branch Pipeline Run
Commands it runs
kubectl apply -f pipelinerun.yaml
List all runs
kubectl get pipelineruns -n demo-project
Get specific run status
kubectl get pipelinerun my-pipeline-run-001 -n demo-project -o yaml
Watch run progress
kubectl get pipelineruns -n demo-project -w
kubectl delete pipelinerun my-pipeline-run-001 -n demo-project
curl -s -X POST "${KUBESPHERE_API}/kapis/devops.kubesphere.io/v1alpha3/namespaces/demo-project/pipelines" \
Create GitHub credential
More from kubesphere
All skills →
About this skill
What does the kubesphere-devops-pipeline skill do?

Use when creating, running, or managing CI/CD pipelines in KubeSphere DevOps, including pipeline API operations and run monitoring

How do I install it?

Run `npx skills add kubesphere/kubesphere --skill kubesphere-devops-pipeline --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From kubesphere/kubesphere, a repository with 17,016 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going