@unityclaw/skills 1.0.0 → 1.0.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 CHANGED
@@ -12,7 +12,22 @@ npm install -g @unityclaw/skills
12
12
  npx @unityclaw/skills --help
13
13
  ```
14
14
 
15
- All skills require the `@unityclaw/sdk` package and an API key:
15
+ ## API Key Configuration
16
+
17
+ All skills require an API key. You can configure it using the SDK CLI:
18
+
19
+ ```bash
20
+ # Install SDK globally
21
+ npm install -g @unityclaw/sdk
22
+
23
+ # Configure API key (stored in ~/.unityclaw/config.json)
24
+ unityclaw-sdk config set apiKey your-api-key
25
+
26
+ # Verify configuration
27
+ unityclaw-sdk config
28
+ ```
29
+
30
+ Or set the environment variable:
16
31
 
17
32
  ```bash
18
33
  export UNITYCLAW_API_KEY=your-api-key
@@ -131,13 +131,16 @@ Installing ${skillsToInstall.length} skill(s):
131
131
  \u2728 Done! Skills installed to: ${targetDir}`);
132
132
  }
133
133
  async function executeSkill(skillCommand) {
134
- const fullCommand = `claude "${skillCommand}"`;
135
- console.log(`Executing: ${fullCommand}
134
+ const args = [
135
+ "--print",
136
+ "--dangerously-skip-permissions",
137
+ skillCommand
138
+ ];
139
+ console.log(`Executing: claude ${args.join(" ")}
136
140
  `);
137
141
  return new Promise((resolve, reject) => {
138
- const child = spawn("claude", [skillCommand], {
139
- stdio: "inherit",
140
- shell: true
142
+ const child = spawn("claude", args, {
143
+ stdio: "inherit"
141
144
  });
142
145
  child.on("close", (code) => {
143
146
  if (code === 0) {
package/dist/cli.cjs CHANGED
@@ -154,13 +154,16 @@ Installing ${skillsToInstall.length} skill(s):
154
154
  \u2728 Done! Skills installed to: ${targetDir}`);
155
155
  }
156
156
  async function executeSkill(skillCommand) {
157
- const fullCommand = `claude "${skillCommand}"`;
158
- console.log(`Executing: ${fullCommand}
157
+ const args2 = [
158
+ "--print",
159
+ "--dangerously-skip-permissions",
160
+ skillCommand
161
+ ];
162
+ console.log(`Executing: claude ${args2.join(" ")}
159
163
  `);
160
164
  return new Promise((resolve, reject) => {
161
- const child = (0, import_child_process.spawn)("claude", [skillCommand], {
162
- stdio: "inherit",
163
- shell: true
165
+ const child = (0, import_child_process.spawn)("claude", args2, {
166
+ stdio: "inherit"
164
167
  });
165
168
  child.on("close", (code) => {
166
169
  if (code === 0) {
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  executeSkill,
4
4
  installSkills,
5
5
  listSkills
6
- } from "./chunk-KHQZYC3Y.js";
6
+ } from "./chunk-4GBZWV4P.js";
7
7
 
8
8
  // src/cli.ts
9
9
  import { program } from "commander";
package/dist/index.cjs CHANGED
@@ -165,13 +165,16 @@ Installing ${skillsToInstall.length} skill(s):
165
165
  \u2728 Done! Skills installed to: ${targetDir}`);
166
166
  }
167
167
  async function executeSkill(skillCommand) {
168
- const fullCommand = `claude "${skillCommand}"`;
169
- console.log(`Executing: ${fullCommand}
168
+ const args = [
169
+ "--print",
170
+ "--dangerously-skip-permissions",
171
+ skillCommand
172
+ ];
173
+ console.log(`Executing: claude ${args.join(" ")}
170
174
  `);
171
175
  return new Promise((resolve, reject) => {
172
- const child = (0, import_child_process.spawn)("claude", [skillCommand], {
173
- stdio: "inherit",
174
- shell: true
176
+ const child = (0, import_child_process.spawn)("claude", args, {
177
+ stdio: "inherit"
175
178
  });
176
179
  child.on("close", (code) => {
177
180
  if (code === 0) {
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  installSkills,
7
7
  listSkills,
8
8
  parseSkill
9
- } from "./chunk-KHQZYC3Y.js";
9
+ } from "./chunk-4GBZWV4P.js";
10
10
  export {
11
11
  executeSkill,
12
12
  getClaudeSkillsDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unityclaw/skills",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "UnityClaw Skills - Claude Code and OpenClaw skill definitions for AI-powered image/video generation, media analysis, and more",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43
 
@@ -31,9 +31,13 @@ npm install @unityclaw/sdk
31
31
 
32
32
  ## Configuration
33
33
 
34
- Set your API key as environment variable:
34
+ Set your API key using one of these methods:
35
35
 
36
36
  ```bash
37
+ # Method 1: Use SDK CLI (recommended - persists across sessions)
38
+ npx @unityclaw/sdk config set apiKey your-api-key
39
+
40
+ # Method 2: Environment variable
37
41
  export UNITYCLAW_API_KEY=your-api-key
38
42
  ```
39
43