SKILL.md runs the formatter as node skill/scripts/format.mjs. That path exists in this repo, but npx skills add vercel-labs/before-and-after#main installs the skill at .agents/skills/before-and-after/ (with .claude/skills/before-and-after symlinked to it), so the script ends up at .agents/skills/before-and-after/scripts/format.mjs. An agent following the examples word for word in a consuming project fails with "Cannot find module" on the first run.
Since the examples also need to run from the project root (so captures/ and gh --attach paths resolve), one option is to refer to the script relative to the skill directory in prose ("scripts/format.mjs in this skill's directory") and show an installed path such as .agents/skills/before-and-after/scripts/format.mjs in the examples.
Activity
0No activity yet.