Skip to content

insights: should code a skill keeps outside its folder count as the skill running code? #21

Open

Description

@teocns

The question

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

  1. Keep the skill's folder only. Exact. It misses skills built this way.
  2. 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.
  3. 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.

Raised in #11.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions