agent-skills-cli 1.0.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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/dist/cli/index.d.ts +7 -0
  4. package/dist/cli/index.d.ts.map +1 -0
  5. package/dist/cli/index.js +1181 -0
  6. package/dist/cli/index.js.map +1 -0
  7. package/dist/core/executor.d.ts +22 -0
  8. package/dist/core/executor.d.ts.map +1 -0
  9. package/dist/core/executor.js +147 -0
  10. package/dist/core/executor.js.map +1 -0
  11. package/dist/core/index.d.ts +12 -0
  12. package/dist/core/index.d.ts.map +1 -0
  13. package/dist/core/index.js +17 -0
  14. package/dist/core/index.js.map +1 -0
  15. package/dist/core/injector.d.ts +24 -0
  16. package/dist/core/injector.d.ts.map +1 -0
  17. package/dist/core/injector.js +99 -0
  18. package/dist/core/injector.js.map +1 -0
  19. package/dist/core/loader.d.ts +39 -0
  20. package/dist/core/loader.d.ts.map +1 -0
  21. package/dist/core/loader.js +161 -0
  22. package/dist/core/loader.js.map +1 -0
  23. package/dist/core/marketplace.d.ts +55 -0
  24. package/dist/core/marketplace.d.ts.map +1 -0
  25. package/dist/core/marketplace.js +399 -0
  26. package/dist/core/marketplace.js.map +1 -0
  27. package/dist/core/skillsmp.d.ts +38 -0
  28. package/dist/core/skillsmp.d.ts.map +1 -0
  29. package/dist/core/skillsmp.js +142 -0
  30. package/dist/core/skillsmp.js.map +1 -0
  31. package/dist/core/validator.d.ts +18 -0
  32. package/dist/core/validator.d.ts.map +1 -0
  33. package/dist/core/validator.js +177 -0
  34. package/dist/core/validator.js.map +1 -0
  35. package/dist/index.d.ts +5 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +5 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/types/index.d.ts +108 -0
  40. package/dist/types/index.d.ts.map +1 -0
  41. package/dist/types/index.js +6 -0
  42. package/dist/types/index.js.map +1 -0
  43. package/dist/types/marketplace.d.ts +81 -0
  44. package/dist/types/marketplace.d.ts.map +1 -0
  45. package/dist/types/marketplace.js +20 -0
  46. package/dist/types/marketplace.js.map +1 -0
  47. package/package.json +59 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Karanjot786
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,226 @@
1
+ # Agent Skills CLI ๐Ÿš€
2
+
3
+ > **One CLI. 40,000+ skills. All AI agents.**
4
+
5
+ [![npm version](https://img.shields.io/npm/v/agent-skills-cli)](https://www.npmjs.com/package/agent-skills-cli)
6
+ [![license](https://img.shields.io/npm/l/agent-skills-cli)](LICENSE)
7
+
8
+ Install skills from the world's largest Agent Skills marketplace and sync them to **Cursor**, **Claude Code**, **GitHub Copilot**, **OpenAI Codex**, and **Antigravity** โ€” all with a single command.
9
+
10
+ ```bash
11
+ npm install -g agent-skills-cli
12
+ skills
13
+ ```
14
+
15
+ ---
16
+
17
+ ## โœจ Features
18
+
19
+ | Feature | Description |
20
+ |---------|-------------|
21
+ | **40,779+ Skills** | Access the largest collection of AI agent skills via [SkillsMP](https://skillsmp.com) |
22
+ | **5 AI Agents** | Works with Cursor, Claude Code, GitHub Copilot, OpenAI Codex, Antigravity |
23
+ | **No API Key** | SkillsMP is completely free and public โ€” no authentication required |
24
+ | **Interactive CLI** | Arrow-key navigation, checkbox selection, progress spinners |
25
+ | **Instant Loading** | Skills fetched via API in <1 second (no individual file fetching) |
26
+ | **Auto-Export** | Install once, skills are automatically formatted for each agent |
27
+ | **Star Sorting** | Browse skills by GitHub stars (PyTorch 95kโญ, OpenAI 54kโญ, etc.) |
28
+
29
+ ---
30
+
31
+ ## ๐Ÿ“ฆ Installation
32
+
33
+ ```bash
34
+ npm install -g agent-skills-cli
35
+ ```
36
+
37
+ **Requirements:** Node.js 18+
38
+
39
+ ---
40
+
41
+ ## ๐Ÿš€ Quick Start
42
+
43
+ Run the interactive wizard:
44
+
45
+ ```bash
46
+ skills
47
+ ```
48
+
49
+ **What happens:**
50
+ 1. Select which AI agents you use (Cursor, Claude, Copilot, etc.)
51
+ 2. Browse 40,000+ skills sorted by GitHub stars
52
+ 3. Select skills with Space, confirm with Enter
53
+ 4. Skills are installed and exported to your agents automatically
54
+
55
+ ---
56
+
57
+ ## ๐Ÿ› ๏ธ Commands
58
+
59
+ ### Interactive Mode
60
+
61
+ ```bash
62
+ skills # Main interactive wizard
63
+ skills install # Direct to skill selection
64
+ skills export # Export all installed skills to agents
65
+ ```
66
+
67
+ ### Skill Management
68
+
69
+ ```bash
70
+ skills list # List installed skills
71
+ skills show <name> # Show skill details
72
+ skills validate <path> # Validate a SKILL.md file
73
+ skills init <name> # Create a new skill from template
74
+ ```
75
+
76
+ ### Marketplace (Legacy GitHub)
77
+
78
+ ```bash
79
+ skills market-list # List skills from configured sources
80
+ skills market-search <query> # Search skills
81
+ skills market-install <name> # Install by name
82
+ skills market-uninstall <name> # Uninstall a skill
83
+ skills market-installed # Show installed skills
84
+ skills market-sources # List marketplace sources
85
+ ```
86
+
87
+ ### Agent Export
88
+
89
+ ```bash
90
+ skills export --target all # Export to all agents
91
+ skills export --target cursor # Export to Cursor only
92
+ skills export --target claude # Export to Claude Code only
93
+ skills export --target copilot # Export to GitHub Copilot only
94
+ skills export --target codex # Export to OpenAI Codex only
95
+ skills sync # Sync to Antigravity workflows
96
+ ```
97
+
98
+ ---
99
+
100
+ ## ๐Ÿค– Supported AI Agents
101
+
102
+ | Agent | Skill Location | Format |
103
+ |-------|----------------|--------|
104
+ | **Cursor** | `.cursor/skills/<name>/SKILL.md` | Agent Skills Standard |
105
+ | **Claude Code** | `.claude/skills/<name>/SKILL.md` | Agent Skills Standard |
106
+ | **GitHub Copilot** | `.github/skills/<name>/SKILL.md` | Agent Skills Standard |
107
+ | **OpenAI Codex** | `.codex/skills/<name>/SKILL.md` | Agent Skills Standard |
108
+ | **Antigravity** | `.agent/workflows/<name>.md` | Workflow Format |
109
+
110
+ > **Note:** All major AI coding agents now support the same `SKILL.md` standard, making skills truly portable!
111
+
112
+ ---
113
+
114
+ ## ๐ŸŒ SkillsMP Integration
115
+
116
+ This CLI is powered by [SkillsMP](https://skillsmp.com), the largest Agent Skills marketplace:
117
+
118
+ - **40,779 skills** indexed from GitHub
119
+ - **Public API** โ€” no authentication needed
120
+ - **Real-time updates** โ€” skills indexed daily
121
+ - **Star-based ranking** โ€” best skills surface first
122
+
123
+ ### Top Skills by Stars
124
+
125
+ | Skill | Author | Stars |
126
+ |-------|--------|-------|
127
+ | at-dispatch-v2 | PyTorch | 95,362 โญ |
128
+ | skill-creator | OpenAI | 54,704 โญ |
129
+ | frontend-design | Anthropic | 47,860 โญ |
130
+ | typescript-review | Metabase | 44,733 โญ |
131
+
132
+ ---
133
+
134
+ ## ๐Ÿ“š Creating Your Own Skills
135
+
136
+ Create a `SKILL.md` file in your project:
137
+
138
+ ```markdown
139
+ ---
140
+ name: my-custom-skill
141
+ description: What this skill does and when to trigger it
142
+ ---
143
+
144
+ # Instructions
145
+
146
+ Detailed instructions for the AI agent...
147
+
148
+ ## Examples
149
+
150
+ Show examples of how to use this skill...
151
+ ```
152
+
153
+ Then export to your agents:
154
+
155
+ ```bash
156
+ skills export
157
+ ```
158
+
159
+ ### Skill Structure
160
+
161
+ ```
162
+ my-skill/
163
+ โ”œโ”€โ”€ SKILL.md # Main skill file (required)
164
+ โ”œโ”€โ”€ references/ # Reference documentation (optional)
165
+ โ”‚ โ””โ”€โ”€ guide.md
166
+ โ””โ”€โ”€ assets/ # Templates, images (optional)
167
+ โ””โ”€โ”€ template.txt
168
+ ```
169
+
170
+ ---
171
+
172
+ ## โš™๏ธ Configuration
173
+
174
+ Skills are stored in:
175
+ - **Installed skills:** `~/.antigravity/skills/`
176
+ - **Marketplace config:** `~/.antigravity/marketplace.json`
177
+
178
+ ### Adding Custom Marketplace Sources
179
+
180
+ ```bash
181
+ skills market-add-source
182
+ ```
183
+
184
+ ---
185
+
186
+ ## ๐Ÿ”— Related Projects
187
+
188
+ - **[SkillsMP](https://skillsmp.com)** โ€” Agent Skills Marketplace (40k+ skills)
189
+ - **[anthropics/skills](https://github.com/anthropics/skills)** โ€” Official Anthropic skills
190
+ - **[agentskills.io](https://agentskills.io)** โ€” Agent Skills open specification
191
+
192
+ ---
193
+
194
+ ## ๐Ÿ—๏ธ Architecture
195
+
196
+ ```
197
+ agent-skills-cli/
198
+ โ”œโ”€โ”€ src/
199
+ โ”‚ โ”œโ”€โ”€ cli/index.ts # Interactive CLI (Commander + Inquirer)
200
+ โ”‚ โ”œโ”€โ”€ core/
201
+ โ”‚ โ”‚ โ”œโ”€โ”€ skillsmp.ts # SkillsMP API client
202
+ โ”‚ โ”‚ โ”œโ”€โ”€ marketplace.ts # GitHub marketplace
203
+ โ”‚ โ”‚ โ”œโ”€โ”€ loader.ts # Skill discovery
204
+ โ”‚ โ”‚ โ”œโ”€โ”€ validator.ts # SKILL.md validation
205
+ โ”‚ โ”‚ โ”œโ”€โ”€ injector.ts # Prompt generation
206
+ โ”‚ โ”‚ โ””โ”€โ”€ executor.ts # Script execution
207
+ โ”‚ โ””โ”€โ”€ types/ # TypeScript definitions
208
+ โ”œโ”€โ”€ dist/ # Compiled output
209
+ โ””โ”€โ”€ package.json
210
+ ```
211
+
212
+ ---
213
+
214
+ ## ๐Ÿ“„ License
215
+
216
+ MIT ยฉ [Karanjot786](https://github.com/Karanjot786)
217
+
218
+ ---
219
+
220
+ <div align="center">
221
+
222
+ **Built for developers who use multiple AI coding assistants.**
223
+
224
+ [SkillsMP](https://skillsmp.com) ยท [Report Bug](https://github.com/Karanjot786/agent-skills-cli/issues) ยท [Request Feature](https://github.com/Karanjot786/agent-skills-cli/issues)
225
+
226
+ </div>
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Agent Skills CLI
4
+ * Universal CLI for managing Agent Skills across Cursor, Claude Code, GitHub Copilot, OpenAI Codex
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AACA;;;GAGG"}