add66c25bd
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
750 B
750 B
type
| type |
|---|
| llm |
PASS only if ALL hold:
- 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.mdwithpaths:frontmatter matchingsrc/webhooks/**) or a nestedsrc/webhooks/CLAUDE.md— and says why (root loads every session). - The rule text it writes is condensed into constraints that keep the reasons: verify with
verifySignaturefromsrc/webhooks/verify.tsbefore parsing; raw body (express.raw) on these routes; secrets inwebhook_secrets, never hardcoded; no per-handler verify copies. - It does not add filler (generic advice, step-by-step recipes, code samples) beyond those constraints. FAIL if any is missing.