agent-skills-hub 1.0.1
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/LICENSE +21 -0
- package/README.md +40 -0
- package/bin/install.js +136 -0
- package/package.json +37 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Antigravity User
|
|
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,40 @@
|
|
|
1
|
+
# Agent Skills Hub
|
|
2
|
+
|
|
3
|
+
> The central hub for AI agent skills, supporting OpenClaw, Antigravity, Claude Code, and more.
|
|
4
|
+
|
|
5
|
+
**Agent Skills Hub** (formerly `antigravity-awesome-skills`) is a community-driven repository of skills designed to supercharge AI agents. Whether you are using OpenClaw, Antigravity, or other agentic frameworks, you'll find tools here to extend your agent's capabilities.
|
|
6
|
+
|
|
7
|
+
## Architecture & Packages
|
|
8
|
+
|
|
9
|
+
This project is organized into "packages" to support different agent ecosystems.
|
|
10
|
+
|
|
11
|
+
- **General Skills**: A vast collection of skills applicable to most agents.
|
|
12
|
+
- **[OpenClaw](skills/openclaw/)**: Specialized skills for the OpenClaw agent.
|
|
13
|
+
|
|
14
|
+
For a detailed look at the structure, see [ARCHITECTURE.md](ARCHITECTURE.md).
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
### Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx agent-skills-hub
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Adding New Skills
|
|
25
|
+
|
|
26
|
+
We welcome contributions! To add a skill:
|
|
27
|
+
|
|
28
|
+
1. Identify the appropriate package (e.g., `skills/openclaw` for OpenClaw-specific skills).
|
|
29
|
+
2. Create a new directory for your skill.
|
|
30
|
+
3. Add a `SKILL.md` defining the skill.
|
|
31
|
+
|
|
32
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
|
|
33
|
+
|
|
34
|
+
### Manual Cloning
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
git clone https://github.com/legendaryabhi/agent-skills-hub.git .agent/skills
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
MIT
|
package/bin/install.js
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
|
|
7
|
+
const REPO = 'https://github.com/legendaryabhi/agent-skills-hub.git';
|
|
8
|
+
const HOME = process.env.HOME || process.env.USERPROFILE || '';
|
|
9
|
+
|
|
10
|
+
function resolveDir(p) {
|
|
11
|
+
if (!p) return null;
|
|
12
|
+
const s = p.replace(/^~($|\/)/, HOME + '$1');
|
|
13
|
+
return path.resolve(s);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function parseArgs() {
|
|
17
|
+
const a = process.argv.slice(2);
|
|
18
|
+
let pathArg = null;
|
|
19
|
+
let versionArg = null;
|
|
20
|
+
let tagArg = null;
|
|
21
|
+
let cursor = false, claude = false, gemini = false, codex = false;
|
|
22
|
+
|
|
23
|
+
for (let i = 0; i < a.length; i++) {
|
|
24
|
+
if (a[i] === '--help' || a[i] === '-h') return { help: true };
|
|
25
|
+
if (a[i] === '--path' && a[i + 1]) { pathArg = a[++i]; continue; }
|
|
26
|
+
if (a[i] === '--version' && a[i + 1]) { versionArg = a[++i]; continue; }
|
|
27
|
+
if (a[i] === '--tag' && a[i + 1]) { tagArg = a[++i]; continue; }
|
|
28
|
+
if (a[i] === '--cursor') { cursor = true; continue; }
|
|
29
|
+
if (a[i] === '--claude') { claude = true; continue; }
|
|
30
|
+
if (a[i] === '--gemini') { gemini = true; continue; }
|
|
31
|
+
if (a[i] === '--codex') { codex = true; continue; }
|
|
32
|
+
if (a[i] === 'install') continue;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return { pathArg, versionArg, tagArg, cursor, claude, gemini, codex };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function defaultDir(opts) {
|
|
39
|
+
if (opts.pathArg) return resolveDir(opts.pathArg);
|
|
40
|
+
if (opts.cursor) return path.join(HOME, '.cursor', 'skills');
|
|
41
|
+
if (opts.claude) return path.join(HOME, '.claude', 'skills');
|
|
42
|
+
if (opts.gemini) return path.join(HOME, '.gemini', 'skills');
|
|
43
|
+
if (opts.codex) {
|
|
44
|
+
const codexHome = process.env.CODEX_HOME;
|
|
45
|
+
if (codexHome) return path.join(codexHome, 'skills');
|
|
46
|
+
return path.join(HOME, '.codex', 'skills');
|
|
47
|
+
}
|
|
48
|
+
return path.join(HOME, '.agent', 'skills');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function printHelp() {
|
|
52
|
+
console.log(`
|
|
53
|
+
agent-skills-hub — installer
|
|
54
|
+
|
|
55
|
+
npx agent-skills-hub [install] [options]
|
|
56
|
+
|
|
57
|
+
Clones the skills repo into your agent's skills directory.
|
|
58
|
+
|
|
59
|
+
Options:
|
|
60
|
+
--cursor Install to ~/.cursor/skills (Cursor)
|
|
61
|
+
--claude Install to ~/.claude/skills (Claude Code)
|
|
62
|
+
--gemini Install to ~/.gemini/skills (Gemini CLI)
|
|
63
|
+
--codex Install to ~/.codex/skills (Codex CLI)
|
|
64
|
+
--path <dir> Install to <dir> (default: ~/.agent/skills)
|
|
65
|
+
--version <ver> After clone, checkout tag v<ver> (e.g. 4.6.0 -> v4.6.0)
|
|
66
|
+
--tag <tag> After clone, checkout this tag (e.g. v4.6.0)
|
|
67
|
+
|
|
68
|
+
Examples:
|
|
69
|
+
npx agent-skills-hub
|
|
70
|
+
npx agent-skills-hub --cursor
|
|
71
|
+
npx agent-skills-hub --version 4.6.0
|
|
72
|
+
npx agent-skills-hub --path ./my-skills
|
|
73
|
+
`);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function run(cmd, args, opts = {}) {
|
|
77
|
+
const r = spawnSync(cmd, args, { stdio: 'inherit', ...opts });
|
|
78
|
+
if (r.status !== 0) process.exit(r.status == null ? 1 : r.status);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function main() {
|
|
82
|
+
const opts = parseArgs();
|
|
83
|
+
const { tagArg, versionArg } = opts;
|
|
84
|
+
|
|
85
|
+
if (opts.help) {
|
|
86
|
+
printHelp();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const target = defaultDir(opts);
|
|
91
|
+
if (!target || !HOME) {
|
|
92
|
+
console.error('Could not resolve home directory. Use --path <absolute-path>.');
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (fs.existsSync(target)) {
|
|
97
|
+
const gitDir = path.join(target, '.git');
|
|
98
|
+
if (fs.existsSync(gitDir)) {
|
|
99
|
+
console.log('Directory already exists and is a git repo. Updating…');
|
|
100
|
+
process.chdir(target);
|
|
101
|
+
run('git', ['pull']);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
console.error(`Directory exists and is not a git repo: ${target}`);
|
|
105
|
+
console.error('Remove it or use --path to choose another location.');
|
|
106
|
+
process.exit(1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const parent = path.dirname(target);
|
|
110
|
+
if (!fs.existsSync(parent)) {
|
|
111
|
+
try {
|
|
112
|
+
fs.mkdirSync(parent, { recursive: true });
|
|
113
|
+
} catch (e) {
|
|
114
|
+
console.error(`Cannot create parent directory: ${parent}`, e.message);
|
|
115
|
+
process.exit(1);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (process.platform === 'win32') {
|
|
120
|
+
run('git', ['-c', 'core.symlinks=true', 'clone', REPO, target]);
|
|
121
|
+
} else {
|
|
122
|
+
run('git', ['clone', REPO, target]);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const ref = tagArg || (versionArg ? (versionArg.startsWith('v') ? versionArg : `v${versionArg}`) : null);
|
|
126
|
+
if (ref) {
|
|
127
|
+
console.log(`Checking out ${ref}…`);
|
|
128
|
+
process.chdir(target);
|
|
129
|
+
run('git', ['checkout', ref]);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
console.log(`\nInstalled to ${target}`);
|
|
133
|
+
console.log('Pick a bundle in docs/BUNDLES.md and use @skill-name in your AI assistant.');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
main();
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agent-skills-hub",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "The central hub for AI agent skills, supporting OpenClaw, Antigravity, Claude Code, and more.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"validate": "python3 scripts/validate_skills.py",
|
|
8
|
+
"validate:strict": "python3 scripts/validate_skills.py --strict",
|
|
9
|
+
"index": "python3 scripts/generate_index.py",
|
|
10
|
+
"readme": "python3 scripts/update_readme.py",
|
|
11
|
+
"chain": "npm run validate && npm run index && npm run readme",
|
|
12
|
+
"catalog": "node scripts/build-catalog.js",
|
|
13
|
+
"build": "npm run chain && npm run catalog",
|
|
14
|
+
"test": "node scripts/tests/validate_skills_headings.test.js && python3 scripts/tests/test_validate_skills_headings.py"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"yaml": "^2.8.2"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/legendaryabhi/agent-skills-hub.git"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"agent-skills-hub": "bin/install.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"claude-code",
|
|
31
|
+
"cursor",
|
|
32
|
+
"gemini-cli",
|
|
33
|
+
"antigravity",
|
|
34
|
+
"agentic-skills",
|
|
35
|
+
"ai-coding"
|
|
36
|
+
]
|
|
37
|
+
}
|