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 CHANGED
@@ -1,58 +1,91 @@
1
1
  # skills-atlas-cli
2
2
 
3
- Search, install and learn AI agent skills from the terminal — powered by the
4
- [Skills Atlas](https://zita-go.github.io/Skills-Atlas/) catalog (hundreds of
5
- Claude Code / Codex skills across 100+ source repos).
3
+ [![npm](https://img.shields.io/npm/v/skills-atlas-cli)](https://www.npmjs.com/package/skills-atlas-cli)
4
+ [![license](https://img.shields.io/npm/l/skills-atlas-cli)](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
- npx skills-atlas-cli search seo
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
- Zero runtime dependencies. The catalog snapshot ships with the package and works
13
- offline; `update` refreshes it from the public feed.
33
+ Or run it without installing: `npx skills-atlas-cli search seo`
14
34
 
15
- ## Commands
35
+ ## Usage
16
36
 
17
- ```text
18
- skills-atlas <command> [args]
19
-
20
- search <query> find skills (-c category, -p persona, -t type, --chain, --limit, --json)
21
- info <skill> description, usage guidance, sources & install command (--json)
22
- install <skill> download the skill folder into .claude/skills/
23
- -g/--global (default ~/.claude/skills) --project (./.claude/skills)
24
- -s/--source <id> -f/--force -y/--yes --dry-run --json
25
- update refresh the catalog from the public data feed
26
- categories list the top-level categories
27
- list [category] list skill groups (optionally within one category)
28
-
29
- global flags: --en (English output), --json, -h/--help
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 in the catalog records the **exact in-repo path** of its `SKILL.md`.
35
- `install` reads that, lists the skill's folder via one GitHub API call, then
36
- downloads each file (preserving subfolders) into `<target>/.claude/skills/<skill>/`.
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
- - 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`).
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
- After installing, start a new Claude Code session to load the skill.
73
+ ## Keeping the catalog fresh
47
74
 
48
- ## Data
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
- See [`plugin/`](./plugin) for a thin Claude Code plugin that exposes
57
- `/skills-atlas:skill-search`, `:skill-info`, and `:skill-install` so Claude can do
58
- all of this in-conversation.
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: --en (English output), --json (machine output), -h/--help
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() {