Skip to content
Skills Library
DevOps & cloud · Review & audit

audit-harness

/audit-harness

Use when auditing HARNESS.md, pre-commit hooks, pre-push hooks, architecture gates, or CI workflows for tunacode-cli. This skill treats any mismatch, skipped gate, or failing check as a critical failure and requires manual one-by-one execution rather than make targets, batch wrappers, or summary-only audits.

Repository
tunacode ↗
Licence
MIT
Last repository change
05.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when auditing HARNESS.md, pre-commit hooks, pre-push hooks, architecture gates, or CI workflows for tunacode-cli. This skill treats any mismatch, skipped gate, or failing check as a critical failure and requires manual one-by-one execution rather than make targets, batch wrappers, or summary-only audits.

Original author description

Use when auditing HARNESS.md, pre-commit hooks, pre-push hooks, architecture gates, or CI workflows for tunacode-cli. This skill treats any mismatch, skipped gate, or failing check as a critical failure and requires manual one-by-one execution rather than make targets, batch wrappers, or summary-only audits.

How it works

  1. Trigger
  2. Hard Rules
  3. Source Of Truth Order
  4. Manual Audit Procedure
  5. Response Style
Original SKILL.md headings · 92 lines, 373 words
SKILL.md preview
---
name: audit-harness
description: Use when auditing HARNESS.md, pre-commit hooks, pre-push hooks, architecture gates, or CI workflows for tunacode-cli. This skill treats any mismatch, skipped gate, or failing check as a critical failure and requires manual one-by-one execution rather than make targets, batch wrappers, or summary-only audits.
when_to_read:
  - Auditing HARNESS.md
  - Verifying harness accuracy
  - Running pre-commit or pre-push hooks manually
summary: Strict procedure for auditing harness, hook, and CI enforcement in tunacode-cli.
last_updated: "2026-04-04"
---

# Audit Harness

`HARNESS.md` is mission-critical. Audit it with zero tolerance.

## Trigger

Use this skill when the user asks to:

- audit `HARNESS.md`
- verify harness accuracy
- run pre-commit or pre-push hooks manually
- confirm architecture or CI gates
- explain what actually enforces the harness

## Hard Rules

- Treat any mismatch, omission, skipped gate, auto-fix, or failing check as a critical failure.
- Never describe results as "mostly passing", "just one failure", or equivalent minimization.
- State the exact failure first.
- Explain the finding before changing code or docs.
- Do not proceed with a fix until the user tells you to proceed.
- During harness audits, never use `make check`, `scripts/run_gates.py`, or any loop/script wrapper as the primary audit path.
- Run checks manually, one by one, in the same order they appear in the source-of-truth config.
- If a hook modifies files, report the exact files immediately.
- Do not revert hook changes unless the user explicitly asks.

## Source Of Truth Order

Read these first:

1. `HARNESS.md`
2. `.pre-commit-config.yaml`
3. `Makefile`
4. `tests/test_dependency_layers.py`
5. `scripts/grimp_layers_report.py`
6. `.github/workflows/*.yml`
7. `docs/git/practices.md`
8. `AGENTS.md`

## Manual Audit Procedure

### Pre-commit

1. Enumerate the active pre-commit hooks from `.pre-commit-config.yaml`.
2. Start at the top.
3. Run each hook manually:

```bash
uv run pre-commit run <hook-id> --all-files
```

4. After each hook:
   state `Passed`, `Failed`, `Skipped`, or `Modified files`.
5. If a hook fails, stop and explain why before proposing a fix.

### Pre-push

1. Enumerate the active pre-push hooks from `.pre-commit-config.yaml`.
2. Run each one manually, one by one:

```bash
uv run pre-commit run <hook-id> --hook-stage pre-push --all-files
```

3. Treat any failure as critical.

### Architecture

- `tests/test_dependency_layers.py` is the source of truth for `grimp` enforcement.
- `scripts/grimp_layers_report.py` is report generation only.
- `scripts/run_gates.py` is supplemental only and not canonical.

### CI/CD

For each workflow, label it clearly as one of:

- local source of truth
- local supplemental check
- CI enforcement
- CI artifact generation
- CI report / issue automation

If wording in `HARNESS.md` hides an important behavior, call that a critical documentation failure.

## Response Style

- Be short.
- Be exact.
- One failure is a critical failure.
- Do not soften language.

Versions

RepositoryScoreLicence
This page · alchemiststudiosdotai/tunacode100MIT
guilhermebkel/harness-ledger100MIT

Database snapshot: 13.11.2026 · package version a5d192f568cf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 86setup
    Set up CodeGate in a local Git repository when the user requests it. Detect test and lint commands, vendor the runner, and install per-repository Git pre-commit and pre-push hooks.
  • 100tdd-enforce
    Configure TDD enforcement via pre-commit hooks and CI coverage gates. Use when setting up test-first workflows or adding coverage gates.
  • 100tdd-enforce
    Configure TDD enforcement via pre-commit hooks and CI coverage gates. Use when setting up test-first workflows or adding coverage gates.
  • 100pypi-release
    This skill should be used when releasing tunacode-cli to PyPI. It keeps the existing local release checks, then hands the actual PyPI upload to a GitHub Actions workflow that uses the repository's PYPI_API_TOKEN secret.
  • 100deploy
    Use when the user says "ship it", "ready to push", "release", "deploy", or wants pre-push gates (lint, typecheck, build, tests) plus commit/release/push in one flow. Standalone — never auto-invoked; push always requires explicit confirmation.
  • 100pre-commit-architecture
    Use when adding/editing .pre-commit-config.yaml, wiring pre-commit hooks into a repo, or scaffolding a new repo's lint/hook setup. Covers the canonical nix-devenv/dryvist-.github architecture, profiles, and consumer patterns.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.