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

/responsive-composition

@c9e2b62
Run it yourself

Adapt layouts, controls, and spatial views to available space, enlarged text, and input conditions. Use for responsive implementation or overflow, crowded controls, lost comparisons, and poor object framing.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈58 tokens for metadata: the name and description. ≈1.5k when used: this file. ≈2k more on demand in 1 file.

Description uses 2.9% 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 ≈232 characters, or 2.9%.

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.

Responsive Composition

Preserve identity, task intent, and required information across conditions. The same relationships may need different placements, framing, or navigation when available space changes.

When implementing or validating adaptation, load content-driven responsive verification for a container-based layout example, usable-region accounting, and a compact matrix that exposes intermediate failures.

Identify invariants and freedoms

Keep the primary task, selected identity, content meaning, status, essential comparisons, and recovery available. Determine which visual relationships define identity: typography character, dominant subject, color roles, rhythm, or a recognizable grouping.

Allow column count, panel placement, content disclosure, image crop, viewpoint, motion distance, and secondary detail to change. Do not preserve identical coordinates at the expense of readability or useful subject scale.

Inspect actual constraints: usable width and height, text enlargement, language and reading direction, content length, overlays, input precision, and space reserved for system UI. Viewport shape does not reliably indicate input method or device capability.

Locate composition failures

Find where labels collide, comparison loses alignment, line lengths become awkward, controls crowd, important content leaves the visible region, or the subject becomes too small. Choose transitions around those failures using established project conventions where they remain sound. Let a module respond to the space it actually receives; a wide overall view can still contain a narrow panel.

Inspect both sides of a composition transition and meaningful intermediate conditions. A wide and a narrow endpoint can both look acceptable while the intervening composition fails.

Use real or representative long content and relevant states while deciding fit. Short placeholder labels can hide the exact failure the layout must solve.

At generous widths, decide what should grow and what should stop growing. Preserve readable measures and useful comparison distances; assign surplus space to subject scale, context, or deliberate margins rather than stretching every gap and text region.

Recompose by information role

Element Adaptation decision
Primary subject Preserve recognizable scale and feature visibility; choose a new crop or view without cutting off the feature that carries meaning
Decision evidence Keep essential facts near the action; disclose secondary context
Navigation Preserve labels, current location, and a clear return while changing arrangement
Comparison Retain shared attributes, units, and item identity; when local overflow is necessary, make the continuation discoverable and preserve useful row context
Reading Adjust measure and hierarchy without reducing essential text to unreadable size
Controls Preserve distinct activation regions and meaningful labels across input modes
Overlays Fit available height, allow internal scrolling when needed, and keep dismissal, focused content, and the action needed to complete the task reachable
Persistent action Keep its context while preventing it from covering errors, content, or focus
Motion Reduce travel or simplify sequencing when the original movement no longer explains a relationship

Do not convert every dense comparison into isolated cards. If users compare values across records, retaining a compact shared structure may be more useful. Do not conceal unintended overflow globally; identify the element and give its excess content a usable treatment.

Keep visual, reading, and focus order coherent. Moving controls visually without updating the navigational relationship can make the experience appear coherent while behaving unpredictably.

For each consequential layout change, retain the reason it was needed, revised arrangement, information that stays visible, and context that survives. Define transitions from actual content requirements rather than naming a device and assuming its dimensions.

Adapt spatial views deliberately

Calculate the region that remains after controls and details. Reframe the subject around that region, considering both width and height. Change its apparent center, inspection angle, surrounding context, or presentation mode before uniformly shrinking the entire scene.

A short landscape view may need a different arrangement from a tall narrow view. A detail sheet may make a once-useful camera path impossible. Coordinate panel and camera decisions through camera composition.

Keep selected identity, configuration, and inspection context through a layout change. If a transition is in progress, derive the new presentation from the current state and replace obsolete offsets or conflicting transitions.

Respect input and capability independently

Make essential actions usable without hover, precision dragging, or one assumed grip. Keep enlarged text and the primary task compatible. Account for an on-screen input surface or other temporary reduction in available height when relevant.

Reduced movement is a user requirement, while lower visual quality is a capability adaptation. Apply them independently through visual accessibility and visual performance. A large display can be slow, and a small display can support rich rendering.

Acceptance and repair

If the result feels like a miniature wide view, give priority content and actions their own usable space before shrinking secondary regions. If it becomes an endless stack, restore meaningful grouping and disclose optional material without hiding decision evidence. If a comparison requires remembering values from distant regions, preserve shared labels and nearer comparisons. If controls or subjects disappear under overlays, repair usable-space accounting. If resizing changes the selected object or discards input, repair continuity of task state before polishing the rearrangement.

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

    The skill provides guidelines and best practices for creating responsive layouts and adapting UI components to different viewport sizes. It contains documentation and CSS/HTML examples but no executable code or security risks.

  • 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/responsive-composition