Agent skill

Make Impossible States Impossible

by luxury-yacht in luxury-yacht/app

Eliminate representable-but-invalid Luxury Yacht states with discriminated unions, required identity, typed status, validated constructors, or one boundary chokepoint; use for "make impossible…

GPL-3.0Auto-check passedDevOps & Cloud

Install Make Impossible States Impossible

skills CLI
$ npx skills add luxury-yacht/app --skill make-impossible-states-impossible -a claude-code

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

GitHub CLI
$ gh skill install luxury-yacht/app make-impossible-states-impossible --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/luxury-yacht/app.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/make-impossible-states-impossible .claude/skills/make-impossible-states-impossible && 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
make-impossible-states-impossible
GitHub stars
444
Token cost
~1.5k tokens
SKILL.md length
647 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
GPL-3.0

At a glance

Eliminate representable-but-invalid Luxury Yacht states with discriminated unions, required identity, typed status, validated constructors, or one boundary chokepoint; use for "make impossible…

  • Works in 2 steps: Type level (preferred). Redesign so the… → Single chokepoint (only when a true…
  • Make impossible states impossible
  • SKILL.md covers Where to make it impossible, Frontend smell → fix…, Backend smell → fix (Go, no… and Workflow, plus 2 more sections
  • Calls rg

What it does

Make Impossible States Impossible is an agent skill from luxury-yacht/app. Eliminate representable-but-invalid Luxury Yacht states with discriminated unions, required identity, typed status, validated constructors, or one boundary chokepoint; use for "make impossible states impossible", boolean flag soup, contradictory nullable fields, incomplete object refs, or stringly state

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

It sits in DevOps & Cloud, covering Container orchestration. The repository describes itself as: Luxury Yacht - A cross-platform app for managing Kubernetes clusters and resources. The licence is GPL-3.0.

When your agent uses it

  • Make impossible states impossible
  • Boolean flag soup
  • Contradictory nullable fields
  • Incomplete object refs

Example prompts

  • “make impossible states impossible”
  • “/make-impossible-states-impossible”

Workflow steps

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

  1. Type level (preferred). Redesign so the bad value cannot be constructed
  2. Single chokepoint (only when a true boundary keeps the type loose).

What it can do on your machine

Read from SKILL.md and the folder at commit 7001a03. 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

    Shell commands in SKILL.md call:

    • rg

    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

Make Impossible States Impossible loads about 1.5k tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 647 words of instructions outside code blocks.

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

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

The full file from luxury-yacht/app at commit 7001a03, republished under its GPL-3.0 licence (© luxury-yacht). 647 words, ~1,480 tokens.

Download SKILL.mdSave it as .claude/skills/make-impossible-states-impossible/SKILL.md (or your agent's skills folder).
name
make-impossible-states-impossible
description
Eliminate representable-but-invalid Luxury Yacht states with discriminated unions, required identity, typed status, validated constructors, or one boundary chokepoint; use for "make impossible states impossible", boolean flag soup, contradictory nullable fields, incomplete object refs, or stringly state

Make Impossible States Impossible

An impossible state is a value the type system permits but the domain forbids: { isLoading: true, error: "x", data: [...] } at once, an object ref with kind but no clusterId, a status: string holding "loaidng". Change the representation so the compiler (TS) or a constructor (Go) rejects the value, then delete the runtime check that used to catch it.

This is a structural refactor: it changes types, rarely behavior. The compiler plus the existing tests prove each conversion; add a test wherever a runtime guard is removed.

Where to make it impossible

  1. Type level (preferred). Redesign so the bad value cannot be constructed (discriminated union, required field, typed enum, type-state), then delete the runtime guard that became unreachable.
  2. Single chokepoint (only when a true boundary keeps the type loose). KubernetesObjectReference carries [key: string]: unknown for raw K8s objects, so the project keeps one validating chokepoint instead of scattered checks: assertObjectRefHasRequiredIdentity in frontend/src/shared/utils/objectIdentity.ts, called once per boundary entry (for example useObjectPanel.openWithObject). It is an assertion function that narrows the loose ref to ClusterObjectReference in place, so everything past it carries required identity. Match that pattern; never sprinkle per-caller if (!ref.clusterId) checks.

Frontend smell → fix (TypeScript)

SmellLooks likeFix
Flag soupisLoading/isError/isStopping booleans encoding one stateOne status discriminated union. Models: useResourceInventoryTable.ts derives isEmpty from status === 'empty'; permissionTypes.ts uses status: 'loading' | 'ready' | 'error'.
Optional pair that must co-occur{ error?; data? } with exactly one set{ status: 'error'; error } | { status: 'ready'; data }
Nullable identityKubernetesObjectReference extends NullableResourceRefFields (every GVK field ?| null)Narrow at a parse boundary into ResolvedObjectReference (GVK + name required) or, past a cluster-identity boundary, ClusterObjectReference (clusterId also required), both in shared/utils/objectIdentity.ts. Downstream code takes the resolved type.
Stringly-typed statestatus: string, phase: stringLiteral union; exhaustive switch with a never default
[key: string]: unknownview-state raw-object shapesOnly at the external boundary; convert to a typed value immediately and do not leak the loose type downstream

Backend smell → fix (Go, no sum types)

SmellFix
string state with a valid zero valueDefined type + unexported field + validating constructor, e.g. ClusterLifecycleState (backend/cluster_lifecycle.go), JobState (backend/refresh/types.go), HealthState (backend/objectcatalog/types.go). Guard transitions in one method, not at call sites.
Bool flag selecting behaviorType-state: distinct types per state so the wrong operation will not compile
Exported struct with invalid field combosUnexport fields; a constructor rejects invalid combinations. The zero value is valid or unconstructable.
Sum type neededSealed interface (unexported marker method), one small impl per case, exhaustive type switch whose default errors/panics
Show full SKILL.md (234 more words)Show less

Workflow

  1. Scope one frontend module, backend package, or single type at a time.
  2. Audit with the greps below and list candidate impossible states.
  3. Trace the contract per the root cross-layer rules before editing any type that crosses a boundary, lifecycle, refresh domain, cluster identity, or object reference. Names are not contracts.
  4. Rank and present like the improve-* skills: a numbered list, each with the invalid value it permits today and the proposed representation. Let the user pick one; never batch a module-wide rewrite.
  5. TDD. Red: pin the behavior (for a chokepoint, that invalid construction is rejected; for a union, that consumers handle each variant). Green: change the type and let the compiler list consumers. Refactor: delete the now-unreachable guards and dead branches bottom-up in the same change.

Audit greps

bash
# Flag soup: 2+ boolean state flags near each other
rg -n -g '*.ts' -g '*.tsx' \
  "is(Loading|Error|Fetching|Empty|Ready|Connected|Pending|Stopping)\b\s*[:?]" \
  frontend/src | rg -v "\.(test|stories)\."

# Stringly-typed states that should be literal unions
rg -n -g '*.ts' -g '*.tsx' "(status|phase|state):\s*string\b" frontend/src

# Existing good unions to emulate
rg -n "status:\s*['\"](loading|error|ready|idle|empty)['\"]" frontend/src

# Backend string-typed states (candidates for validated constructors)
rg -n -g '*.go' "type\s+\w*(State|Status|Phase|Lifecycle)\s+string" backend

Do not

  • Add a scattered runtime if guard when a type change or the existing chokepoint is the correct fix.
  • Widen a type to silence the compiler; that reintroduces the impossible state. Update consumers instead.
  • Drop or guess clusterId/GVK to make a ref fit a tighter type; a ref without full identity is the impossible state.
  • Leave the old runtime check once a type makes it unreachable.
  • Convert a whole module in one change; one impossible state at a time, each proven by a test.
  • Change runtime behavior under a type refactor without a test that names the behavior change.

© luxury-yacht, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/make-impossible-states-impossible of luxury-yacht/app.

Open the folder on GitHubat commit 7001a03

Compare with similar skills

Make Impossible States Impossible 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.

Make Impossible States Impossible compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Make Impossible States Impossible this skillluxury-yacht/app444—~1.5kAutomated safety check: PassGPL-3.0
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0
KubeSphere Multi-Tenant Managementkubesphere/kubesphere17k—~3.1kAutomated safety check: PassCustom licence
Sim Helmsimstudioai/sim30k—~2.2kAutomated safety check: PassApache-2.0
Helm Chart ScaffoldingCybereason-Public/owLSM28013 repos~381Automated safety check: PassGPL-2.0
Mirrord Operatormetalbear-co/mirrord5.4k1 repos~4.6kAutomated safety check: PassMIT

Similar skills

  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Creates and queries KubeSphere users, workspaces and projects and assigns built-in roles, defaulting to least privilege and never deleting anything.

    17k GitHub stars~3.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Sim Helm

    simstudioai/sim

    Install, upgrade, and operate the Sim Helm chart on Kubernetes.

    30k GitHub stars~2.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Helm Chart Scaffolding

    Cybereason-Public/owLSM

    Comprehensive guidance for creating, organizing, and managing Helm charts for packaging and deploying Kubernetes applications.

    280 GitHub starsUsed in 13 repos~381 tokens
    DevOps & CloudAuto-check passed
  • Mirrord Operator

    metalbear-co/mirrord

    Help users install and configure the mirrord Operator for team/enterprise environments.

    5.4k GitHub starsUsed in 1 repo~4.6k tokens
    DevOps & CloudAuto-check passed
  • Syntax reference for KFL2, the CEL-based display filter language used to search Kubernetes network traffic captured by Kubeshark, loaded before any filter is written.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from luxury-yacht/app

All 17 skills in this repo
  • Improve Backend

    luxury-yacht/app

    A skill your agent uses when wanting to systematically improve the Go backend - scans for security vulnerabilities, stability risks, performance issues, and code simplification opportunities, then…

    444 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Improve Frontend

    luxury-yacht/app

    A skill your agent uses when wanting to systematically improve the React/TypeScript frontend - scans for security vulnerabilities, stability risks, performance issues, and code simplification…

    444 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Add Resource

    luxury-yacht/app

    Add or extend support for a Kubernetes resource kind across the required catalog, refresh, detail, object-panel, object-map, permission, documentation, and test surfaces

    444 GitHub stars~704 tokensUpdated today
    Auto-check passed
  • App Review

    luxury-yacht/app

    Audit broad Luxury Yacht systems or cross-cutting concerns for structural simplification, hardening, optimization, or refactoring; use for app-wide reviews and phased structural plans, not branch…

    444 GitHub stars~818 tokensUpdated today
    Auto-check passed
  • Browse Tables

    luxury-yacht/app

    Change cluster or namespace views, Browse/catalog surfaces, shared GridTable behavior, filters, pagination, large datasets, metrics columns, or refresh-backed resource tables

    444 GitHub stars~518 tokensUpdated today
    Auto-check passed
  • Refresh Subsystem

    luxury-yacht/app

    Modify Luxury Yacht refresh domains, snapshots, streams, doorbells, polling fallback, diagnostics, retained data, or refresh lifecycle while preserving cross-layer ordering and recovery contracts

    444 GitHub stars~563 tokensUpdated today
    Auto-check passed

Categories

Questions about Make Impossible States Impossible

What does Make Impossible States Impossible do?

Eliminate representable-but-invalid Luxury Yacht states with discriminated unions, required identity, typed status, validated constructors, or one boundary chokepoint; use for "make impossible…. Make Impossible States Impossible is an agent skill from luxury-yacht/app.

When should I use Make Impossible States Impossible?

Make Impossible States Impossible fits situations like: make impossible states impossible; boolean flag soup; contradictory nullable fields; incomplete object refs.

How do I install Make Impossible States Impossible in Claude Code?

Run `npx skills add luxury-yacht/app --skill make-impossible-states-impossible -a claude-code`. Or copy the skill folder (.agents/skills/make-impossible-states-impossible in luxury-yacht/app) into .claude/skills/make-impossible-states-impossible in your project. Claude Code loads it when a task matches its description.

How do I install Make Impossible States Impossible in Codex?

Run `npx skills add luxury-yacht/app --skill make-impossible-states-impossible -a codex`. Or copy the skill folder (.agents/skills/make-impossible-states-impossible in luxury-yacht/app) into .agents/skills/make-impossible-states-impossible in your project. Codex loads it when a task matches its description.

Can I use Make Impossible States Impossible 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 luxury-yacht/app --skill make-impossible-states-impossible -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/make-impossible-states-impossible, .gemini/skills/make-impossible-states-impossible, .github/skills/make-impossible-states-impossible and .opencode/skills/make-impossible-states-impossible in your project.

What does Make Impossible States Impossible need to run?

Going by SKILL.md and its folder, Make Impossible States Impossible needs the command-line tools its instructions call (rg).

Does Make Impossible States Impossible 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 Make Impossible States Impossible 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 Make Impossible States Impossible use?

Make Impossible States Impossible is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Make Impossible States Impossible use?

About 1.5k tokens (SKILL.md is roughly 5.9k 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 Make Impossible States Impossible?

Skills that share tags, products or a category with Make Impossible States Impossible: Kubeshark Installer (kubeshark/kubeshark, 12k stars), KubeSphere Multi-Tenant Management (kubesphere/kubesphere, 17k stars), Sim Helm (simstudioai/sim, 30k stars) and Helm Chart Scaffolding (Cybereason-Public/owLSM, 280 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Make Impossible States Impossible?

luxury-yacht (a GitHub organization) maintains it in luxury-yacht/app, which has 444 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 10, 2026.

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