openskills-cli 0.1.0 → 0.1.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/README.md +1 -1
- package/dist/bin/cli.d.ts +2 -2
- package/dist/bin/cli.js +14 -14
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/modes/install.d.ts +3 -3
- package/dist/src/modes/install.js +3 -3
- package/dist/src/utils/mode-detector.d.ts +2 -2
- package/dist/src/utils/mode-detector.js +2 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ get_skill(skill="pdf-processing", agent="claude-code", global_install=false)
|
|
|
76
76
|
|
|
77
77
|
Returns a simple installation command:
|
|
78
78
|
```bash
|
|
79
|
-
npx openskills pdf-processing -a claude-code
|
|
79
|
+
npx openskills-cli pdf-processing -a claude-code
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
The openskills CLI handles downloading, extracting, and symlinking automatically.
|
package/dist/bin/cli.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* OpenSkills CLI - Main entry point
|
|
4
4
|
*
|
|
5
5
|
* Dual-mode CLI:
|
|
6
|
-
* 1. Installation mode: npx openskills <skill> [options]
|
|
7
|
-
* 2. MCP proxy mode: npx openskills --api-key <key>
|
|
6
|
+
* 1. Installation mode: npx openskills-cli <skill> [options]
|
|
7
|
+
* 2. MCP proxy mode: npx openskills-cli --api-key <key>
|
|
8
8
|
*/
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/bin/cli.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* OpenSkills CLI - Main entry point
|
|
4
4
|
*
|
|
5
5
|
* Dual-mode CLI:
|
|
6
|
-
* 1. Installation mode: npx openskills <skill> [options]
|
|
7
|
-
* 2. MCP proxy mode: npx openskills --api-key <key>
|
|
6
|
+
* 1. Installation mode: npx openskills-cli <skill> [options]
|
|
7
|
+
* 2. MCP proxy mode: npx openskills-cli --api-key <key>
|
|
8
8
|
*/
|
|
9
9
|
import { detectMode, parseInstallOptions, parseApiKey } from '../src/utils/mode-detector.js';
|
|
10
10
|
import { install } from '../src/modes/install.js';
|
|
@@ -28,7 +28,7 @@ OpenSkills CLI v${packageJson.version}
|
|
|
28
28
|
Install AI agent skills locally or discover via MCP protocol.
|
|
29
29
|
|
|
30
30
|
INSTALLATION MODE:
|
|
31
|
-
npx openskills <skill> [options]
|
|
31
|
+
npx openskills-cli <skill> [options]
|
|
32
32
|
|
|
33
33
|
Positional:
|
|
34
34
|
<skill> Skill identifier (e.g., pdf-processing)
|
|
@@ -41,17 +41,17 @@ INSTALLATION MODE:
|
|
|
41
41
|
--force Overwrite existing installation
|
|
42
42
|
|
|
43
43
|
Examples:
|
|
44
|
-
npx openskills pdf-processing -a claude-code -g
|
|
45
|
-
npx openskills pdf-processing -a claude-code -p
|
|
46
|
-
npx openskills pdf-processing -y
|
|
47
|
-
npx openskills pdf-processing
|
|
44
|
+
npx openskills-cli pdf-processing -a claude-code -g
|
|
45
|
+
npx openskills-cli pdf-processing -a claude-code -p
|
|
46
|
+
npx openskills-cli pdf-processing -y
|
|
47
|
+
npx openskills-cli pdf-processing
|
|
48
48
|
(Interactive: prompts for agent and scope)
|
|
49
49
|
|
|
50
50
|
Legacy syntax (still supported):
|
|
51
|
-
npx openskills -s pdf-processing -a claude-code
|
|
51
|
+
npx openskills-cli -s pdf-processing -a claude-code
|
|
52
52
|
|
|
53
53
|
MCP PROXY MODE:
|
|
54
|
-
npx openskills --api-key <key>
|
|
54
|
+
npx openskills-cli --api-key <key>
|
|
55
55
|
|
|
56
56
|
Required:
|
|
57
57
|
--api-key <key> OpenSkills API key (format: osk_...)
|
|
@@ -60,7 +60,7 @@ MCP PROXY MODE:
|
|
|
60
60
|
OPENSKILLS_BACKEND_URL Backend server URL (default: https://openskills-mcp.hf.space)
|
|
61
61
|
|
|
62
62
|
Example:
|
|
63
|
-
npx openskills --api-key osk_abc123def456
|
|
63
|
+
npx openskills-cli --api-key osk_abc123def456
|
|
64
64
|
|
|
65
65
|
OTHER:
|
|
66
66
|
-h, --help Show this help message
|
|
@@ -77,7 +77,7 @@ For more information, visit: https://github.com/nadeemsangrasi/openskills-mcp
|
|
|
77
77
|
* Show version.
|
|
78
78
|
*/
|
|
79
79
|
function showVersion() {
|
|
80
|
-
console.log(`openskills v${packageJson.version}`);
|
|
80
|
+
console.log(`openskills-cli v${packageJson.version}`);
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Main entry point.
|
|
@@ -98,8 +98,8 @@ async function main() {
|
|
|
98
98
|
// Validate that at least skill name is provided
|
|
99
99
|
if (!options.skill) {
|
|
100
100
|
userError('Skill name is required', [
|
|
101
|
-
'Usage: npx openskills <skill> [options]',
|
|
102
|
-
'Example: npx openskills pdf-processing -a claude-code',
|
|
101
|
+
'Usage: npx openskills-cli <skill> [options]',
|
|
102
|
+
'Example: npx openskills-cli pdf-processing -a claude-code',
|
|
103
103
|
]);
|
|
104
104
|
}
|
|
105
105
|
// Pass options to install (may have null agent for interactive mode)
|
|
@@ -109,7 +109,7 @@ async function main() {
|
|
|
109
109
|
case 'mcp': {
|
|
110
110
|
const apiKey = parseApiKey(args);
|
|
111
111
|
if (!apiKey) {
|
|
112
|
-
userError('Missing required flag: --api-key', ['Usage: npx openskills --api-key <your-key>']);
|
|
112
|
+
userError('Missing required flag: --api-key', ['Usage: npx openskills-cli --api-key <your-key>']);
|
|
113
113
|
}
|
|
114
114
|
if (!apiKey.startsWith('osk_')) {
|
|
115
115
|
userError("Invalid API key format. Keys start with 'osk_'", ['Get a valid key at: https://openskills.dev/dashboard']);
|
package/dist/bin/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../bin/cli.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,WAAW,EAA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* - Single-agent installation: npx openskills pdf-processing -a claude-code
|
|
16
|
-
* - Multi-agent installation: npx openskills pdf-processing -y
|
|
17
|
-
* - Interactive prompts: npx openskills pdf-processing
|
|
15
|
+
* - Single-agent installation: npx openskills-cli pdf-processing -a claude-code
|
|
16
|
+
* - Multi-agent installation: npx openskills-cli pdf-processing -y
|
|
17
|
+
* - Interactive prompts: npx openskills-cli pdf-processing
|
|
18
18
|
*/
|
|
19
19
|
/**
|
|
20
20
|
* Execute installation flow.
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* Server handles sparse checkout - no git required on client.
|
|
13
13
|
*
|
|
14
14
|
* Supports:
|
|
15
|
-
* - Single-agent installation: npx openskills pdf-processing -a claude-code
|
|
16
|
-
* - Multi-agent installation: npx openskills pdf-processing -y
|
|
17
|
-
* - Interactive prompts: npx openskills pdf-processing
|
|
15
|
+
* - Single-agent installation: npx openskills-cli pdf-processing -a claude-code
|
|
16
|
+
* - Multi-agent installation: npx openskills-cli pdf-processing -y
|
|
17
|
+
* - Interactive prompts: npx openskills-cli pdf-processing
|
|
18
18
|
*/
|
|
19
19
|
import * as fs from 'fs';
|
|
20
20
|
import * as path from 'path';
|
|
@@ -32,8 +32,8 @@ export declare function detectMode(args: string[]): CliMode;
|
|
|
32
32
|
* Parse installation options from command-line arguments.
|
|
33
33
|
*
|
|
34
34
|
* Supports both positional and flag-based skill names:
|
|
35
|
-
* - Positional: npx openskills pdf-processing -a claude-code
|
|
36
|
-
* - Flag-based: npx openskills -s pdf-processing -a claude-code
|
|
35
|
+
* - Positional: npx openskills-cli pdf-processing -a claude-code
|
|
36
|
+
* - Flag-based: npx openskills-cli -s pdf-processing -a claude-code
|
|
37
37
|
*
|
|
38
38
|
* @param args - Command-line arguments
|
|
39
39
|
* @returns Parsed installation options or partial options for interactive mode
|
|
@@ -76,8 +76,8 @@ function hasPositionalSkill(args) {
|
|
|
76
76
|
* Parse installation options from command-line arguments.
|
|
77
77
|
*
|
|
78
78
|
* Supports both positional and flag-based skill names:
|
|
79
|
-
* - Positional: npx openskills pdf-processing -a claude-code
|
|
80
|
-
* - Flag-based: npx openskills -s pdf-processing -a claude-code
|
|
79
|
+
* - Positional: npx openskills-cli pdf-processing -a claude-code
|
|
80
|
+
* - Flag-based: npx openskills-cli -s pdf-processing -a claude-code
|
|
81
81
|
*
|
|
82
82
|
* @param args - Command-line arguments
|
|
83
83
|
* @returns Parsed installation options or partial options for interactive mode
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openskills-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Install AI agent skills locally or discover via MCP protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
24
24
|
"extract-zip": "^2.0.1",
|
|
25
25
|
"node-fetch": "^3.3.2",
|
|
26
|
+
"openskills-cli": "^0.1.0",
|
|
26
27
|
"prompts": "^2.4.2"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|