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
explanation-docs
Explanation documentation patterns for understanding-oriented content - conceptual guides that explain why things work the way they do
tutorial-docs
Tutorial patterns for documentation - learning-oriented guides that teach through guided doing
pytest-code-review
Reviews pytest test code for async patterns, fixtures, parametrize, and mocking. Use when reviewing test_*.py files, checking async test functions, fixture usage, or mock patterns.
reference-docs
Reference documentation patterns for API and symbol documentation. Use when writing reference docs, API docs, parameter tables, or technical specifications. Triggers on reference docs, API reference, function reference, parameters table, symbol documentation.
serde-code-review
Reviews serde serialization code for derive patterns, enum representations, custom implementations, and common serialization bugs. Use when reviewing Rust code that uses serde, serde_json, toml, or any serde-based serialization format. Covers attribute macros, field renaming, and format-specific pitfalls.