ai-agent-skills 1.6.1 → 1.6.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 +17 -18
- package/cli.js +23 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,16 +29,14 @@
|
|
|
29
29
|
## Quick Start
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
#
|
|
33
|
-
npx ai-agent-skills browse
|
|
34
|
-
|
|
35
|
-
# Install from our curated catalog
|
|
32
|
+
# Install a skill to ALL agents with one command
|
|
36
33
|
npx ai-agent-skills install frontend-design
|
|
37
34
|
|
|
38
|
-
# Install
|
|
35
|
+
# Install to a specific agent only
|
|
39
36
|
npx ai-agent-skills install frontend-design --agent cursor
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
|
|
38
|
+
# Browse skills interactively
|
|
39
|
+
npx ai-agent-skills browse
|
|
42
40
|
|
|
43
41
|
# Install from any GitHub repo
|
|
44
42
|
npx ai-agent-skills install anthropics/skills
|
|
@@ -48,7 +46,7 @@ npx ai-agent-skills install anthropics/skills/pdf # specific skill
|
|
|
48
46
|
npx ai-agent-skills install ./my-custom-skill
|
|
49
47
|
```
|
|
50
48
|
|
|
51
|
-
|
|
49
|
+
**One command. Every agent.** By default, skills install to Claude Code, Cursor, Codex, Amp, VS Code, Copilot, Goose, Letta, and OpenCode simultaneously.
|
|
52
50
|
|
|
53
51
|
## Why This Exists
|
|
54
52
|
|
|
@@ -58,7 +56,7 @@ This repo curates the best in one place. Quality over quantity. All skills follo
|
|
|
58
56
|
|
|
59
57
|
## Compatible Agents
|
|
60
58
|
|
|
61
|
-
Works with **Claude Code**, **Cursor**, **Amp**, **VS Code**, **GitHub Copilot**, **Goose**, **Letta**,
|
|
59
|
+
Works with **Claude Code**, **Cursor**, **Codex**, **Amp**, **VS Code**, **GitHub Copilot**, **Goose**, **Letta**, and **OpenCode**.
|
|
62
60
|
|
|
63
61
|
## Available Skills
|
|
64
62
|
|
|
@@ -133,12 +131,11 @@ npx ai-agent-skills list
|
|
|
133
131
|
npx ai-agent-skills list --category development
|
|
134
132
|
npx ai-agent-skills list --installed --agent cursor
|
|
135
133
|
|
|
136
|
-
# Install
|
|
137
|
-
npx ai-agent-skills install <name> #
|
|
138
|
-
npx ai-agent-skills install <
|
|
139
|
-
npx ai-agent-skills install <owner/repo
|
|
140
|
-
npx ai-agent-skills install ./path # from local path
|
|
141
|
-
npx ai-agent-skills install <name> --agent cursor # for specific agent
|
|
134
|
+
# Install (defaults to ALL agents)
|
|
135
|
+
npx ai-agent-skills install <name> # installs to ALL agents
|
|
136
|
+
npx ai-agent-skills install <name> --agent cursor # install to specific agent only
|
|
137
|
+
npx ai-agent-skills install <owner/repo> # from GitHub (all agents)
|
|
138
|
+
npx ai-agent-skills install ./path # from local path (all agents)
|
|
142
139
|
npx ai-agent-skills install <name> --dry-run # preview only
|
|
143
140
|
|
|
144
141
|
# Manage installed skills
|
|
@@ -156,15 +153,17 @@ npx ai-agent-skills config --default-agent cursor
|
|
|
156
153
|
|
|
157
154
|
### Supported Agents
|
|
158
155
|
|
|
156
|
+
By default, `install` targets **all agents**. Use `--agent <name>` to install to a specific one.
|
|
157
|
+
|
|
159
158
|
| Agent | Flag | Install Location |
|
|
160
159
|
|-------|------|------------------|
|
|
161
|
-
| Claude Code | `--agent claude`
|
|
160
|
+
| Claude Code | `--agent claude` | `~/.claude/skills/` |
|
|
162
161
|
| Cursor | `--agent cursor` | `.cursor/skills/` |
|
|
162
|
+
| Codex | `--agent codex` | `~/.codex/skills/` |
|
|
163
163
|
| Amp | `--agent amp` | `~/.amp/skills/` |
|
|
164
164
|
| VS Code / Copilot | `--agent vscode` | `.github/skills/` |
|
|
165
165
|
| Goose | `--agent goose` | `~/.config/goose/skills/` |
|
|
166
|
-
| OpenCode | `--agent opencode` | `~/.opencode/
|
|
167
|
-
| Codex | `--agent codex` | `~/.codex/skills/` |
|
|
166
|
+
| OpenCode | `--agent opencode` | `~/.opencode/skill/` |
|
|
168
167
|
| Letta | `--agent letta` | `~/.letta/skills/` |
|
|
169
168
|
| Portable | `--agent project` | `.skills/` (works with any agent) |
|
|
170
169
|
|
package/cli.js
CHANGED
|
@@ -151,6 +151,7 @@ function parseArgs(args) {
|
|
|
151
151
|
param: null,
|
|
152
152
|
agents: [], // New: array of agents
|
|
153
153
|
allAgents: false, // New: --all-agents flag
|
|
154
|
+
explicitAgent: false, // Track if user explicitly specified agent(s)
|
|
154
155
|
installed: false,
|
|
155
156
|
all: false,
|
|
156
157
|
dryRun: false,
|
|
@@ -163,6 +164,7 @@ function parseArgs(args) {
|
|
|
163
164
|
|
|
164
165
|
// --agents claude,cursor,codex (multiple agents)
|
|
165
166
|
if (arg === '--agents') {
|
|
167
|
+
result.explicitAgent = true;
|
|
166
168
|
const value = args[i + 1] || '';
|
|
167
169
|
value.split(',').forEach(a => {
|
|
168
170
|
const agent = a.trim();
|
|
@@ -174,6 +176,7 @@ function parseArgs(args) {
|
|
|
174
176
|
}
|
|
175
177
|
// --agent cursor (single agent, backward compatible)
|
|
176
178
|
else if (arg === '--agent' || arg === '-a') {
|
|
179
|
+
result.explicitAgent = true;
|
|
177
180
|
let agentValue = args[i + 1] || defaultAgent;
|
|
178
181
|
agentValue = agentValue.replace(/^-+/, '');
|
|
179
182
|
if (validAgents.includes(agentValue) && !result.agents.includes(agentValue)) {
|
|
@@ -183,6 +186,7 @@ function parseArgs(args) {
|
|
|
183
186
|
}
|
|
184
187
|
// --all-agents (install to all known agents)
|
|
185
188
|
else if (arg === '--all-agents') {
|
|
189
|
+
result.explicitAgent = true;
|
|
186
190
|
result.allAgents = true;
|
|
187
191
|
}
|
|
188
192
|
else if (arg === '--installed' || arg === '-i') {
|
|
@@ -205,6 +209,7 @@ function parseArgs(args) {
|
|
|
205
209
|
else if (arg.startsWith('--')) {
|
|
206
210
|
const potentialAgent = arg.replace(/^--/, '');
|
|
207
211
|
if (validAgents.includes(potentialAgent)) {
|
|
212
|
+
result.explicitAgent = true;
|
|
208
213
|
if (!result.agents.includes(potentialAgent)) {
|
|
209
214
|
result.agents.push(potentialAgent);
|
|
210
215
|
}
|
|
@@ -1055,7 +1060,8 @@ ${colors.bold}Commands:${colors.reset}
|
|
|
1055
1060
|
${colors.green}list${colors.reset} List all available skills
|
|
1056
1061
|
${colors.green}list --installed${colors.reset} List installed skills for an agent
|
|
1057
1062
|
${colors.green}list --category <cat>${colors.reset} Filter by category
|
|
1058
|
-
${colors.green}install <name>${colors.reset} Install
|
|
1063
|
+
${colors.green}install <name>${colors.reset} Install to ALL agents (default)
|
|
1064
|
+
${colors.green}install <name> --agent cursor${colors.reset} Install to specific agent only
|
|
1059
1065
|
${colors.green}install <owner/repo>${colors.reset} Install from GitHub repository
|
|
1060
1066
|
${colors.green}install ./path${colors.reset} Install from local path
|
|
1061
1067
|
${colors.green}install <name> --dry-run${colors.reset} Preview installation without changes
|
|
@@ -1069,39 +1075,36 @@ ${colors.bold}Commands:${colors.reset}
|
|
|
1069
1075
|
${colors.green}help${colors.reset} Show this help
|
|
1070
1076
|
|
|
1071
1077
|
${colors.bold}Options:${colors.reset}
|
|
1072
|
-
${colors.cyan}--agent <name>${colors.reset} Target
|
|
1078
|
+
${colors.cyan}--agent <name>${colors.reset} Target specific agent (install defaults to ALL)
|
|
1073
1079
|
${colors.cyan}--agents <list>${colors.reset} Target multiple agents (comma-separated)
|
|
1074
|
-
${colors.cyan}--all-agents${colors.reset} Target ALL known agents at once
|
|
1075
1080
|
${colors.cyan}--installed${colors.reset} Show only installed skills (with list)
|
|
1076
1081
|
${colors.cyan}--dry-run, -n${colors.reset} Preview changes without applying
|
|
1077
1082
|
${colors.cyan}--category <c>${colors.reset} Filter by category
|
|
1078
1083
|
${colors.cyan}--all${colors.reset} Apply to all (with update)
|
|
1079
1084
|
${colors.cyan}--version, -v${colors.reset} Show version number
|
|
1080
1085
|
|
|
1081
|
-
${colors.bold}Agents:${colors.reset}
|
|
1082
|
-
${colors.cyan}claude${colors.reset}
|
|
1083
|
-
${colors.cyan}cursor${colors.reset} .cursor/skills/
|
|
1086
|
+
${colors.bold}Agents:${colors.reset} (install targets ALL by default)
|
|
1087
|
+
${colors.cyan}claude${colors.reset} ~/.claude/skills/
|
|
1088
|
+
${colors.cyan}cursor${colors.reset} .cursor/skills/ (project)
|
|
1089
|
+
${colors.cyan}codex${colors.reset} ~/.codex/skills/
|
|
1084
1090
|
${colors.cyan}amp${colors.reset} ~/.amp/skills/
|
|
1085
|
-
${colors.cyan}vscode${colors.reset} .github/skills/
|
|
1091
|
+
${colors.cyan}vscode${colors.reset} .github/skills/ (project)
|
|
1086
1092
|
${colors.cyan}copilot${colors.reset} .github/skills/ (alias for vscode)
|
|
1087
1093
|
${colors.cyan}goose${colors.reset} ~/.config/goose/skills/
|
|
1088
1094
|
${colors.cyan}opencode${colors.reset} ~/.opencode/skill/
|
|
1089
|
-
${colors.cyan}codex${colors.reset} ~/.codex/skills/
|
|
1090
1095
|
${colors.cyan}letta${colors.reset} ~/.letta/skills/
|
|
1091
|
-
${colors.cyan}project${colors.reset} .skills/
|
|
1096
|
+
${colors.cyan}project${colors.reset} .skills/ (portable)
|
|
1092
1097
|
|
|
1093
1098
|
${colors.bold}Categories:${colors.reset}
|
|
1094
1099
|
development, document, creative, business, productivity
|
|
1095
1100
|
|
|
1096
1101
|
${colors.bold}Examples:${colors.reset}
|
|
1097
1102
|
npx ai-agent-skills browse # Interactive browser
|
|
1098
|
-
npx ai-agent-skills install frontend-design # Install
|
|
1103
|
+
npx ai-agent-skills install frontend-design # Install to ALL agents
|
|
1104
|
+
npx ai-agent-skills install pdf --agent cursor # Install to Cursor only
|
|
1105
|
+
npx ai-agent-skills install pdf --agents claude,cursor # Install to specific agents
|
|
1099
1106
|
npx ai-agent-skills install anthropics/skills # Install from GitHub
|
|
1100
|
-
npx ai-agent-skills install anthropics/skills/pdf # Install specific skill from GitHub
|
|
1101
1107
|
npx ai-agent-skills install ./my-skill # Install from local path
|
|
1102
|
-
npx ai-agent-skills install pdf --agent cursor # Install for Cursor
|
|
1103
|
-
npx ai-agent-skills install pdf --agents claude,cursor # Install for multiple agents
|
|
1104
|
-
npx ai-agent-skills install pdf --all-agents # Install for ALL agents
|
|
1105
1108
|
npx ai-agent-skills install pdf --dry-run # Preview install
|
|
1106
1109
|
npx ai-agent-skills list --category development
|
|
1107
1110
|
npx ai-agent-skills search testing
|
|
@@ -1207,7 +1210,8 @@ function setConfig(key, value) {
|
|
|
1207
1210
|
// ============ MAIN CLI ============
|
|
1208
1211
|
|
|
1209
1212
|
const args = process.argv.slice(2);
|
|
1210
|
-
const { command, param, agents, installed, dryRun, category, tags, all } = parseArgs(args);
|
|
1213
|
+
const { command, param, agents, explicitAgent, installed, dryRun, category, tags, all } = parseArgs(args);
|
|
1214
|
+
const ALL_AGENTS = Object.keys(AGENT_PATHS);
|
|
1211
1215
|
|
|
1212
1216
|
// Handle config commands specially
|
|
1213
1217
|
if (command === 'config') {
|
|
@@ -1252,11 +1256,12 @@ switch (command || 'help') {
|
|
|
1252
1256
|
case 'add':
|
|
1253
1257
|
if (!param) {
|
|
1254
1258
|
error('Please specify a skill name, GitHub repo, or local path.');
|
|
1255
|
-
log('Usage: npx ai-agent-skills install <name> [--
|
|
1259
|
+
log('Usage: npx ai-agent-skills install <name> [--agent cursor]');
|
|
1256
1260
|
process.exit(1);
|
|
1257
1261
|
}
|
|
1258
|
-
//
|
|
1259
|
-
|
|
1262
|
+
// Default to ALL agents when no agent explicitly specified
|
|
1263
|
+
const installTargets = explicitAgent ? agents : ALL_AGENTS;
|
|
1264
|
+
for (const agent of installTargets) {
|
|
1260
1265
|
if (isLocalPath(param)) {
|
|
1261
1266
|
installFromLocalPath(param, agent, dryRun);
|
|
1262
1267
|
} else if (isGitHubUrl(param)) {
|
package/package.json
CHANGED