Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

harness-creator马具创造者

Agent Skill

harness-creator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,836

周安装

75

GitHub Stars

2,294

下载量

594
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:harness-creator(马具创造者)
来源仓库:https://github.com/walkinglabs/learn-harness-engineering
仓库路径:skills/harness-creator
安装命令:
npx skills add https://github.com/walkinglabs/learn-harness-engineering --skill harness-creator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/walkinglabs/learn-harness-engineering --skill harness-creator

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更进行整理。
  • 通过 GitHub 安装,需结合来源仓库和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 涉及敏感操作时,应先确认最小权限和操作边界。

SKILL.md

Harness Creator

Production harness engineering for AI coding agents.

For: Engineers building or extending coding-agent runtimes, custom agents, multi-session workflows, or anyone who wants their agent to work reliably across sessions.

Not for: Prompt engineering, model selection, generic software architecture, or one-off agent tasks.

All principles are grounded in the Learn Harness Engineering framework and production agent runtime decisions.


Harness Creator(中文版)

面向 AI 编程代理的生产级 Harness 工程技能。

适用人群: 构建或扩展编程代理运行时、自定义代理、多会话工作流的工程师,或任何希望代理跨会话可靠工作的人。

不适用场景: 提示工程、模型选择、通用软件架构或一次性代理任务。

所有原则均基于 Learn Harness Engineering 框架和生产代理运行时决策。


Choose Your Problem

If you want to...Read
Make the agent remember corrections and project rules between sessionsMemory Persistence
Package reusable workflows and domain knowledgeSkill Runtime
Let the agent work powerfully but not dangerouslyTool Registry & Safety
Give the agent the right context at the right costContext Engineering
Split work across multiple agents without chaosMulti-agent Coordination
Extend behavior with hooks, background tasks, startup logicLifecycle & Bootstrap
Build the complete 5-subsystem harnessFive Subsystems Guide

Before you start building: Read the Gotchas — these are the non-obvious failure modes that cost the most time.


选择你要解决的问题

如果你想...阅读
让代理在会话之间记住修正和项目规则记忆持久化
打包可重复使用的工作流和领域知识技能运行时
让代理强大但安全地工作工具注册与安全
以合适的成本给代理合适的上下文上下文工程
在多个代理之间分配工作而不混乱多代理协调
使用 hooks、后台任务、启动逻辑扩展行为生命周期与引导
构建完整的 5 子系统 harness五子系统指南

开始构建之前: 阅读 陷阱 — 这些是最耗时的非明显失败模式。


The Five-Subsystem Harness Framework

Every harness consists of five subsystems:

  1. Instructions (Recipe Shelf): AGENTS.md, CLAUDE.md, docs/ hierarchy
  2. State (Prep Station): feature_list.json, progress.md, session-handoff.md
  3. Verification (Quality Check Window): Verification commands, test suites, type checks
  4. Scope (Task Boundaries): One-feature-at-a-time policies, definition of done
  5. Lifecycle (Session Management): init.sh, clean-state checklists, handoff procedures

When creating or improving a harness, systematically address each subsystem.


Creating a Harness

Phase 1: Context Gathering

Start by understanding the user's situation:

  1. What project is this for? (tech stack, size, complexity)
  2. What agent tool are they using? (Claude Code, Codex, Cursor, etc.)
  3. What exists already? (any AGENTS.md, progress tracking, verification?)
  4. What problems are they experiencing? (agent overreach, lost context, broken tests?)
  5. What's the team's tolerance for structure? (minimal vs. comprehensive)

If the user hasn't provided this context, ask before proceeding.

Phase 2: Harness Assessment (Existing Projects)

If the user has an existing harness, assess it using the five-tuple framework:

For each subsystem, score 1-5:

  • 5: Exemplary, documented, consistently followed
  • 4: Good, mostly complete, occasional gaps
  • 3: Adequate, covers basics, missing polish
  • 2: Weak, incomplete, inconsistently applied
  • 1: Missing or actively harmful

Identify the lowest-scoring subsystem — that's the bottleneck. Focus improvement efforts there first.

Phase 3: Design

Based on the assessment, design the harness components:

Instructions:

  • Create a short AGENTS.md (~50-100 lines) as the routing layer
  • Link to detailed docs in docs/ directory (ARCHITECTURE.md, PRODUCT.md, etc.)
  • Define startup workflow: what the agent reads before coding

