skills-atlas-cli 0.1.0 → 0.1.2
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 +77 -39
- package/bin/skills.js +1 -1
- package/data.json +251 -247
- package/package.json +1 -1
- package/src/args.js +3 -1
- package/src/commands/categories.js +4 -4
- package/src/commands/info.js +5 -4
- package/src/commands/install.js +82 -26
- package/src/commands/search.js +26 -8
- package/src/format.js +87 -35
- package/src/fsutil.js +9 -1
- package/src/github.js +93 -4
- package/src/index-build.js +16 -1
- package/src/search-core.js +69 -26
package/README.md
CHANGED
|
@@ -1,58 +1,96 @@
|
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
62
|
+
The real value is the **catalog**: `search` / `info` / `categories` work fully
|
|
63
|
+
offline and map *which* skill fits — function-organized, bilingual, tagged with
|
|
64
|
+
use-case / when-to-use / personas / ⛓ chains. That's what `npx skills add` and
|
|
65
|
+
GitHub search don't give you.
|
|
37
66
|
|
|
38
|
-
|
|
39
|
-
- If a skill has several sources, the best installable one is auto-picked
|
|
40
|
-
(pass `--source <id>` to choose); use `--yes` for non-interactive runs.
|
|
41
|
-
- Some sources are whole-repo / marketplace / CLI installers with no per-skill
|
|
42
|
-
folder — for those, `install` prints the exact command to run (e.g.
|
|
43
|
-
`npx skills add owner/repo`, `/plugin marketplace add owner/repo`).
|
|
44
|
-
- Set `GITHUB_TOKEN` to raise the GitHub API rate limit (60/h → 5000/h).
|
|
67
|
+
On top of that, `install` can place a skill straight into `.claude/skills/`:
|
|
45
68
|
|
|
46
|
-
|
|
69
|
+
- For a repo that exposes a **per-skill folder**, it downloads only that folder
|
|
70
|
+
(via the repo archive — **no GitHub API rate limit**) into
|
|
71
|
+
`<target>/.claude/skills/<skill>/`, not the whole repo.
|
|
72
|
+
- Several sources? The best installable one is auto-picked — `--source <id>` to
|
|
73
|
+
choose, `--yes` for non-interactive runs.
|
|
74
|
+
- Other sources (whole-repo / marketplace) print their official command instead
|
|
75
|
+
(e.g. `npx skills add owner/repo`).
|
|
76
|
+
- `GITHUB_TOKEN` is only needed if you fall back to the API and hit its 60/h limit.
|
|
47
77
|
|
|
48
|
-
##
|
|
78
|
+
## Keeping the catalog fresh
|
|
49
79
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
`~/.cache/skills-atlas/` (or `$XDG_CACHE_HOME`).
|
|
80
|
+
The catalog ships inside the package and works offline. `skills-atlas update` pulls
|
|
81
|
+
the latest from the public feed (cached under `~/.cache/skills-atlas/`).
|
|
53
82
|
|
|
54
83
|
## In Claude Code
|
|
55
84
|
|
|
56
|
-
|
|
57
|
-
`/skills-atlas:skill-search`, `:skill-info`,
|
|
58
|
-
|
|
85
|
+
A thin [Claude Code plugin](./plugin) lets Claude do all of this in-conversation —
|
|
86
|
+
just describe what you need, or use `/skills-atlas:skill-search`, `:skill-info`,
|
|
87
|
+
`:skill-install`:
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
/plugin marketplace add Zita-Go/Skills-Atlas
|
|
91
|
+
/plugin install skills-atlas@skills-atlas
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## License
|
|
95
|
+
|
|
96
|
+
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() {
|