$npx -y skills add kanyun-inc/reskill --skill reskill-usageTeaches AI agents how to use reskill — a Git-based package manager for AI agent skills. Covers CLI commands, install formats, configuration, publishing, and common workflows.
| 1 | <!-- source: README.md --> |
| 2 | <!-- synced: 2026-05-11 --> |
| 3 | |
| 4 | # reskill Usage Guide |
| 5 | |
| 6 | reskill is a Git-based package manager for AI agent skills. It provides declarative configuration (`skills.json` + `skills.lock`), flexible versioning, and multi-agent support for installing, managing, and sharing skills across projects and teams. |
| 7 | |
| 8 | **Requirements:** Node.js >= 18.0.0 |
| 9 | |
| 10 | **CLI usage:** If `reskill` is installed globally, use it directly. Otherwise use `npx reskill@latest`: |
| 11 | |
| 12 | ```bash |
| 13 | npm install -g reskill # Global install |
| 14 | npx reskill@latest <command> # Or use npx directly (no install needed) |
| 15 | ``` |
| 16 | |
| 17 | ## When to Use This Skill |
| 18 | |
| 19 | Use this skill when the user: |
| 20 | |
| 21 | - Wants to install, update, or manage AI agent skills |
| 22 | - Mentions `skills.json`, `skills.lock`, or reskill-related concepts |
| 23 | - Wants to publish a skill to a registry |
| 24 | - Asks about supported install formats (GitHub, GitLab, HTTP, OSS, registry, etc.) |
| 25 | - Encounters reskill-related errors or needs troubleshooting |
| 26 | - Wants to set up a project for skill management |
| 27 | - Asks about multi-agent skill installation (Cursor, Claude Code, Codex, etc.) |
| 28 | |
| 29 | ## AI Agent Execution Rules |
| 30 | |
| 31 | AI agents cannot respond to interactive prompts mid-command. Always add `-y` to commands that support confirmation prompts (`install`, `uninstall`, `publish`) to prevent the command from hanging. |
| 32 | |
| 33 | ```bash |
| 34 | # Correct — will not hang |
| 35 | reskill install github:user/skill -y |
| 36 | reskill uninstall skill-name -y |
| 37 | reskill publish -y |
| 38 | |
| 39 | # Wrong — will hang waiting for confirmation |
| 40 | reskill install github:user/skill |
| 41 | reskill uninstall skill-name |
| 42 | ``` |
| 43 | |
| 44 | ## Quick Start |
| 45 | |
| 46 | ```bash |
| 47 | # Initialize a new project |
| 48 | npx reskill@latest init |
| 49 | |
| 50 | # Install a skill |
| 51 | npx reskill@latest install github:anthropics/skills/skills/frontend-design@latest |
| 52 | |
| 53 | # List installed skills |
| 54 | npx reskill@latest list |
| 55 | ``` |
| 56 | |
| 57 | ## Commands |
| 58 | |
| 59 | | Command | Alias | Description | |
| 60 | | --------------------- | -------------------- | ----------------------------------------- | |
| 61 | | `init` | - | Initialize `skills.json` | |
| 62 | | `find <query>` | `search` | Search for skills in the registry | |
| 63 | | `install [skills...]` | `i` | Install one or more skills | |
| 64 | | `list` | `ls` | List installed skills | |
| 65 | | `info <skill>` | - | Show skill details | |
| 66 | | `update [skill]` | `up` | Update skills | |
| 67 | | `outdated` | - | Check for outdated skills | |
| 68 | | `uninstall <skill>` | `un`, `rm`, `remove` | Remove a skill | |
| 69 | | `group` | - | Manage skill groups ¹ | |
| 70 | | `publish [path]` | `pub` | Publish a skill to the registry ¹ | |
| 71 | | `login` | - | Authenticate with the registry ¹ | |
| 72 | | `logout` | - | Remove stored authentication ¹ | |
| 73 | | `whoami` | - | Display current logged in user ¹ | |
| 74 | | `doctor` | - | Diagnose environment and check for issues | |
| 75 | | `completion [action]` | - | Setup or remove shell tab completion | |
| 76 | |
| 77 | > ¹ Registry commands (`group`, `publish`, `login`, `logout`, `whoami`) require a private registry deployment. Not available for public use yet. |
| 78 | |
| 79 | Run `reskill <command> --help` for complete options and detailed usage. |
| 80 | |
| 81 | ### Common Options |
| 82 | |
| 83 | | Option | Commands | Description | |
| 84 | | ------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | |
| 85 | | `--no-save` | `install` | Install without saving to `skills.json` (for personal skills) | |
| 86 | | `-g, --global` | `install`, `uninstall`, `list` | Install/manage skills globally (user directory) | |
| 87 | | `-a, --agent <agents...>` | `install` | Specify target agents (e.g., `cursor`, `claude-code`) | |
| 88 | | `-a, --agent <agent>` | `list` | List skills installed to a specific agent | |
| 89 | | `--mode <mode>` | `install` | Installation mode: `symlink` ( |