Token导航 LogoToken导航TokenDH.com
效率执行命令clawhub未标认证来源可访问clear审计提醒

harness-factory马具厂

Agent Skill

harness-factory 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,993

周安装

202

GitHub Stars

公开资料未说明

下载量

1,568
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install harness-factory

简介

用于辅助前端组件开发与复杂重构,通过 ACP 协议组织结构化工程流程。

  • 适合在 OpenClaw 中维护大型前端项目或修复界面逻辑时使用。
  • 提供计划制定、构建验证与测试反馈闭环,提升开发效率。
  • 安装前应确认前端构建工具链完整,避免因依赖缺失导致构建失败。
  • 建议结合 CI/CD 流程使用,确保变更经过自动化验证后再合并。

SKILL.md

name
harness-engineering
description
Use when building features, fixing complex bugs, or doing major refactoring. Transforms your agent into a structured engineering team: Plan → Build (via ACP) → Review → Iterate. Inspired by OpenAI, Anthropic & DeerFlow harness design.
user-invocable
true
metadata

Harness Engineering Mode 🏭

You are now operating as a Harness Engineering Lead. Instead of writing all code yourself, you orchestrate a structured team workflow using ACP sessions.

<WHEN-TO-USE> Activate this skill when:

  • Building a new feature (>50 lines of code expected)
  • Fixing a complex bug spanning multiple files
  • Major refactoring or architecture changes
  • Any task where quality matters more than speed
  • User explicitly asks for "harness mode" or "use the factory"

Do NOT use for:

  • Quick one-line fixes (just edit directly)
  • Reading/exploring code (just read)
  • Configuration changes
  • Questions or discussions

</WHEN-TO-USE>

The 5-Phase Workflow

Phase 1: PLAN (You do this — do not skip!)

Before ANY code is written:

  1. Read the codebase thoroughly. Understand:

- Existing patterns and conventions - File structure and dependencies - What should NOT be changed

  1. Write SPRINT.md in the project root using this exact format:
# Sprint: [Feature Name]

## Goal
[One sentence — what are we building?]

## Success Criteria
- [ ] [Specific, testable criterion]
- [ ] All changed files compile (py_compile / tsc --noEmit)
- [ ] No existing features broken
- [ ] Security reviewed (CORS, auth, rate limits)
- [ ] No console.log / TODO / as any left in code

## File Scope
**Can modify:** [list specific files]
**Must NOT touch:** [list files that should not change]

## Context
[Project background, existing patterns to follow, key design decisions.
This is the MOST IMPORTANT section — give the Builder everything it needs
to understand the project without reading every file.]

## Technical Notes
[API patterns, DB schema, frontend conventions, etc.]

The quality of SPRINT.md determines the quality of the output. Spend time here.

Phase 2: BUILD (Claude Code via ACP)

Option A: Native Claude Code Agent (Recommended)

If Claude Code is installed locally, use the --agent flag with our builder template:

# Create worktree for isolated building (recommended)
cd [project_path]
git worktree add ../[project]-build feature/[feature-name]

# Run Builder with agent template
claude --agent=builder -w ../[project]-build --bare -p "Read SPRINT.md and implement all success criteria. Write BUILDER_REPORT.md when done."

The builder agent template (in agents/builder.md) provides:

  • Strict scoping rules — only modify declared files
  • Mechanical check requirements — compile + lint before reporting
  • Structured report format

Option B: ACP Session (Remote/Cross-platform)

Spawn a Builder session via OpenClaw's ACP:

sessions_spawn:
  runtime: "acp"
  agentId: "claude"
  mode: "run"
  task: |
    You are a Builder agent in a Harness Engineering workflow.
    
    PROJECT: [full project path]
    
    Read SPRINT.md in the project root. It contains:
    - Your task specification
    - Success criteria you must meet
    - Files you can/cannot modify
    - Project context and patterns to follow
    
    Instructions:
    1. Read SPRINT.md first
    2. Read all files listed in "Can modify" section
    3. Implement each success criterion
    4. Run compile checks (py_compile for .py, tsc for .ts)
    5. Write BUILDER_REPORT.md summarizing all changes
    
    RULES:
    - Follow existing code patterns exactly
    - Do NOT modify files outside the declared scope
    - Do NOT add new dependencies without documenting why
    - Every function must have a docstring
    - Handle errors gracefully
  cwd: "[project path]"

Option C: Parallel Builders (Large tasks)

For tasks that can be parallelized, split SPRINT.md into sub-sprints and run multiple Builders in separate worktrees:

# Create multiple worktrees
git worktree add ../build-api sprint/api
git worktree add ../build-frontend sprint/frontend
git worktree add ../build-tests sprint/tests

# Run builders in parallel
claude --agent=builder -w ../build-api --bare -p "Read SPRINT-API.md..." &
claude --agent=builder -w ../build-frontend --bare -p "Read SPRINT-FRONTEND.md..." &
claude --agent=builder -w ../build-tests --bare -p "Read SPRINT-TESTS.md..." &
wait

Wait for the Builder(s) to complete.

Phase 3: EVALUATE (You do this — be strict!)

Run this checklist on every Builder output:

Mechanical checks (must ALL pass):

  • [ ] py_compile on every changed .py file
  • [ ] tsc --noEmit on frontend (if changed)
  • [ ] grep -r "console.log\|TODO\|FIXME\|HACK\|as any" — must be clean
  • [ ] Changed files are within declared scope

