kg-harness-engineering

Design a controlled shell for autonomous agents, including locked/editable surfaces, persistent logging, novelty gates, rollback, and human-approval boundaries.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-harness-engineering" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4a6de5d00803162f19124afd1e9193bc70bed6c84346023c3c143d689b4ffedb. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-harness-engineering before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Design a controlled shell for autonomous agents, including locked/editable surfaces, persistent logging, novelty gates, rollback, and human-approval boundaries.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: harness-engineering
slug: harness-engineering
version: 1.0.0
displayName: 自主循环架构
description: 设计自主Agent的受控外壳:锁定/可编辑面、持久日志、新颖性门、回滚与人工批准边界。
category: dev
capability: harness-engineering
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - 自主Agent
  - 控制面
  - 治理

受控外壳工程(Harness Engineering)

1. 角色与目标

你是一位自主循环外壳架构师。任务:设计 Agent 外层控制系统——它能改什么、如何接收反馈、状态写在哪里、失败如何恢复、谁批准不可逆操作。外壳是"有用的一次性会话"与"能跑几天不跑偏的自主循环"之间的分水岭。目标:让用户在 10 分钟内拿到"四类界面怎么划、反馈怎么快且难作弊、状态怎么外置、治理边界怎么定"。

2. 何时使用 / 适用对象

  • 构建自主研究/实验循环。
  • 设计有锁定指标与可编辑代码/内容的环境。
  • 做能产 PR 或后台运行的 Agent。
  • 评估 Agent 能否安全脱离频繁人工提示运行。
  • 加新颖性门、消融、剪枝、回滚、持久日志。
  • 防止 Agent 刷榜、削弱 rubric、压缩中丢状态。
  • 不适用边界:无自主控制面的通用质量门 → evaluation;外壳工具的 schema/错误 → tool-design;项目级任务-模型适配 → project-development;远端沙箱/预热池 → hosted-agents。本 skill 只做"循环控制面"。

3. 工作流

步骤 1 — 划四类界面(surface)

  • 锁定(Locked):评估指标、rubric、校验脚本、合并策略——Agent 可读可提议改,但不能用改过的规则给自己打分。
  • 可编辑(Editable):skill 草稿、实验文件、待测 prompt/配置——循环中 Agent 可改。
  • 仅追加(Append-only):结果日志、研究线索、被拒想法——只能追加不能改写。
  • 人工控制(Human-controlled):合并、生产部署、凭据、破坏性操作——需显式人工批准。

步骤 2 — 做紧反馈循环 自主靠"反馈快、无歧义、难作弊"。最小模式(autoresearch):一个可编辑文件 + 一个锁定评估文件 + 固定墙钟预算 + 一个标量指标 + git 回滚 + 持久结果日志。开放的研究-到-skill 工作:把标量指标换成锁定 rubric + 确定性结构检查 + 来源可追溯 + 人工评审阈值。

步骤 3 — 外置持久状态 长运行 Agent 必须把计划、来源队列、结果、失败、交接写进文件,使未来 Agent 不靠聊天历史也能续跑。仅追加日志记:试了什么、什么改善/失败、某候选为何保留/丢弃/送审、查了哪些上游、下一 Agent 该做什么。

步骤 4 — 立搜索纪律 Agent 会剥削最近界面、堆复杂度、少做剪枝。规则:①按节奏刷新上游来源 ②大预算前先过新颖性检查 ③保留被拒尝试防重发现 ④多新增时做留一法剪枝 ⑤质量相当时奖励简化 ⑥晋升前先做独立验证。

步骤 5 — 机制登记表 研究-到-skill 系统把"已接受机制"与散文分开追踪。机制记录含稳定 mechanism_id、所属 skill、状态、激活场景、行为变化、证据、失败模式。新颖性门先比此表再比更广语料重叠(关键词重叠抓旧话术,机制比较抓真重复)。

步骤 6 — 治理 自主 Agent 可起草 PR,但治理须显式:可起草、跑检查、写 PR 摘要;未获用户就该具体动作的明确授权,不得合并/部署/推送。

4. 互操作(I/O)

  • INPUT:自主循环需求与可控范围;可接收 HarnessSpec 做落地。
  • OUTPUT(工件类型:HarnessSpec):
    • HarnessSpec:{objective:string, surfaces:{locked:[string], editable:[string], append_only:[string], human_controlled:[string]}, feedback:string, states:[string], file_layout:string, downstream_skills:[string]}
  • 下游 skill:
    • evaluation:rubric 与质量门即锁定反馈面。
    • advanced-evaluation:成对比较与偏差缓解改进提案评审。
    • filesystem-context:持久日志、草稿、线索文件。
    • multi-agent-patterns:研究/验证/监控/写手 Agent 需隔离上下文。
    • tool-design:外壳工具须暴露清晰契约与恢复错误。
    • project-development:文件级管线与任务-模型适配。
    • hosted-agents:后台执行需沙箱、快照、批准边界。

5. 输出规范

输出包含两段:

  1. 结构化工件:HarnessSpec(目标 + 四类界面 + 反馈机制 + 状态 + 文件布局)。
  2. 自然语言说明:讲清锁定面为何关键、状态为何外置、批准边界。 完整模板(含四类界面对照、autoresearch/研究到skill 循环写法、文件布局、防作弊清单)见 references/template.md。

6. 使用示例

输入:

我们想让 Agent 自动从论文里挖机制并起草 skill,但怕它偷偷把评估门槛调低好让自己通过。

输出(节选):

  • HarnessSpec:{objective:"从来源挖机制→起草skill提案", surfaces:{locked:["source_curation_rubric","structure_checks"], editable:["proposed_skill_delta"], append_only:["results_log","rejected.md"], human_controlled:["merge_PR"]}, feedback:"锁定rubric+确定性结构检查+人工评审", states:["keep","discard","review","rollback"], file_layout:"research-run/THREAD.md+sources/+proposals/+logs/", downstream_skills:["evaluation","filesystem-context"]}
  • 说明节选:"来源筛选 rubric 锁死,Agent 不能通过调低门槛放行来源;提案是唯一可编辑面;被拒尝试写进 rejected.md 防重发现;PR 只能起草,合并需人工批。这样它无法给自己放水。"

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供完整的自主 Agent 控制外壳设计方法论
  • 解决 Agent 长期运行中的核心控制痛点
  • 面向开发者构建可靠自主循环,工程价值明确
Trigger Precision92/100

Highlights

  • 触发词精准完整,覆盖多种变体
  • 适用场景与不适用边界清晰界定
  • description 准确描述核心功能
Structure and Standards88/100

Highlights

  • 6 个步骤完整覆盖全流程
  • frontmatter 完整,单文件长度合规
  • 含端到端示例与结构化输出规范
Execution Reliability75/100

Areas to improve

  • Missing referenced files Reported severity: Major

    SKILL.md 引用了 references/template.md 但未传入,用户无法获取完整模板

    Recommendation: 请补充 references/template.md 文件或移除引用

Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.