T01 · Skill Instruction Hijacking
- Location
SKILL.md:3- Finding
Mandatory Workflow and Follow-On Skill Invocation Hijack
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 3, 12–14, 22–32, and 61
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: HighVulnerable Code
markdown description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."markdown <HARD-GATE> Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity. </HARD-GATE>markdown You MUST create a task for each of these items and complete them in order: 1. **Explore project context** — check files, docs, recent commits 2. **Offer the visual companion just-in-time** — NOT upfront. The first time a question would genuinely be clearer shown than described, offer it then (its own message); on approval its browser tab opens for you. If no visual question ever arises, never offer it. See the Visual Companion section below. 3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria 4. **Propose 2-3 approaches** — with trade-offs and your recommendation 5. **Present design** — in sections scaled to their complexity, get user approval after each section 6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit 7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below) 8. **User reviews written spec** — ask user to review the spec file before proceeding 9. **Transition to implementation** — invoke writing-plans skill to create implementation planmarkdown **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY sk ...[truncated 3199 chars]- Remediation
View remediation
Remediation Suggestions
- Replace unconditional directives with scope-limited guidance. For example, state that the workflow applies only when the user explicitly requests brainstorming or design assistance.
- Remove claims that the Skill must be used before “any creative work” or for “EVERY project.”
- Remove the hard gate that categorically prevents implementation. Allow the user’s explicit request and higher-priority instructions to determine whether a design phase is necessary.
- Make specification creation optional and require explicit user approval before writing a file.
- Treat Git commits as separately authorized actions. Never commit merely because the Skill workflow says to do so.
- Remove the prohibition against all implementation Skills except
writing-plans. Follow-on Skill selection should depend on the user’s request and the Agent’s trusted orchestration policy. - Do not mandate invocation of a Skill that is absent from the audited package. If optional integration is retained, clearly identify it as an external dependency and require it to be independently reviewed.
- Add an explicit boundary such as: “These instructions are recommendations within an authorized brainstorming task and do not override user requests, system instructions, safety policies, or tool-authorization requirements.”
- Preserve useful brainstorming practices—clarifying requirements, comparing approaches, and validating designs—as recommendations rather than universal commands.
