skillhub 0.1.14 → 0.1.16
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/dist/index.js +27 -1
- package/package.json +61 -59
- package/LICENSE +0 -21
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { parseSkillMd } from "skillhub-core";
|
|
|
25
25
|
import https from "https";
|
|
26
26
|
import http from "http";
|
|
27
27
|
var API_BASE_URL = process.env.SKILLHUB_API_URL || "https://skills.palebluedot.live/api";
|
|
28
|
-
var API_TIMEOUT = parseInt(process.env.SKILLHUB_API_TIMEOUT || "
|
|
28
|
+
var API_TIMEOUT = parseInt(process.env.SKILLHUB_API_TIMEOUT || "20000");
|
|
29
29
|
var API_FILES_TIMEOUT = parseInt(process.env.SKILLHUB_API_FILES_TIMEOUT || "45000");
|
|
30
30
|
function httpsRequest(url, options = {}) {
|
|
31
31
|
return new Promise((resolve, reject) => {
|
|
@@ -482,6 +482,12 @@ A different skill is already installed with the name "${actualName}":`));
|
|
|
482
482
|
console.log(
|
|
483
483
|
` This skill will be automatically activated when your ${getPlatformName(options.platform)} agent recognizes it's relevant.`
|
|
484
484
|
);
|
|
485
|
+
const setupInstructions = getPlatformSetupInstructions(options.platform, installPath);
|
|
486
|
+
if (setupInstructions) {
|
|
487
|
+
console.log();
|
|
488
|
+
console.log(chalk.cyan("Next Steps:"));
|
|
489
|
+
console.log(setupInstructions);
|
|
490
|
+
}
|
|
485
491
|
if (content.scripts.length > 0) {
|
|
486
492
|
console.log();
|
|
487
493
|
console.log(chalk.dim(`Scripts: ${content.scripts.map((s) => s.name).join(", ")}`));
|
|
@@ -502,6 +508,26 @@ function getPlatformName(platform) {
|
|
|
502
508
|
};
|
|
503
509
|
return names[platform];
|
|
504
510
|
}
|
|
511
|
+
function getPlatformSetupInstructions(platform, installPath) {
|
|
512
|
+
switch (platform) {
|
|
513
|
+
case "claude":
|
|
514
|
+
return chalk.dim(" Skills in ~/.claude/skills/ are automatically discovered by Claude Code.");
|
|
515
|
+
case "codex":
|
|
516
|
+
return chalk.dim(` Reference this skill in your AGENTS.md:
|
|
517
|
+
@import ${installPath}/SKILL.md`);
|
|
518
|
+
case "copilot":
|
|
519
|
+
return chalk.dim(` Reference this skill in .github/copilot-instructions.md:
|
|
520
|
+
@import ${installPath}/SKILL.md`);
|
|
521
|
+
case "cursor":
|
|
522
|
+
return chalk.dim(` Reference this skill in your .cursorrules file:
|
|
523
|
+
@import ${installPath}/SKILL.md`);
|
|
524
|
+
case "windsurf":
|
|
525
|
+
return chalk.dim(` Reference this skill in your Windsurf configuration:
|
|
526
|
+
Path: ${installPath}/SKILL.md`);
|
|
527
|
+
default:
|
|
528
|
+
return null;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
505
531
|
function convertCachedFilesToSkillContent(response) {
|
|
506
532
|
let skillMd = "";
|
|
507
533
|
const scripts = [];
|
package/package.json
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "skillhub",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "CLI tool for managing AI Agent skills - search, install, and update skills for Claude, Codex, Copilot, and more",
|
|
5
|
-
"author": "SkillHub Contributors",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/anthropics/skillhub.git",
|
|
10
|
-
"directory": "apps/cli"
|
|
11
|
-
},
|
|
12
|
-
"homepage": "https://skills.palebluedot.live",
|
|
13
|
-
"type": "module",
|
|
14
|
-
"bin": {
|
|
15
|
-
"skillhub": "./dist/index.js"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
],
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
},
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "skillhub",
|
|
3
|
+
"version": "0.1.16",
|
|
4
|
+
"description": "CLI tool for managing AI Agent skills - search, install, and update skills for Claude, Codex, Copilot, and more",
|
|
5
|
+
"author": "SkillHub Contributors",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/anthropics/skillhub.git",
|
|
10
|
+
"directory": "apps/cli"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://skills.palebluedot.live",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"bin": {
|
|
15
|
+
"skillhub": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup src/index.ts --format esm --target node20 --clean",
|
|
22
|
+
"dev": "tsx src/index.ts",
|
|
23
|
+
"start": "node dist/index.js",
|
|
24
|
+
"lint": "eslint src/",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"test": "vitest",
|
|
27
|
+
"test:run": "vitest run"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"skillhub-core": "^0.1.0",
|
|
31
|
+
"@octokit/rest": "^20.0.2",
|
|
32
|
+
"chalk": "^5.3.0",
|
|
33
|
+
"commander": "^11.1.0",
|
|
34
|
+
"fs-extra": "^11.2.0",
|
|
35
|
+
"ora": "^8.0.1",
|
|
36
|
+
"prompts": "^2.4.2"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/fs-extra": "^11.0.4",
|
|
40
|
+
"@types/node": "^20.10.0",
|
|
41
|
+
"@types/prompts": "^2.4.9",
|
|
42
|
+
"tsup": "^8.0.1",
|
|
43
|
+
"tsx": "^4.7.0",
|
|
44
|
+
"typescript": "^5.3.0",
|
|
45
|
+
"vitest": "^1.2.0"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=18.0.0"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"ai",
|
|
52
|
+
"agent",
|
|
53
|
+
"skills",
|
|
54
|
+
"cli",
|
|
55
|
+
"claude",
|
|
56
|
+
"codex",
|
|
57
|
+
"copilot",
|
|
58
|
+
"cursor",
|
|
59
|
+
"windsurf"
|
|
60
|
+
]
|
|
61
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 SkillHub Contributors
|
|
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.
|