# Sh kb ci cd

> Sh kb ci cd is an open-source agent skill for developer tools. Knowledge base for hunting CI/CD and supply-chain weaknesses in a repository. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-kb-ci-cd
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-kb-ci-cd
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent a structured reference for auditing build and delivery pipelines. It covers GitHub Actions, GitLab CI, CircleCI, Jenkins, Dockerfiles and release scripts, and lists the patterns that make them risky, such as untrusted event data reaching a privileged context, unpinned actions and images, broad token permissions, and downloads run without integrity checks.

The guide walks the agent through a detection routine: list the pipeline files and their triggers, work out which runs for outside contributors, check what secrets and token scopes each privileged job holds, then trace what untrusted data reaches the commands that execute. It includes grep targets for common injection and pinning problems, a set of false-positive filters, severity guidance, and mapping to CWE and OWASP categories.

The skill is instructional only and ships a single Markdown file with no scripts. It expects the agent to read the repository's own workflow and build files with its normal file tools. Mitigation advice and illustrative proof-of-concept templates are included for authorized review.

## When your agent uses it

> Knowledge base for finding CI/CD and supply-chain weaknesses visible in a repository - GitHub Actions pull_request_target and workflow_run misuse, script injection from event data, unpinned actions and images, over-broad token permissions, secret exposure, self-hosted runners, cache and artifact poisoning, dependency confusion, curl-pipe-sh and unverified downloads, unprovenanced releases, and the same in GitLab CI, CircleCI, Jenkins and Dockerfiles. Use when hunting pipeline or build-chain risk. CWE-829, CWE-494, CWE-1395, CWE-77, OWASP A08:2021-Software and Data Integrity Failures.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-ci-cd)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-ci-cd)

## Features

- **Pipeline trigger analysis:** Identifies workflows that run for outside contributors and checks what secrets and token scopes they can reach.
- **Script injection patterns:** Lists event fields and expressions that can be interpolated into shell steps and the safer environment-variable form.
- **Unpinned dependency checks:** Flags actions, images, orbs and remote includes that use mutable tags instead of full commit SHAs or digests.
- **Build integrity review:** Covers lockfile use, registry scoping, dependency confusion, and download-and-execute install steps.
- **Release and artifact trust:** Reviews publish jobs for environment protection, provenance signing, and untrusted artifact or cache reuse.
- **Severity and CWE mapping:** Provides severity levels and CWE and OWASP references to classify each finding.

## Good for

- Audit my GitHub Actions workflows for pull_request_target misuse
- Check whether my CI pipeline pins third-party actions to commit SHAs
- Find script injection risks from issue titles or PR bodies in my workflows
- Review my Dockerfiles for secrets copied into images or unpinned base images
- Assess whether my release job publishes without approval or provenance

## Install

### Claude Code

This skill ships in the `indra` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra
```

Or copy only this skill to `~/.claude/skills/sh-kb-ci-cd`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-ci-cd &&
cp -R "$tmp/plugins/indra/skills/sh-kb-ci-cd" ~/.claude/skills/sh-kb-ci-cd &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sh-kb-ci-cd` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sh-kb-ci-cd` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-kb-ci-cd &&
cp -R "$tmp/plugins/indra/skills/sh-kb-ci-cd" ~/.agents/skills/sh-kb-ci-cd &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sh-kb-ci-cd` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-kb-ci-cd` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-kb-ci-cd &&
cp -R "$tmp/plugins/indra/skills/sh-kb-ci-cd" ~/.cursor/skills/sh-kb-ci-cd &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-kb-ci-cd` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-kb-ci-cd
```

Or copy the folder to `~/.gemini/skills/sh-kb-ci-cd` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sh-kb-ci-cd`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-ci-cd &&
cp -R "$tmp/plugins/indra/skills/sh-kb-ci-cd" ~/.copilot/skills/sh-kb-ci-cd &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sh-kb-ci-cd` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git
```

Then copy `indra/plugins/indra/skills/sh-kb-ci-cd` into your agent's skills folder as `sh-kb-ci-cd`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Sh kb ci cd need to run?

It is a single Markdown knowledge base with no scripts and no tools specified, so it relies on the agent reading the repository's pipeline and build files.

### Does Sh kb ci cd change any files in my repository?

No. It is written as a hunting and review guide. Its proof-of-concept templates are described as illustrative and meant for authorized review only.

### Which CI systems does Sh kb ci cd cover?

GitHub Actions, GitLab CI, CircleCI, Jenkins, Azure Pipelines, Bitbucket Pipelines, Dockerfiles, and related release scripts and dependency config.

### When does Sh kb ci cd trigger?

It is meant for hunting pipeline or build-chain risk, and its description tells the agent to use it when that task comes up.

### How do I install Sh kb ci cd in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-ci-cd to use it in all your projects, or to .claude/skills/sh-kb-ci-cd in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

### Does Sh kb ci cd run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sh kb ci cd?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Sh kb ci cd?

The closest alternatives to Sh kb ci cd are Gha security review, Ci cd, Supply chain audit, GitHub actions hardening and Security review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Gha security review](https://ai-powered.com/skills/gha-security-review): Gha security review is an open-source agent skill for security.
- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Supply chain audit](https://ai-powered.com/skills/supply-chain-audit): Supply chain audit is an open-source agent skill for security.
- [GitHub actions hardening](https://ai-powered.com/skills/github-actions-hardening): GitHub actions hardening is an open-source agent skill for developer tools.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Sh kb secrets](https://ai-powered.com/skills/sh-kb-secrets): Sh kb secrets is an open-source agent skill for security.
- [Sh kb misconfig](https://ai-powered.com/skills/sh-kb-misconfig): Sh kb misconfig is an open-source agent skill for cloud and infrastructure.
- [GitHub ci](https://ai-powered.com/skills/github-ci): GitHub ci is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/sh-kb-ci-cd
