diff --git a/rust/crates/commands/src/lib.rs b/rust/crates/commands/src/lib.rs index e1c7e4f7..7cc7fa3f 100644 --- a/rust/crates/commands/src/lib.rs +++ b/rust/crates/commands/src/lib.rs @@ -6625,12 +6625,13 @@ mod tests { let skills_help = super::handle_skills_slash_command(Some("--help"), &cwd).expect("skills help"); assert!(skills_help.contains( - "Usage /skills [list|show |install |uninstall |help| [args]]" + "Usage /skills [list|show |install [--project] |uninstall |help| [args]]" )); assert!(skills_help.contains("Alias /skill")); assert!(skills_help.contains("Lifecycle install , uninstall ")); assert!(skills_help.contains("Invoke /skills help overview -> $help overview")); - assert!(skills_help.contains("Install root $CLAW_CONFIG_HOME/skills or ~/.claw/skills")); + // #95: install root now mentions --project flag + assert!(skills_help.contains("Install root $CLAW_CONFIG_HOME/skills or ~/.claw/skills (use --project for .claw/skills)")); assert!(skills_help.contains(".omc/skills")); assert!(skills_help.contains(".agents/skills")); assert!(skills_help.contains("~/.claude/skills/omc-learned")); @@ -6643,7 +6644,7 @@ mod tests { let skills_install_help = super::handle_skills_slash_command(Some("install --help"), &cwd) .expect("nested skills help"); assert!(skills_install_help.contains( - "Usage /skills [list|show |install |uninstall |help| [args]]" + "Usage /skills [list|show |install [--project] |uninstall |help| [args]]" )); assert!(skills_install_help.contains("Alias /skill")); assert!(skills_install_help.contains("Unexpected install")); @@ -6651,7 +6652,7 @@ mod tests { let skills_unknown_help = super::handle_skills_slash_command(Some("show --help"), &cwd).expect("skills help"); assert!(skills_unknown_help.contains( - "Usage /skills [list|show |install |uninstall |help| [args]]" + "Usage /skills [list|show |install [--project] |uninstall |help| [args]]" )); assert!(skills_unknown_help.contains("Unexpected show"));