From thinking-frameworks-skills
Generates counterfactual framings to reveal the function of a technical component by subtracting it. Useful for building intuition in explanations using Pearl's causal ladder.
How this skill is triggered — by the user, by Claude, or both
Slash command
/thinking-frameworks-skills:propose-counterfactualThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Workflow](#workflow)
Related skills: One of the 5 archetypes in generate-analogy-set. Can also be invoked standalone when the writer specifically wants the counterfactual angle without the full 5-set.
For topic T:
- [ ] Step 1: Identify the component / mechanism whose function the writer wants to illuminate
- [ ] Step 2: Propose the subtraction — what if this component were absent?
- [ ] Step 3: Describe the concrete system that results (what you'd have instead)
- [ ] Step 4: Describe what breaks — performance, correctness, expressivity, efficiency
- [ ] Step 5: Return the counterfactual framing statement
Three sub-archetypes, pick whichever fits best:
Topic: Attention (in Transformers).
Ablation: "Remove attention from a transformer and you have a stack of residual MLPs per token — no information ever flows between token positions within a layer. The model can still transform each token independently, but 'context' is gone. That absence is what attention is 'doing.'"
Substitution: "Replace attention with fixed convolutions (the RNN/CNN alternative). You get locality — each token sees its neighbors — but the model can't arbitrarily connect token 1 to token 500. Attention's gift is not the operation, it's the arbitrary-range addressing."
Inversion: "Invert attention: instead of softmax-weighted averaging, what if the model picked exactly one token to copy from? That's hard-attention, and it turns out to be worse for training — soft interpolation makes the loss surface navigable. Attention is soft by gradient-descent necessity, not by design choice."
Pick one (usually ablation for a 5-framing set). The others can become a standalone post later.
npx claudepluginhub lyndonkl/claude --plugin thinking-frameworks-skillsGenerates 5 distinct intuitive framings (everyday analogy, physical metaphor, contrarian take, historical angle, counterfactual) for any technical topic. Call when building explanations that need multiple pedagogical angles.
Maps causal relationships, traces dependencies, and reasons about consequences. Use for root cause analysis, impact assessment, and dependency tracing.
Walks step-by-step consequence chains to reason about system behavior at scales or failure modes that can't be cheaply tested or measured.