Add `lh skill new`: scaffold, dry-run and local test
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 40/100
Direzione di ricerca
Start by reading src/skills/mod.rs for how skills are loaded, parsed and discovered, and docs/skills-workflows.md for the frontmatter and reference conventions. Add the lh skill new subcommand that writes SKILL.md and an empty references/ directory, and refuse invalid names or existing paths before writing anything. Done when the acceptance criteria pass, including --from blanking identity fields and lh skill test reporting token costs with no endpoint configured. The lint backend is a separate issue, so check whether it exists before depending on it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Writing a good skill requires knowing the frontmatter fields, the trigger-description style, the reference layout, the size limits and how the skill tool loads references. A new contributor has to read src/skills/mod.rs and docs/skills-workflows.md to discover conventions that a scaffold could enforce.
Inspiration
- Claude Code's skill-creator: interactive scaffold with structure and examples.
cargo new/npm init: a correct skeleton beats a blank file.lh skill lint(separate issue) as the validation backend.
Proposal
Add lh skill new <name> [--dir <path>]:
- Create
<dir>/<name>/SKILL.mdwith valid frontmatter, a trigger-oriented description, a body skeleton (When to use, Procedure, Stop conditions, Output), and an emptyreferences/directory. - Refuse invalid names and existing directories.
--from <skill>copies an existing skill as a starting point, with the name and description blanked.lh skill test <name>loads the skill against a fake provider, reports the token cost of the body and each reference, and runs the lint checks.- Print the exact path and a one-line next step.
Acceptance criteria
-
lh skill new foocreates a lint-clean skill in the selected directory. - An invalid name or existing directory fails without writing.
-
--frompreserves references but blanks identity fields. -
lh skill testreports body and reference token costs without loading a real model. - The generated skill is discoverable by
skill {}and/skill. - The command works with no endpoint configured.
- Lingua principale
- Rust
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GotinhaAzul/LocalHarness
-
area: ux bug priority: P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
GotinhaAzul/LocalHarness#198 ·
-
area: tools area: ux enhancement priority: P2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
GotinhaAzul/LocalHarness#201 ·
-
area: ux bug priority: P2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
GotinhaAzul/LocalHarness#200 ·
-
area: ux bug priority: P2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GotinhaAzul/LocalHarness#199 ·
-
area: ux enhancement priority: P2
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
GotinhaAzul/LocalHarness#197 ·
Tutte le issue di GotinhaAzul/LocalHarness
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:needs triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
zed-industries/zed#67561 ·
I maintainer di solito rispondono entro 1 giorno
-
bug has: workaround PR welcome! T: CI/CD
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
chore priority:low ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jdrouet/catapulte#882 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100