feat(skill): add clawhub slash commands
This commit is contained in:
@@ -27,21 +27,24 @@ npx --yes clawhub@latest search "web scraping" --limit 5
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npx --yes clawhub@latest install <slug> --workdir ~/.nanobot/workspace
|
||||
npx --yes clawhub@latest install <slug> --workdir <nanobot-workspace>
|
||||
```
|
||||
|
||||
Replace `<slug>` with the skill name from search results. This places the skill into `~/.nanobot/workspace/skills/`, where nanobot loads workspace skills from. Always include `--workdir`.
|
||||
Replace `<slug>` with the skill name from search results. Replace `<nanobot-workspace>` with the
|
||||
active workspace for the current nanobot process. This places the skill into
|
||||
`<nanobot-workspace>/skills/`, where nanobot loads workspace skills from. Always include
|
||||
`--workdir`.
|
||||
|
||||
## Update
|
||||
|
||||
```bash
|
||||
npx --yes clawhub@latest update --all --workdir ~/.nanobot/workspace
|
||||
npx --yes clawhub@latest update --all --workdir <nanobot-workspace>
|
||||
```
|
||||
|
||||
## List installed
|
||||
|
||||
```bash
|
||||
npx --yes clawhub@latest list --workdir ~/.nanobot/workspace
|
||||
npx --yes clawhub@latest list --workdir <nanobot-workspace>
|
||||
```
|
||||
|
||||
## Notes
|
||||
@@ -49,5 +52,6 @@ npx --yes clawhub@latest list --workdir ~/.nanobot/workspace
|
||||
- Requires Node.js (`npx` comes with it).
|
||||
- No API key needed for search and install.
|
||||
- Login (`npx --yes clawhub@latest login`) is only required for publishing.
|
||||
- `--workdir ~/.nanobot/workspace` is critical — without it, skills install to the current directory instead of the nanobot workspace.
|
||||
- `--workdir <nanobot-workspace>` is critical — without it, skills install to the current directory
|
||||
instead of the active nanobot workspace.
|
||||
- After install, remind the user to start a new session to load the skill.
|
||||
|
||||
Reference in New Issue
Block a user