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
This commit is contained in:
2026-10-08 11:45:44 +07:00
parent b1217e1846
commit add66c25bd
32 changed files with 311 additions and 157 deletions
@@ -0,0 +1,10 @@
---
type: llm
---
The reply designs two subagent definitions. PASS only if ALL hold:
1. It pushes back on (or at least warns against) a subagent whose job is just to run the test suite, because it hides the failure diagnostics from the main agent; it suggests running tests in the main thread or returning full failure output instead.
2. The researcher definition specifies a concrete OUTPUT FORMAT for its report.
3. The researcher definition asks it to report obstacles / environment quirks / workarounds it hit (so the main agent does not rediscover them).
4. The researcher gets read-only tools (no Edit/Write).
FAIL if any is missing.
@@ -0,0 +1,5 @@
---
type: tool_used
tool: Skill
input_match: '"skill"\s*:\s*"(?:[\w-]+:)?sg-md-writing"'
---
@@ -0,0 +1,7 @@
---
max_turns: 8
allowed_tools: [Read, Glob, Grep, Skill]
tags: [mdw]
---
I want two custom subagents for Claude Code: one "test-runner" that runs our test suite and tells the main agent whether it passed, and one "researcher" that digs through the codebase to answer questions. Write both agent definition files for me.