Files
smartgift-claude-skills/plugins/dev/evals/mdw/rule-placement/graders/criteria.md
T
nntrivi2001 add66c25bd feat: sg-md-writing và sg-prompt-sharpening v0.2.0 — gọn hơn, có eval
sg-md-writing thành skill bảo trì tri thức dự án cho AI:
- Gộp hướng dẫn viết skill/subagent/hook (từ writing-agent-context) vào.
- Bảng "đặt dòng ở đâu" theo chi phí nạp: root nạp mọi phiên; rule có `paths:`,
  CLAUDE.md của module, skill, docs chỉ nạp khi cần.
- Chế độ sync: tự sửa đúng dòng .md bị sai trong cùng thay đổi, bump Last synced,
  chỉ hỏi ý định code không trả lời được (bỏ cổng xác nhận từng file, phỏng vấn
  từng câu, kiểm tra model yếu mỗi lần).
- Bỏ khẳng định sai "subagent không tự nạp CLAUDE.md" và lối viết in hoa.
  21,6 KB → 9,1 KB.

sg-prompt-sharpening: tự lấp chỗ thiếu từ dự án, hiện bản prompt đã làm rõ
(mục tiêu, ở đâu, xong khi, giả định) rồi làm; chỉ hỏi một câu (có đề xuất)
khi các cách hiểu dẫn tới việc khác nhau; không kích hoạt với yêu cầu đã đủ rõ.

Eval (claude plugin eval, 2 lượt/case, có skill vs không):
- sharpening 3/3 (trước 2/3), Δ +0.67
- md-writing 5/5 (trước 1/5), Δ +0.40
2026-10-08 11:45:44 +07:00

750 B

type
type
llm

PASS only if ALL hold:

  1. It does NOT put the rule into the 40 KB root CLAUDE.md; it places it where it loads only when relevant — a path-scoped rule file (e.g. .claude/rules/webhooks.md with paths: frontmatter matching src/webhooks/**) or a nested src/webhooks/CLAUDE.md — and says why (root loads every session).
  2. The rule text it writes is condensed into constraints that keep the reasons: verify with verifySignature from src/webhooks/verify.ts before parsing; raw body (express.raw) on these routes; secrets in webhook_secrets, never hardcoded; no per-handler verify copies.
  3. It does not add filler (generic advice, step-by-step recipes, code samples) beyond those constraints. FAIL if any is missing.