harness-engineering

harness-engineering is a skill for Claude Code from paladini/harness-score. It costs 55 tokens per session (931 once invoked), scanned B, original, MIT.

A guide for improving a repository's AI coding setup, including its agent instructions, reusable skills, commands, hooks, safety rules, and automated checks.

In plain words
What is it for?
Use it to audit or improve files such as AGENTS.md, rules, skills, commands, hooks, CI checks, and other agent guardrails.
Why use it?
It helps find and fix missing guidance or safeguards so coding agents work more reliably in the repository.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PROJECT_DIR} variable. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the harness-score plugin — 1 skill, 1 command shipped together

Good fit Use it to audit or improve files such as AGENTS.md, rules, skills, commands, hooks, CI checks, and other agent guardrails.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paladini/harness-score/harness-engineering
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add paladini/harness-score --skill harness-engineering
Clone the repo
git clone --depth 1 https://github.com/paladini/harness-score

Made for: Claude Code.

Or install harness-score, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harness-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/paladini/harness-score/harness-engineering/github.svg)](https://agentmods.dev/skills/paladini/harness-score/harness-engineering)
Your own site
<a href="https://agentmods.dev/skills/paladini/harness-score/harness-engineering"><img src="https://agentmods.dev/badge/skills/paladini/harness-score/harness-engineering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harness-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/paladini/harness-score/harness-engineering"><img src="https://agentmods.dev/badge/skills/paladini/harness-score/harness-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 931 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 66
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 14
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 80
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00931
Opus 5.5 $0.00022 $0.00372
Sonnet 5.5 $0.00011 $0.00186
Haiku 4.5 $0.00006 $0.00093

Measured 3mo ago against content hash 69ebf52dc1b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

harness-engineering scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

the command against a destructive-pattern regex (rm -rf on roots, git push

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/claude-code/skills/harness-engineering/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 "".
  • 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.

For guidance scoped to part of the tree, add a nested CLAUDE.md inside that subdirectory — Claude Code loads it automatically when working in that subtree, the same idea as glob-scoped rules in other tools, just directory-scoped instead of pattern-scoped.

SKL — Skills & Commands

For the team's most repeated procedure, create .claude/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 .claude/commands/<verb>.md for human-triggered workflows like /review.

HKS — Hooks & Guardrails

Register hooks in .claude/settings.json's "hooks" key:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [{ "type": "command", "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/guard-shell.js" }]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [{ "type": "command", "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/format-on-edit.js" }]
      }
    ]
  }
}

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 92 lines · 55 tokens per session scan B 69ebf52dc1b9

Subscribe to this mod's changes

harness-engineering is a skill published in the GitHub repository paladini/harness-score (645 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 931 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

harness-engineering compared with skills from other repositories

harness-engineering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
harness-engineeringpaladini/harness-scoreSkill645yesterdayMITB55Claude Code
user-research-cookiycookiy-ai/user-research-skillSkill1.6k20d agoMITA154Claude Code, Codex
best-practicesMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA35Claude Code, Codex
Agent Browser AutomationPramodDutta/qaskillsSkill25329d agoMITA37Claude Code, Codex
curate-a-team-libraryMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA49Claude Code, Codex
migrate-skills-between-librariesMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA36Claude Code, Codex
audit-library-healthMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA33Claude Code, Codex