ios-animation-code-review
Reviews iOS animation code for correctness, performance, accessibility, and Apple API best practices. Use when reviewing .swift files containing animation code — withAnimation, .animation(), PhaseAnimator, KeyframeAnimator, matchedGeometryEffect, navigationTransition, CABasicAnimation, CASpringAnimation, UIViewPropertyAnimator, UIDynamicAnimator, symbolEffect, scrollTransition, contentTransition, or custom Transition conformances.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anderskev/ios-animation-code-reviewWhat This Skill Does
The ios-animation-code-review skill is a specialized static analysis tool designed to audit Swift and SwiftUI animation code. It ensures that complex motion logic aligns with Apple's Human Interface Guidelines, performance best practices, and accessibility standards. By examining animation implementation patterns like PhaseAnimator, matchedGeometryEffect, and CAKeyframeAnimation, the skill identifies common pitfalls such as lack of Reduce Motion support, main-thread performance hitches, and incorrect usage of the withAnimation modifier. It serves as a rigorous peer-reviewer that enforces stability and UX consistency.
Installation
You can install this skill directly via the ClawHub command-line interface. Run the following command in your terminal within your OpenClaw environment:
clawhub install openclaw/skills/skills/anderskev/ios-animation-code-review
Use Cases
- Pre-Pull Request Audits: Use this skill before merging complex UI work to ensure your team isn't introducing accessibility violations or performance bottlenecks.
- Refactoring Legacy Code: Identify deprecated
.animation()modifiers that lack avalueparameter, which is a common source of unexpected UI states. - Performance Debugging: When your app experiences frame drops during scroll interactions, use this skill to check for expensive layout transitions or missing
geometryGroup()modifiers. - Complex Interaction Design: Validate custom transitions and
matchedGeometryEffectimplementations against naming namespace collisions and identity issues.
Example Prompts
- "Review this
CarouselView.swiftfile. I'm usingmatchedGeometryEffectfor card expansions, but the transition feels jittery and sometimes skips frames. Can you check my implementation?" - "I just migrated our custom UI animations to
PhaseAnimator. Please verify if my state transitions correctly handleaccessibilityReduceMotionand ensure the loop logic is efficient." - "Take a look at this
CABasicAnimationblock in my view controller. Is there a performance risk usingCATransactionhere, or should I be usingUIViewPropertyAnimatorinstead?"
Tips & Limitations
- Context is Key: Always provide the full view file or the relevant component structure, as the skill needs to see state property wrappers to accurately judge
withAnimationscopes. - Performance Focus: While the skill detects many issues, it cannot replace Instruments for real-time profiling. If it flags a performance issue, follow up with a Time Profiler capture.
- Accessibility First: The skill is strict about
Reduce Motion. If your animation is critical to the user experience, ensure you have a non-animated fallback strategy implemented before the review.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anderskev-ios-animation-code-review": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
tutorial-docs
Tutorial patterns for documentation - learning-oriented guides that teach through guided doing
fetch-pr-feedback
Fetch review comments from a PR and evaluate with receive-feedback skill
swift-testing-code-review
Reviews Swift Testing code for proper use of
rust-testing-code-review
Reviews Rust test code for unit test patterns, integration test structure, async testing, mocking approaches, and property-based testing. Covers Rust 2024 edition changes including async fn in traits for mocks,
explanation-docs
Explanation documentation patterns for understanding-oriented content - conceptual guides that explain why things work the way they do