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: whose is a skill folder when teammates made most of its commits? #20
A skill someone created, whose folder teammates later filled in, reads as not theirs. Should the setup tool judge a skill
folder by the whole folder's commits (today), by its SKILL.md, or by who added the SKILL.md?
The case
You create release-checklist in a team repo: SKILL.md and references/steps.md, in one commit. Over the month
teammates add examples and fix steps under references/. The folder now has 24 commits, 7 of them yours, and every edit
to SKILL.md is yours. You call the skill most days.
The page lists it under no row. "Skills and commands you wrote" doesn't count it, and neither does the row for skills from
others, so its calls go nowhere.
What the tool does today
One rule decides whose a file is, in plugins/insights/scripts/setup-snapshot/experiments/2026-11-02-evidence/ownership.py,
and every part of the scan asks it. A file is a teammate's only when git shows most of its commits are someone else's. For
a skill folder that means every commit on the folder. The anatomy scan then marks the skill "mixed" (some commits yours,
most not), and a mixed skill counts in no row.
Options
Keep the folder count. Simple. It keeps losing skills that teammates help maintain.
Judge a skill folder by its SKILL.md. The rule asks git about the folder's SKILL.md instead of the whole folder. In
the case above it reads as yours. Edits to references/ stop deciding it.
Option 2, plus who added SKILL.md. Use git log --follow --diff-filter=A -- SKILL.md, which follows the file across
moves. The oldest commit on the folder is not used: the person who moved a team's skills into a new folder, or made an
import commit, would become the creator of all of them.
Whatever we pick goes into ownership.py, so the Built tab and the practice checks give the same answer. It feeds "Skills
and commands you wrote", which the level reads, so a rule that's too generous credits teammates' skills. It needs a test
with a made-up repo: a skill you created, a skill a teammate created that you touched once, and a folder you only
moved.
Activity