@unityclaw/skills 1.0.0 → 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.
@@ -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.1",
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": {