跳到正文
Skillpedia
智能体23k · #10140

harness-creator

它能做什么

这项技能指导你为 AI 编码智能体构建或审核代码仓库的设置,包括指令文件、进度跟踪、验证步骤和会话交接笔记。适合编码智能体会忘记上下文、偏离范围,或过早声称工作已完成的开发者。

适用场景

  • ✓当你的编码智能体在两次会话之间忘记了自己正在做什么时。
  • ✓当编码智能体声称工作已完成,却没有运行任何检查时。
  • ✓当你想为代码仓库添加 AGENTS.md 或 CLAUDE.md 指令以及进度笔记时。

技能链接

https://github.com/walkinglabs/learn-harness-engineering/blob/main/skills/harness-creator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/walkinglabs/learn-harness-engineering/blob/main/skills/harness-creator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的编码智能体在会话之间总是忘记项目状态,请为这个仓库设置一套简单的 harness。”

每周 5 个新技能,1 分钟读完。

工作原理

技能会检查已有的内容,只询问缺失的细节,然后添加一小组文件,涵盖指令、进度跟踪、验证命令和交接笔记。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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:

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.
  • --force only 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. The benchmark first runs a self-check — it scaffolds a throwaway harness and validates it, proving the bundled scripts work end-to-end — then scores the target and eval coverage. 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:

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.md or CLAUDE.md
  • feature_list.json
  • progress.md
  • init.sh
  • Optional session-handoff.md for multi-session work
  • Documented verification evidence or next action

If you cannot create files, provide exact file contents and commands instead.

常见问题

它会替我选择 AI 模型吗?

不会。技能说明,它不负责模型选择,也不负责一般的应用架构。

它会创建很多文件吗?

不会。它建议先从最精简的 harness 开始,只有问题需要时才增加更多内容。

它使用哪些文件?

指令使用 AGENTS.md 或 CLAUDE.md,状态跟踪使用功能列表和进度笔记等文件。

详情

作者的原始描述

Build, audit, and improve harnesses that make AI coding agents reliable: AGENTS.md/CLAUDE.md instruction files, feature/state tracking, verification gates, scope boundaries, session handoff, memory persistence, context budgets, tool-permission safety, and multi-agent coordination. Use this whenever a coding agent is unreliable across sessions — forgets context, drifts out of scope, claims "done" before tests pass, or starts each session inconsistently — or when creating or assessing AGENTS.md, CLAUDE.md, feature_list.json, init.sh, progress.md, or session-handoff files. Reach for it even if th

repo: walkinglabs/learn-harness-engineering

热度

GitHub 星标
23k
排名
#10140
许可证
MIT
更新时间
2026/10/22

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能