state-sweep
Skill45 starsChanged 3 months agoMITView on GitHub
Find missing interface and service states such as loading, empty, partial, permission, timeout, stale data, validation, failure, interruption, and recovery. Use when a designer asks what states or edge cases are missing from a screen, component, journey, or feature.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibilitySkill
- blindspotsSkill
- challengeSkill
- clearSkill
- contentSkill
- critiqueSkill
- decisionSkill
- frameSkill
- handoffSkill
- prSkill
- rippleSkill
- setup-uxSkill
- system-fitSkill
- user-groundingSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Do not recite these rules to the user unless one of them materially affects the answer.
- Distinctive: line 26
Do not introduce research questions, personas, or discovery work when the user and task are already clear or the missing information would …
- Distinctive: line 36
before data is available;
- Distinctive: line 39
when only part succeeds;
- Distinctive: line 40
when input is invalid;
- Distinctive: line 41
when permission or eligibility blocks progress.
- Distinctive: line 42
when data changes or becomes stale.
- Distinctive: line 43
when the network, service, or dependency fails.
- Distinctive: line 44
when a session or operation times out.
- Distinctive: line 45
when the user interrupts, leaves, retries, or resumes.
- Distinctive: line 46
after success, including confirmation and persistence.
- Distinctive: line 52
Do not create a separate visual state when the existing system behavior already handles the condition adequately.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
State Sweep
Find behavior the happy-path design is hiding.
Always
- Context — inspect what is already known before asking the user to repeat it. Use
.ux/INTENT.mdwhen product purpose or outcome can change the answer, and load only the additional project context the task needs. - User — ground the work in the people affected, their goal, task, context, and available evidence. Do not invent user needs, behaviors, or personas.
- Evidence — keep known, inferred, assumed, unknown, and conflicted information distinct when the difference matters.
- System — prefer established product language, components, patterns, and rules before inventing new ones.
- Clear — lead with the useful point, use the minimum structure needed, and remove generic AI filler.
- Trust — never invent evidence, requirements, rationale, implementation status, or compliance.
- Outcome — for substantial multi-step work, keep intent active, use a small
.ux/STATE.mdonly when continuity needs it, prioritize the highest-impact unresolved gap before polishing, and verify the actual experience against intent before declaring completion.
Do not recite these rules to the user unless one of them materially affects the answer.
Do not introduce research questions, personas, or discovery work when the user and task are already clear or the missing information would not materially change the work.
Read the flow and system
Inspect the current design or implementation, the smallest relevant project context, relevant API or data behavior when available, design-system states, accessibility rules, and existing product patterns.
Sweep by transition, not checklist
For each meaningful user action or system transition, ask what the user sees and can do:
- before data is available;
- while work is happening;
- when nothing exists;
- when only part succeeds;
- when input is invalid;
- when permission or eligibility blocks progress;
- when data changes or becomes stale;
- when the network, service, or dependency fails;
- when a session or operation times out;
- when the user interrupts, leaves, retries, or resumes;
- after success, including confirmation and persistence.
Also check focus, announcements, keyboard behavior, and recovery where dynamic state changes affect accessibility.
Avoid state inflation
Do not create a separate visual state when the existing system behavior already handles the condition adequately. Reuse documented component states when possible.
Output
Produce a concise state map. For each missing state, include the trigger, expected user-visible behavior, recovery path, and whether the design system already supports it.
Prioritize states whose absence can strand a user, lose work, create incorrect confidence, or produce inconsistent implementation.
Contrast example
Bad:
Consider loading, empty, error, success, offline, permission, timeout, disabled, hover, focus, validation, and edge-case states.
Good:
After the user submits payment, the request can remain pending while the service responds. The current design leaves Submit available during that transition, so a second submission is possible. Add a pending state that prevents duplicate submission, preserves the entered data, communicates progress, and defines what happens if the request times out.
Why: the good response starts from a real transition and consequence instead of generating a generic state inventory.
Examples
- "What states am I missing?"
- "State-sweep this checkout flow."
- "Engineering asked what happens when the API times out."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

