UI Percept Rapid Feedback
Use this skill when you need quick iteration on Quick Maths screen quality, especially spacing, alignment, sizing consistency, truncation risk, and palette cohesion.
This skill avoids subjective pass/fail judgment and instead produces concrete, measurable feedback that an agent can use to patch SwiftUI code and rerun.
When To Use
- After UI changes in
quick-math-swift - When reviewing one or more captured screens (
home,game,reward) - When you want a higher aesthetic bar than default ui-percept rules
- When you need output saved to files for repeatable agent loops
Prerequisites
quick-math-swiftrepo is present and buildableui-perceptrepo exists at/Users/vabole/repos/ui-perceptor passed via--ui-percept-dir- iOS simulator +
xcodebuildavailable for capture
Workflow
- Run the helper from quick-math root:
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh --mode improve --screens game- Read:
.ui-captures/ui-percept-skill/<run-name>/feedback-overview.jsonfirst.ui-captures/ui-percept-skill/<run-name>/codex-jury-prompt.mdfor Codex vision review mode.ui-captures/ui-percept-skill/<run-name>/codex-decision-log.mdfor narrated decision tracking.ui-captures/ui-percept-skill/<run-name>/feedback-report.mdsecond.ui-captures/ui-percept-skill/<run-name>/feedback-report.jsononly when drilling down
- Prioritize fixes in this order:
blockerandmajorlint issues- repeated
ruleclusters in report summary - top
suggestionsfromsignals.json
- Patch SwiftUI code, then rerun the same command.
Commands
Run selected screens:
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh --mode improve --screens home,game,rewardSwitch to build-oriented prompt mode:
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh --mode build --screens gameArchive before/after screenshots with commit-hash labels:
# before changes (uses current HEAD hash by default)
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh \
--mode improve --screens game --archive-stage before --archive-user "$USER"
# after changes (pass the new commit hash explicitly)
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh \
--mode improve --screens game --archive-stage after --archive-user "$USER" --git-hash <new_commit_hash>Low-friction helper (auto hash + optional history commit):
# before phase
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/archive-round.sh --phase before --screens game
# after phase
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/archive-round.sh --phase after --screens gameSkip automatic history commit if you only want artifacts:
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/archive-round.sh \
--phase after --screens game --no-history-commitUse existing captures without rerunning XCUITest:
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh --screens game --skip-captureSet custom ui-percept path:
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh \
--screens game \
--ui-percept-dir /path/to/ui-perceptAnalyze a specific archived artifact directly (no new capture):
bash .apple-skills/skills/ui-percept-rapid-feedback/scripts/run-feedback.sh \
--tree .ui-captures/game/ui_tree.json \
--screenshot .ui-captures/ui-percept-v2/game-fast/full.png \
--screen-name game-fast \
--run-name game-fast-reviewNotes
- This skill uses
references/high-bar-rules.yamlto raise visual standards. - Keep feedback evidence-based: element IDs, measured values, and repeatable signals.
- Context hygiene rule: load
feedback-overview.jsonfirst and only open per-screen drilldown files for the issue you are fixing. - For opinionated UX/aesthetic review, apply
references/jury-review-mode.md. - For round-by-round history and commit discipline, apply
references/round-commit-workflow.md.