ai-agent-skills 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 (3) hide show
  1. package/README.md +28 -0
  2. package/bin/cli.js +85 -0
  3. package/package.json +15 -0
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # ai-agent-skills
2
+
3
+ Install Claude Agent Skills with one command.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ # List available skills
9
+ npx ai-agent-skills list
10
+
11
+ # Install a skill
12
+ npx ai-agent-skills install frontend-design
13
+ npx ai-agent-skills install mcp-builder
14
+ ```
15
+
16
+ ## Available Skills
17
+
18
+ 20 curated skills from top repos:
19
+ - **Development**: frontend-design, mcp-builder, code-review, python-development, javascript-typescript
20
+ - **Documents**: pdf, xlsx, docx, pptx
21
+ - **Creative**: canvas-design, algorithmic-art
22
+ - **Business**: brand-guidelines, internal-comms
23
+
24
+ ## Links
25
+
26
+ - [Browse Skills](https://skillcreator.ai/explore)
27
+ - [Create Skills](https://skillcreator.ai/build)
28
+ - [GitHub](https://github.com/skillcreatorai/Skill-Creator-Skills)
package/bin/cli.js ADDED
@@ -0,0 +1,85 @@
1
+ #!/usr/bin/env node
2
+
3
+ const https = require('https');
4
+ const fs = require('fs');
5
+ const path = require('path');
6
+ const os = require('os');
7
+
8
+ const GITHUB_RAW = 'https://raw.githubusercontent.com/skillcreatorai/Skill-Creator-Skills/main';
9
+
10
+ async function fetch(url) {
11
+ return new Promise((resolve, reject) => {
12
+ https.get(url, (res) => {
13
+ if (res.statusCode === 301 || res.statusCode === 302) {
14
+ return fetch(res.headers.location).then(resolve).catch(reject);
15
+ }
16
+ let data = '';
17
+ res.on('data', chunk => data += chunk);
18
+ res.on('end', () => resolve({ ok: res.statusCode === 200, data, status: res.statusCode }));
19
+ }).on('error', reject);
20
+ });
21
+ }
22
+
23
+ async function listSkills() {
24
+ const res = await fetch(`${GITHUB_RAW}/skills.json`);
25
+ if (!res.ok) {
26
+ console.error('Failed to fetch skills list');
27
+ process.exit(1);
28
+ }
29
+ const { skills } = JSON.parse(res.data);
30
+ console.log('\nšŸ“¦ Available Skills:\n');
31
+ skills.forEach(s => {
32
+ const stars = s.stars >= 1000 ? `${(s.stars/1000).toFixed(1)}k` : s.stars;
33
+ const badge = s.verified ? 'āœ“' : ' ';
34
+ console.log(` ${badge} ${s.name.padEnd(22)} ${String(stars).padStart(6)} ⭐ ${s.description.slice(0, 50)}...`);
35
+ });
36
+ console.log('\nInstall: npx ai-agent-skills install <name>\n');
37
+ }
38
+
39
+ async function installSkill(name) {
40
+ const skillName = name.toLowerCase();
41
+ const skillDir = path.join(os.homedir(), '.claude', 'skills', skillName);
42
+ const skillUrl = `${GITHUB_RAW}/skills/${skillName}/SKILL.md`;
43
+
44
+ console.log(`\nšŸ“„ Installing ${skillName}...`);
45
+
46
+ const res = await fetch(skillUrl);
47
+ if (!res.ok) {
48
+ console.error(`\nāŒ Skill '${skillName}' not found\n`);
49
+ console.log('Run: npx ai-agent-skills list');
50
+ process.exit(1);
51
+ }
52
+
53
+ fs.mkdirSync(skillDir, { recursive: true });
54
+ fs.writeFileSync(path.join(skillDir, 'SKILL.md'), res.data);
55
+
56
+ console.log(`\nāœ… Installed ${skillName}`);
57
+ console.log(`šŸ“ Location: ${skillDir}/SKILL.md`);
58
+ console.log('\nThe skill is now available in Claude Code!\n');
59
+ }
60
+
61
+ const [,, cmd, arg] = process.argv;
62
+
63
+ if (cmd === 'list' || cmd === 'ls') {
64
+ listSkills();
65
+ } else if (cmd === 'install' || cmd === 'i') {
66
+ if (!arg) {
67
+ console.error('Usage: npx ai-agent-skills install <skill-name>');
68
+ process.exit(1);
69
+ }
70
+ installSkill(arg);
71
+ } else {
72
+ console.log(`
73
+ šŸ“¦ AI Agent Skills CLI
74
+
75
+ Commands:
76
+ npx ai-agent-skills list List available skills
77
+ npx ai-agent-skills install <name> Install a skill
78
+
79
+ Examples:
80
+ npx ai-agent-skills install frontend-design
81
+ npx ai-agent-skills install mcp-builder
82
+
83
+ Browse: https://skillcreator.ai/explore
84
+ `);
85
+ }
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "ai-agent-skills",
3
+ "version": "1.0.0",
4
+ "description": "Install Claude Agent Skills with one command",
5
+ "bin": {
6
+ "ai-agent-skills": "./bin/cli.js"
7
+ },
8
+ "keywords": ["claude", "skills", "ai", "agent", "mcp", "anthropic"],
9
+ "author": "SkillCreator <skillcreatorai@gmail.com>",
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/skillcreatorai/Skill-Creator-Skills"
14
+ }
15
+ }