/ios-skills:motioneyes-animation-debugfrom ios-skills
Temporarily instruments SwiftUI views with MotionEyes to capture animation and scroll traces, enabling comparison of observed motion against user intent or test expectations. For diagnosing bugs like wrong direction, timing mismatch, scroll jumps, or drift.
Ships in ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use MotionEyes as temporary observability for SwiftUI animation debugging and regression validation. Instrument targeted values and geometry, capture time-series logs, compare observed motion against expected motion, apply fixes or assertions, re-validate, and clean up all agent-added tracing.
Follow these rules for every run:
Follow this exact order:
.motionTrace(...) instrumentation with Trace.value, Trace.geometry, and (for scroll issues) Trace.scrollGeometry metrics named after user intent.Choose the geometry mode that matches what the user actually cares about.
Trace.geometry(..., space: .screen, source: .presentation)Trace.geometry(..., space: .swiftUI(.global), source: .layout)Trace.geometry(..., space: .swiftUI(.local), source: .layout) or a named coordinate spaceIf you are unsure, start with on-screen motion and add layout geometry only if you need relationships.
Trace.value.Trace.geometry using space: .screen, source: .presentation.Trace.geometry with space: .swiftUI(.global), source: .layout (or .local for local container relationships).Trace.scrollGeometry on the ScrollView container.Trace.value("opacity", opacity).Trace.value("offset", CGPoint(x: offset.width, y: offset.height)).Trace.geometry in .screen + .presentation (add layout if needed).Trace.geometry for both views in the same space that matches intent.Trace.value plus one geometry metric.Trace.scrollGeometry with contentOffset and visibleRect metrics.Trace.geometry in .screen + .presentation.Add instrumentation only to the minimum set of views needed to test the complaint.
.screen + .presentation) when the user is describing what they see.ScrollView offset, visible region, content size, insets, or restoration behavior.Trace.scrollGeometry on the ScrollView container or an immediate descendant bound to the same scroll context.Choose geometry mode based on intent:
space: .swiftUI(.global), source: .layoutspace: .swiftUI(.local), source: .layout (or a named coordinate space)space: .window, source: .layoutspace: .screen, source: .presentationimport MotionEyes
import SwiftUI
struct CardMotionExample: View {
@State private var opacity = 1.0
@State private var offset = CGSize.zero
var body: some View {
RoundedRectangle(cornerRadius: 16)
.fill(.orange)
.frame(width: 180, height: 120)
.opacity(opacity)
.offset(offset)
.motionTrace("Card Motion", fps: 30) {
Trace.value("opacity", opacity)
Trace.value("offset", CGPoint(x: offset.width, y: offset.height))
Trace.geometry(
"cardFrame",
properties: [.minX, .minY, .width, .height],
space: .screen,
source: .presentation
)
}
.onTapGesture {
withAnimation(.easeInOut(duration: 0.6)) {
opacity = opacity == 1 ? 0.4 : 1
offset = offset == .zero ? CGSize(width: 0, height: 36) : .zero
}
}
}
}
ScrollView {
content
}
.motionTrace("Chat Scroll", fps: 30) {
Trace.scrollGeometry(
"scrollMetrics",
properties: [.contentOffsetY, .visibleRectMinY, .visibleRectHeight]
)
}
Prefer XcodeBuildMCP:
mcp__XcodeBuildMCP__session_show_defaults.mcp__XcodeBuildMCP__session_set_defaults.mcp__XcodeBuildMCP__build_run_sim if needed.mcp__XcodeBuildMCP__start_sim_log_cap using captureConsole: true and subsystemFilter: "MotionEyes".mcp__XcodeBuildMCP__stop_sim_log_cap and inspect returned logs.Fallback CLI if MCP is unavailable:
xcrun simctl spawn booted log stream \
--style compact \
--level debug \
--predicate 'subsystem == "MotionEyes"'
Use these signatures:
[MotionEyes][View][Metric] key=value ...[MotionEyes][View][Metric] -- Start timestamp --[MotionEyes][View][Metric] -- End timestamp --Analyze:
Start and to End.Do not force fixed thresholds globally; evaluate against the user’s stated expectation.
Use this mode when the user wants a testable pass or fail signal rather than a one-off debugging read.
Start to End for that specific motion burst.Start, End, or duration match expectationMotionSmoothness on the extracted scalar samples.MotionSmoothness as a local continuity heuristic only:
Threshold guidance:
Start and End markers align with the expected interaction timeline.At the end of every run:
import MotionEyes only if it was added solely for temporary tracing and is no longer needed.opacity and verify fade begins and ends when expected.Trace.scrollGeometry on the ScrollView and verify contentOffset and visibleRect progression through navigation and return paths.MotionSmoothness, plus separate timing or monotonicity checks when needed.Load references/motioneyes-observability-patterns.md when choosing metrics, interpreting trace behavior, or defining MotionEyes-based assertions.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jordancoin/ios-skills-collection --plugin ios-skills206 skills in this plugin
/aso-appstore-screenshotsGenerate high-converting App Store screenshots by analyzing your app's codebase, discovering core benefits, and creating ASO-optimized screenshot images using Nano Banana Pro./cleanseReview code for readability, then simplify it to be easy to follow and understand. Use this skill when the user wants to simplify code, improve readability, clean up for handoff, make code skimmable, reduce complexity, refactor for clarity, strip boilerplate, prepare code for future maintainers, or make a codebase easier to pick up. Trigger liberally — any request touching readability, simplification, cleanup, or "make this easier to understand" should use this skill. Also trigger when the user says things like "review this", "clean this up", "tidy this", "make this simpler", "reduce complexity", "flatten this", "strip the noise", or "I want to understand this code quickly next time I open it".
/critical-reasoningApply critical rationalist epistemology (Popper, Deutsch) to evaluate reasoning, identify errors, and refine understanding. Use when the user explicitly requests help with reasoning - phrases like "help me think this through", "does this make sense", "any flaws in this", "what am I missing", "critique this", "is this reasoning sound", "stress test this idea", "devil's advocate", or any request to evaluate arguments, identify logical problems, or improve thinking. Also use when errors in reasoning are significant enough to materially affect the user's goals, even if not explicitly requested.Other plugins' skills for the same job