tuncss-plan-kit 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.
@@ -4,22 +4,23 @@ import { fileURLToPath } from "url";
4
4
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
5
5
  const skillsDir = path.resolve(__dirname, "../../skills");
6
6
 
7
+ // Minimal templates: just pass the user's input through. The skill's
8
+ // `description` frontmatter is what triggers the model to invoke the skill
9
+ // when relevant — we don't force-load it from the wrapper, which would
10
+ // dump the full SKILL.md body into the chat in OpenCode's UI.
7
11
  const WRAPPERS = {
8
12
  brainstorm: {
9
13
  description: "Turn an idea into an approved spec",
10
- template:
11
- "Use the `brainstorm` skill to handle the following request:\n\n$ARGUMENTS\n",
14
+ template: "$ARGUMENTS\n",
12
15
  },
13
16
  "plan-universal": {
14
17
  description: "Turn an approved spec into an executable implementation plan",
15
- template:
16
- "Use the `plan-universal` skill to handle the following request:\n\n$ARGUMENTS\n",
18
+ template: "$ARGUMENTS\n",
17
19
  },
18
20
  "handoff-plan": {
19
21
  description:
20
22
  "Generate a paste-ready handoff message for another LLM agent to execute the plan",
21
- template:
22
- "Use the `handoff-plan` skill to handle the following request:\n\n$ARGUMENTS\n",
23
+ template: "$ARGUMENTS\n",
23
24
  },
24
25
  };
25
26
 
package/bin/cli.js CHANGED
@@ -300,11 +300,14 @@ function installOpenCodeGlobal() {
300
300
  );
301
301
 
302
302
  // 2. npm install in ocDir
303
- const npmCmd = process.platform === "win32" ? "npm.cmd" : "npm";
304
- const npmRes = spawnSync(npmCmd, ["install", "--silent", "--no-audit", "--no-fund"], {
303
+ // Pass the full command as a single string with shell: true to avoid the
304
+ // Node DEP0190 warning about unescaped args concatenation. Args are all
305
+ // hardcoded here so there's no injection surface.
306
+ const npmBin = process.platform === "win32" ? "npm.cmd" : "npm";
307
+ const npmRes = spawnSync(`${npmBin} install --silent --no-audit --no-fund`, {
305
308
  cwd: ocDir,
306
309
  stdio: "inherit",
307
- shell: process.platform === "win32",
310
+ shell: true,
308
311
  });
309
312
  if (npmRes.status !== 0) {
310
313
  throw new Error(
@@ -2,6 +2,4 @@
2
2
  description: Turn an idea into an approved spec
3
3
  ---
4
4
 
5
- Use the `brainstorm` skill to handle the following request:
6
-
7
5
  $ARGUMENTS
@@ -2,6 +2,4 @@
2
2
  description: Generate a paste-ready handoff message for another LLM agent to execute the plan
3
3
  ---
4
4
 
5
- Use the `handoff-plan` skill to handle the following request:
6
-
7
5
  $ARGUMENTS
@@ -2,6 +2,4 @@
2
2
  description: Turn an approved spec into an executable implementation plan
3
3
  ---
4
4
 
5
- Use the `plan-universal` skill to handle the following request:
6
-
7
5
  $ARGUMENTS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuncss-plan-kit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": ".opencode/plugins/tuncss-plan-kit.js",
6
6
  "description": "Three-skill kit for spec-driven development: brainstorm an idea into a spec, turn the spec into an executable plan, hand the plan off to another LLM agent.",
@@ -31,6 +31,6 @@
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
34
- "url": "https://github.com/tuncss/tuncss-plan-kit"
34
+ "url": "git+https://github.com/tuncss/tuncss-plan-kit.git"
35
35
  }
36
36
  }