greglas75/zuvo/ci-audit
Claude Code and agent skill by greglas75/zuvo
- community
Checking that the SKILL.md file is still in the repository.
CI/CD pipeline audit for speed, cost, reliability, and security. 10 dimensions (CI1-CI10): caching, parallelism, conditional execution, artifacts, secret handling, action pinning, timeouts, Docker optimization, test integration, and pipeline speed. Primary support: GitHub Actions. Detection-level: GitLab CI, CircleCI. Switches: zuvo:ci-audit full | [path] | --speed-only | --security-only
Install
npx vskill@latest install greglas75/zuvo/ci-auditSKILL.md
The same SKILL.md was published earlier as greglas75/zuvo/ci-audit.
zuvo:ci-audit
Audit CI/CD pipelines for wasted time, insecure practices, and reliability gaps. Single-pass execution, no sub-agents needed.
Primary support: GitHub Actions (full coverage of all 10 dimensions). Detection-level: GitLab CI, CircleCI (adapted patterns, unsupported checks scored as N/A).
When to use: After changing CI workflows, when pipelines are slow, before release hardening, when CI costs are high, quarterly optimization. When NOT to use: Application security (/security-audit), test quality (/test-audit), test runner config (/tests-performance).
Mandatory File Loading
Read every file below before starting. Print the checklist.
If any file is MISSING, STOP. Do not proceed from memory.
Argument Parsing
| Token | Behavior | |
|---|---|---|
_(empty)_ or full | All 10 dimensions, auto-detect CI config | |
[path] | Audit specific workflow file or CI config directory | |
--speed-only | CI1, CI7, CI9, CI10 only -- focus on pipeline duration | |
--security-only | CI5, CI6 only -- focus on secret handling and action pinning |
Safety Gate
This audit is read-only. The only write target is zuvo/audits/.
FORBIDDEN:
- Modifying any workflow or pipeline file
- Running CI pipelines or triggering builds
- Modifying secrets or environment variables
- Installing CI plugins or actions
MANDATORY TOOL CALLS — CI Audit Validity Gate
INVALID if any tool below is skipped. "DEFERRED", "N/A" NOT valid reasons.
| Tool | Trigger | Skip allowed? | |
|---|---|---|---|
get_file_tree | Always | NO — locate .github/workflows/, .gitlab-ci.yml, .circleci/ | |
search_text | Always | NO — YAML scan: cache hits, action versions, secrets refs | |
search_patterns | Always | NO — CI5 secret leaks, CI6 unpinned actions, CI3 missing if | |
scan_secrets | Always | NO — CI5 hardcoded credentials in workflow YAML | |
audit_scan | Always | NO — compound check |
Forbidden: same as above (DEFERRED, codesift unavailable when deferred, retrospective skipped — all REJECTED).
POSTAMBLE: report on disk → retro appended → ~/.zuvo/append-runlog exit 0. Every CI finding needs path/to/file.ext:LINE (verify-audit gate).
Use the deterministic preload helper FIRST. Run ~/.zuvo/compute-preload ci-audit "$PWD". Math gate enforced.
Phase 0: Detect and Scope
0.1 Platform Detection
Detect the CI platform and set scan targets.
| Signal | Platform | |
|---|---|---|
.github/workflows/*.yml or uses: pattern | GitHub Actions | |
.gitlab-ci.yml or stages: / include: pattern | GitLab CI | |
.circleci/config.yml or orbs: / jobs: pattern | CircleCI |
If a [path] argument is provided:
- File: scan that file, detect platform from content
- Directory: find CI config within, detect platform
If no argument: auto-detect from project root.
If no CI config found: report error and suggest checking file locations.
0.2 Workflow Inventory
List all CI workflows/jobs with their trigger events.
Print:
Phase 1: Dimension Analysis (CI1-CI10)
Single-pass inline execution. No sub-agents required.
CI1: Caching Strategy -- Weight 15, Max 15
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Dependency cache | Cache configured for package manager | No caching, full install every run | HIGH | |
| Cache key includes lockfile hash | Key derived from lockfile content (hashFiles) | Static key or no key | MEDIUM | |
| Build cache | Turbo/nx cache, Docker layer cache | Rebuild from scratch every run | HIGH | |
| Cache restore fallback | Fallback keys for partial cache hits | Cache miss = full rebuild | LOW |
What to search for:
- GitHub Actions:
actions/cache,setup-nodewithcache:,hashFiles,restore-keys - GitLab CI:
cache:sections,key:with$CI_COMMITor lockfile reference - CircleCI:
save_cache/restore_cache,checksum
Score 0-15 based on coverage.
CI2: Parallelism and Job Structure -- Weight 12, Max 12
Dispatch follows ../../shared/includes/execution-policy.md through env-compat. Reuse existing authorization within that policy; session restrictions take precedence. Run each required gate and report its actual independence or an unmet requirement.
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Independent jobs in parallel | Jobs without dependencies run simultaneously | Everything sequential | HIGH | |
| Matrix strategy | Multi-version/platform via matrix | Duplicated jobs per version | MEDIUM | |
| Fan-out/fan-in | Parallel test shards with final merge | Single monolithic test job | MEDIUM |
What to search for:
needs:/dependencies:/requires:chainsstrategy:/matrix:/parallel:blocks
CI3: Conditional Execution -- Weight 8, Max 8
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Path filters | Triggers filtered by changed files | Every push triggers every workflow | HIGH | |
| Skip conditions | Draft PRs and skip labels handled | Draft PRs run full pipeline | MEDIUM | |
| Reusable workflows | Shared logic via templates | Copy-paste across workflows | MEDIUM | |
| Concurrency control | Cancel stale runs on new push | Duplicate runs pile up | MEDIUM |
What to search for:
paths:/paths-ignore:,only:/except:/rules:,filters:if:conditions,workflow_call(reusable)concurrency:withcancel-in-progress,interruptible:
CI4: Artifact Management -- Weight 5, Max 5
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Selective uploads | Only needed artifacts uploaded | Everything uploaded | MEDIUM | |
| Retention policy | Short retention days configured | Default retention (90 days) | LOW | |
| Download scope | Jobs download only what they need | All artifacts pulled into every job | LOW |
CI5: Secret Handling -- Weight 12, Max 12, Critical Gate
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Secret access | Secrets referenced via env: block | Secrets interpolated directly in run: scripts | HIGH | |
| Environment scoping | Secrets scoped to environment (prod/staging) | All secrets available to all jobs | MEDIUM | |
| OIDC usage | Keyless auth where possible (cloud providers) | Long-lived credentials | MEDIUM | |
| Permissions | Minimal permissions: declared | Default write-all permissions | HIGH | |
| Hardcoded secrets | Zero hardcoded secrets | Secrets in workflow YAML | CRITICAL |
Critical gate: hardcoded secrets or secrets likely logged → triggers FAIL. The gate fires on that FINDING; a CI5 score of 0 also fires it but is not required.
Verification: For each secret reference found, read the surrounding step to check whether it is set via env: block (safe) or inlined in run: script (can leak to logs).
CI6: Action Pinning -- Weight 10, Max 10, Critical Gate
GitHub Actions only. GitLab CI / CircleCI: score N/A.
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| SHA pinning | All actions pinned to commit SHA | Actions pinned to @main or @master | CRITICAL | |
| Trusted sources | Only actions/* namespace or verified publishers | Unknown third-party actions | HIGH | |
| Dependabot | Dependabot configured for github-actions updates | No automated update mechanism | MEDIUM | |
| Tag pinning | First-party actions at @vN (acceptable) | Third-party at @vN (risky) | MEDIUM |
Critical gate: unverified actions from unknown sources → triggers FAIL. The gate fires on that FINDING; a CI6 score of 0 also fires it but is not required.
CI7: Timeout and Resource Config -- Weight 8, Max 8
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Job timeouts | Every job has timeout-minutes | No timeouts, stuck jobs run until cancelled | HIGH | |
| Runner sizing | Appropriate runner labels for workload | Oversized runners for simple tasks | MEDIUM | |
| Resource limits | Self-hosted runners have resource constraints | Self-hosted without limits | MEDIUM |
CI8: Docker Optimization -- Weight 8, Max 8, N/A if no Docker
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Multi-stage builds | Separate build and runtime stages | Single-stage with build tools in prod image | HIGH | |
| .dockerignore | Exists with meaningful exclusions | Missing or empty | HIGH | |
| Base image pinning | Specific version tag or digest | FROM node:latest | HIGH | |
| Layer caching in CI | cache-from / cache-to configured | Full rebuild on every push | MEDIUM |
CI9: Test Integration -- Weight 12, Max 12, Critical Gate
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Tests in pipeline | Test command runs in CI | No tests in CI at all | CRITICAL | |
| Coverage gate | Threshold enforced, build fails below minimum | Coverage reported but not gated | HIGH | |
| Lint/typecheck separation | Lint and typecheck run as separate early steps | Mixed into test step or absent | MEDIUM | |
| Test sharding | Large suites split across parallel runners | Single long-running test job | MEDIUM |
Coverage gate detection: Finding codecov or coveralls alone is NOT a gate -- it is just reporting. A gate requires a threshold that fails the build (e.g., --coverageThreshold, fail_under, Codecov threshold in config).
Critical gate: no tests in CI → triggers FAIL. The gate fires on that FINDING; a CI9 score of 0 also fires it but is not required.
CI10: Pipeline Speed -- Weight 10, Max 10
Evaluated from workflow structure analysis, not by running pipelines.
| Check | Good | Bad | Severity | |
|---|---|---|---|---|
| Critical path depth | <= 3 sequential jobs | > 5 sequential job chain | HIGH | |
| Repeated installs | Shared setup step, cached deps | npm install in every job | HIGH | |
| Trigger scope | Heavy jobs only on merge to main | Everything runs on every push | MEDIUM | |
| Stale cancellation | cancel-in-progress: true | Duplicate runs stack up | MEDIUM |
Critical path estimation: Trace the longest chain of needs: dependencies. Each link adds one sequential step.
Phase 2: Scoring
N/A handling: CI6 = N/A if not GitHub Actions. CI8 = N/A if no Docker. Excluded from both score and max.
Score = sum / applicable_max x 100
Critical gates — any ONE of these findings triggers FAIL, whatever the numeric score:
| Gate | Fires on | |
|---|---|---|
| CI5 | any hardcoded secret in a workflow, or a secret reaching the log | |
| CI6 | any unverified/unpinned action from an unknown source (GitHub Actions only; N/A elsewhere) | |
| CI9 | no tests run in CI |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ci-audit/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/greglas75/zuvo/ci-audit)