Skip to content
Back to skills

Audit Harness

ASecurity

Use ONLY when the user types /audit-harness or asks to apply answers in an existing harness audit. Compares the harness's own instructions in this session with the user's rules, skills and settings, and writes each mismatch as a plain case with a proposed fix the user answers inline.

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgogitsecurity

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add tednaaa/nixos-config --skill audit-harness --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Harness?

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

Security grade badge for Audit Harness
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tednaaa-audit-harness/badge)](https://www.skillsdirectory.com/skills/tednaaa-audit-harness)

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: audit-harness
description: Use ONLY when the user types /audit-harness or asks to apply answers in an existing harness audit. Compares the harness's own instructions in this session with the user's rules, skills and settings, and writes each mismatch as a plain case with a proposed fix the user answers inline.
disable-model-invocation: true
argument-hint: "[apply]"
---

# Audit harness

The harness instructions exist only in the session context: they change with the CLI version, plugins, MCP servers and connectors. The audit snapshots them against the user's rules and skills, so each mismatch becomes a decision instead of a coin flip.

## Workspace

The repo that owns the rules: `realpath ~/.claude/rules`, then `git rev-parse --show-toplevel` from there. The task workspace from the workspace rule, slug `harness_audit`, reused across runs. This skill owns `audits/`.

```
999__harness_audit/
  audits/999__claude_2_1_40.md
  audits/998__claude_2_2_3.md
```

- One file per run, `<nnn>__claude_<cli version>.md`, counting down; the lowest number is the current audit
- The user answers only in the current audit

## Sources

Harness side, quoted from this session's context:

- System prompt, auto mode and output style text
- Tool descriptions, deferred tool names
- MCP server instructions
- System reminders: attribution, git status, skill listing
- Descriptions of built-in and plugin skills

User side, read in full:

- Every rule file and `AGENTS.md`
- Every `SKILL.md` the user owns; skills synced from a vendor or shipped by a plugin are harness side
- Claude Code `settings.json` and enabled plugins
- The memory index and the memories it lists

Record `claude --version`, the model ID and enabled plugins, MCP servers and connectors in the audit header.

## What counts

- The harness and a rule or skill ask for opposite things
- A harness default the rules never address that acts outward or is hard to undo: publishing, sending, committing, deleting, persistent memory
- Two skills claim the same request
- A rule or skill repeats the harness
- A rule fights the harness in prose where a setting would remove the instruction; verify the key in current docs or the settings JSON schema, never from memory

Skip agreement, and fixed policies the user cannot change: security, safety, copyright. A previous audit exists → skip cases it resolved whose source quote is unchanged; a changed quote returns as a new case.

## Cases

The user decides each case in under a minute without opening any file.

- Title: what goes wrong, in the user's words, not the mechanism
- Example: one concrete moment — what the user says or does → what Claude does instead
- Why: one line, both sides in plain words, no quotes
- Proposal: the exact change — the rule line in English as it will land, the settings snippet, or what the skill loses; plus a cost the user would notice
- Otherwise: at most one alternative, one line
- Sources: the harness source and the user's `path:line`, each quote cut to the sentence that matters
- Order: outward or irreversible first, then workflow, then tokens
- Recommendation is to change nothing → no case; one line under the closing section with the reason

## Audit format

Headings and labels in the audit's language; proposed rule lines stay English.

```markdown
# Harness audit — <date>

CLI <version>, <model ID>. Plugins: <list>. Connectors: <list>.

Answer under each case: `yes` — apply the proposal, `no` — keep as is, or your own text.

### 1. <what goes wrong>

Example: <user does X> → <Claude does Y>.

Why: <harness says A, your rule says B>.

Proposal: <the change>

> <rule line in English, when the change is one>

Otherwise: <the alternative>.

Sources:

- harness, <source>: "<sentence>"
- `<path:line>`: "<sentence>"

Answer:

---

## No action

- <n>. <what> — <why it stays>

Answer:

---
```

- Numbering runs through the cases and the no-action lines
- The empty line before `---` is the user's zone; Claude never writes there

Post the audit path, the number of cases and of no-action lines, then stop.

## Apply

Only after the user says to apply answers.

1. Read every non-empty zone in the current audit
2. `yes` → the proposal; `no` → nothing; text → what it says; a question → answer in chat, the case stays open
3. Change the user's rules, skills or settings, commit per the git rules
4. Add `Status: applied <short sha>` or `Status: kept` under the case heading, in the audit's language; leave zones as written
5. Post what landed and what stays open

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.