State:

  • Create feature_list.json with feature definitions and status tracking
  • Create or update progress.md for session continuity
  • Design session-handoff.md template if needed

Verification:

  • List explicit verification commands in AGENTS.md
  • Ensure init.sh runs verification
  • Design quality score tracking if appropriate

Scope:

  • Define one-feature-at-a-time policy
  • Document feature dependencies
  • Create definition of done checklist

Lifecycle:

  • Create init.sh for initialization
  • Design clean-state checklist
  • Document session handoff procedure

Phase 4: Implementation

Create the harness files. Use bundled scripts where available:

# Use bundled scripts from scripts/ directory
# (See scripts/ section for available tools)

Phase 5: Testing and Benchmarking

Test the harness with real agent sessions:

  1. Baseline: Run a representative task without the harness
  2. With Harness: Run the same task with the harness
  3. Measure: Success rate, time, token usage, rework
  4. Compare: Quantify the improvement

For rigorous benchmarking, see the "Running Benchmarks" section below.


Harness File Templates

AGENTS.md Structure

A minimal AGENTS.md should include:

# AGENTS.md

[One-sentence project purpose]

## Startup Workflow

Before writing code:
1. [Step 1: e.g., Read this file]
2. [Step 2: e.g., Read ARCHITECTURE.md]
3. [Step 3: e.g., Run ./init.sh]
4. [Step 4: e.g., Read feature_list.json]

## Working Rules

- [Rule 1: e.g., One feature at a time]
- [Rule 2: e.g., Verification required before claiming done]
- [Rule 3: e.g., Update progress before ending session]

## Required Artifacts

- `feature_list.json`: Feature state tracker
- `progress.md`: Session continuity log
- `init.sh`: Standard startup and verification

## Definition of Done

A feature is done when:
- [ ] Implementation complete
- [ ] Verification passed
- [ ] Evidence recorded
- [ ] Repository restartable

## End of Session

Before ending:
1. Update progress.md
2. Update feature_list.json
3. Record blockers/risks
4. Commit with descriptive message
5. Leave clean restart path

feature_list.json Structure

{
  "features": [
    {
      "id": "feat-001",
      "name": "Document Import",
      "description": "Allow users to import PDF and TXT documents",
      "dependencies": [],
      "status": "done",
      "evidence": "tests pass, manual verification on 2024-01-15"
    },
    {
      "id": "feat-002",
      "name": "Document Chunking",
      "description": "Split documents into ~500 char chunks with metadata",
      "dependencies": ["feat-001"],
      "status": "in-progress",
      "evidence": ""
    }
  ]
}

init.sh Structure

#!/bin/bash
set -e

echo "=== Installing dependencies ==="
npm install

echo "=== Running type check ==="
npm run check

echo "=== Running tests ==="
npm test

echo "=== Building application ==="
npm run build

echo "=== Verification complete ==="

Running Benchmarks

To measure harness effectiveness:

Step 1: Define Representative Tasks

Pick 2-3 tasks that are:

  • Real work the user would actually do
  • Challenging enough to fail without proper harness
  • Verifiable (clear success criteria)

Step 2: Run Comparative Sessions

For each task:

  • Without Harness: Run the task on a clean repo copy
  • With Harness: Run the same task with the harness in place

Record:

  • Success/failure
  • Time taken
  • Token usage
  • Rework required
  • Session restarts needed

Step 3: Aggregate Results

Calculate:

  • Success rate improvement
  • Time efficiency change
  • Token efficiency change
  • Qualitative feedback

Step 4: Iterate

Use results to identify:

  • Which harness components add most value
  • Which components are over-engineered
  • Where to focus improvement efforts

Bundled Resources

References (Deep-Dive Patterns)

DocumentCovers
Memory PersistenceFour-level instruction hierarchy, auto-memory taxonomy, background extraction
Context EngineeringSelect / Compress / Isolate / Write operations, budget management
Tool RegistryFail-closed registration, per-call concurrency, permission pipeline
Multi-AgentCoordinator / Fork / Swarm patterns, context sharing
Lifecycle & BootstrapHook system, long-running tasks, dependency-ordered init
Gotchas15 non-obvious failure modes with fixes

Templates

  • templates/agents.md — AGENTS.md / CLAUDE.md skeleton
  • templates/feature-list.json — Feature state tracker
  • templates/init.sh — Standard initialization script
  • templates/progress.md — Session progress log
  • templates/session-handoff.md — Session handoff template

