agent-skill-manager 1.0.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.
package/README.md CHANGED
@@ -2,68 +2,160 @@
2
2
  <picture>
3
3
  <source media="(prefers-color-scheme: dark)" srcset="assets/logo/logo-full.svg" />
4
4
  <source media="(prefers-color-scheme: light)" srcset="assets/logo/logo-black.svg" />
5
- <img src="assets/logo/logo-full.svg" alt="skill-manager" width="480" />
5
+ <img src="assets/logo/logo-full.svg" alt="agent-skill-manager" width="560" />
6
6
  </picture>
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
- **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).
33
+
34
+ <p align="center">
35
+ <img src="assets/screenshots/agent-skill-manager.png" alt="agent-skill-manager TUI dashboard" width="800" />
36
+ </p>
29
37
 
30
38
  ## Features
31
39
 
32
- - **Multi-agent support** — Manage skills for Claude Code, Codex, OpenClaw, and custom agent tools from one TUI
33
- - **Configurable providers** — Define which agent tool directories to scan via `~/.config/skill-manager/config.json`
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
42
+ - **Configurable providers** — Define which agent tool directories to scan via `~/.config/agent-skill-manager/config.json`
34
43
  - **Global & project scopes** — Filter skills by global (`~/.<tool>/skills/`) or project-level (`./<tool>/skills/`)
35
44
  - **Real-time search** — Filter skills by name, description, or provider
36
45
  - **Sort** — By name, version, or location
37
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
38
48
  - **Safe uninstall** — Confirmation dialog, removes skill directories, rule files, and AGENTS.md blocks
39
49
  - **In-TUI config editor** — Toggle providers on/off, or open config in `$EDITOR`
50
+ - **JSON output** — Machine-readable output for scripting (`--json`)
40
51
 
41
52
  ## Install
42
53
 
43
- **Prerequisites:** [Bun](https://bun.sh) >= 1.0.0
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)
44
59
 
45
60
  ```bash
61
+ # Install globally via npm
62
+ npm install -g agent-skill-manager
63
+
64
+ # Or via Bun
46
65
  bun install -g agent-skill-manager
47
66
  ```
48
67
 
49
- Or run directly from source:
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
+
70
+ ### Quick Install (one command)
71
+
72
+ ```bash
73
+ curl -sSL https://raw.githubusercontent.com/luongnv89/agent-skill-manager/main/install.sh | bash
74
+ ```
75
+
76
+ Or with wget:
77
+
78
+ ```bash
79
+ wget -qO- https://raw.githubusercontent.com/luongnv89/agent-skill-manager/main/install.sh | bash
80
+ ```
81
+
82
+ This will automatically install [Bun](https://bun.sh) (if not already installed) and then install `agent-skill-manager` globally.
83
+
84
+ ### From Source
50
85
 
51
86
  ```bash
52
- git clone https://github.com/luongnv89/skill-manager.git
53
- cd skill-manager
87
+ git clone https://github.com/luongnv89/agent-skill-manager.git
88
+ cd agent-skill-manager
54
89
  bun install
55
- bun run start
90
+ bun run build # bundle to dist/
91
+ bun run start # run from source (development)
92
+ ```
93
+
94
+ ### Advanced Options
95
+
96
+ ```bash
97
+ # Download and inspect the install script before running
98
+ curl -sSL https://raw.githubusercontent.com/luongnv89/agent-skill-manager/main/install.sh -o install.sh
99
+ less install.sh # review the script
100
+ bash install.sh
56
101
  ```
57
102
 
58
103
  ## Usage
59
104
 
105
+ ### Interactive TUI
106
+
107
+ Launch without arguments to open the interactive terminal UI:
108
+
109
+ ```bash
110
+ asm # or: agent-skill-manager
111
+ ```
112
+
113
+ ### CLI Commands
114
+
60
115
  ```bash
61
- skill-manager # Launch the interactive TUI
62
- skill-manager --help # Show help
63
- skill-manager --version # Show version
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
64
125
  ```
65
126
 
66
- ## Keyboard Shortcuts
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
67
159
 
68
160
  | Key | Action |
69
161
  | -------------- | ------------------------------------- |
@@ -76,12 +168,13 @@ skill-manager --version # Show version
76
168
  | `s` | Cycle sort: Name → Version → Location |
77
169
  | `r` | Refresh / rescan skills |
78
170
  | `c` | Open configuration |
171
+ | `a` | Audit duplicates |
79
172
  | `q` | Quit |
80
173
  | `?` | Toggle help overlay |
81
174
 
82
175
  ## Configuration
83
176
 
84
- On first run, a config file is created at `~/.config/skill-manager/config.json` with default providers:
177
+ On first run, a config file is created at `~/.config/agent-skill-manager/config.json` with default providers:
85
178
 
86
179
  ```json
87
180
  {
@@ -129,7 +222,7 @@ On first run, a config file is created at `~/.config/skill-manager/config.json`
129
222
  - **Disable providers** — Set `enabled: false` to skip scanning a provider
130
223
  - **Preferences** — Set default scope and sort order
131
224
 
132
- 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`.
133
226
 
134
227
  ## Supported Agent Tools
135
228
 
@@ -144,27 +237,45 @@ Additional tools can be added via the config file.
144
237
 
145
238
  ## Project Structure
146
239
 
147
- ```
148
- skill-manager/
149
- ├── bin/ # CLI entry point
150
- │ └── skill-manager.ts
240
+ ```text
241
+ agent-skill-manager/
242
+ ├── bin/ # CLI entry point (source)
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
151
248
  ├── src/
152
- │ ├── index.ts # App bootstrap & keyboard handling
153
- │ ├── config.ts # Config loading & saving
154
- │ ├── scanner.ts # Skill directory scanning & filtering
155
- │ ├── 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)
156
256
  │ ├── utils/
157
- │ │ ├── types.ts # Shared TypeScript types
158
- │ │ ├── colors.ts # TUI color palette
159
- │ │ └── 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
160
261
  │ └── views/
161
- │ ├── dashboard.ts # Main dashboard layout
162
- │ ├── skill-list.ts # Scrollable skill list
163
- │ ├── skill-detail.ts # Skill detail overlay
164
- │ ├── confirm.ts # Uninstall confirmation dialog
165
- │ ├── config.ts # In-TUI config editor
166
- └── help.ts # Help overlay
167
- ├── 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)
168
279
  ├── package.json
169
280
  ├── tsconfig.json
170
281
  └── README.md
@@ -174,10 +285,24 @@ skill-manager/
174
285
 
175
286
  - **Runtime:** [Bun](https://bun.sh) >= 1.0.0
176
287
  - **Language:** TypeScript (ESNext, strict mode)
288
+ - **Build:** Bun bundler (ships pre-built via npm)
177
289
  - **TUI Framework:** [OpenTUI](https://github.com/nicholasgasior/opentui)
178
290
  - **Testing:** Bun test runner
179
291
  - **CI:** GitHub Actions + pre-commit hooks
180
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
+
181
306
  ## Contributing
182
307
 
183
308
  Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.