Skill counterfactual audit

From Tibsfox/gsd-skill-creator · View interactive version

Skill counterfactual audit is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Audit a skill by running a paired probe — the same task once with the skill loaded and once without — segment both traces into goal-directed phases, align phases, and emit a SIP report (surface anchoring, template copy, excess planning, task recovery, off-task artifact). Use whenever a skill is crea

How to use this skill

Skill file

Skill Counterfactual Audit

Why

When you ship a skill, pass-rate is the easy metric — and it's blind to almost everything that matters. CTA (arxiv 2605.11946v1) shows a single skill can produce 522 measurable behavioural changes across 49 tasks while pass-rate moves only +0.3%. The interesting effects (surface anchoring on the skill's vocabulary, template copy without adaptation, excess planning loops, recovery from off-task drift, generation of off-task artifacts) live entirely below pass-rate.

The remedy is a paired-trace audit: run the same probe task twice, with and without the skill, and compare the behaviours directly rather than the headline metric.

How

For each skill under audit:

  1. Curate a probe-task bank (3-5 small tasks per skill domain). Each task should have:
  1. Run paired — same prompt, same task, run A with skill loaded, run B without.
  2. Segment each trace — phases like {plan, retrieve, edit, verify, fix-loop, summary}.
  3. Align phases — match B phases to A phases; mark new/dropped/displaced phases.
  4. Classify SIP (Skill Influence Pattern) — for each aligned phase, label the effect:
  1. Emit report to .planning/patterns/skill-audits/<skill>-<timestamp>.md with phase comparison table + SIP distribution + retire/refine/keep recommendation.

Recommendation rule of thumb

| Dominant SIP | Verdict |

|---|---|

| task-recovery + correct artifacts | keep (genuine value) |

| surface-anchoring with no task-recovery | refine (skill is leaking style, not capability) |

| template-copy on most tasks | refine (lower template specificity) |

| off-task-artifact on >25% of probes | retire (skill is causing distraction) |

| excess-planning with no completion delta | refine (skill adds ceremony) |

When to skip

Integration

Cross-references

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.