harness-engineering
/harness-engineering
Use when the user asks to improve, fix, or build their repository's AI harness — AGENTS.md, rules, skills, commands, hooks, guardrails, CI sensors — or to act on harness-score audit findings and raise their maturity level.
- Author
- paladini ↗
- Repository
- harness-score ↗
- Licence
- MIT
- Last repository change
- 19.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user asks to improve, fix, or build their repository's AI harness — AGENTS.md, rules, skills, commands, hooks, guardrails, CI sensors — or to act on harness-score audit findings and raise their maturity level.
Original author description
Use when the user asks to improve, fix, or build their repository's AI harness — AGENTS.md, rules, skills, commands, hooks, guardrails, CI sensors — or to act on harness-score audit findings and raise their maturity level.
How it works
- Ground rules
- Recipes by check family
- After fixing
SKILL.md preview
---
name: harness-engineering
description: Use when the user asks to improve, fix, or build their repository's AI harness — AGENTS.md, rules, skills, commands, hooks, guardrails, CI sensors — or to act on harness-score audit findings and raise their maturity level.
---
# Harness Engineering — remediation recipes
You are improving this repository's AI harness: the guides, sensors, and
guardrails that make agent work reliable. The authoritative reference is
https://paladini.github.io/harness-score/ — these recipes summarize it.
## Ground rules
- Prefer running `npx -y harness-score . --json` first (and after changes)
so improvements are measured, not assumed.
- Fix in points order: the failed checks worth the most points first, unless
the user picks specific ones.
- Write harness files that match THIS repository — read the codebase enough
to state real commands, real directories, real conventions. Never ship
placeholder text like "<your build command>".
- Keep context lean: AGENTS.md ≤150 lines; scope guidance where the tool
supports it; put procedures in skills, not rules.
## Recipes by check family
### CTX — Context & Guides
Create `AGENTS.md` with: what the project is (2 sentences), directory
layout, exact build/test/lint commands, non-negotiable conventions, and a
"do not touch" list.
Then `.cursor/rules/*.mdc`, each with frontmatter:
```markdown
---
description: <one line>
globs: <path pattern> # or alwaysApply: true, sparingly
---
- Concrete, checkable bullets. Show a 5-line example of the right pattern.
```
One concern per rule. Migrate any legacy `.cursorrules` into these.
### SKL — Skills & Commands
For the team's most repeated procedure, create
`.cursor/skills/<name>/SKILL.md` with frontmatter `name:` and a
`description:` written as a trigger ("Use when the user asks to …", ≥40
chars), body = numbered runbook. Add `.cursor/commands/<verb>.md` for
human-triggered workflows like /review.
### HKS — Hooks & Guardrails
Create `.cursor/hooks.json`:
```json
{
"version": 1,
"hooks": {
"beforeShellExecution": [{ "command": "node ./.cursor/hooks/guard-shell.js", "timeout": 10 }],
"afterFileEdit": [{ "command": "node ./.cursor/hooks/format-on-edit.js", "timeout": 30 }]
}
}
```
The gate script reads JSON from stdin, tests the command against a
destructive-pattern regex (rm -rf on roots, git push --force, DROP TABLE),
and prints `{"permission":"deny","userMessage":"…"}` or
`{"permission":"allow"}`. The feedback script runs the project's formatter
on the edited file, best-effort. Commit both scripts. Full examples:
https://paladini.github.io/harness-score/guide/guardrails-and-safety
### SNS — Sensors
Wire the ecosystem's standard tools: test runner with a `test` script,
linter config, strict type checking (tsconfig `"strict": true` / mypy /
pyright), formatter. Document the commands in AGENTS.md.
### CI — CI Feedback
`.github/workflows/ci.yml` running lint, typecheck, and tests on push/PR.
Optionally add the ratchet: `npx -y harness-score --min-level <current>`.
Pre-commit via husky+lint-staged or pre-commit.
### HYG — Hygiene & Safety
`.gitignore` must cover `.env` and `.env.*` (keep `!.env.example`). Remove
real env files; replace inlined keys in `.cursor/mcp.json` with
`${ENV_VAR}` interpolation. Add LICENSE and commit the lockfile.
## After fixing
Re-run the scanner, report old level → new level, and if the user wants it
to stick, add the `--min-level` gate to CI so maturity only ratchets up.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · paladini/harness-score | 100 | MIT |
| magnus919/agent-skills | 100 | MIT |
| github/awesome-copilot | 100 | MIT |
| daochild/agents-config | 100 | MIT |
| jljleo/harness-check | 100 | MIT |
| paladini/harness-score | 100 | MIT |
| muratcankoylan/Agent-Skills-for-Context-Engineering | 100 | MIT |
| Fazerdino1/gravity-bridge | 100 | MIT |
| Mark393295827/third-brain-v7-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version edd4ac70794e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100harness
Builds a harness: a meta-skill that defines specialist agents and generates the skills they use. Trigger when the user (1) asks to 'build/set up/construct a harness', (2) asks for 'harness design' or 'harness engineering', (3) wants a harness-based automation system for a new… - 100harness-design
Decide where each piece of a Claude Code harness belongs (CLAUDE.md, rules, skills, hooks, subagents, scripts, MCP) with token budgets, then build the files from templates. Use when designing or building skills, agents, commands, hooks or CLAUDE.md for a harness or plugin, when… - 100harness
Stage map and operating rules for building or improving a Claude Code harness (skills, agents, commands, hooks, CLAUDE.md, scripts) with research, evals against a no-harness baseline, and cost optimization. Use at the start of any harness-building session, when the user asks to… - 100audit-harness
Analyzes this project's coding-agent harness (instruction files, skills, subagents, commands, hooks, MCP servers, plugins) against the session transcripts already saved on this machine, and suggests evidence-based changes. Use when the user asks to improve, audit or clean up… - 100init
Scaffold a complete harness for the current project — AGENTS.md, hooks, guardrails. Use when starting a new project or hardening an existing one. Triggers: /harn:init, 'set up harness', 'scaffold guardrails', 'create AGENTS.md - 100harness-audit
Audit an agent's harness against the four rings: containment, guides, sensors, permissions. Use when the user asks whether their agent setup is safe, wants a review of sandboxing / permissions / hooks / AGENTS.md guardrails, or asks what a bad session could break. Read-only:…