skills-atlas-cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -38
- package/bin/skills.js +1 -1
- package/data.json +251 -247
- package/package.json +1 -1
- package/src/args.js +2 -1
- package/src/commands/categories.js +4 -4
- package/src/commands/info.js +2 -2
- package/src/commands/install.js +51 -24
- package/src/commands/search.js +26 -8
- package/src/format.js +30 -7
- package/src/github.js +93 -4
- package/src/search-core.js +69 -26
package/README.md
CHANGED
|
@@ -1,58 +1,91 @@
|
|
|
1
1
|
# skills-atlas-cli
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[
|
|
5
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/skills-atlas-cli)
|
|
4
|
+
[](https://github.com/Zita-Go/Skills-Atlas/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
**Stop guessing which agent skill to use.** Find, install, and learn the right
|
|
7
|
+
specialized skill for the task — in seconds, straight into Claude Code.
|
|
8
|
+
|
|
9
|
+
Powered by the [**Skills Atlas**](https://zita-go.github.io/Skills-Atlas/) catalog:
|
|
10
|
+
hundreds of Claude Code / Codex skills across 100+ source repos, organized by what
|
|
11
|
+
they actually do.
|
|
12
|
+
|
|
13
|
+
<img src="https://raw.githubusercontent.com/Zita-Go/Skills-Atlas/main/docs/cli-demo.png" alt="skills-atlas: search then install a skill" width="760">
|
|
14
|
+
|
|
15
|
+
## 🌐 Browse the whole catalog online
|
|
16
|
+
|
|
17
|
+
<table>
|
|
18
|
+
<tr>
|
|
19
|
+
<td><a href="https://zita-go.github.io/Skills-Atlas/"><img src="https://raw.githubusercontent.com/Zita-Go/Skills-Atlas/main/docs/screenshot-light.png" alt="Skills Atlas — light theme" width="400"></a></td>
|
|
20
|
+
<td><a href="https://zita-go.github.io/Skills-Atlas/"><img src="https://raw.githubusercontent.com/Zita-Go/Skills-Atlas/main/docs/screenshot-dark.png" alt="Skills Atlas — dark theme" width="400"></a></td>
|
|
21
|
+
</tr>
|
|
22
|
+
</table>
|
|
23
|
+
|
|
24
|
+
**[→ zita-go.github.io/Skills-Atlas](https://zita-go.github.io/Skills-Atlas/)** —
|
|
25
|
+
explore by category, then install what you find with the CLI.
|
|
26
|
+
|
|
27
|
+
## Install
|
|
6
28
|
|
|
7
29
|
```bash
|
|
8
|
-
|
|
9
|
-
npx skills-atlas-cli install brainstorming --global
|
|
30
|
+
npm install -g skills-atlas-cli # adds the `skills-atlas` command (alias: `sa`)
|
|
10
31
|
```
|
|
11
32
|
|
|
12
|
-
|
|
13
|
-
offline; `update` refreshes it from the public feed.
|
|
33
|
+
Or run it without installing: `npx skills-atlas-cli search seo`
|
|
14
34
|
|
|
15
|
-
##
|
|
35
|
+
## Usage
|
|
16
36
|
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
```bash
|
|
38
|
+
# 🔍 Find a skill
|
|
39
|
+
skills-atlas search seo # keyword, ranked by relevance + stars
|
|
40
|
+
skills-atlas search "pdf 翻译" # multiple words & loose phrases work
|
|
41
|
+
skills-atlas search test --chain -c marketing # filters: --chain, -c/-p/-t
|
|
42
|
+
|
|
43
|
+
# 📖 Learn what it does + when to use it
|
|
44
|
+
skills-atlas info brainstorming
|
|
45
|
+
|
|
46
|
+
# 📥 Install it (into .claude/skills/)
|
|
47
|
+
skills-atlas install brainstorming # → ~/.claude/skills/ (default, all projects)
|
|
48
|
+
skills-atlas install brainstorming --project # → ./.claude/skills/ (this project only)
|
|
49
|
+
skills-atlas install brainstorming --dry-run # preview the files, write nothing
|
|
50
|
+
|
|
51
|
+
# 🗂️ Browse & refresh
|
|
52
|
+
skills-atlas categories # the 20 top-level categories
|
|
53
|
+
skills-atlas list marketing # skill groups within a category
|
|
54
|
+
skills-atlas update # pull the latest catalog
|
|
30
55
|
```
|
|
31
56
|
|
|
57
|
+
Output is English by default; add `--zh` for Chinese, or `--json` to any command for machine-readable output.
|
|
58
|
+
After installing a skill, start a new Claude Code session to load it.
|
|
59
|
+
|
|
32
60
|
## How install works
|
|
33
61
|
|
|
34
|
-
Every skill
|
|
35
|
-
|
|
36
|
-
|
|
62
|
+
Every skill records the **exact in-repo path** of its `SKILL.md`. `install` reads
|
|
63
|
+
that, lists the skill's folder via one GitHub API call, then downloads each file
|
|
64
|
+
(preserving subfolders) into `<target>/.claude/skills/<skill>/`.
|
|
37
65
|
|
|
38
66
|
- Unlike `git clone`, it fetches **only that skill's folder**, not the whole repo.
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
`npx skills add owner/repo`, `/plugin marketplace add owner/repo`).
|
|
67
|
+
- Several sources? The best installable one is auto-picked — `--source <id>` to
|
|
68
|
+
choose, `--yes` for non-interactive runs.
|
|
69
|
+
- Whole-repo / marketplace sources (no per-skill folder) → `install` prints the
|
|
70
|
+
exact command to run instead (e.g. `npx skills add owner/repo`).
|
|
44
71
|
- Set `GITHUB_TOKEN` to raise the GitHub API rate limit (60/h → 5000/h).
|
|
45
72
|
|
|
46
|
-
|
|
73
|
+
## Keeping the catalog fresh
|
|
47
74
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Offline-first. The bundled snapshot is `data.json` (built from the canonical
|
|
51
|
-
`docs/data.json`). `update` caches a fresh copy under
|
|
52
|
-
`~/.cache/skills-atlas/` (or `$XDG_CACHE_HOME`).
|
|
75
|
+
The catalog ships inside the package and works offline. `skills-atlas update` pulls
|
|
76
|
+
the latest from the public feed (cached under `~/.cache/skills-atlas/`).
|
|
53
77
|
|
|
54
78
|
## In Claude Code
|
|
55
79
|
|
|
56
|
-
|
|
57
|
-
`/skills-atlas:skill-search`, `:skill-info`,
|
|
58
|
-
|
|
80
|
+
A thin [Claude Code plugin](./plugin) lets Claude do all of this in-conversation —
|
|
81
|
+
just describe what you need, or use `/skills-atlas:skill-search`, `:skill-info`,
|
|
82
|
+
`:skill-install`:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
/plugin marketplace add Zita-Go/Skills-Atlas
|
|
86
|
+
/plugin install skills-atlas@skills-atlas
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT. Each installed skill keeps its own source repository's license.
|
package/bin/skills.js
CHANGED
|
@@ -22,7 +22,7 @@ commands:
|
|
|
22
22
|
categories list the top-level categories
|
|
23
23
|
list [category] list skill groups (optionally within one category)
|
|
24
24
|
|
|
25
|
-
global flags: --
|
|
25
|
+
global flags: --zh (中文 output; English by default), --json (machine output), -h/--help
|
|
26
26
|
docs: https://zita-go.github.io/Skills-Atlas/`;
|
|
27
27
|
|
|
28
28
|
async function main() {
|