mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-04-13 02:41:43 +08:00
The TypeScript CLI exposes a skills browser backed by workspace/user skill discovery, while the Rust port only had partial local loading and an inconsistent slash-command view. This change adds a shared runtime skill discovery path, teaches the Skill tool to resolve workspace `.codex/.claw` skills plus legacy `/commands`, and makes `/skills` report the checked local skill directories in the current workspace context. Constraint: Keep scope limited to local/workspace skill discovery without inventing bundled or remote registries yet Rejected: Add a bundled skill registry surface now | too broad for this parity increment Rejected: Leave tool resolution and /skills discovery separate | misleading output and weaker parity with TS Confidence: high Scope-risk: moderate Reversibility: clean Directive: Extend the shared runtime skill discovery path before adding new skill sources so the tool surface and /skills stay aligned Tested: cargo fmt --all; cargo test -p runtime skills:: -- --nocapture; cargo test -p commands skills -- --nocapture; cargo test -p tools skill_ -- --nocapture; cargo test -p claw-cli skills -- --nocapture; cargo test -p claw-cli init_help_mentions_direct_subcommand -- --nocapture Not-tested: Full workspace-wide cargo test sweep |
||
|---|---|---|
| .. | ||
| bash.rs | ||
| bootstrap.rs | ||
| compact.rs | ||
| config.rs | ||
| conversation.rs | ||
| file_ops.rs | ||
| hooks.rs | ||
| json.rs | ||
| lib.rs | ||
| mcp_client.rs | ||
| mcp_stdio.rs | ||
| mcp.rs | ||
| oauth.rs | ||
| permissions.rs | ||
| prompt.rs | ||
| remote.rs | ||
| sandbox.rs | ||
| session.rs | ||
| skills.rs | ||
| sse.rs | ||
| usage.rs | ||