Inversion Exercise

Inversion Exercise is a skill for Claude Code from huuanh20/awesome-ai-agent-skills. It costs 23 tokens per session (495 once invoked), scanned A, original, MIT.

A problem-solving exercise that reverses usual assumptions to uncover constraints and alternative approaches.

In plain words
What is it for?
Use it to examine design decisions involving caching, data loading, error handling, configuration, performance, or event-driven systems.
Why use it?
It helps reveal options that ordinary brainstorming can miss by asking what would happen if a familiar rule were turned around.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to examine design decisions involving caching, data loading, error handling, configuration, performance, or event-driven systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huuanh20/awesome-ai-agent-skills/inversion-exercise
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add huuanh20/awesome-ai-agent-skills --skill inversion-exercise
Clone the repo
git clone --depth 1 https://github.com/huuanh20/awesome-ai-agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Inversion Exercise

README.md
[![agentmods](https://agentmods.dev/badge/skills/huuanh20/awesome-ai-agent-skills/inversion-exercise/github.svg)](https://agentmods.dev/skills/huuanh20/awesome-ai-agent-skills/inversion-exercise)
Your own site
<a href="https://agentmods.dev/skills/huuanh20/awesome-ai-agent-skills/inversion-exercise"><img src="https://agentmods.dev/badge/skills/huuanh20/awesome-ai-agent-skills/inversion-exercise/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Inversion Exercise

Your own site · 80×15
<a href="https://agentmods.dev/skills/huuanh20/awesome-ai-agent-skills/inversion-exercise"><img src="https://agentmods.dev/badge/skills/huuanh20/awesome-ai-agent-skills/inversion-exercise.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00495
Opus 5.5 $0.00009 $0.00198
Sonnet 5.5 $0.00005 $0.00099
Haiku 4.5 $0.00002 $0.00049

Measured 1mo ago against content hash a4ed3faa2959, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Inversion Exercise scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/problem-solving/inversion-exercise/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Inversion Exercise

Overview

Flip every assumption and see what still works. Sometimes the opposite reveals the truth.

Core principle: Inversion exposes hidden assumptions and alternative approaches.

Quick Reference

Normal Assumption Inverted What It Reveals
Cache to reduce latency Add latency to enable caching Debouncing patterns
Pull data when needed Push data before needed Prefetching, eager loading
Handle errors when they occur Make errors impossible Type systems, contracts
Build features users want Remove features users don't need Simplicity > addition
Optimize for common case Optimize for worst case Resilience patterns
Centralize configuration Distribute configuration Feature flags, per-tenant config
Synchronous request → response Async command → event Event-driven architecture

Process

  1. List core assumptions — What "must" be true?
  2. Invert each systematically — "What if the opposite were true?"
  3. Explore implications — What would we do differently?
  4. Find valid inversions — Which actually work somewhere?

Example

Problem: Users complain the app is slow

Normal approach: Make everything faster (caching, optimization, CDN)

Inverted: Make things intentionally slower in some places

  • Debounce search input (add latency → enable better results, fewer DB hits)
  • Rate limit requests (add friction → prevent abuse, smooth load)
  • Lazy load content (delay → reduce initial load time)

Insight: Strategic slowness can improve UX and system health

Red Flags You Need This

  • "There's only one way to do this"
  • Forcing a solution that feels wrong
  • Can't articulate why the approach is necessary
  • "This is just how it's done"
  • Every solution feels like fighting the problem

Remember

  • Not all inversions work — test boundaries
  • Valid inversions reveal context-dependence
  • Sometimes the opposite is the answer
  • Question every "must be" or "always" statement

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 62 lines · 23 tokens per session scan A a4ed3faa2959

Subscribe to this mod's changes

Inversion Exercise is a skill published in the GitHub repository huuanh20/awesome-ai-agent-skills (1 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 495 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

loop

Work through the taskboard unattended for hours, pacing against the usage limits and filling the gap before a reset with CPU-only jobs. Use when asked to run all day, work unattended, or loop over tickets.

tjqscott/dory · 44 tokens

learn

Record a correction, decision, finding or failed attempt in the wiki. Use when the user corrects you, when a decision is made with a reason, when an experiment returns a verdict, or when you learn something the next session would otherwise re-derive.

tjqscott/dory · 54 tokens

wrap-up

Close out a task by folding what it taught into the wiki, updating the taskboard, and linting. Use at the end of a task, before clearing a session, or when asked to wrap up.

tjqscott/dory · 45 tokens

handoff

Write one self-contained goal that a fresh session can continue from. Use when context is running out, before clearing a session, when usage passes 95% on a long run, or when asked for a handoff.

tjqscott/dory · 47 tokens

init

Set up Dory in this repo by exploring it, creating wiki/ from the template, and connecting the usage statusline. Use when a project has no wiki/ yet, or when asked to set up Dory.

tjqscott/dory · 46 tokens

check-mcp-json

Safely review, triage, repair, and merge ToolSDK MCP Registry package JSON pull requests. Use when an agent needs to validate files under packages/, detect duplicate registry keys, classify community PRs, make authorized fixes on contributor branches, close invalid or duplicate PRs, or squash-merge approved PRs.

toolsdk-ai/toolsdk-mcp-registry · 68 tokens