
react-native-skia
Build, debug, or profile React Native Skia canvases, paths, rich text, shaders, images, snapshots, video, and animated graphics. Use when Skia is selected or custom drawing is needed. Do not introduce a canvas merely because ordinary native UI should look polished or animate smoothly.
- Installs
- 119
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/tristanmanchester/agent-skills --skill react-native-skia- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads react-native-skia automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
React Native Skia
Use Skia when the task needs custom drawing. Keep accessible native controls and ordinary layout as native views. For an existing app, inspect the actual locked Skia/React Native/React/Reanimated/Worklets versions, target platforms, rendering backend, and relevant component before changing dependencies or architecture.
Choose by workload
Use retained drawing for stable scenes with animated props, Picture when recording a changing command list is justified, and Atlas for repeated sprites sharing a texture. Reuse textures for repeated expensive motifs only when profiling or the workload supports that tradeoff. A shader is not automatically faster than shapes; blur, overdraw, texture uploads, resolution, and live resource count matter.
Define the intended visual hierarchy, interaction, assets, bounds, and reduced- motion state. For broad creative requests, choose a coherent direction and proceed; do not require a design workshop for a small effect. Preserve useful design and primitive-selection methods in the references below.
Current integration rules
Read current contracts for version-sensitive setup. Native binaries now arrive through package dependencies, not a Skia postinstall downloader. Do not enable arbitrary lifecycle scripts or add Bun trust entries as a stock fix. Confirm the build actually resolves the platform packages.
Pass shared/derived values directly to drawing props. Do not wrap Skia drawing nodes in createAnimatedComponent/useAnimatedProps merely for animation; native overlay views are a different case. Use Skia's interpolateColors for Skia colours. Keep React state and context decisions outside the separate drawing renderer, or deliberately bridge required context. Worklets still consume frame time.
For grouped state, the current select API can bind object fields. Do not nest withTiming/withSpring objects inside that state and assume Reanimated animates each field; use individually animated values or calculated plain values instead.
Guard asynchronous images/fonts/video and shader-compilation failures. Prefer Paragraph for wrapped or multi-style text. Check drawing origins, radians, clipping, and paint/layer semantics before treating a visual defect as a performance issue. For texture-containing snapshots, use the documented async path in the correct rendering context and wait for real asset readiness, not a fixed arbitrary delay.
Lifecycle and accessibility
Cancel or deactivate decorative loops/frame callbacks on unmount and when they are unnecessary off-screen/backgrounded. Provide a meaningful static reduced-motion state. Reanimated's useReducedMotion reads the startup preference; use an actual reactive setting subscription if the app must respond while running.
Mirror relevant hit regions and transforms with accessible native controls, with labels, focus, keyboard/screen-reader actions, and adequate hit targets. A Canvas accessibility label does not expose its individual interactive shapes. Verify successive gestures, cancellation, bounds changes, and multi-touch, not only a single ideal drag. Use one compatible Gesture Handler generation for related interactions; adapt a template's gesture API to the chosen stack.
Inspect and verify
The former regex audit is removed: it inferred installed versions from dependency ranges and prescribed obsolete postinstall fixes. Instead inspect lockfiles, dependency resolution, native build logs, actual component state, and targeted source searches. A token in a comment or neighbouring component is only a lead.
Type-check the adapted component in the actual project. Verify assets, loading/error states, density, orientation, fonts, touch/accessibility, and web CanvasKit loading where applicable. Profile a release-like build on representative devices, including GPU cost and memory. Mocks and CanvasKit tests are not native rendering proof; UI-thread execution, a warmup flag, or an Atlas node is not a frame-rate guarantee.
Report the patch, intended effect, why the chosen primitives fit, observed results, and remaining device/browser checks. Do not label unmeasured work GPU-friendly or near-zero-cost. Treat Graphite/@next as an explicitly chosen experiment, not the normal upgrade path.
Load references for the task
- Current contracts: setup, assets, versions.
- Decision tree: rendering primitives.
- Motion design: composition and visual intent.
- Performance: measured bottlenecks.
- Debugging: symptom-driven investigation.
- Recipes: implementation approaches.
- Template index: starting examples to adapt.
- Evaluation: maintainer output/trigger checks.
References and templates are skill-relative, not files in the target app. Templates are starting points, not certified against every current native stack. Preserve their useful design while checking actual imports, lifecycle, and semantics.
FAQ
What does the react-native-skia skill do?
Build, debug, or profile React Native Skia canvases, paths, rich text, shaders, images, snapshots, video, and animated graphics. Use when Skia is selected or custom drawing is needed. Do not introduce a canvas merely because ordinary native UI should look polished or animate smoothly.
How do I install react-native-skia?
Run npx skills add https://github.com/tristanmanchester/agent-skills --skill react-native-skia in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/react-native-skia/ (personal) or .claude/skills/react-native-skia/ (project).
Which AI agents can use react-native-skia?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is react-native-skia safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains react-native-skia?
It is published by tristanmanchester in tristanmanchester/agent-skills. It has 119 recorded installs.
More from tristanmanchester/agent-skills
designing-beautiful-websites
tristanmanchester/agent-skills
Design, implement, or critique website and web-app UX/UI: information structure, user flows, responsive layouts, visual systems, content, and interaction states. Use for a requested interface or visual-design change; do not expand a small component edit into an unrequested product redesign.
reddit-readonly
tristanmanchester/agent-skills
Open the skill to read its SKILL.md instructions.
animating-react-native-expo
tristanmanchester/agent-skills
Implement and debug React Native or Expo motion with Reanimated 4 and Gesture Handler 3: state transitions, layout, gestures, scroll, worklets, cancellation, and accessible alternatives. Use for native UI motion, not web Motion or a reason to add canvas graphics to ordinary views.
styling-nativewind-v4-expo
tristanmanchester/agent-skills
Open the skill to read its SKILL.md instructions.
nextjs-framer-motion-animations
tristanmanchester/agent-skills
Open the skill to read its SKILL.md instructions.
track17
tristanmanchester/agent-skills
Open the skill to read its SKILL.md instructions.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.