← 返回 Skills 市场
anderskev

Ios Animation Code Review

作者 Kevin Anderson · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ✓ 安全检测通过
178
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install ios-animation-code-review
功能描述
Reviews iOS animation code for correctness, performance, accessibility, and Apple API best practices. Use when reviewing .swift files containing animation co...
使用说明 (SKILL.md)

iOS Animation Code Review

Quick Reference

Issue Type Reference
Spring parameters, withAnimation misuse, phase/keyframe bugs references/swiftui-animation-patterns.md
Frame drops, offscreen rendering, main thread blocking references/performance.md
Reduce Motion, VoiceOver, motion sensitivity references/accessibility.md
Transition protocol, matchedGeometryEffect, navigation transitions references/transitions.md

Hard gates (sequence)

Complete in order for the files in scope. If a step fails, omit the finding, re-anchor, or downgrade to a question—do not ship accusations without meeting the pass condition.

Step What you do Pass condition (objective)
1. Inventory List each file under review and where animation APIs appear (line ranges or symbol names: withAnimation, .animation, matchedGeometryEffect, PhaseAnimator, UIKit/CA animators, etc.). A written list exists; files with no animation APIs are explicitly marked out of scope.
2. Anchor Re-read the cited region in the current file or diff hunk before naming an issue. Each [FILE:LINE] still shows the behavior; stale line numbers are fixed or the finding is dropped.
3. Evidence For framework-specific claims (spring curves, Transition conformance, Reduce Motion), cross-check the matching row in Quick Reference against references/*.md. The finding’s detail names the reference file used, or states inline-only (structural/readability with no framework rule).
4. Report Emit findings using Output Format. Headers match [FILE:LINE] ISSUE_TITLE; checklist items below are applied only where gates 1–2 covered that code.

Output Format

Report each finding as:

[FILE:LINE] ISSUE_TITLE

Example: [AnimatedCard.swift:42] Missing Reduce Motion fallback for spring animation

All details, code suggestions, and rationale follow after the header line.

Review Checklist

  • @Environment(\.accessibilityReduceMotion) checked — animations have Reduce Motion fallback
  • Animation is not the sole feedback channel — important state changes pair with haptics (.sensoryFeedback) or audio
  • Custom animation isn't duplicating system-provided motion (standard nav transitions, sheet presentation, SF Symbol effects)
  • Animations on frequent interactions are brief and unobtrusive — or absent (system handles it)
  • All animations are interruptible — user is never forced to wait for completion before interacting
  • Spring animations use duration/bounce parameters (not raw mass/stiffness/damping unless UIKit/CA)
  • No deprecated .animation() without value: parameter
  • withAnimation wraps state changes, not view declarations
  • matchedGeometryEffect IDs are stable and unique within the namespace
  • geometryGroup() used when parent geometry animates with child views appearing
  • Looping animations (PhaseAnimator, symbolEffect) have finite phases or appropriate trigger
  • No CATransaction.setAnimationDuration() in UIView-backed layers (use UIView.animate instead)
  • Interactive animations handle interruption (re-trigger mid-flight doesn't break state)
  • Shadow animations provide explicit shadowPath (avoids per-frame recalculation)
  • Gesture-driven animations preserve velocity on release for natural completion
  • Gesture-driven feedback follows spatial expectations (dismiss direction matches reveal direction)
  • No animation of .id() modifier (destroys view identity — use transition or matchedGeometryEffect instead)

When to Load References

  • Incorrect spring setup or withAnimation scope issues → swiftui-animation-patterns.md
  • Hitches, dropped frames, or expensive animations in scroll views → performance.md
  • Missing Reduce Motion handling or motion accessibility → accessibility.md
  • matchedGeometryEffect glitches or custom Transition bugs → transitions.md

Review Questions

  1. Does every animation have a Reduce Motion fallback that preserves the information conveyed? Is animation the only feedback channel, or are haptics/audio supplementing it?
  2. Is this custom animation necessary, or does the system already provide it (standard transitions, SF Symbol effects, Liquid Glass)?
  3. Could this animation cause frame drops — is it animating expensive properties (blur, shadow without path, mask) in a list or scroll view?
  4. Are all animations interruptible? Can the user act without waiting for completion? Does gesture-driven feedback follow spatial expectations?
  5. Is withAnimation scoped to the minimal state change needed, or is it wrapping unrelated mutations?
  6. For matchedGeometryEffect — are source and destination using the same ID and namespace, and is only one visible at a time?
安全使用建议
This skill is instruction-only and self-contained: it reads provided .swift files and its bundled reference docs to produce code-review findings. Before installing, confirm you are comfortable allowing the agent to read any code you hand it (the skill has no network calls, env var access, or installers declared). Test it on non-sensitive sample code first. Note that absence of scanner hits is expected for instruction-only skills — the SKILL.md and references are the security surface; if you plan to use it with private repositories, ensure your agent's file-access policy is appropriate.
功能分析
Type: OpenClaw Skill Name: ios-animation-code-review Version: 1.2.1 The skill bundle is a legitimate tool designed to assist an AI agent in performing iOS animation code reviews. It contains structured instructions in SKILL.md and detailed technical documentation in the references/ directory covering accessibility, performance, and SwiftUI best practices. No malicious code, data exfiltration attempts, or harmful prompt injection techniques were identified.
能力标签
crypto
能力评估
Purpose & Capability
Name/description (iOS animation code review) align with the included SKILL.md and reference docs. The skill requires no binaries, env vars, or credentials — appropriate for a review-only tool that operates on supplied .swift files and bundled reference markdown.
Instruction Scope
SKILL.md plainly instructs the agent to enumerate and inspect .swift files, re-read the cited code ranges, consult the bundled reference docs, and emit findings in a strict textual format. It does not ask the agent to read unrelated system files, call external endpoints, or access secrets beyond the provided files.
Install Mechanism
There is no install spec and no code files executed — the skill is instruction-only, which minimizes disk-write and execution risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The runtime instructions only reference the bundled reference files and the target .swift files under review, which is proportional to its purpose.
Persistence & Privilege
always:false and no install actions mean the skill does not request permanent or elevated presence. The default ability for the agent to invoke the skill autonomously is unchanged but is normal for skills and not a red flag here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ios-animation-code-review
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ios-animation-code-review 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
- Added a "Hard gates (sequence)" section outlining objective, step-by-step review gates before reporting findings. - Clarified the review process to require explicit inventory and re-anchoring before emitting issues. - Stated pass conditions and required cross-checking with reference files for framework-specific claims. - No changes made to the checklist, output format, or references—process guidance only.
v1.2.0
- Added comprehensive checklist and reviewer guidance for iOS animation code review, focusing on correctness, performance, accessibility, and Apple API best practices. - Standardized output format for findings to improve clarity and consistency. - Included quick-reference table for common issues and relevant documentation links. - Provided targeted review questions to ensure thorough analysis of animations in Swift code. - Added guidance on when to consult detailed reference materials for specific animation-related issues.
元数据
Slug ios-animation-code-review
版本 1.2.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Ios Animation Code Review 是什么?

Reviews iOS animation code for correctness, performance, accessibility, and Apple API best practices. Use when reviewing .swift files containing animation co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 178 次。

如何安装 Ios Animation Code Review?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ios-animation-code-review」即可一键安装,无需额外配置。

Ios Animation Code Review 是免费的吗?

是的,Ios Animation Code Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ios Animation Code Review 支持哪些平台?

Ios Animation Code Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ios Animation Code Review?

由 Kevin Anderson(@anderskev)开发并维护,当前版本 v1.2.1。

💬 留言讨论