agentleFS
gwair1989gwair1989/figma-full-cycle/skills/swiftui-adaptivity-check/SKILL.md

swiftui-adaptivity-check

Skill1 starsChanged 27 days agoMITView on GitHub

Use when checking existing SwiftUI screens across device sizes, safe areas, appearances, text sizes, locales, orientations or keyboard states. Works without Figma, standalone or as stage 6 of figma-full-cycle. Triggers: "check adaptivity", "check the screen on a small iPhone", "check the layout across devices". Not for Figma visual fidelity or implementing business logic.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use shared Preview evidence for grouped fixtures, destination selection and supported overrides.

    line 42
  2. Very specific:

    Actual design/mock available: use recorded provenance/pin and run the shared helper when sips is available.

    line 48
  3. Distinctive:

    Follow shared Figma acquisition only when fetching Figma evidence.

    line 58
  4. Very specific:

    Write the shared report with the full required matrix, including unexecuted rows, measured edge distances, reviewed evidence and …

    line 71
  5. Distinctive:

    Every required row has reviewed evidence: UI fits, no unintended letterboxing, clipping or overlap, and background reaches system-provided …

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SwiftUI Adaptivity Check

Validate existing UI against its supported device/configuration matrix. Owns the adaptivity workflow and completion criteria used independently and by figma-full-cycle stage 6.

Inputs and setup

  • Required: project/screens or native captures, with supported configuration boundaries.
  • Optional: selected states, device/configuration overrides, design references, output path, permission to fix findings, pipeline context.
  • Default report: docs/<RUN>_ADAPTIVITY.md.

Read validation-context.md first: it defines modes, audit, discovery, physical checks, fix scope and reports. <shared-root> is the sibling _figma-full-cycle-shared. Standalone use needs no manifest, UI Plan, Figma URL, Figma credential or mock screenshot.

Load the bundled SwiftUI Adaptive Layout skill by its exact registered name in review mode. Apply LAY-11/12/13 from its canonical layout rules. LAY-11 owns device bounds, Preview/evidence requirements, edge-invariant tolerance and minimum manual coverage. Reuse supplied constraints or derive them from project docs, the brief and relevant views. Unknown support boundaries are a coverage question; one reference device cannot represent the app.

Workflow

  1. Build/label the required matrix from deployment target, screen states and resolved Layout, Typography, Strings and Accessibility constraints. Alongside LAY-11 devices include light/dark, supported content sizes, documented locales/directions and long copy, supported orientations, keyboard and safe-area cases. VoiceOver, Reduce Motion and increased contrast require an active Accessibility requirement.
  2. Bring screens up directly and capture every required row. Keep geometry-bearing screens' smallest/largest Previews required by LAY-11; adding them needs existing fix authorization, otherwise report missing required Previews as a finding. Supplied captures cover only their documented rows. A minimal available device supplies partial evidence and never closes unavailable required configurations. Use shared Preview evidence for grouped fixtures, destination selection and supported overrides. Resizable Canvas and alternative-display previews can explore supported configurations, but do not replace LAY-11's native captures or prove runtime display transitions. Unsupported required overrides need a different capture route or an open row, not a default-device substitute.
  3. Choose evidence per row:
    • Actual design/mock available: use recorded provenance/pin and run the shared helper when sips is available. Only rows with real references enter the batch plan:

      python3 <shared-root>/scripts/screenshot_diff.py batch \
        --plan <artifact-root>/reports/matrix.json --project-root <project-root> \
        --out <artifact-root>/reports/matrix-result.json

      Items are {label, render, mock, ignore_top, ignore_bottom}. Record actual markers/JSON. Follow shared Figma acquisition only when fetching Figma evidence; local design captures need no Figma call.

    • No design/mock, or no sips: mark geometry not-run with its reason. Inspect every row against native bounds/project invariants. Do not fabricate a design from another render, stretch a reference-device capture into a mock, or emit a mechanical clean marker. Direct review is a complete supported validation path.
  4. Apply LAY-11 manual coverage to mechanically checked rows. Its cross-aspect clipping limits remain binding; inspect truncation/reflow, overlap and control placement. Verify intended edge relations on smallest/largest targets and the system-owned root shape, including oversized decoration, under shared rules.
  5. For pending translations use sanctioned pseudolocales/fixtures or retain pending coverage/an approved waiver under project policy. Do not manufacture translations. Track source-layout success separately from translation readiness.
  6. Write the shared report with the full required matrix, including unexecuted rows, measured edge distances, reviewed evidence and fixes/rechecks. Authorized UI changes invalidate affected comparison/adaptivity/physical results; return these rows to the orchestrator in pipeline mode. Return report path, result and coverage gaps.

Completion criteria

  • Every required row has reviewed evidence: UI fits, no unintended letterboxing, clipping or overlap, and background reaches system-provided edges.
  • LAY-11 edge-invariant, Preview and manual-review requirements are met; unavailable required configurations stay open rather than being replaced by an available device.
  • Mechanical rows contain actual markers/JSON; no-reference/no-helper rows name the fallback and have direct review for every row.
  • Translation readiness is explicit and required physical checks meet the shared contract.
  • A passing result has no required row failed, blocked, not-run or stale. A skipped mechanical pass can coexist with a passed row after its required direct review.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.