|
2 | 2 |
|
3 | 3 | # ar sync-skills |
4 | 4 |
|
5 | | -Sync platform Skills to local AI tool skill directories (Claude Code or Codex). |
| 5 | +Sync platform Skills to a local AI tool skill directory. |
6 | 6 |
|
7 | 7 | ``` |
8 | | -ar sync-skills [tool] [scope] [options] |
| 8 | +ar sync-skills --tool <tool> (--user | --project) [options] |
9 | 9 | ``` |
10 | 10 |
|
11 | 11 | ## Options |
12 | 12 |
|
13 | 13 | | Flag | Type | Required | Default | Description | |
14 | 14 | |------|------|----------|---------|-------------| |
15 | | -| `--claude-code` | flag | yes* | | Sync to Claude Code skill directory. | |
16 | | -| `--codex` | flag | yes* | | Sync to Codex skill directory. | |
17 | | -| `--user` | flag | yes** | | Sync to user-level directory. | |
18 | | -| `--project` | flag | yes** | | Sync to project-level directory. | |
| 15 | +| `--tool` | choice | yes | | Target AI tool. See choices below. | |
| 16 | +| `--user` | flag | yes* | | Sync to user-level directory. | |
| 17 | +| `--project` | flag | yes* | | Sync to project-level directory. | |
19 | 18 | | `--workspace` | multi | no | all | Workspace filter, repeatable. | |
20 | 19 | | `--delete-unmanaged` | flag | no | false | Delete local skills outside selected workspace scope (with confirmation). | |
21 | 20 | | `-y`, `--yes` | flag | no | false | Skip confirmation prompts. | |
22 | 21 |
|
23 | | -\* Exactly one of `--claude-code` or `--codex` is required. |
24 | | -\** Exactly one of `--user` or `--project` is required. |
| 22 | +\* Exactly one of `--user` or `--project` is required. |
| 23 | + |
| 24 | +### `--tool` choices |
| 25 | + |
| 26 | +| Choice | User-level path | Project-level path | |
| 27 | +|--------|----------------|--------------------| |
| 28 | +| `claude-code` | `~/.claude/skills` | `.claude/skills` | |
| 29 | +| `codex` | `~/.codex/skills` | `.codex/skills` | |
| 30 | +| `github-copilot` | `~/.github/copilot/skills` | `.github/copilot/skills` | |
| 31 | +| `cursor` | `~/.cursor/skills` | `.cursor/skills` | |
| 32 | +| `qoder` | `~/.qoder/skills` | `.qoder/skills` | |
25 | 33 |
|
26 | 34 | ## Behavior |
27 | 35 |
|
28 | 36 | - By default, all platform skills are selected (unless `--workspace` is provided). |
29 | | -- Before downloading/updating skills, the CLI asks for confirmation. |
| 37 | +- Before downloading/updating skills, the CLI asks for confirmation (skip with `-y`). |
30 | 38 | - Sync checks local metadata and only downloads skills that are missing or outdated. |
31 | 39 | - When `--delete-unmanaged` is enabled, local skill directories not in the selected |
32 | | - managed scope can be removed after confirmation. |
| 40 | + managed scope can be removed after a separate confirmation. |
33 | 41 |
|
34 | 42 | ## Examples |
35 | 43 |
|
36 | 44 | ```bash |
37 | 45 | # Sync skills from workspace abc + def into user-level Claude Code skills |
38 | | -ar sync-skills --claude-code --user --workspace abc --workspace def |
| 46 | +ar sync-skills --tool claude-code --user --workspace abc --workspace def |
39 | 47 |
|
40 | 48 | # Sync skills from workspace abc into project-level Codex skills |
41 | | -ar sync-skills --codex --project --workspace abc |
| 49 | +ar sync-skills --tool codex --project --workspace abc |
| 50 | + |
| 51 | +# Sync all skills to project-level Cursor directory without prompts |
| 52 | +ar sync-skills --tool cursor --project -y |
| 53 | + |
| 54 | +# Sync to GitHub Copilot user-level directory and remove unmanaged local skills |
| 55 | +ar sync-skills --tool github-copilot --user --delete-unmanaged |
42 | 56 |
|
43 | | -# Sync all skills and also remove unmanaged local skills |
44 | | -ar sync-skills --claude-code --project --delete-unmanaged |
| 57 | +# Sync to Qoder project-level directory |
| 58 | +ar sync-skills --tool qoder --project --workspace my-workspace |
45 | 59 | ``` |
0 commit comments