/core-skills:ci-conditional-auditfrom core-skills
Audits GitHub Actions workflow files for unpaired conditional steps. When a step is guarded by an `if:` condition or `outputs.changed` flag, checks that all downstream steps depending on its side effects carry the same (or a compatible) guard. Flags any step that consumes an artifact, binary, or directory produced by a conditional step but runs unconditionally. Use when: (1) a CI step was made conditional (e.g. skip installs when nothing changed) but its downstream consumers were not updated; (2) a CI job fails intermittently — succeeds on full runs but fails when a conditional step is skipped; (3) reviewing a PR that modifies a workflow file. Not useful for diagnosing failures unrelated to conditional guards.
Ships in core-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audits GitHub Actions workflow files for unpaired conditional steps — where a step
is guarded by an if: condition but a downstream step that depends on its output
or side effects runs unconditionally. Catches the class of error where a CI
optimization is applied to only one half of a dependency pair.
/ci-conditional-audit [workflow_path]Auto-invoke when user says:
If shell.exec is available:
find .github/workflows -name "*.yml" -o -name "*.yaml" | sort
If fs.read is available: read files from the path given (default: .github/workflows/*.yml).
If neither is available: ask the user to paste the relevant workflow YAML.
For each workflow file, for each job, walk the steps array in order.
For each step, check if it is conditional:
if: keysteps.<id>.outputs.<key> or needs.<id>.outputs.<key> in its if: or run:For each conditional step, extract its side effects — what it creates or installs:
node_modules/, dist/, installed binaries in PATH)echo "VAR=val" >> $GITHUB_ENV)echo "name=value" >> $GITHUB_OUTPUT)actions/upload-artifact)Record:
{step_id, step_name, condition_expression, produces: [list of side effects]}
For each step that follows a recorded conditional step in the same job:
Does it consume any side effect?
steps.<conditional_id>.outputs.<key>Does it have a compatible guard?
if: expression (exact or logically equivalent)if: always() is NOT a compatible guard — it does not ensure the dependency ranFlag any consuming step that lacks a compatible guard. This is an unpaired conditional.
| Severity | When |
|---|---|
| BLOCKING | Consuming step will hard-fail — binary not installed, file not created |
| SILENT FAILURE | Consuming step may succeed vacuously (e.g. test runner finds no tests) |
| WARNING | Consuming step has optional access to the side effect; output may be degraded |
One block per unpaired conditional:
File: .github/workflows/<name>.yml
Job: <job_id>
Guarded step: "<step_name>" [line N]
Condition: if: <expression>
Produces: <list of side effects>
Unpaired step: "<step_name>" [line M]
Severity: BLOCKING | SILENT FAILURE | WARNING
Why: <one sentence — what breaks and when>
Suggested fix: Add `if: <expression>` to the unpaired step, OR move both steps
into a dedicated conditional job.
Files audited: N | Jobs scanned: N | Findings: N (BLOCKING: N, SILENT FAILURE: N, WARNING: N)
If no findings: All conditional steps are correctly paired.
if: always() — runs regardless of prior step outcomes; it is NOT a compatible
guard for a conditional dependency. Flag it as SILENT FAILURE.continue-on-error: true — may hide a failure; flag as WARNING if the step
consumes a conditional dependency.uses: ./.github/workflows/reusable.yml) — the with:
inputs are consumed by the called workflow; treat the uses: step as the consumer.Input: .github/workflows/build.yml:
- name: Check dashboard changed
id: dashboard-check
run: echo "changed=true" >> $GITHUB_OUTPUT
- name: Install dashboard deps
if: steps.dashboard-check.outputs.changed == 'true'
run: npm --prefix dashboard install
- name: Verify dashboard build
run: npm --prefix dashboard run build
Output:
FINDINGS
File: .github/workflows/build.yml
Job: build
Guarded step: "Install dashboard deps" [line 9]
Condition: if: steps.dashboard-check.outputs.changed == 'true'
Produces: dashboard/node_modules/
Unpaired step: "Verify dashboard build" [line 14]
Severity: BLOCKING
Why: `npm run build` requires dashboard/node_modules which is only
installed when the guarded step runs; skipping the install
causes MODULE_NOT_FOUND errors in the verify step.
Suggested fix: Add `if: steps.dashboard-check.outputs.changed == 'true'`
to "Verify dashboard build".
SUMMARY
Files audited: 1 | Jobs scanned: 1 | Findings: 1 (BLOCKING: 1)
Output:
SUMMARY
Files audited: 2 | Jobs scanned: 4 | Findings: 0
All conditional steps are correctly paired.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub internet-dot/ai-config-os --plugin core-skills35 skills in this plugin
/autoresearchAutonomously optimise any skill by running it repeatedly, scoring outputs against
binary evals, mutating the prompt, and keeping improvements. Based on Karpathy's
autoresearch methodology.
Use when: "optimise this skill", "improve this skill", "run autoresearch on",
"make this skill better", "self-improve skill", "benchmark skill", "eval my skill",
"run evals on". Outputs: an improved SKILL.md copy, a results log, and a changelog
of every mutation tried.
/changelogWhen to useGenerate structured changelog entries from git history, grouping commits by conventional prefix and flagging breaking changes./