Chuyển đến nội dung
Skillpedia
Kiểm thử81k · #1645

harness-bench

Skill này làm gì

Skill này tạo hoặc xác minh một benchmark suite, tức là một bộ tác vụ cố định dùng để chấm điểm các biến thể harness AI. Nó dành cho lập trình viên chạy các thí nghiệm tiến hóa cần điểm số ổn định và so sánh được.

Khi nào nên dùng

  • ✓Khi bạn thiết lập một pipeline tiến hóa mới và cần bộ tác vụ cố định để chấm điểm.
  • ✓Khi một bộ test nên được kiểm tra lại mỗi lần thay đổi trước khi so sánh kết quả.
  • ✓Khi bạn fork một harness sang lĩnh vực mới và muốn điểm số so sánh được với bản gốc.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-bench/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-bench/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 tạo một benchmark suite cho repo của tôi và kiểm tra xem nó có hợp lệ không.”

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

Cách hoạt động

Skill gọi công cụ benchmark darwin để tạo suite từ các test có sẵn, hoặc để xác minh một file suite. Việc xác minh thoát với lỗi khi một tác vụ bị sai định dạng.

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 metaharness-darwin bench <create|verify> — the supporting verb for harness-evolve --bench. Use when you want evolution scored against a fixed corpus (independent of npm test) so champion fitness is comparable across commits or across forks of the same harness.

When to use

  • Setting up a new evolution pipeline for a repo whose npm test is flaky, slow, or undersized — scaffold a deterministic bench suite once, then evolve against it repeatedly.
  • CI: bench verify the checked-in suite on every PR that touches it (cheap; ~5s).
  • Forking a harness to a new domain: copy and edit the suite to retarget the evaluation without losing comparability to the parent.

Algorithm

Implementation: scripts/bench.mjs.

--op create

  1. Resolve --repo path; reject if missing.
  2. Shell to metaharness-darwin bench create <repo> [--out <suite.json>].
  3. Default output path: <repo>/.metaharness/bench/suite.json (chosen by upstream).
  4. Suite shape (per upstream): array of { input, expectedOutput, weight } tasks derived from existing test cases.

--op verify

  1. Resolve --suite path; reject if missing.
  2. Shell to metaharness-darwin bench verify <suite.json>.
  3. Exit 1 if any task malformed (upstream's signal).

Output shape

{
  "success": true,
  "data": {
    "op": "verify",
    "taskCount": 42,
    "wellFormed": true,
    "durationMs": 870
  }
}

Exit codes

Code Meaning
0 OK (or degraded — Darwin absent)
1 --op verify and suite malformed
2 Config error or upstream invocation failure

Graceful degradation

When @metaharness/darwin is absent, emits the standard {degraded: true, reason: 'metaharness-darwin-not-available'} payload and exits 0.

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

Một suite gồm những gì?

Mã nguồn cho biết đó là danh sách các tác vụ, mỗi tác vụ có đầu vào, đầu ra mong đợi và trọng số, được suy ra từ các test case có sẵn.

Nếu thiếu gói darwin thì sao?

Skill báo rằng nó không khả dụng thay vì bị lỗi.

Skill có tự chạy tiến hóa không?

Không. Nó chỉ tạo hoặc kiểm tra benchmark. Skill harness-evolve mới thực hiện các lần chấm điểm.

Chi tiết

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

Create (`bench create {repo}`) or verify (`bench verify {suite.json}`) a @metaharness/darwin bench suite, the fixed corpus `harness-evolve --bench` scores variants against. Use when preparing an evolution benchmark. Degrades gracefully without darwin.

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1645
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ự