mcpField
O
orca-eval

orca-eval

github.com/rheinmirAgent workflows10248 installsUpdated 2w ago
Repository

About orca-eval

A skill for evaluating Claude Code session history and drafting process-improvement recommendations. It scans compact digests for corrections, repetition, friction, and successful workflows, then stops for user approval before any proposed changes.

Key features

  1. 01Scan recent session logs through a digest
  2. 02Identify four types of workflow signals
  3. 03Draft a report and update wiki indexes
  4. 04Attach one proposed action to each finding
  5. 05Wait for approval before changes

Use cases

  1. 01Review recent sessions for recurring corrections
  2. 02Find repeated commands that may merit a skill
  3. 03Spot repeated tool errors or retry loops
  4. 04Record workflows that were approved without edits

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/rheinmir/setup --skill orca-eval

After installing, type/orca-evalin Claude Code to confirm it loaded.

Bundled filesassets/orca-eval-scan.sh

Details

From the project README

Skill: orca-eval

WHAT

Purpose và context
  • Purpose: Vòng tự cải thiện quy trình: đọc lại session logs → rút best practice / anti-pattern → report md → đề xuất hành động (promote thành skill, sửa CLAUDE.md, thêm hook…). Report là đề xuất — mọi action phải qua propose → gate, không tự thực hiện.
  • Trigger (when to use):
    • /orca-eval [N] — N = số session gần nhất cần quét (vd 5/10/15)
    • Không có N → chỉ quét session hiện tại
    • User nói "đánh giá session", "rút best practice", "tối ưu quy trình từ lịch sử"
  • Non-goals: không tự thực hiện action (promote skill, sửa CLAUDE.md, thêm hook); không sửa/xoá session log; không auto-trigger mỗi 30 session (Phase 2, chưa nằm trong skill này).
Mental model

*.jsonl session logs → orca-eval-scan.sh digest (prompts · tool errors · lệnh lặp) → 4 tín hiệu (Correction · Repetition · Friction · Win) → finding → đúng 1 action (promote-to-skill · update-CLAUDE.md · add-hook · keep · ignore) → report draft → DỪNG chờ duyệt.

