Skip to content

The design language that makes your AI harness better at design.

JavaScript

Fix: allow skill's bundled node helpers under strict-permission harnesses (#301) (#310)

Abdul Wahabb7d2ad5589aa
diff --git a/scripts/lib/transformers/factory.js b/scripts/lib/transformers/factory.js
index ada60892e..aad979210 100644
--- a/scripts/lib/transformers/factory.js
+++ b/scripts/lib/transformers/factory.js
@@ -235,7 +235,7 @@ export function createTransformer(config) {
skillBody = skillBody.replace(/\{\{scripts_path\}\}/g, scriptsPath);
if (bodyTransform) skillBody = bodyTransform(skillBody, skill);
- const content = `${frontmatter}\n\n${skillBody}`;
+ const content = `${frontmatter}\n\n${skillBody}`.replace(/\{\{scripts_path\}\}/g, scriptsPath);
writeFile(path.join(skillDir, 'SKILL.md'), content);
if (writeOpenAIMetadata) {
diff --git a/skill/SKILL.src.md b/skill/SKILL.src.md
index 30778142d..5ac2672b6 100644
--- a/skill/SKILL.src.md
+++ b/skill/SKILL.src.md
@@ -5,6 +5,7 @@ argument-hint: "[{{command_hint}}] [target]"
user-invocable: true
allowed-tools:
- Bash(npx impeccable *)
+ - Bash(node {{scripts_path}}/*)
license: Apache 2.0
---