Scripts (Optional)

  • scripts/create-harness.ts — Generate harness files from templates
  • scripts/validate-harness.ts — Check harness completeness
  • scripts/run-benchmark.ts — Execute harness effectiveness comparison

Gotchas

Non-obvious principles that will cause bugs if you violate them:

  1. Memory index caps fire silently — Long entries invisible once cap hit. Keep hooks to one line.
  2. Priority ordering counterintuitive — Local beats project beats user beats org. Test full stack.
  3. Extraction timing creates race window — User can start next turn before background extraction completes.
  4. Derivable content doesn't belong in memory — Architecture and code patterns are in the repo already.
  5. Concurrent classification is per-call, not per-tool — Same tool safe for some inputs, unsafe for others.
  6. Permission evaluation has side effects — Tracks denials, transforms modes, updates state.
  7. Most async work skips "pending" state — Work units register directly as "running".
  8. Fork children must not fork — Recursive guard preserves single-level invariant.
  9. Context builders memoized but manually invalidated — Add invalidation or face staleness.
  10. Hook trust all-or-nothing — One untrusted hook disables entire extension system.
  11. Eviction requires notification — Terminal work unit only GC-eligible after parent notified.
  12. Skill listing budgets tight — Front-load distinctive trigger language, tails get cut.

Full guide: Gotchas — 15 failure modes with fixes.

陷阱(Gotchas)

违反这些非明显原则会导致 bug:

  1. 记忆索引上限静默触发 — 条目过长超上限后不可见。保持钩子单行。
  2. 优先级顺序反直觉 — 本地胜过项目胜过用户胜过组织。测试完整栈。
  3. 提取时序产生竞争窗口 — 用户可在后台提取完成前开始下一轮。
  4. 可推导内容不应存入记忆 — 架构和代码模式已在仓库中。
  5. 并发分类按调用而非按工具 — 同一工具对某些输入安全,对其他不安全。
  6. 权限评估有副作用 — 跟踪拒绝、转换模式、更新状态。
  7. 大多数异步工作跳过"pending"状态 — 工作单元直接注册为"运行中"。
  8. Fork 子节点不能 Fork — 递归防护保持单层不变量。
  9. 上下文构建器缓存但手动失效 — 添加失效或面对过时。
  10. Hook 信任全有或全无 — 一个不可信 hook 禁用整个扩展系统。
  11. 驱逐需要通知 — 终端工作单元仅在父节点通知后可 GC。
  12. Skill 列表预算紧张 — 前置独特触发语言,尾部被截断。

完整指南陷阱 — 15 种失败模式及修复方法。


When to Use This Skill

Use this skill when:

  • User says "I need to set up AGENTS.md for my project"
  • User wants to improve their agent's reliability
  • User is experiencing agent failures, lost context, or broken work
  • User asks "how do I make my agent work better?"
  • User wants to benchmark harness effectiveness
  • User needs templates for harness files
  • User is following the Learn Harness Engineering course

Communication Style

  • Explain harness concepts in practical terms (kitchen analogy works well)
  • Focus on measurable outcomes, not theoretical perfection
  • Start minimal, add structure as needed
  • Show before/after comparisons to build confidence
  • Acknowledge tradeoffs (more structure = more reliability but more upfront work)

Getting Started

If the user is new to harness engineering:

  1. Start with assessment: Run the five-tuple assessment on their current setup
  2. Pick lowest-scoring subsystem: Focus improvement efforts there first
  3. Create minimal viable harness: AGENTS.md + init.sh + feature_list.json
  4. Test with real task: Measure before/after improvement

If the user is experienced:

  1. Ask what specific problem: Don't assume — let them describe the pain point
  2. Understand harness maturity: What exists already? What's working?
  3. Design targeted improvements: Use reference patterns for guidance
  4. Optionally run benchmarks: Quantify impact with before/after comparison

When NOT to Use This Skill

This skill is about the harness around an agent, not:

  • Prompt engineering or system prompt design
  • Model selection or fine-tuning
  • Generic software architecture (MVC, microservices)
  • Chat UIs or conversational interfaces
  • LLM API integration basics

If your question is about the model itself rather than the system around it, this skill does not apply.


Further Resources


Further Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.22%
按下载量换算209

Claude

32.68%
按下载量换算194

Cursor

18.33%
按下载量换算109

Gemini CLI

10.12%
按下载量换算60

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills