agent-skill-manager 1.1.0 → 1.2.0

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.
Files changed (41) hide show
  1. package/README.md +130 -34
  2. package/dist/agent-skill-manager.js +180 -0
  3. package/dist/highlights-eq9cgrbb.scm +604 -0
  4. package/dist/highlights-ghv9g403.scm +205 -0
  5. package/dist/highlights-hk7bwhj4.scm +284 -0
  6. package/dist/highlights-r812a2qc.scm +150 -0
  7. package/dist/highlights-x6tmsnaa.scm +115 -0
  8. package/dist/injections-73j83es3.scm +27 -0
  9. package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
  10. package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
  11. package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
  12. package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
  13. package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
  14. package/package.json +11 -4
  15. package/CODE_OF_CONDUCT.md +0 -59
  16. package/CONTRIBUTING.md +0 -92
  17. package/RELEASE_NOTES.md +0 -22
  18. package/SECURITY.md +0 -43
  19. package/bin/agent-skill-manager.ts +0 -12
  20. package/bun.lock +0 -204
  21. package/docs/ARCHITECTURE.md +0 -60
  22. package/docs/CHANGELOG.md +0 -46
  23. package/docs/DEPLOYMENT.md +0 -52
  24. package/docs/DEVELOPMENT.md +0 -64
  25. package/install.sh +0 -226
  26. package/src/cli.ts +0 -488
  27. package/src/config.ts +0 -109
  28. package/src/formatter.ts +0 -92
  29. package/src/index.ts +0 -324
  30. package/src/scanner.ts +0 -165
  31. package/src/uninstaller.ts +0 -226
  32. package/src/utils/colors.ts +0 -16
  33. package/src/utils/frontmatter.ts +0 -87
  34. package/src/utils/types.ts +0 -57
  35. package/src/utils/version.ts +0 -20
  36. package/src/views/config.ts +0 -147
  37. package/src/views/confirm.ts +0 -105
  38. package/src/views/dashboard.ts +0 -252
  39. package/src/views/help.ts +0 -83
  40. package/src/views/skill-detail.ts +0 -114
  41. package/src/views/skill-list.ts +0 -122
package/README.md CHANGED
@@ -7,25 +7,29 @@
7
7
  </p>
8
8
 
9
9
  <p align="center">
10
- <em>The universal skill manager for AI coding agents.</em>
10
+ <em>The universal skill manager for AI agents.</em>
11
11
  </p>
12
12
 
13
13
  <p align="center">
14
+ <a href="#features">Features</a> &middot;
14
15
  <a href="#install">Install</a> &middot;
15
16
  <a href="#usage">Usage</a> &middot;
16
17
  <a href="#configuration">Configuration</a> &middot;
18
+ <a href="docs/">Docs</a> &middot;
17
19
  <a href="CONTRIBUTING.md">Contributing</a> &middot;
18
20
  <a href="LICENSE">License</a>
19
21
  </p>
20
22
 
21
23
  <p align="center">
22
24
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="MIT License" /></a>
25
+ <a href="https://www.npmjs.com/package/agent-skill-manager"><img src="https://img.shields.io/npm/v/agent-skill-manager.svg" alt="npm version" /></a>
23
26
  <a href="https://bun.sh"><img src="https://img.shields.io/badge/runtime-Bun%20%E2%89%A5%201.0-black.svg" alt="Bun" /></a>
27
+ <a href="https://github.com/luongnv89/agent-skill-manager/actions"><img src="https://github.com/luongnv89/agent-skill-manager/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
24
28
  </p>
25
29
 
26
30
  ---
27
31
 
