返回顶部
h

harness-engineering利用工程化

Evolve an existing repository toward Harness Engineering by making it more legible to agents, moving critical knowledge into repo-local artifacts, adding predictable structure, and replacing policy-only documentation with executable checks. Use when Codex is asked to audit a live codebase against Harness Engineering ideas, strengthen AGENTS.md and docs, add runnable governance and CI checks, or incrementally reduce hidden context and architectural drift without rewriting the project from scratch

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
257
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

harness-engineering

技能名称: harness-engineering
详细描述:

线束工程

将现有仓库逐步演进为线束工程,而非假装必须从空白模板重建。
优先采用仓库本地知识、可预测的结构和可执行的检查,而非依赖理想化的文档和隐藏的上下文。

工作流程

1. 审计当前仓库

  • - 阅读 AGENTS.md 和 docs/ 下的顶层文档。
  • 识别缺失的真相来源工件、无效引用、占位CI以及特定于技术栈的假设。
  • 确认仓库是真实应用、治理层还是入门模板。
  • 尽可能保留现有的产品和运行时结构。不要强行将绿地布局强加于成熟的代码库。

2. 建立最低限度的仓库本地工件

  • - 保持 AGENTS.md 简短且类似地图。
  • 仅添加能实质性提升代理可读性的缺失工件,例如:
- docs/ARCHITECTURE.md - docs/core-beliefs.md - docs/quality-score.md - docs/observability.md - docs/worktrees.md - docs/skills.md - docs/product-specs/index.md - docs/product-specs/template.md - docs/exec-plans/index.md - docs/exec-plans/template.md - docs/exec-plans/tech-debt-tracker.md - docs/generated/README.md
  • - 根据仓库的成熟度匹配工件集。小型服务可能比大型多领域产品需要的文档更少。
  • 如果引用了生成的工件但尚未生成,则添加明确的占位符,而非留下无声的缺口。

3. 用强制执行替代仅基于策略的声明

  • - 必要时使用仓库现有的技术栈,但在不与项目冲突时,优先使用 bun 处理轻量级治理脚本。
  • 添加可执行检查,用于验证必需文件、过期占位符、损坏的引用以及明显的契约漂移。
  • 配置CI,使其在每次推送和拉取请求时运行这些检查。
  • 不要将“稍后运行lint”之类的注释作为唯一的质量门控。

4. 保持通用性

  • - 当仓库已处于活跃使用时,保留真实项目名称、领域和运行时细节。
  • 仅移除偶然的一次性假设、过时的部落知识和未记录的约定。
  • 编写文档,使未来的代理能够直接从仓库继续工作。
  • 优先采用渐进式加固,而非大规模重写。

5. 使仓库对代理可读

  • - 为每类知识保留一个清晰的位置。
  • 将产品意图放在 docs/product-specs/ 中。
  • 将多步骤交付工作放在 docs/exec-plans/ 中。
  • 将详细的外部库说明放在 docs/references/ 中。
  • 优先采用明确的目录约定,而非巧妙的局部变体。

6. 验证模板

  • - 运行 bun run template:check 或项目等效命令。
  • 在停止前修复所有硬性失败。
  • 仅当警告确实可选时,才将其视为待办事项。
  • 如果仓库不是git检出,则注明无法报告git状态。

编辑规则

  • - 在文档中使用祈使语气。
  • 优先采用简洁的清单,而非长篇论述。
  • 保持示例与 bun 一致。
  • 除非代码实际更新了指标、评分或自动化,否则避免声称其是“自动的”。
  • 当模板引用了新项目稍后才会生成的工件时,添加占位符文件。

参考

在编辑或审查模板仓库时,如需紧凑的审计清单,请阅读 references/checklist.md

交付物

  • - 更新后的仓库本地文档
  • 补充缺失的占位符工件
  • 可执行的验证或治理检查
  • 配置CI以运行实际检查
  • 一份简短总结,说明哪些内容现已支持线束工程,哪些仍依赖于隐藏上下文

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 harness-engineering-1776120150 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 harness-engineering-1776120150 技能

通过命令行安装

skillhub install harness-engineering-1776120150

下载

⬇ 下载 harness-engineering v1.0.0(免费)

文件大小: 4.75 KB | 发布时间: 2026-4-15 12:59

v1.0.0 最新 2026-4-15 12:59
Initial release. Introduces the Harness Engineering skill for evolving repositories with agent-friendly structure and executable governance.

- Documents a step-by-step workflow for auditing and improving repositories.
- Emphasizes repo-local artifacts, incremental add-ons, and clear structure (not greenfield rewrites).
- Recommends replacing policy-only docs with executable checks and wiring them into CI.
- Provides detailed artifact templates and editing rules for legibility and agent continuity.
- Supplies audit and delivery checklists to guide repository improvement.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部