Chuyển đến nội dung
Skillpedia
Lập trình chung81k · #1654

harness-score

Skill này làm gì

Skill này chấm điểm một repository mã xem nó phù hợp thế nào làm harness agent, theo một bảng điểm năm phần. Nó dành cho lập trình viên đang quyết định có áp dụng thiết lập harness cho dự án hay không.

Khi nào nên dùng

  • ✓Khi bạn muốn đánh giá một repo trước khi thiết lập harness agent.
  • ✓Khi bạn cần điểm sẵn sàng cho một kiểm tra CI.
  • ✓Khi bạn đang so sánh các repo để áp dụng harness.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-score/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-score/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy chấm điểm repo này như một harness agent và cho tôi biết nó đã sẵn sàng để scaffold chưa.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chạy lệnh chấm điểm trên thư mục và đọc lại kết quả, gồm mức phù hợp, độ tin cậy biên dịch, độ phủ tác vụ, độ an toàn công cụ, tính hữu ích của bộ nhớ và chi phí ước tính mỗi lần chạy. Nó có thể làm kiểm tra thất bại khi mức phù hợp thấp hơn giới hạn bạn đặt.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Surfaces the upstream metaharness score CLI as a ruflo skill. Use when Claude Code needs to assess whether a repo is ready for harness adoption before recommending the user run npx ruflo init or harness-mint.

Algorithm

Implementation: scripts/score.mjs.

  1. Shell out to npx metaharness score <path> --json (single subprocess, 60s hard timeout).
  2. Parse the JSON shape: { harnessFit, compileConfidence, taskCoverage, toolSafety, memoryUsefulness, estCostPerRunUsd, recommendedMode, archetype, template, scaffoldReady, hardConstraints }.
  3. If --alert-on-fit-below N: exit 1 when harnessFit < N.
  4. Output JSON (default) or markdown table.

Phase-0 baseline (ruflo's own scorecard, measured 2026-06-16)

Dimension Value
harnessFit 82/100
compileConfidence 100
taskCoverage 79
toolSafety 100
memoryUsefulness 40
estCostPerRunUsd $0.048
recommendedMode CLI + MCP
archetype typescript-sdk-harness
template vertical:coding
scaffoldReady true

Ruflo passes its own readiness check. memoryUsefulness: 40 is the weakest dimension — track this as a leading indicator for future memory work in the AgentDB layer.

CI integration

node plugins/ruflo-metaharness/scripts/score.mjs --alert-on-fit-below 70 --format json

Exit 1 fails the build. Pair with harness-genome for the full 7-section view.

Graceful degradation (ADR-150 architectural constraint rule #3)

When metaharness is not installed and npx can't fetch it (offline, no network, registry unreachable), the script emits:

{
  "degraded": true,
  "reason": "metaharness-not-available",
  "hint": "Install with `npm i -D metaharness@~0.4.1` (pinned range — this plugin never fetches @latest) or verify network access for the one-time cache install."
}

and exits 0. Ruflo continues to function — this is the architectural constraint in action.

Câu hỏi thường gặp

Nó có thay đổi repo không?

Không. Chấm điểm chỉ đọc.

Chi phí ước tính cho biết điều gì?

Nó cho biết chi phí ước tính mỗi lần chạy, dựa trên ước lượng của chính công cụ chấm điểm.

Nó có thể chặn bản build không?

Có. Tùy chọn cảnh báo fit sẽ thoát với lỗi khi điểm phù hợp thấp hơn số bạn chọn.

Chi tiết

Mô tả gốc của tác giả

5-dimension harness readiness scorecard from `metaharness score {path}` (harnessFit, compileConfidence, taskCoverage, toolSafety, memoryUsefulness, plus cost per run). Use when rating a repo as an agent harness. Pure-read; degrades gracefully without MetaHarness.

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1654
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự