supply-chain-audit
Auditing software supply chain security across CI/CD pipelines, container images, and language ecosystems. Detects mutable dependency references, insecure CI patterns, credential exposure risks, and missing SBOM/SLSA controls. Use when performing a supply chain audit, checking action pinning, auditing dependencies, scanning for CI security issues, reviewing container security, or assessing dependency security. Covers GitHub Actions, containers, Python, Node, Go, Rust, .NET, and more.
What this skill does
# Supply Chain Audit Skill
Auditing software supply chain security across CI/CD pipelines, container images, and
language package ecosystems. Produces structured findings with severity ratings,
`file:line` references, and actionable fix templates.
## When to Use This Skill
- **CI/CD security review**: Unpin action refs, excessive permissions, secret leakage
- **Dependency pinning**: Lock files missing, hash verification absent, mutable semver refs
- **Container supply chain**: Mutable base image tags, non-root execution, SBOM generation
- **Credential hygiene**: OIDC migration from long-lived secrets, subject constraint gaps
- **Compliance mapping**: SLSA L1-L4 readiness assessment, SBOM generation guidance
- **Pre-merge gate**: Block PRs that introduce High/Critical supply chain regressions
---
## Prerequisites — External Tool Check
**Before running the audit**, check for missing external tools and offer to install them:
```python
from supply_chain_audit.external_tools import check_missing_tools, install_tool
missing = check_missing_tools()
if missing:
# Show the user what's missing and what each tool does
for tool in missing:
print(f"Missing: {tool['name']} — {tool['description']}")
for opt in tool['install_options']:
print(f" Install: {opt}")
# Ask the user if they want to install
# If yes, install each one:
for tool in missing:
success, msg = install_tool(tool['name'])
print(f" {tool['name']}: {msg}")
```
The audit runs without these tools (offline/degraded mode) but produces fewer findings:
| Tool | What's lost without it |
| -------- | ------------------------------------------------- |
| `gh` | Cannot resolve action tags to SHAs via GitHub API |
| `crane` | Cannot resolve container image digests |
| `syft` | Cannot generate SBOMs (SPDX/CycloneDX) |
| `grype` | Cannot scan for known CVEs |
| `cosign` | Cannot verify image signatures or attestations |
---
## Ecosystem Detection
Detect which dimensions apply before running checks:
| Signal | Ecosystem | Dimensions Triggered |
| ---------------------------------------------------- | -------------- | -------------------- |
| `.github/workflows/*.yml` | GitHub Actions | 1, 2, 3, 4 |
| `Dockerfile` / `docker-compose.yml` | Containers | 5, 12 |
| `.github/workflows/` with `secrets.*` | Credentials | 6 |
| `*.csproj` / `NuGet.Config` | .NET / NuGet | 7 |
| `requirements*.txt` / `pyproject.toml` / `setup.cfg` | Python | 8 |
| `Cargo.toml` / `Cargo.lock` | Rust | 9 |
| `package.json` / `package-lock.json` / `yarn.lock` | Node.js | 10 |
| `go.mod` / `go.sum` | Go | 11 |
Run all triggered dimensions. Report skipped dimensions explicitly.
---
## 12 Audit Dimensions
### Dimensions 1-4: GitHub Actions
See [reference/actions.md](reference/actions.md)
| # | Name | What to Check |
| --- | -------------------- | ----------------------------------------------------------- |
| 1 | Action SHA pinning | `uses:` refs must be `@<40-char-SHA> # vX.Y.Z` |
| 2 | Workflow permissions | Top-level `permissions: read-all`; job-level minimal grants |
| 3 | Secret exposure | No secrets in `run:` echo/env; `ACTIONS_STEP_DEBUG` guard |
| 4 | Cache poisoning | `actions/cache` key collision; restore-keys breadth |
### Dimensions 5 & 12: Containers
See [reference/containers.md](reference/containers.md)
| # | Name | What to Check |
| --- | ------------------ | --------------------------------------------------------- |
| 5 | Base image pinning | `FROM image@sha256:<digest>` not `:latest` or semver tag |
| 12 | Docker build chain | Multi-stage scratch/distroless final stage; non-root USER |
### Dimension 6: Credentials
See [reference/credentials.md](reference/credentials.md)
| # | Name | What to Check |
| --- | -------------------------- | --------------------------------------------------------- |
| 6 | OIDC vs long-lived secrets | Prefer `id-token: write` OIDC; verify subject constraints |
### Dimension 7: .NET / NuGet
See [reference/dotnet.md](reference/dotnet.md)
| # | Name | What to Check |
| --- | ------------------ | ------------------------------------------------------------------- |
| 7 | NuGet lock & audit | `RestoreLockedMode`, authorized sources, `NuGetAudit` severity gate |
### Dimension 8: Python
See [reference/python.md](reference/python.md)
| # | Name | What to Check |
| --- | --------------------------- | -------------------------------------------------------------------- |
| 8 | Python dependency integrity | `--require-hashes`, `--extra-index-url` risks, typosquatting signals |
### Dimension 9: Rust
See [reference/rust.md](reference/rust.md)
| # | Name | What to Check |
| --- | ------------------ | -------------------------------------------------------------------- |
| 9 | Cargo supply chain | `Cargo.lock` committed, `build.rs` risk, `[patch]`/`[replace]` scope |
### Dimension 10: Node.js
See [reference/node.md](reference/node.md)
| # | Name | What to Check |
| --- | ----------------- | ------------------------------------------------------------------- |
| 10 | Node.js integrity | `npm ci` not `npm install`, `npx` resolution, `postinstall` scripts |
### Dimension 11: Go
See [reference/go.md](reference/go.md)
| # | Name | What to Check |
| --- | ------------------- | ------------------------------------------------------------------------- |
| 11 | Go module integrity | `go.sum` present and committed, `GONOSUMCHECK`, `replace` directive scope |
---
## 5-Step Audit Workflow
### Step 1: Scope Detection
```bash
# Detect active ecosystems
ls .github/workflows/*.yml 2>/dev/null && echo "GHA detected"
ls Dockerfile docker-compose.yml 2>/dev/null && echo "Containers detected"
ls requirements*.txt pyproject.toml 2>/dev/null && echo "Python detected"
ls package.json 2>/dev/null && echo "Node detected"
ls go.mod 2>/dev/null && echo "Go detected"
ls Cargo.toml 2>/dev/null && echo "Rust detected"
ls *.csproj 2>/dev/null && echo ".NET detected"
```
Record active dimensions. Skip and annotate inactive ones in the report.
### Step 2: Static Analysis (per ecosystem)
Run dimension-specific checks from each reference file. Collect raw findings with:
- **Dimension number**
- **File path and line number** (`file:line`)
- **Current value** (the offending pattern)
- **Expected value** (the fix)
- **Severity**: Critical / High / Medium / Info
### Step 3: Severity Scoring
Map findings to CVSS-aligned severity bands:
| Severity | CVSS Range | Examples |
| ------------ | ---------- | --------------------------------------------------------------------------- |
| **Critical** | 9.0-10.0 | Unpin third-party action with write permissions + secret access |
| **High** | 7.0-8.9 | Mutable action ref; `:latest` container; long-lived secret with broad scope |
| **Medium** | 4Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.