mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-05 23:54:50 +08:00
The Rust commands layer could list skills, but it had no concrete install path. This change adds /skills install <path> and matching direct CLI parsing so a skill directory or markdown file can be copied into the user skill registry with a normalized invocation name and a structured install report. Constraint: Keep the enhancement inside the existing Rust commands surface without adding dependencies Rejected: Full project-scoped registry management | larger parity surface than needed for one landed path Confidence: high Scope-risk: narrow Reversibility: clean Directive: If project-scoped skill installation is added later, keep the install target explicit so command discovery and tool resolution stay aligned Tested: cargo test -p commands Tested: cargo clippy -p commands --tests -- -D warnings Tested: cargo test -p rusty-claude-cli parses_direct_agents_and_skills_slash_commands Tested: cargo test -p rusty-claude-cli parses_login_and_logout_subcommands Tested: cargo clippy -p rusty-claude-cli --tests -- -D warnings Not-tested: End-to-end interactive REPL invocation of /skills install against a real user skill registry