Skip to content
Back to skills

Harness Ci

ASecurity

Load to wire, tune, or debug a repo's changed-file CI skip.

  • 92 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
ai-agentsrustbashexpressgit

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add vanillagreencom/kendex --skill harness-ci --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Harness Ci?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Harness Ci
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vanillagreencom-harness-ci-kendex/badge)](https://www.skillsdirectory.com/skills/vanillagreencom-harness-ci-kendex)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: harness-ci
description: "Load to wire, tune, or debug a repo's changed-file CI skip."
summary: "Classifies a CI diff as harness-only or docs-only, names its change class, and validates classifier-authorized skipped jobs in required-context aggregators."
license: MIT
dependencies:
  required: [change-scope, commit-guards, review-gate, bot-instructions]
user-invocable: true
metadata:
  author: vanillagreen
  source: kendex
  repository: "https://github.com/vanillagreencom/kendex"
  bugs: "https://github.com/vanillagreencom/kendex/issues"
tags: [automation]
---

# Harness CI

Run the classifier to decide whether CI can skip product checks:

```bash
.agents/skills/harness-ci/scripts/harness-only \
  --event pull_request --base "$BASE" --head "$HEAD"
```

Commit `.kendex-generated.json` with the renders after `kendex refresh`.

Consumer setup and the workflow shapes to copy are in [references/wiring.md](references/wiring.md).

## Scripts

- `scripts/harness-only` answers `harness_only=true|false`. A `false` verdict prints its reason on stderr as a `fallback: cause=...` line. Flags and exit codes: `harness-only --help`. The endpoints: [references/wiring.md § The endpoint expressions](references/wiring.md#the-endpoint-expressions).
- `harness-only --mode docs` answers `docs_only=true|false` for the docs-only path set that `harness-only --help` defines.
- Declare exact product-text Markdown files through the trusted base's `HARNESS_CI_DOCS_PATHS`, by [references/wiring.md § Declared product text](references/wiring.md#declared-product-text).
- Use `harness-only --mode render-candidate` only to gate the engine installation and the mirror refresh. It grants no CI skip. `change-class` must prove render before CI skips product checks.
- `scripts/change-class` prints the change class: `render`, `trivial`, `micro`, `small` or `standard`. change-scope's `change-scope`, installed beside this package, decides the class. This package adds the queue-only class and the lane verdicts. Flags and the queue-only line: `change-class --help`. The classes, their settings, causes and refusals: `change-scope --help`.
- Select lanes locally with `change-class --output FILE`. `--base` names the committed event base used for workflow reads. `--lanes-from` names the separate trusted checkout used for legacy claims and a provisioned Vitest installation:

  ```bash
  .agents/skills/harness-ci/scripts/change-class --event pull_request \
    --base origin/main --head HEAD \
    --output "$OUT" --lanes-from "$DEFAULT_BRANCH_CHECKOUT"
  ```

- Required-context aggregators call `scripts/aggregate-needs`. Its arguments: `aggregate-needs --help`. The lane rules: [references/wiring.md § Per-lane verdicts](references/wiring.md#per-lane-verdicts).
- Install the release engine with `scripts/install-latest.sh`.

## Shared refresh caller ownership

The adopted caller path, `HARNESS_CI_REFRESH_CALLER`, and the render proof's fallback for it are change-scope's: its SKILL.md § Shared refresh caller ownership owns the contract. `scripts/lib/change-class.sh` here loads that library, so a sourcer of this file still reads the name.

## Wiring

Nothing here writes `.github/`. Wire the one step yourself, once, from [references/wiring.md](references/wiring.md).

A repository under the organization standard reports the aggregate `CI` context. It copies [templates/ci.yml](templates/ci.yml) to `.github/workflows/ci.yml`, or names its own workflow's aggregate job `CI`, per [references/wiring.md § The CI context](references/wiring.md#the-ci-context).

Hold these rules when wiring it:

- Classify inside a job, never in `on.<event>.paths`.
- Keep the required-context job unconditional.
  - Gate the expensive lanes with a job-level `if:` off a `changes` job's output, or a step-level `if:` inside an aggregate.
  - Let the aggregate that carries the required name run on every event.
- A job-level `if:` needs a status function, as [references/wiring.md § Shape 1](references/wiring.md#shape-1--a-changes-job-feeding-job-level-if) shows. Without one, a failed classifying job skips the lane.
- A step that installs a tool for an unconditional lane stays unconditional. A harness-only `if:` on the install, while the lane that runs the tool runs on every event, fails that lane on a harness-only diff. The tools commit-guards needs are in [commit-guards CHECKS.md § py-names](../commit-guards/CHECKS.md#py-names) and [§ secrets](../commit-guards/CHECKS.md#secrets).

## Fail-closed

- Every unprovable case answers `false`, which runs every lane. `change-class` answers `standard` on the same terms.
- A class is never read from an author-writable field: not a label, a branch name or a pull request title. No flag carries one.
- A caller that acts on a verdict without review runs the default branch's copy of the script against the pull request's tree, because the branch can change the script too.

Files in this skill

  • DEVELOPMENT.md27.7 KB
  • README.md10.6 KB
  • SKILL.md8.3 KB
  • references/wiring.md43 KB
  • scripts/aggregate-needs5.8 KB
  • scripts/change-class51 KB
  • scripts/harness-only19 KB
  • scripts/lib/change-class.sh3.6 KB
  • scripts/lib/ci-lanes.sh3.4 KB
  • templates/ci.yml10.5 KB
  • tests/aggregate-needs.test.sh11.3 KB
  • tests/ci-template.test.sh30.4 KB
  • tests/docs-only.test.sh4.4 KB
  • tests/documentation-subsystem.test.sh7 KB
  • tests/event-ranges.test.sh4 KB
  • tests/fail-closed.test.sh7.3 KB
  • tests/in-place.test.sh848 B
  • tests/lib/gh-eval.py6.4 KB
  • tests/lib/sandbox.sh5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.