You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
insights: should code a skill keeps outside its folder count as the skill running code? #21
A skill's third step on the Built tab, "Runs code", counts a script inside the skill's own folder that ran after the skill
loaded. Some skills keep their code elsewhere in the repo and say so in SKILL.md. Should a run of that code count?
The case
ui-check is a skill whose SKILL.md says "Code: tests/ui-check/". Its runner, tests/ui-check/bin/run.js, ran a few
hundred times this month, each time after the skill loaded. The page shows the skill one step lower, because nothing in .claude/skills/ui-check/ ever ran.
What the tool does today
Step 3 needs a script from the skill's own folder, run after a load in the same session, or a SKILL.md that runs a
command when it loads (!`cmd`). The step is display only: no level reads it.
Options
Keep the skill's folder only. Exact. It misses skills built this way.
Count a folder SKILL.md names in backticks when the folder's own name is the skill's name (tests/ui-check/ for ui-check). To hold on any laptop:
match the folder's own name, not any part of its path, or a skill called app or test would claim all of app/
or tests/;
tell code by its file extension, not by the executable bit: on Windows every file has it, so docs would count;
compare by the path inside the repo, so a run from a worktree or a second checkout counts;
ask ownership.py whether the code is the person's own.
Option 2, plus any code file SKILL.md names outright (scripts/seed.sh). This catches more, but a skill often
names tools it only uses (node_modules/.bin/…, vendor/bin/…).
It changes what "Runs code" means, so it needs a decision before code, and a test with a made-up repo: a runner
named after the skill, a product folder the skill only mentions, a doc it names, and a worktree copy of the runner.
Activity