Input và output contract
FieldRequired?Ý nghĩa
InNkhôngsố session gần nhất theo mtime *.jsonl; default = session hiện tại
Insession logs ~/.claude/projects/<project-slug>/*.jsonlcóchỉ đọc
Outllmwiki/wiki/draft/orca/DDMMYY-eval-report.mdcótheo Report template
Outwiki/index.md + wiki/log.md cập nhậtcó—
Outbảng action hiển thị cho usercó"xong" = user đã thấy bảng; action chưa thực thi
Rules và capabilities
  • RULE-01 (MUST): Read-only với session logs — không sửa/xóa *.jsonl.
  • RULE-02 (MUST): KHÔNG nạp nguyên transcript — 1 session có thể hàng trăm KB; đọc qua digest của scanner.
  • RULE-03 (MUST): Mỗi finding gắn đúng 1 action; action chỉ thực hiện sau khi user duyệt (qua propose nếu là thay đổi code/skill).
  • RULE-04 (MUST): Format JSONL của Claude Code không có spec công khai — scanner fail thì fallback session hiện tại và báo rõ, không sinh report rỗng.
  • Capabilities: đọc session log cục bộ qua scanner; ghi draft wiki + index + log. Không mạng, không sửa code/config.
Failure boundaries
  • Scanner fail → partial: fallback session hiện tại, báo rõ; không sinh report rỗng.
  • Không có tín hiệu nào → report ghi rõ 0 finding (không bịa finding).
  • User chưa duyệt → action ở trạng thái proposed, skill dừng.

HOW

Main workflow
StepTypeInputsActionOutputs/exitFailure/next
W01deterministicNScan: skills/orca-eval/assets/orca-eval-scan.sh [N] từ repo rootdigestfail → B01
W02judgmentdigestDistill 4 loại tín hiệudanh sách finding + bằng chứng—
W03effectfindingReport theo template + cập nhật index/logdraft report—
W04judgmentfindingAction proposal: bảng action cho user, DỪNGbảng actionkhông duyệt → dừng

Chi tiết từng bước (nguồn chân lý cho W01–W04):

  1. Scan — chạy skills/orca-eval/assets/orca-eval-scan.sh [N] từ repo root. Script trả về digest gọn (user prompts, tool errors, lệnh Bash lặp lại). KHÔNG nạp nguyên transcript — 1 session có thể hàng trăm KB.
  2. Distill — từ digest, tìm 4 loại tín hiệu:
    • Correction: user sửa lời agent ("không, dùng X", "sai rồi", "actually…") → quy tắc ứng xử mới
    • Repetition: chuỗi lệnh/thao tác lặp ≥ 3 lần qua các session → ứng viên skill-hóa
    • Friction: tool error lặp lại, permission prompt nhiều lần, retry loop → ứng viên hook/permission/config
    • Win: workflow user approve nhanh, không phải sửa → ghi nhận best practice giữ nguyên
  3. Report — ghi llmwiki/wiki/draft/orca/DDMMYY-eval-report.md theo template dưới. Cập nhật wiki/index.md + wiki/log.md.
  4. Action proposal — mỗi finding gắn đúng 1 action: promote-to-skill / update-CLAUDE.md / add-hook / keep / ignore. Hiển thị bảng action cho user. DỪNG — action chỉ thực hiện sau khi user duyệt (qua propose nếu là thay đổi code/skill).
Input
Tham sốÝ nghĩaDefault
NSố session gần nhất (theo mtime của *.jsonl)session hiện tại

Session logs nằm tại ~/.claude/projects/<project-slug>/*.jsonl — slug là cwd với / thay bằng - (vd -Users-giatran-orca-workspaces-setup-evaluation).

Branches
IDKindGuardHành viSkip / failureRejoin
B01recoveryscanner fail (format JSONL đổi)fallback session hiện tại, báo rõ trong reportkhông có gì để quét → báo, không sinh report rỗngW02
B02conditional_requiredaction là thay đổi code/skill và user duyệtchuyển qua propose → gateuser không duyệt → dừng—
Validation và stopping

Scanner là tất định; phân loại tín hiệu là judgment — mỗi finding phải có bằng chứng (session + trích dẫn ngắn) trong bảng. Dừng cứng ở W04 chờ user duyệt.

Examples
  • Positive: /orca-eval 10 → scan 10 *.jsonl mới nhất → phát hiện user 4 lần sửa "dùng ./scratchpad/ không /private/tmp" (Correction) → finding gắn update-CLAUDE.md; report llmwiki/wiki/draft/orca/DDMMYY-eval-report.md + bảng action, DỪNG.
  • Boundary/failure: orca-eval-scan.sh lỗi vì đổi format JSONL → fallback session hiện tại, report ghi rõ scanner fail; không có tín hiệu nào → báo 0 finding, không sinh report rỗng.
Reference — Report template
---
type: draft
title: "DDMMYY-eval-report"
status: proposed
tags: [<skill-name>, output-report]
timestamp: YYYY-MM-DD
---

# DDMMYY-eval-report
**Type:** draft
**Status:** proposed
**Tags:** orca-eval, eval-report
**Proposed:** YYYY-MM-DD
**Scope:** <N session / session hiện tại> — <danh sách file jsonl đã quét>

## Best practices
| # | Tín hiệu | Loại | Bằng chứng (session, trích dẫn ngắn) |
|---|----------|------|--------------------------------------|

## Đề xuất action
| # | Finding | Action | Lý do |
|---|---------|--------|-------|

## Origin
- **Sessions:** <paths đã quét>
- **Generated by:** /orca-eval
Reference — Giới hạn
  • Read-only với session logs — không sửa/xóa *.jsonl.
  • Format JSONL của Claude Code không có spec công khai — scanner fail thì fallback session hiện tại và báo rõ, không sinh report rỗng.
  • Auto-trigger mỗi 30 session: Phase 2 (cần Stop-hook + counter), chưa nằm trong skill này.
Reference — References (community — claimed 2026-06-11)
RepoÁp dụng được gì
BayramAnnakov/claude-reflectRegex bắt correction ("no, use X", "remember:"), queue → review 2 giai đoạn, routing global vs project CLAUDE.md, /reflect-skills tìm pattern lặp để skill-hóa
haddock-development/claude-reflect-systemStop-hook auto-run cuối session (mẫu cho Phase 2 auto-trigger 30 session), cross-skill best-practice extraction
netresearch/claude-coach-pluginFriction detection — đếm permission prompts / retry loops làm tín hiệu cải tiến
robonuggets/skills — calibrateIn-session self-improvement: review conversation hiện tại, đề xuất sửa skill/memory có chủ đích
a-c-m reflection.md gistBản tối giản 1 file — giữ skill này gọn, không over-engineer

Origin

  • Raw: llmwiki/raw/evalution-engineering.md
  • Draft: wiki/draft/orca/110626-orca-eval-skill.md

Comments

Markdown supported