28
- **agent-skill-manager** is an interactive terminal UI for managing installed skills across AI coding agents — [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Codex](https://github.com/openai/codex), [OpenClaw](https://github.com/openclaw), and more. Built with [OpenTUI](https://github.com/nicholasgasior/opentui) and [Bun](https://bun.sh).
32
+ **agent-skill-manager** (`asm`) is an interactive TUI and CLI for managing installed skills across AI coding agents — [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Codex](https://github.com/openai/codex), [OpenClaw](https://github.com/openclaw), and more. Built with [OpenTUI](https://github.com/nicholasgasior/opentui) and [Bun](https://bun.sh).
29
33
 
30
34
  <p align="center">
31
35
  <img src="assets/screenshots/agent-skill-manager.png" alt="agent-skill-manager TUI dashboard" width="800" />
@@ -33,17 +37,36 @@
33
37
 
34
38
  ## Features
35
39
 
36
- - **Multi-agent support** — Manage skills for Claude Code, Codex, OpenClaw, and custom agent tools from one TUI
40
+ - **Dual interface** — Full interactive TUI and non-interactive CLI (`asm list`, `asm search`, etc.)
41
+ - **Multi-agent support** — Manage skills for Claude Code, Codex, OpenClaw, and custom agent tools from a single tool
37
42
  - **Configurable providers** — Define which agent tool directories to scan via `~/.config/agent-skill-manager/config.json`
38
43
  - **Global & project scopes** — Filter skills by global (`~/.<tool>/skills/`) or project-level (`./<tool>/skills/`)
39
44
  - **Real-time search** — Filter skills by name, description, or provider
40
45
  - **Sort** — By name, version, or location
41
46
  - **Detailed skill view** — Metadata from SKILL.md frontmatter including provider, path, symlink info
47
+ - **Duplicate audit** — Detect and remove duplicate skills across providers and scopes
42
48
  - **Safe uninstall** — Confirmation dialog, removes skill directories, rule files, and AGENTS.md blocks
43
49
  - **In-TUI config editor** — Toggle providers on/off, or open config in `$EDITOR`
50
+ - **JSON output** — Machine-readable output for scripting (`--json`)
44
51
 
45
52
  ## Install
46
53
 
54
+ ### npm (recommended)
55
+
56
+ The npm package ships as a pre-built bundle — **no build step required** on install.
57
+
58
+ **Prerequisites:** [Bun](https://bun.sh) >= 1.0.0 (used as the runtime)
59
+
60
+ ```bash
61
+ # Install globally via npm
62
+ npm install -g agent-skill-manager
63
+
64
+ # Or via Bun
65
+ bun install -g agent-skill-manager
66
+ ```
67
+
68
+ > **Note:** While the package is installed through npm, it requires the [Bun](https://bun.sh) runtime to execute. Install Bun with: `curl -fsSL https://bun.sh/install | bash`
69
+
47
70
  ### Quick Install (one command)
48
71
 
49
72
  ```bash
@@ -58,27 +81,20 @@ wget -qO- https://raw.githubusercontent.com/luongnv89/agent-skill-manager/main/i
58
81
 
59
82
  This will automatically install [Bun](https://bun.sh) (if not already installed) and then install `agent-skill-manager` globally.
60
83
 
61
- ### Manual Install
62
-
63
- **Prerequisites:** [Bun](https://bun.sh) >= 1.0.0
64
-
65
- ```bash
66
- bun install -g agent-skill-manager
67
- ```
68
-
69
84
  ### From Source
70
85
 
71
86
  ```bash
72
87
  git clone https://github.com/luongnv89/agent-skill-manager.git
73
88
  cd agent-skill-manager
74
89
  bun install
75
- bun run start
90
+ bun run build # bundle to dist/
91
+ bun run start # run from source (development)
76
92
  ```
77
93
 
78
94
  ### Advanced Options
79
95
 
80
96
  ```bash
81
- # Download and inspect before running
97
+ # Download and inspect the install script before running
82
98
  curl -sSL https://raw.githubusercontent.com/luongnv89/agent-skill-manager/main/install.sh -o install.sh
83
99
  less install.sh # review the script
84
100
  bash install.sh
@@ -86,13 +102,60 @@ bash install.sh
86
102
 
87
103
  ## Usage
88
104
 
105
+ ### Interactive TUI
106
+
107
+ Launch without arguments to open the interactive terminal UI:
108
+
89
109
  ```bash
90
- agent-skill-manager # Launch the interactive TUI
91
- agent-skill-manager --help # Show help
92
- agent-skill-manager --version # Show version
110
+ asm # or: agent-skill-manager
93
111
  ```
94
112
 
95
- ## Keyboard Shortcuts
113
+ ### CLI Commands
114
+
115
+ ```bash
116
+ asm list # List all discovered skills
117
+ asm search <query> # Search by name/description/provider
118
+ asm inspect <skill-name> # Show detailed info for a skill
119
+ asm uninstall <skill-name> # Remove a skill (with confirmation)
120
+ asm audit # Detect duplicate skills
121
+ asm config show # Print current config
122
+ asm config path # Print config file path
123
+ asm config reset # Reset config to defaults
124
+ asm config edit # Open config in $EDITOR
125
+ ```
126
+
127
+ ### Global Options
128
+
129
+ ```text
130
+ -h, --help Show help for any command
131
+ -v, --version Print version and exit
132
+ --json Output as JSON (list, search, inspect, audit)
133
+ -s, --scope <scope> Filter: global, project, or both (default: both)
134
+ --sort <field> Sort by: name, version, or location (default: name)
135
+ -y, --yes Skip confirmation prompts
136
+ --no-color Disable ANSI colors
137
+ ```
138
+
139
+ ### Examples
140
+
141
+ ```bash
142
+ # List all global skills sorted by provider location
143
+ asm list --scope global --sort location
144
+
145
+ # Search for skills and output JSON
146
+ asm search "code review" --json
147
+
148
+ # Inspect a specific skill
149
+ asm inspect my-skill
150
+
151
+ # Remove duplicates automatically
152
+ asm audit --yes
153
+
154
+ # Uninstall without confirmation
155
+ asm uninstall old-skill --yes
156
+ ```
157
+
158
+ ## TUI Keyboard Shortcuts
96
159
 
97
160
  | Key | Action |
98
161
  | -------------- | ------------------------------------- |
@@ -105,6 +168,7 @@ agent-skill-manager --version # Show version
105
168
  | `s` | Cycle sort: Name → Version → Location |
106
169
  | `r` | Refresh / rescan skills |
107
170
  | `c` | Open configuration |
171
+ | `a` | Audit duplicates |
108
172
  | `q` | Quit |
109
173
  | `?` | Toggle help overlay |
110
174
 
@@ -158,7 +222,7 @@ On first run, a config file is created at `~/.config/agent-skill-manager/config.
158
222
  - **Disable providers** — Set `enabled: false` to skip scanning a provider
159
223
  - **Preferences** — Set default scope and sort order
160
224
 
161
- You can also toggle providers on/off directly in the TUI by pressing `c`.
225
+ You can also manage config from the CLI (`asm config show|path|reset|edit`) or toggle providers in the TUI by pressing `c`.
162
226
 
163
227
  ## Supported Agent Tools
164
228
 
@@ -173,27 +237,45 @@ Additional tools can be added via the config file.
173
237
 
174
238
  ## Project Structure
175
239
 
176
- ```
240
+ ```text
177
241
  agent-skill-manager/
178
- ├── bin/ # CLI entry point
242
+ ├── bin/ # CLI entry point (source)
179
243
  │ └── agent-skill-manager.ts
244
+ ├── dist/ # Built bundle (npm package ships this)
245
+ │ └── agent-skill-manager.js
246
+ ├── scripts/
247
+ │ └── build.ts # Build script with version injection
180
248
  ├── src/
181
- │ ├── index.ts # App bootstrap & keyboard handling
182
- │ ├── config.ts # Config loading & saving
183
- │ ├── scanner.ts # Skill directory scanning & filtering
184
- │ ├── uninstaller.ts # Safe skill removal logic
249
+ │ ├── index.ts # TUI app bootstrap & keyboard handling
250
+ │ ├── cli.ts # CLI command parser & dispatcher
251
+ │ ├── config.ts # Config loading & saving
252
+ │ ├── scanner.ts # Skill directory scanning & filtering
253
+ │ ├── auditor.ts # Duplicate detection & reporting
254
+ │ ├── uninstaller.ts # Safe skill removal logic
255
+ │ ├── formatter.ts # Output formatting (tables, detail, JSON)
185
256
  │ ├── utils/
186
- │ │ ├── types.ts # Shared TypeScript types
187
- │ │ ├── colors.ts # TUI color palette
188
- │ │ └── frontmatter.ts # SKILL.md frontmatter parser
257
+ │ │ ├── types.ts # Shared TypeScript types
258
+ │ │ ├── colors.ts # TUI color palette
259
+ │ │ ├── version.ts # Version constant
260
+ │ │ └── frontmatter.ts # SKILL.md frontmatter parser
189
261
  │ └── views/
190
- │ ├── dashboard.ts # Main dashboard layout
191
- │ ├── skill-list.ts # Scrollable skill list
192
- │ ├── skill-detail.ts # Skill detail overlay
193
- │ ├── confirm.ts # Uninstall confirmation dialog
194
- │ ├── config.ts # In-TUI config editor
195
- └── help.ts # Help overlay
196
- ├── docs/ # Extended documentation
262
+ │ ├── dashboard.ts # Main dashboard layout
263
+ │ ├── skill-list.ts # Scrollable skill list
264
+ │ ├── skill-detail.ts # Skill detail overlay
265
+ │ ├── confirm.ts # Uninstall confirmation dialog
266
+ │ ├── duplicates.ts # Duplicate audit overlay
267
+ ├── config.ts # In-TUI config editor
268
+ │ └── help.ts # Help overlay
269
+ ├── docs/ # Extended documentation
270
+ │ ├── ARCHITECTURE.md # System design & data flow
271
+ │ ├── DEVELOPMENT.md # Local setup & debugging
272
+ │ ├── DEPLOYMENT.md # Publishing & CI pipeline
273
+ │ ├── CHANGELOG.md # Version history
274
+ │ └── brand_kit.md # Logo, colors, typography
275
+ ├── assets/
276
+ │ ├── logo/ # SVG logos (full, mark, wordmark, icon, favicon)
277
+ │ └── screenshots/ # TUI screenshots
278
+ ├── install.sh # One-command installer (curl | bash)
197
279
  ├── package.json
198
280
  ├── tsconfig.json
199
281
  └── README.md
@@ -203,10 +285,24 @@ agent-skill-manager/
203
285
 
204
286
  - **Runtime:** [Bun](https://bun.sh) >= 1.0.0
205
287
  - **Language:** TypeScript (ESNext, strict mode)
288
+ - **Build:** Bun bundler (ships pre-built via npm)
206
289
  - **TUI Framework:** [OpenTUI](https://github.com/nicholasgasior/opentui)
207
290
  - **Testing:** Bun test runner
208
291
  - **CI:** GitHub Actions + pre-commit hooks
209
292
 
293
+ ## Documentation
294
+
295
+ | Document | Description |
296
+ | ------------------------------------- | ---------------------------------------- |
297
+ | [Architecture](docs/ARCHITECTURE.md) | System design, components, and data flow |
298
+ | [Development](docs/DEVELOPMENT.md) | Local setup, testing, and debugging |
299
+ | [Deployment](docs/DEPLOYMENT.md) | Publishing and CI pipeline |
300
+ | [Changelog](docs/CHANGELOG.md) | Version history |
301
+ | [Brand Kit](docs/brand_kit.md) | Logo, colors, and typography |
302
+ | [Contributing](CONTRIBUTING.md) | How to contribute |
303
+ | [Security](SECURITY.md) | Vulnerability reporting |
304
+ | [Code of Conduct](CODE_OF_CONDUCT.md) | Community guidelines |
305
+
210
306
  ## Contributing
211
307
 
212
308
  Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.