feat(skill): add new-command scaffolding skill#964
Open
dangrondahl wants to merge 14 commits into
Open
Conversation
Contributor
|
Claude finished @dangrondahl's task in 2m 13s —— View job Review: new-command scaffolding skill
Static analysisThe diff is docs-only — Prior review comments — all resolved ✅
Accuracy spot-check (verified against current
|
mbevc1
reviewed
Jun 22, 2026
mbevc1
approved these changes
Jun 22, 2026
auto-merge was automatically disabled
June 22, 2026 13:49
Branch protection rule check failed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a project skill at
.claude/skills/new-command/that interviews a developer and scaffolds a new Kosli CLI command (kosli <verb> <noun>) following the repo's patterns — generating the command file, test skeleton, flag constants, and registration wiring, and leaving the tree compiling.Design for low context footprint: a lean
SKILL.md(router + interview + verification) loads one archetype reference on demand; reference files defer to the canonical repo example (e.g.getFlow.go,createFlow.go) and list only the deltas instead of embedding frozen Go templates.Covers: local (no-API), read-single, read-list, create-mutate, attest, generic-action. The API step is OpenAPI-driven (
app.kosli.com/api/v2/openapi.json) to derive endpoint/payload, with an honest fallback that flags unverified shapes rather than fabricating them. Prompts for beta/hidden lifecycle marking on genuinely new commands.Validation: each archetype was dry-run scaffolded into a throwaway command that compiled and rendered
--help(including the new-verb path); then end-to-end tested by scaffolding an imaginarykosli list deployments(build + vet + help all green). Also adds an 'Adding a command' pointer to CONTRIBUTING.md.Note: skills load at session start, so
/new-commandbecomes available in a new session.