core-animation-layer-workflow

core-animation-layer-workflow is a skill for Claude Code, Codex from gaelic-ghost/socket. It costs 143 tokens per session (1,802 once invoked), scanned A, original, Apache-2.0.

A guide for using Core Animation and CALayer trees to render and animate Apple-platform interfaces. It covers layer-backed AppKit and UIKit views and bridges to SwiftUI when needed.

In plain words
What is it for?
Use it for CALayer trees, shape, gradient, text, emitter, replicator, tiled, and transform layers, custom layer subclasses, animation timing, animation bugs, and layer-backed rendering diagnosis.
Why use it?
It clarifies ownership between views and layers and helps explain timing, implicit versus explicit animation, model versus presentation state, hit testing, scaling, and performance.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the apple-dev-skills plugin — 65 skills, 2 MCP servers shipped together

Good fit Use it for CALayer trees, shape, gradient, text, emitter, replicator, tiled, and transform layers, custom layer subclasses, animation timing, animation bugs, and layer-backed rendering diagnosis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gaelic-ghost/socket/core-animation-layer-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gaelic-ghost/socket --skill core-animation-layer-workflow
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

Made for: Claude Code, Codex.

Or install apple-dev-skills, the plugin that ships this one along with the rest of its 65 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for core-animation-layer-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaelic-ghost/socket/core-animation-layer-workflow/github.svg)](https://agentmods.dev/skills/gaelic-ghost/socket/core-animation-layer-workflow)
Your own site
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/core-animation-layer-workflow"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/core-animation-layer-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for core-animation-layer-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/core-animation-layer-workflow"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/core-animation-layer-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,802 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00143 $0.01802
Opus 5.5 $0.00057 $0.00721
Sonnet 5.5 $0.00029 $0.00360
Haiku 4.5 $0.00014 $0.00180

Measured 1mo ago against content hash 7810c8d852e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

core-animation-layer-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/apple-dev-skills/skills/core-animation-layer-workflow/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Core Animation Layer Workflow

Purpose

Use this skill to decide when Core Animation is the right layer-backed rendering or animation surface, then guide implementation, repair, and validation without confusing layer ownership with SwiftUI, AppKit, or UIKit view ownership.

It is not the default path for ordinary SwiftUI motion, AppKit/UIKit control animation, app architecture, or Xcode execution.

When To Use

  • Use this skill when the task mentions Core Animation, QuartzCore, CALayer, CAAnimation, CABasicAnimation, CAKeyframeAnimation, CAAnimationGroup, CATransaction, CAMediaTiming, presentationLayer, modelLayer, or layer trees.
  • Use this skill when the task mentions layer-backed AppKit views, wantsLayer, UIView.layer, layerClass, custom CALayer subclasses, shape layers, gradient layers, text layers, tiled layers, emitter layers, replicator layers, or transform layers.
  • Use this skill when the work needs model-layer versus presentation-layer reasoning, implicit-animation repair, explicit-animation timing, hit-testing during animation, layer-content scaling, or layer-backed performance diagnosis.
  • Recommend swiftui-animation-workflow when SwiftUI-native state animation, transitions, phase/keyframe animation, or reduce-motion behavior is enough.
  • Recommend appkit-app-architecture-workflow or swiftui-app-architecture-workflow when the real issue is ownership, view structure, scene structure, or lifecycle.
  • Recommend xcode-build-run-workflow when the next step is build, preview, simulator, screenshot, runtime diagnostics, Instruments handoff, or project-file validation.

Single-Path Workflow

  1. Classify the layer job:
    • view backing layer
    • custom layer drawing
    • implicit property animation
    • explicit CAAnimation
    • layer tree composition
    • model/presentation mismatch
    • layer bridge from SwiftUI, AppKit, or UIKit
    • performance or rendering artifact diagnosis
  2. Apply the Apple docs gate:
    • read the relevant Apple documentation first
    • state the documented behavior being relied on before recommending implementation
    • if Apple docs and the current code disagree, stop and surface the conflict
    • if no relevant Apple docs can be found, say that explicitly before proceeding
  3. Decide whether Core Animation is justified:
    • stay in SwiftUI, AppKit, or UIKit when their animation helpers cover the behavior clearly
    • use Core Animation when the task needs layer tree composition, presentation-layer inspection, custom layer subclasses, specialized layer types, or lower-level timing
    • consider SpriteKit, SceneKit, Metal, AVFoundation, or Canvas when the task is really game, 3D, GPU rendering, video, or SwiftUI drawing work
  4. Choose the layer ownership boundary:
    • UIKit view backing layer
    • AppKit layer-backed view
    • standalone sublayer tree owned by a view/controller/representable
    • custom layer class with explicit inputs
    • SwiftUI bridge via representable or hosting boundary
  5. Choose the animation path:
    • implicit animation through property changes and transactions
    • explicit animation object when timing, repeat, key path, fill behavior, or presentation continuity requires it
    • disabled actions when layout or data updates must not animate
    • framework-level animation when Core Animation is unnecessary
  6. Check model and presentation behavior:
    • update the model layer to the intended final value
    • use presentation layer only for in-flight visual state, hit testing, or diagnostics
    • avoid leaving animations that visually finish but snap because the model layer was not updated
  7. Return one recommendation path with:
    • the layer ownership boundary
    • chosen layer or animation primitive
    • documented behavior relied on
    • artifact, timing, or performance risk
    • validation or handoff step

Read the full file on GitHub · 135 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 135 lines · 143 tokens per session scan A 7810c8d852e7

Subscribe to this mod's changes

core-animation-layer-workflow is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 143 tokens to every session and 1,802 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

flutter-ui

Build Flutter UI from Figma MCP or image input. Scans src for design tokens (colors, sizes, text styles), existing components, and naming conventions before writing a single line of code. Never hard-codes values.

datit309/supergraph · 48 tokens

interface-craft

Raises the visual and interaction quality of an interface — layout, hierarchy, type, spacing, density, and the details that separate a considered product from a generic one. Use this when a screen works but looks unfinished or default, when a layout feels crowded or arbitrary, when a page has no clear focal point, or…

cbrock84/headcount · 79 tokens

presentation-design

Designs slide decks and one-pagers that carry an argument rather than decorate one — deck structure, headlines that state the takeaway, charts that make a single point, and the different rules board decks and conference talks follow. Use this to build or fix a pitch deck, board deck, or conference talk, to design a…

cbrock84/headcount · 109 tokens

ux-product-auditor

Audits a website, app, onboarding flow, or design for usability, conversion, and product problems, tying every finding to a business outcome and a severity. Use this to review an interface, diagnose low conversion or activation, find where users drop off, get structured product feedback, or decide which UX fixes to…

cbrock84/headcount · 86 tokens

app-store-optimization

Improves visibility and conversion in the App Store and Google Play — metadata, keywords, screenshots, ratings, and the listing experience that turns an impression into an install. Use this to audit or optimize an app listing, plan a launch listing, diagnose poor install conversion, or improve store search visibility.

cbrock84/headcount · 64 tokens

design-styles

Applies a deliberate visual direction to an interface — minimalist editorial, industrial utilitarian, or high-polish commercial — each with its own type scale, palette behavior, surface treatment, and motion. Use this when a product needs a point of view rather than defaults, when choosing between visual directions…

cbrock84/headcount · 81 tokens