agent-harness-design
Designing agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool…
Score a project's agent harness across 5 subsystems (Instructions / State / Verification / Scope / Lifecycle), identify the bottleneck, and produce a prioritized improvement plan. Use when assessing if a project is ready to graduate to [LONG-RUN] status, when an agent keeps
$ npx -y skills add AnastasiyaW/codex-claude-code-config --skill harness-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/harness-auditContext preview
The summary Claude sees to decide when to auto-load this skill.
Score a project's agent harness across 5 subsystems (Instructions / State / Verification / Scope / Lifecycle), identify the bottleneck, and produce a prioritized improvement plan. Use when assessing if a project is ready to graduate to [LONG-RUN] status, when an agent keeps
name: harness-audit description: Score a project's agent harness across 5 subsystems (Instructions / State / Verification / Scope / Lifecycle), identify the bottleneck, and produce a prioritized improvement plan. Use when assessing if a project is ready to graduate to [LONG-RUN] status, when an agent keeps failing despite good models, or when adopting our stack on a new codebase. Do NOT use to design or build a new harness from scratch — this only scores an existing one; for greenfield harness/agent architecture use harness-design (or agent-harness-design). license: MIT
Trigger on phrases like: "audit my harness", "evaluate my agent setup", "score my CLAUDE.md", "is my project ready for long-run", "5-subsystem assessment", "what's missing from my project setup", "/harness-audit". Run proactively when joining an unfamiliar codebase that has agent artifacts (CLAUDE.md, .claude/, AGENTS.md) but obvious gaps. Skip for single-file scripts and pure exploration.
Score a project's agent harness across five subsystems and tell the user which evidenced bottleneck to address first. Distinguish an artifact's presence from demonstrated behavior; never present metadata alone as runtime proof.
**Source**: Five-subsystem framework adapted from [Learn Harness Engineering](https://walkinglabs.github.io/learn-harness-engineering/) (walkinglabs, MIT). Adapted to our concrete stack: CLAUDE.md, `.claude/rules/`, PROBLEMS.md, `feature_list.json`, `init.sh`, hooks, handoffs, chronicles.
Given a project directory, produces a scorecard like this. This example assumes `project-xyz` delivers features across sessions and uses pull requests:
=== Harness Audit: project-xyz ===
Instructions 4/5 ✓ Agent entrypoint and modular rules are documented and used
~ PR review guidance is not found in the inspected evidence
State 2/5 ✓ 3 handoffs preserve some continuation state
✗ No current record locates active scope and deferred work
~ PROBLEMS.md / feature_list.json are suitable conventions, not prerequisites
Verification 3/5 ✓ Documented test command; pytest is configured
~ No current execution receipt supplied
✗ No documented staged validation/proof route
Scope 3/5 ✓ in-scope principle in CLAUDE.md
~ shared-resource policy is unknown; no serialized lane is declared
✗ Definition of Done not explicit
Lifecycle 2/5 ✗ Needed session-boundary entry/stop behavior is not documented or demonstrated
~ Manual cleanup convention exists but not enforced
Bottleneck: State (2/5) — no current locator for feature scope and deferred work
Priority improvement (only when the user asks for recommendations):
- Record an execution receipt for the existing test command ↗ Verification evidenceFor an **audit-only** request, this skill produces the scorecard without making changes or running probes merely to convert `unknown` into a pass. If the user also requested correction or implementation, the scorecard is an intermediate result: return the confirmed findings to the owning task and execute its necessary, authorized reversible fixes, verification and delivery. Do not stop at a report or assign agent-owned fixes back to the user. Preserve the original acceptance criteria and real external/irreversible boundaries.
---
| Subsystem | Concrete files/conventions in our stack | |---|---| | **Instructions** | `CLAUDE.md` (root + `~/.claude/`), `.claude/rules/*.md` (project), `~/.claude/rules/*.md` (global), optional `REVIEW.md` | | **State** | `PROBLEMS.md`, `feature_list.json`, `.claude/handoffs/`, `.claude/chronicles/` | | **Verification** | a documented command plus current receipt appropriate to the target, tests/config where applicable, Proof Loop usage | | **Scope** | explicit in-scope/Definition of Done policy and a concurrency policy appropriate to the work | | **Lifecycle** | SessionStart hooks, Stop hooks (stop-test-gate, check-problems-md), cleanup convention |
See `references/checklist-per-subsystem.md` for per-subsystem concrete checks. See `references/scoring-rubric.md` for how to interpret 1-5 scores.
---
Read these files in order (skip silently if missing):
1. `CLAUDE.md` in project root 2. `AGENTS.md` in project root (some projects use this name) 3. `.claude/rules/*.md` (project-level rules) 4. `.claude/settings.json` and `.claude/settings.local.json` (hooks config) 5. `PROBLEMS.md` in root 6. `feature_list.json` in root 7. `init.sh` in root (and `Makefile` / `package.json` scripts as fallback) 8. `.claude/handoffs/` (count files, check `INDEX.md` existence) 9. `.claude/chronicles/` (count files) 10. Sample test config: `pytest.ini` / `package.json` test script / `Cargo.toml`
Use `Glob` + `Read` for the harness, then inspect the smallest relevant evidence path: a current test/CI receipt, hook execution trace, or sampled state artifact. This is not a broad code review; absence of behavioral evidence is `~ unknown`, not `✓ working`.
For each subsystem, first identify the project delivery model and applicable outcomes in `references/checklist-per-subsystem.md`. Mark every finding as `documented`, `demonstrated`, or `unknown`; score from evidence rather than file presence alone. The canonical files in the table are useful conventions, not universal prerequisites.
For each subsystem, list:
A practical configuration kit for Claude Code, Codex, and other coding agents. It contains architectural principles, enforcement hooks, skills, drop-in rules, starter templates, and dynamic-workflow commands.
Designing agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool…
Use when designing, auditing, refactoring, or explaining an agentic harness for any domain, especially when work must continue…
Практическая инженерия диффузионных моделей: архитектуры, обучение, инференс, оптимизация памяти. Использовать при любых задачах…
Expert prompt engineering for FLUX.2 [klein] image generation and editing model. Use this skill whenever the user wants to create…
Plan or review LoRA and edit-training work specifically for FLUX.2 Klein or Qwen-Image-Edit, including paired datasets,…
Forensic image-to-prompt compiler for image generation models. Use this skill whenever the user wants to: convert/describe an…