Loading...
Loading...
Scaffold a new skill into both publish trees at once — skills/<name>/SKILL.md plus its byte-identical llmwiki mirror — via fdk/tools/new-skill.py, then print the exact commands to register it on the curated surfaces (LOOP_MAP, marketplace.json, AGENT.md/CLAUDE.md). Use when the user says "create a skill", "add a new skill", "scaffold a skill", "make a new skill", "new skill", or invokes /new-skill.
npx skill4agent add rheinmir/setup new-skillskills/<name>/SKILL.mdllmwiki/skills/<loop>/<name>.mdsync-skills.pymarketplace.json## Skillsmarketplace.jsonfdk/tools/new-skill.pysolid-what-how/1/new-skillskills/<name>/SKILL.mdViết cho đúng nghề — đọctrước. Bộ từ vựng để một skill đoán được: hai loại phí (context load ↔ cognitive load — skill chỉ-gọi-tay thì khai[[skill-craft]], khỏi tốn context), completion criterion cho mỗi bước, leading word thay ba câu, và năm failure mode phải tránh (duplication/sediment/sprawl/no-op/negation).disable-model-invocation: truebước 8b đo các thứ này bằng máy./lint
skills/external/tên + loop + description (trigger) → new-skill.py → skills/<tên>/SKILL.md (khung WHAT/HOW) + llmwiki/skills/<loop>/<tên>.md → điền TODO → swh-lint → sync-skills → đăng ký 3 bề mặt curated → sync-skills --check + skill-registry --check| Field | Required? | Ý nghĩa | |
|---|---|---|---|
| In | | có | kebab-case, chưa tồn tại trong |
| In | | có | |
| In | | có | một dòng giàu trigger phrase (router khớp theo nó) |
| Out | | có | hai file giống hệt, khung SWH đã điền xong TODO |
| Out | 3 bề mặt curated đã đăng ký | có | hai lệnh check cuối đều xanh |
sync-skills.py--desc/skills/<name>/SKILL.md--strictswh-lint| Step | Type | Inputs | Action | Outputs/exit | Failure/next |
|---|---|---|---|---|---|
| W01 | judgment | yêu cầu user | chốt | 3 input | mơ hồ → hỏi |
| W02 | effect | 3 input | | 2 file + recipe | tên trùng → blocked · tham số sai → INVALID_PARAMETER |
| W03 | judgment | khung | điền mọi TODO của WHAT/HOW, chạy | skill đạt cấu trúc | đỏ → sửa, lặp W03 |
| W04 | effect | skill | | mirror giống hệt | — |
| W05 | effect | dòng tool in ra | đăng ký LOOP_MAP, marketplace, bảng AGENT/CLAUDE | 3 bề mặt | — |
| W06 | deterministic | repo | | cả hai xanh | đỏ → sửa bề mặt lệch |
<name>--loopdev-looporchestratewiki-looputils--descdisable-model-invocation: true--desc[[skill-craft]]python3 fdk/tools/new-skill.py <name> --loop <loop> --desc "<description>" --dry-run # preview body + next steps
python3 fdk/tools/new-skill.py <name> --loop <loop> --desc "<description>" # write both filesskills/<name>/skills/<name>/SKILL.mdsolid-what-how/1## WHAT## HOW[[solid-what-how]]python3 fdk/tools/swh-lint.py --skills <name> --cipython3 harness/scripts/sync-skills.pyharness/scripts/sync-skills.py./skills/<name>.claude-plugin/marketplace.jsonllmwiki/AGENT.mdllmwiki/CLAUDE.md## Skillspython3 harness/scripts/sync-skills.py --check # mirror parity
python3 harness/scripts/skill-registry.py --check # cross-surface drift| ID | Kind | Guard | Hành vi | Skip / failure | Rejoin |
|---|---|---|---|---|---|
| B01 | conditional_required | skill chỉ-gọi-tay | thêm | skill model-invoked → skip | W02 |
| B03 | user_optional | catalog có template khớp contract (lọc effect trước, xếp hạng sau) | | catalog không đọc được → decision | W03 |
| B02 | recovery | BM25 báo trùng năng lực | đổi tên dạng biến thể + làm description khác biệt, hoặc sửa skill có sẵn | | W01 |
reuse_decisionfdk/skill-catalog/fdk/tools/skill-reuse.pyswh-lintswh-lint --skills <name> --cisync-skills.py --checkskill-registry.py --checknew-skill.py csv-preview --loop utils --desc "Xem trước CSV… Trigger: 'preview csv'"new-skill.py ship …skills/ship/skills/ship/SKILL.md