SkillSpector icon indicating copy to clipboard operation
SkillSpector copied to clipboard

AS3 flags links between skills bundled in the same plugin as Skill Enumeration (follow-up to #500)

Open forrestsatterfield opened this issue 5 days ago • 1 comments

Summary

#500 stopped AS3 (Skill Enumeration) from firing when a skill names its own SKILL.md. In a plugin with several skills, though, a link from one bundled skill to another still fires. Both files are components of the same scan, so nothing outside the scanned artifact is being enumerated or read. In a published plugin I scanned, this produced 6 AS3 findings with about 30 occurrences, all of them cross-references between the plugin's own skills, docs and agents.

Environment

  • SkillSpector v2.13.7 (same version as main at 636e4293)
  • skillspector scan <dir> --no-llm --format json (static only)
  • Windows 11

Reproduction

as3/
├── .claude-plugin/plugin.json      { "name": "as3", "version": "0.1.0" }
└── skills/
    ├── alpha/SKILL.md
    └── beta/SKILL.md

skills/alpha/SKILL.md:

---
name: alpha
description: Minimal reproducer.
---

For the follow-up step, see [`skills/beta/SKILL.md`](../beta/SKILL.md).

skills/beta/SKILL.md:

---
name: beta
description: Minimal reproducer.
---

This skill runs after `skills/alpha/SKILL.md`.
score 12 LOW SAFE
  AS3 MEDIUM 0.8 skills/alpha/SKILL.md:6 | 'skills/beta/SKILL.md'
  AS3 MEDIUM 0.8 skills/beta/SKILL.md:6  | 'skills/alpha/SKILL.md'

Cause

_AS3_SKILL_PATH_PATTERN (the (_AS3_SKILL_PATH_PATTERN, 0.8) entry in AS3_CODE_PATTERNS) is exempted only for the current skill's name. Sibling skills inside the scan root aren't checked against the component list.

Expected

A skills/<name>/SKILL.md reference that resolves to a component of the current scan should not emit AS3. This also covers .claude/skills/<name>/SKILL.md when that directory is inside the scan root, which is how a repo-local maintainer skill is laid out. References to skills outside the scan root, or under ~/.claude/skills, should still fire.

forrestsatterfield avatar Nov 29 '26 08:11 forrestsatterfield

Working on this one. Plan: extend the existing self-reference exemption so a skills//SKILL.md reference that resolves to a component of the current scan does not emit AS3, including .claude/skills//SKILL.md when it sits inside the scan root. References outside the scan root and under ~/.claude/skills keep firing. Will add regression tests for the sibling case and the outside case.

Varshith-Kali avatar Nov 29 '26 19:11 Varshith-Kali