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:
@@ -0,0 +1,10 @@
|
||||
---
|
||||
type: llm
|
||||
---
|
||||
|
||||
PASS only if ALL hold:
|
||||
1. The frontmatter sets `disable-model-invocation: true` (or explicitly says the skill must only run when the user types the slash command), because deploying is a side effect.
|
||||
2. The `description` states WHEN to use it (trigger situations / phrases a user would say), not a summary of how it works.
|
||||
3. The skill has a Gotchas (or "known pitfalls") section, even if it only holds a starter entry.
|
||||
4. The body states the goal and constraints instead of a rigid numbered command-by-command script with no room to adapt.
|
||||
FAIL if any of these 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]
|
||||
---
|
||||
|
||||
Write me a Claude Code skill (the full SKILL.md, frontmatter included) for deploying our API service to staging. We deploy with `make deploy-staging`, it needs the VPN up, and after deploy someone should hit `/healthz`. Just give me the file content.
|
||||
Reference in New Issue
Block a user