Agent skill

Inversion Exercise

by sandgardenhq in sandgardenhq/sgai

Flip core assumptions to reveal hidden constraints and alternative approaches - "what if the opposite were true?".

Custom licenceAuto-check passed

Install Inversion Exercise

skills CLI
$ npx skills add sandgardenhq/sgai --skill inversion-exercise -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sandgardenhq/sgai inversion-exercise --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sandgardenhq/sgai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cmd/sgai/skel/.sgai/skills/problem-solving/inversion-exercise .claude/skills/inversion-exercise && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
inversion-exercise
GitHub stars
137
Token cost
~521 tokens
SKILL.md length
220 words
Files
1
Skills in repo
53
Repo updated
First seen
Licence
Custom licence

At a glance

Flip core assumptions to reveal hidden constraints and alternative approaches - "what if the opposite were true?".

  • Works in 4 steps: List core assumptions - What "must" be… → Invert each systematically - "What if… → Explore implications - What would we do… → …
  • SKILL.md covers Overview, Quick Reference, Process and Example, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Inversion Exercise is an agent skill from sandgardenhq/sgai. Flip core assumptions to reveal hidden constraints and alternative approaches - "what if the opposite were true?". Stuck on assumptions you can't question. Solution feels forced. "This is how it must be done" thinking. Want to challenge conventional wisdom. Need fresh perspective on problem.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Sandgarden AI Software Factory.

Example prompts

  • “what if the opposite were true?”
  • “t question. Solution feels forced.”
  • “/inversion-exercise”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit 9efbb7b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Inversion Exercise loads about 521 tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 220 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~521

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 220 words (~521 tokens).

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

— opening of SKILL.md by sandgardenhq, Custom licence
name
inversion-exercise

Read the full SKILL.md on GitHub

Files

Just SKILL.md in cmd/sgai/skel/.sgai/skills/problem-solving/inversion-exercise of sandgardenhq/sgai.

Open the folder on GitHubat commit 9efbb7b

Compare with similar skills

Inversion Exercise next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Inversion Exercise compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Inversion Exercise this skillsandgardenhq/sgai137—~521Automated safety check: PassCustom licence
Inversiondanium/lateral-thinking319—~1.5kAutomated safety check: PassMIT
Wobbling Ty Constraint Orderastral-sh/ruff50k—~838Automated safety check: PassMIT
Constraint-Driven Developmentaddyosmani/agent-skills103k2 repos~5.2kAutomated safety check: PassMIT
Prioritize Assumptionsphuryn/pm-skills27k—~571Automated safety check: PassMIT
Aria Hidden Bodythedaviddias/Front-End-Checklist74k—~444Automated safety check: PassMIT

Similar skills

  • Inversion

    danium/lateral-thinking

    Assumption Inversion — list the assumptions behind the current approach and flip each one, then ask where the flipped version could actually be true.

    319 GitHub stars~1.5k tokensUpdated 25 days ago
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when a user asks to wobble ty constraint ordering, check constraint-set or TDD ordering determinism, test reversed constraint/typevar IDs, or investigate nondeterministic ty…

    50k GitHub stars~838 tokensUpdated today
    Testing & QAAuto-check passed
  • Constraint-Driven Development

    addyosmani/agent-skills

    Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds.

    103k GitHub starsUsed in 2 repos~5.2k tokens
    DevelopmentAuto-check passed
  • Prioritize Assumptions

    phuryn/pm-skills

    Prioritize assumptions using an Impact × Risk matrix and suggest experiments for each.

    27k GitHub stars~571 tokensUpdated 24 days ago
    Product & Project ManagementAuto-check passed
  • Aria Hidden Body

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Do not use aria-hidden on the document body.

    74k GitHub stars~444 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Aria Hidden Focus

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Remove focusable elements from aria-hidden containers.

    74k GitHub stars~468 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed

More from sandgardenhq/sgai

All 53 skills in this repo
  • Root Cause Tracing

    sandgardenhq/sgai

    A skill your agent uses when errors occur deep in execution and you need to trace back to find the original trigger - systematically traces bugs backward through call stack, adding instrumentation…

    137 GitHub starsUsed in 4 repos~1.4k tokens
    Auto-check passed
  • Condition Based Waiting

    sandgardenhq/sgai

    A skill your agent uses when tests have race conditions, timing dependencies, or inconsistent pass/fail behavior - replaces arbitrary timeouts with condition polling to wait for actual state…

    137 GitHub starsUsed in 3 repos~933 tokens
    Auto-check passed
  • Defense In Depth

    sandgardenhq/sgai

    A skill your agent uses when invalid data causes failures deep in execution, requiring validation at multiple system layers - validates at every layer data passes through to make bugs structurally…

    137 GitHub starsUsed in 3 repos~970 tokens
    Auto-check passed
  • Agent Native Architecture

    sandgardenhq/sgai

    Build AI agents using prompt-native architecture where features are defined in prompts, not code.

    137 GitHub stars~2k tokensUpdated 17 days ago
    Auto-check passed
  • Adhoc

    sandgardenhq/sgai

    Run and manage ad-hoc AI prompts in sgai workspaces without starting a full agentic session.

    137 GitHub stars~1.2k tokensUpdated 17 days ago
    Auto-check passed
  • You must use this skill when debugging web UI bugs or testing interactive components that require multi-step browser interactions.

    137 GitHub stars~3.7k tokensUpdated 17 days ago
    Auto-check passed

Questions about Inversion Exercise

What does Inversion Exercise do?

Flip core assumptions to reveal hidden constraints and alternative approaches - "what if the opposite were true?". Inversion Exercise is an agent skill from sandgardenhq/sgai.".

How do I install Inversion Exercise in Claude Code?

Run `npx skills add sandgardenhq/sgai --skill inversion-exercise -a claude-code`. Or copy the skill folder (cmd/sgai/skel/.sgai/skills/problem-solving/inversion-exercise in sandgardenhq/sgai) into .claude/skills/inversion-exercise in your project. Claude Code loads it when a task matches its description.

How do I install Inversion Exercise in Codex?

Run `npx skills add sandgardenhq/sgai --skill inversion-exercise -a codex`. Or copy the skill folder (cmd/sgai/skel/.sgai/skills/problem-solving/inversion-exercise in sandgardenhq/sgai) into .agents/skills/inversion-exercise in your project. Codex loads it when a task matches its description.

Can I use Inversion Exercise in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sandgardenhq/sgai --skill inversion-exercise -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/inversion-exercise, .gemini/skills/inversion-exercise, .github/skills/inversion-exercise and .opencode/skills/inversion-exercise in your project.

What does Inversion Exercise need to run?

SKILL.md names no scripts, command-line tools or credentials: Inversion Exercise is instructions for the agent only.

Does Inversion Exercise access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Inversion Exercise safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Inversion Exercise use?

Inversion Exercise has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Inversion Exercise use?

About 521 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Inversion Exercise?

Skills that share tags, products or a category with Inversion Exercise: Inversion (danium/lateral-thinking, 319 stars), Wobbling Ty Constraint Order (astral-sh/ruff, 50k stars), Constraint-Driven Development (addyosmani/agent-skills, 103k stars) and Prioritize Assumptions (phuryn/pm-skills, 27k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Inversion Exercise?

sandgardenhq (a GitHub organization) maintains it in sandgardenhq/sgai, which has 137 GitHub stars. The repository holds 53 skills in this directory. The repository was last updated on September 21, 2026.

Source: sandgardenhq/sgai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.