/varsel-poc:find-intro-commitfrom varsel-poc
Finds the git commit that introduced a vulnerability for CVE filing. Clones the repo, uses git log pickaxe and bisect to locate the exact introducing SHA.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /varsel-poc:find-intro-commit still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
This skill has one job: return a SHA. Varsel derives the affected version range from the introducing commit you give it, so the SHA must be the real introducing commit — not a tag SHA, not a guess. Do not discuss the vulnerability, do not sanity-check the advisory, do not ask questions. Clone the repo, do the git archaeology, report the commit. If genuinely stuck, report what you found and why it is inconclusive — still no discussion.
Only run this skill if the introducing commit is not already known. If a start version/tag was provided as a hint, treat it as a starting point for investigation, not ground truth.
From the case (or task description), determine:
git clone https://github.com/<owner>/<repo>.git /tmp/<repo>
cd /tmp/<repo>
If already cloned: cd /tmp/<repo> && git fetch.
git show <fix-sha> -- <programFile>
Understand the fix so you know what the vulnerable pattern looks like.
Use git log with -S (pickaxe) or -G (regex):
git log --oneline -S '<distinctive-code-fragment>' -- <programFile>
git log --oneline -G '<pattern>' -- <programFile>
git log --oneline <fix-sha> -S '<fragment>' -- <programFile>
Follow renames. If the result looks like a refactor (a "move"/"split"/"extract" commit, or a date that postdates known affected releases), the vulnerable code likely lived at an earlier path:
git log --oneline --follow -S '<fragment>' -- <programFile>
git log --oneline -S '<fragment>' # or drop the path entirely
git show <hint-tag>:<programFile> | grep -n '<pattern>'
git log --oneline <hint-tag> -S '<fragment>' -- <programFile>
git bisect for complex casesWhen pickaxe search is inconclusive (the vulnerability is in logic, not a specific string):
git bisect start
git bisect bad <fix-sha>
git bisect good <known-safe-tag-or-sha>
# test each commit, mark git bisect bad / git bisect good
git bisect reset
git show <candidate-sha> -- <programFile>
git show <candidate-sha>~1:<programFile> | grep -n '<pattern>' # parent must NOT be vulnerable
git rev-parse <tag>^{} # commit SHA for a tag, if needed
Confirm:
Return exactly:
Nothing else. Whoever is running /new-case submits this SHA as the introduced_commit (preset) or introducing version_event on the case; Varsel derives the version range and it gets eyeballed there via render_case_preview — you do not reconcile the range yourself.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
None: SKILL.md is the whole skill.
npx claudepluginhub erlef-cna/varsel --plugin varsel-poc7 skills in this plugin
Other plugins' skills for the same job