Harness 创建
- 作者仓库星标 7,591
- 作者仓库 learn-harness-engineering
Harness Creator
Use this skill to make a repository easier for coding agents to start, stay in scope, verify work, and resume across sessions. Keep the harness small enough that agents actually follow it.
Not for model selection, prompt tuning in isolation, chat UI design, or general app architecture.
Core Model
Every useful coding-agent harness has five subsystems:
| Subsystem | Minimal artifact | Purpose |
|---|---|---|
| Instructions | AGENTS.md or CLAUDE.md |
Startup path, working rules, definition of done |
| State | feature_list.json, progress.md |
Current feature, status, evidence, next step |
| Verification | init.sh or documented commands |
Tests/checks the agent must run before claiming done |
| Scope | Feature dependencies and done criteria | Prevents overreach and half-finished work |
| Lifecycle | session-handoff.md, end-of-session routine |
Makes the next session restartable |
First Move
- Inspect what already exists: instruction files, feature/state files, verification commands, docs, package manifests.
- Ask only for missing context that cannot be inferred safely: target agent, desired file name, tolerance for structure, and whether overwriting is allowed.
- Prefer a minimal harness first. Add memory, tool safety, multi-agent, or benchmark details only when the user's problem calls for them.
Common Tasks
Create a harness
Use the bundled script when working on a local repository:
node skills/harness-creator/scripts/create-harness.mjs --target /path/to/project
Options:
--agent-file CLAUDE.mdfor Claude-oriented projects.--package-manager npm|pnpm|yarn|bunwhen detection is wrong.--commands "cmd one,cmd two"for custom verification.--forceonly after confirming overwrites are acceptable.
Then explain what was created and how the user should replace placeholder feature entries.
Audit an existing harness
Run:
node skills/harness-creator/scripts/validate-harness.mjs --target /path/to/project
Report the five subsystem scores, the lowest-scoring area, and the first 2-3 changes that would improve reliability. Treat the lowest score as a candidate bottleneck; confirm with failures, logs, or task outcomes before claiming causality.
Produce a report
Use when the user wants a shareable assessment:
node skills/harness-creator/scripts/render-assessment-html.mjs --target /path/to/project
node skills/harness-creator/scripts/run-benchmark.mjs --target /path/to/project --html /path/to/report.html
Be clear that this is a structural benchmark. Real effectiveness still needs before/after agent sessions on representative tasks.
When to Read References
Load only the reference needed for the user's problem:
- Memory across sessions: Memory Persistence
- Reusable workflows as skills: Skill Runtime
- Permissions, tools, concurrency: Tool Registry & Safety
- Context budget and progressive disclosure: Context Engineering
- Delegation and parallel agents: Multi-Agent Coordination
- Hooks, startup, long-running work: Lifecycle & Bootstrap
- Non-obvious failure modes: Gotchas
Design Rules
- Keep the root instruction file short: routing and invariants, not a full manual.
- Put project facts in project docs, not in the skill.
- Make verification commands explicit and runnable.
- Require evidence before marking a feature done.
- Use one active feature unless the harness has explicit multi-agent ownership boundaries.
- Prefer append/update state files over relying on chat history.
- Never hide destructive behavior in scripts; overwrites require explicit user approval.
Deliverable Checklist
For a usable minimal harness, leave the target project with:
-
AGENTS.mdorCLAUDE.md -
feature_list.json -
progress.md -
init.sh - Optional
session-handoff.mdfor multi-session work - Documented verification evidence or next action
If you cannot create files, provide exact file contents and commands instead.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @walkinglabs · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- Node.js
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Every useful coding-agent harness has five subsystems: Subsystem · Minimal artifact · Purpose Instructions · AGENTS.md or CLAUDE.md · Startup path, working rules, definition of done
Inspect what already exists: instruction files, feature/state files, verification commands, docs, package manifests. Ask only for missing context that cannot be inferred safely: target agent, desired file name, tolerance for structure, and whether overwriting…
Common Tasks
Use the bundled script when working on a local repository: Options: --agent-file CLAUDE.md for Claude-oriented projects.
Run: Report the five subsystem scores, the lowest-scoring area, and the first 2-3 changes that would improve reliability. Treat the lowest score as a candidate bottleneck; confirm with failures, logs, or task outcomes before claiming causality.
Use when the user wants a shareable assessment: Be clear that this is a structural benchmark. Real effectiveness still needs before/after agent sessions on representative tasks.
# Harness Creator
Use this skill to make a repository easier for coding agents to start, stay in scope, verify work, and resume across sessions. Keep the harness small enough that agents actually follow it.
Not for model selection, prompt tuning in isolation, chat UI design, or general app architecture.
## Core Model
Every useful coding-agent harness has five subsystems:
| Subsystem | Minimal artifact | Purpose |
|---|---|---|
| Instructions | `AGENTS.md` or `CLAUDE.md` | Startup path, working rules, definition of done |
| State | `feature_list.json`, `progress.md` | Current feature, status, evidence, next step |
| Verification | `init.sh` or documented commands | Tests/checks the agent must run before claiming done |
| Scope | Feature dependencies and done criteria | Prevents overreach and half-finished work |
| Lifecycle | `session-handoff.md`, end-of-session routine | Makes the next session restartable |
## First Move
1. Inspect what already exists: instruction files, feature/state files, verification commands, docs, package manifests.
2. Ask only for missing context that cannot be inferred safely: target agent, desired file name, tolerance for structure, and whether overwriting is allowed.
3. Prefer a minimal harness first. Add memory, tool safety, multi-agent, or benchmark details only when the user's problem calls for them.
## Common Tasks
### Create a harness
Use the bundled script when working on a local repository:
```bash
node skills/harness-creator/scripts/create-harness.mjs --target /path/to/project
```
Options:
- `--agent-file CLAUDE.md` for Claude-oriented projects.
- `--package-manager npm|pnpm|yarn|bun` when detection is wrong.
- `--commands "cmd one,cmd two"` for custom verification.
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Core Model → First Move → Common Tasks → Create a harness → Audit an existing harness → Produce a report
要点 -> Use this skill to make a repository easier for coding agents to start, stay in scope, verify work, and resume across sessions. · Not for model selection, prompt tuning in isolation, chat UI design, or general app architecture. · 1. Inspect what already exists: instruction files, feature/state files, verification commands, docs, package manifests. · - --agent-file CLAUDE.md for Claude-oriented projects. · Then explain what was created and how the user should replace placeholder feature entries. · Report the five subsystem scores, the lowest-scoring area, and the first 2-3 changes that would improve reliability. · Be clear that this is a structural benchmark. · - Keep the root instruction file short: routing and invariants, not a full manual.
文件/命令 -> AGENTS.md · CLAUDE.md · featurelist.json · progress.md · init.sh · session-handoff.md · --agent-file CLAUDE.md · --package-manager npm|pnpm|yarn|bun
内容 SHA-256 -> 2bb35f0c2f43
方法与流程
适用与边界
原文中的明确线索
AGENTS.md、CLAUDE.md、featurelist.json、progress.md、init.sh、session-handoff.md、--agent-file CLAUDE.md、--package-manager npm|pnpm|yarn|bun