Index of every page on this site: llms.txt
All skills
nikunjkothiya avatar

/interaction-design

@c9e2b62
Run it yourself

Design control behavior, selection, forms, feedback, and object manipulation. Use when interactions need clear states, dependable interruption, failure recovery, or continuity between interface and scene.

Use this Skill: https://skilld.dev/gh/nikunjkothiya/gpt-6-astra-skills/interaction-design

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈56 tokens for metadata: the name and description. ≈1.8k when used: this file. ≈2.1k more on demand in 1 file.

Description uses 2.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈225 characters, or 2.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Interaction Design

Define what the user changes, what acknowledges input, what establishes the result, and what remains stable. Visual feedback must describe the actual state of the task.

For asynchronous selection, repeated input, or transitions that can be interrupted, load state and interruption implementation. It contains an action contract, a tested latest-selection pattern, motion ownership rules, and observable failure cases.

Establish the action contract

For each consequential interaction, define the trigger, affected scope, immediate response, pending state, confirmed outcome, failure recovery, stable anchor, and action that replaces or cancels it. Omit what does not apply and settle behavior before choosing the visual transition. A response acknowledges input; an animated highlight cannot prove a value was saved.

Separate durable task state from temporary hover, press, drag, and animation progress. Selection, identity, eligibility, and confirmed outcomes must agree across lists, details, spatial views, and alternative presentations. A late result must not replace a newer selection or reopen a dismissed view.

Specify only applicable states. Distinguish pressed, selected, current location, unavailable, pending, success, partial success, failure, empty account, and no matching results. Each carries a different meaning; one generic spinner or blank panel cannot express them all.

If a reversible change appears before confirmation, retain enough prior state to recover and show unresolved status where it matters. On failure, reconcile the visible result with the actual outcome and explain what remains changed. Do not replay an obsolete confirmation after the user has reversed or superseded the action.

Make controls discoverable

Use labels that predict the outcome. Place actions near the affected object and distinguish navigation from changes to data. Show the current scope of search, filters, sorting, pagination, and bulk selection. A count should make clear whether it describes visible items or all matching items.

Keep interactive areas stable and separated. A visual press effect may compress the surface while its activation region remains fixed. Hover can reinforce an affordance, but essential actions need visible and non-hover paths. If a control is unavailable, explain the reason or how to become eligible when that affects the next decision.

Make the entire intended target behave consistently. If a row opens detail while an embedded action modifies the object, separate their activation and feedback so one gesture cannot accidentally perform both. State styling should distinguish a current choice from a temporary hover even when both occur together.

Preserve familiar activation behavior even when the visual treatment is distinctive. Use visual accessibility for equivalent input, focus, names, and nonvisual state communication.

Design micro-interactions by consequence

Interaction Immediate response Stable outcome or recovery
Hover or focus Emphasize the same actionable region No layout jump; focus remains distinguishable from hover
Press or activation Acknowledge contact without moving the target away Release or cancellation restores the correct current state
Selection or switching Show the selected identity immediately All dependent content resolves to that identity; obsolete work cannot overwrite it
Opening or closing Indicate the destination or dismissed layer Preserve context and restore focus appropriately
Loading Retain action context and show pending status Success, failure, or partial completion appears when known
Progress Show actual completed work when measurable Unknown totals remain indeterminate; changed totals are explained
Confirmation Associate success with the affected object and action The resulting state remains inspectable after feedback fades
Rejection Identify the unmet condition near the action Preserve recoverable input and offer the relevant correction
Form correction Show requirements before commitment and actionable errors when meaningful Preserve values, associate each error with its field, and clear errors when resolved
Drag or reorder Show the dragged object and valid destination Commit once on valid release; cancellation restores a defined state
Object inspection Mark the inspected part and reveal related detail Return restores useful context without losing task selection

Secondary animation may support these responses but must not delay them. Use motion intelligence only for the temporal behavior that improves comprehension.

For incomplete input, distinguish a requirement the user has not yet reached from an invalid completed value. Avoid presenting a fresh field as failed before meaningful input; after submission, expose unresolved requirements and guide correction without repeatedly interrupting typing.

Preserve anchors through change

Decide which element moves, which remains fixed, and which reveals new information. Keep a recognizable anchor such as the selected row, page title, object, destination marker, or primary control. Avoid moving the subject, surrounding content, controls, and viewpoint simultaneously unless their relationship remains obvious.

Reserve useful space for arriving content so pending, success, and error states do not displace the active control. Do not reserve so much empty area that context disappears. If a panel must reframe a subject, coordinate the two around one clear event.

Opening a blocking layer should establish orientation and a usable focus path. Closing should return to its trigger or a sensible surviving location. Background updates should preserve focus and explain significant changes without announcing every visual frame.

Handle interruption and recovery

Determine the outcome of repeated activation, a newer selection while work is pending, cancellation during a transition, navigation away, and resumption after interruption. Replace obsolete intent instead of queuing stale presentations. Functional completion cannot depend solely on decorative motion reaching its endpoint.

For reversible local changes, make undo useful. For consequential changes, make actual effects clear within the established commitment flow; do not add habitual confirmation to every action. Retain inputs after recoverable failure and distinguish what remains saved from what must be retried.

If users cannot tell whether an action registered, strengthen acknowledgement at its target. If they repeat a pending action accidentally, keep the in-progress state visible and define what repeated activation does. If success vanishes with a transient message, expose the durable result on the affected object. If a panel change loses orientation, restore the selected identity, stable anchor, or return path before adding a transition.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts22d3 checks · Risk SAFE
  • Gen Agent Trust Hub22d

    This skill provides comprehensive design guidelines and code patterns for implementing resilient user interactions, focusing on state management, interruption handling, and visual accessibility. No security risks were detected.

  • Socket22d

    No alerts

  • Snyk22d

    Risk: LOW · No issues

Signed by skilld at c9e2b62. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for nikunjkothiya/gpt-6-astra-skills/interaction-design