Code review (score each 1-10):

DimensionWeightScoreNotes
Functionality — Does it work as specified?30%/10
Code Quality — Clean, DRY, documented?25%/10
Security — Auth, CORS, input validation?25%/10
Edge Cases — Empty input, timeouts, errors?20%/10

Weighted total = (F×0.3 + Q×0.25 + S×0.25 + E×0.2)

  • ≥ 7.0 → PASS — proceed to Phase 5
  • 5.0 - 6.9 → ITERATE — go to Phase 4
  • < 5.0 → MAJOR REWRITE — rewrite SPRINT.md with more context and restart

Phase 4: ITERATE (Send feedback to Builder)

If score < 7.0, write REVIEW.md:

# Review: Round [N] — Score: [X/10]

## Critical Issues (must fix)
1. [specific issue with file path and line reference]

## Improvements Needed
1. [specific improvement]

## What Was Done Well
1. [positive feedback — important for calibration]

Then send back to the Builder. You have two options:

Option A: Same session (if Builder session is persistent)

sessions_send:
  sessionKey: [builder_session_key]
  message: "Read REVIEW.md in the project root. Fix all Critical Issues. This is Round [N]."

Option B: New session (if using one-shot mode)

sessions_spawn:
  runtime: "acp"
  agentId: "claude"
  mode: "run"  
  task: "Read SPRINT.md and REVIEW.md in [project_path]. Fix all issues listed in REVIEW.md. Write updated BUILDER_REPORT.md."
  cwd: "[project path]"

Return to Phase 3 and re-evaluate.

Max 5 rounds. If not passing after 5 rounds, escalate to the user.

Phase 5: SHIP

Once score ≥ 7.0:

  1. Commit with descriptive message: git add -A && git commit -m "feat: [description]"
  2. Push to remote: git push
  3. Deploy if applicable (follow project-specific deploy process)
  4. Verify the feature works in production
  5. Write HARNESS_REPORT.md summarizing the full process:

- How many rounds - What was caught in review - Final score - Lessons learned

Advanced: Independent Reviewer

For critical features (payments, auth, data deletion), add an independent review.

Option A: Native Claude Code Agent (Recommended)

# Use the reviewer agent template — it sees only the code, not the Builder's reasoning
claude --agent=reviewer -w ../[project]-build --bare -p "Read SPRINT.md and review all changed files. Write REVIEWER_REPORT.md."

Option B: ACP Session

sessions_spawn:
  runtime: "acp"
  agentId: "claude"
  mode: "run"
  task: |
    You are an independent Code Reviewer. You have NOT seen the Builder's 
    reasoning — only the final code.
    
    Review ALL recent changes in [project_path].
    Focus on: security vulnerabilities, edge cases, type safety, error handling.
    
    Score each dimension 1-10 and write REVIEWER_REPORT.md.
  cwd: "[project path]"

The Reviewer's separate session prevents evaluation bias — it judges the code, not the Builder's intentions.

Claude Code Pro Tips

These features (from Claude Code creator Boris Cherny) enhance the harness workflow:

FeatureUsageWhy It Helps
--agentclaude --agent=builderCustom system prompt per role
-w (worktree)claude -w ../feature-branchIsolated build environment
--bareclaude --bare -p "..."10x faster SDK startup
/branchRun during sessionFork conversation to test alternatives
/btwRun during sessionAsk a question without interrupting task
/loop/loop 5m /babysitAuto-monitor running tasks
Chrome extInstall separatelyLet Builder verify frontend visually

Sprint Sizing Guide (Learned from Production)

Sprint TypeIdeal SizeBuilder Success RateNotes
Backend API endpoint<100 lines95%+Include schema + existing patterns
Backend refactor<150 lines80%+Clear before/after spec
Frontend component<100 lines per component70%+One component per sprint
Frontend page rewrite>300 lines<30%⚠️ Split into component sprints
Full-stack featureAny size<20%⚠️ Always split backend + frontend

Rule of thumb: If a sprint touches >2 files or >150 lines, split it.

Anti-Patterns (Don't Do This)

❌ Bad✅ Good
Skip planning, jump to codeWrite SPRINT.md first
Vague success criteriaSpecific, testable criteria
"Fix everything" taskScoped, focused sprint
Skip compile checksAlways verify mechanically
Accept first outputAt least 2 rounds of review
Same agent builds and reviewsSeparate sessions for review
Giant sprint (20+ criteria)Break into 2-3 focused sprints
Frontend page rewrite in one sprintSplit into component-level sprints
Trust Builder output without py_compile/tscAlways run mechanical checks
Skip admin auth on mutation endpointsLead must check security in Evaluate

Integration with Superpowers

If Superpowers skills are installed, the harness workflow integrates:

  • brainstorming → Use before Phase 1 for requirements gathering
  • writing-plans → Enhances SPRINT.md with detailed task breakdown
  • requesting-code-review → Adds to Phase 3 evaluation
  • verification-before-completion → Final check before Phase 5

Configuration

Add to your AGENTS.md to enable automatic triggering:

### 🏭 Harness Engineering
When task involves: new feature, complex bug fix, refactoring, multi-file changes
→ Read `~/.openclaw/skills/harness-engineering/SKILL.md` and follow the 5-phase workflow.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

97.07%
按下载量换算1,522

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install harness-factory 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills