mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-11 21:57:14 +03:00
The skill declared only `Bash(npx impeccable *)` in allowed-tools, but Setup and the no-arg menu shell out to `node {{scripts_path}}/*.mjs`. Under a default-deny Claude Code allowlist those calls are blocked, so Setup fails on context.mjs.
Add a provider-aware `Bash(node {{scripts_path}}/*)` entry and resolve {{scripts_path}} in the frontmatter (the build previously substituted it only in the body). Provider-aware rather than the hardcoded `.claude/...` path the issue suggested, since five providers honor allowed-tools with different script dirs.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user