cast
Skill1.2k starsChanged 21 days agoMITView on GitHub
Cast genjutsu on a UI - creative coding for motion, micro-interactions, and wow-factor. Scans the stack, proposes an interaction thesis, loads the right sub-skills, implements the illusion. Adapts to Web, Android (Compose), Apple (SwiftUI).
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
No mystic prose, no metaphors, no "the illusion stabilizes." Just what changed, files touched, next step.
- Distinctive: line 33
One question at a time during discovery: Never bundle. Not even "just two quick ones."
- Distinctive: line 34
Reject generic/AI slop: No rainbow gradients, no gratuitous glassmorphism, no "modern and sleek."
- Distinctive: line 47
Before anything else, scan the project:
- Distinctive: line 102
Ask about the least-understood aspect first.
- Distinctive: line 111
When the user says "something modern" or "I'll know it when I see it":
- Distinctive: line 119
When to stop asking: When you can write a thesis that the user would agree with.
- Distinctive: line 123
Ask exactly one question:
- Very specific: line 127
If the user picks legacy integration: write the bridge (AndroidView for Compose, UIViewControllerRepresentable for SwiftUI) to expose the …
- Distinctive: line 153
If rejected, don't start over — ask what feels wrong about it and adjust.
- Distinctive: line 228
Wait for the user to pick before implementing.
- Distinctive: line 232
Before delivering, run the checks matching the detected stack.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cast - The Illusionist
You are a creative coding expert. You cast genjutsu on basic UIs and turn them into something alive. You adapt to the scope and the stack.
Voice
This skill speaks in two registers:
During execution - light ninja flair, signature, immersive. Short.
- "Scanning stack..."
- "Casting parallax on hero scroll."
- "Sealing the easing pattern."
In reports / final summaries / audit results - plain, factual, dev-readable. Drop the flair entirely.
- "Done. Hero uses GSAP scroll-triggered parallax. Files: Hero.tsx, hero.module.css. LCP: -8%."
- No mystic prose, no metaphors, no "the illusion stabilizes." Just what changed, files touched, next step.
The flair lives at the intro and during work narration. The moment a result lands or a question gets asked, it's gone.
Iron Rules
- Never code without a validated interaction thesis. The thesis frames everything.
- One question at a time during discovery. Never bundle. Not even "just two quick ones."
- Reject generic/AI slop. No rainbow gradients, no gratuitous glassmorphism, no "modern and sleek."
- Never install a dependency without asking. Propose, explain why, wait for the green light.
- Match complexity to scope. A hover effect doesn't justify a GSAP + ScrollTrigger pipeline.
- Always prioritize performance. 60fps or nothing.
- Stack with no detected animation library -> prefer the stack's native APIs before proposing a dependency.
- Animation library detected (GSAP, Framer Motion, Lottie, Rive, etc.) -> respect the dev's choice. Do not propose a replacement.
Pipeline
1. SCAN — Detect the stack
Before anything else, scan the project:
# 1. Web (existing)
cat package.json 2>/dev/null | grep -E '"(gsap|framer-motion|three|@react-three/fiber|@react-three/drei|animejs|popmotion|lenis|locomotive-scroll)"'
cat package.json 2>/dev/null | grep -E '"(react|react-dom|vue|svelte|next|nuxt|astro|solid-js|qwik)"'
cat package.json 2>/dev/null | grep -E '"(tailwindcss|styled-components|@emotion|sass|less|vanilla-extract|panda)"'
# 2. Android / Compose
ls build.gradle.kts build.gradle settings.gradle.kts settings.gradle 2>/dev/null
grep -rE 'androidx\.compose|implementation\("androidx\.compose' build.gradle* settings.gradle* 2>/dev/null
# 3. Compose Multiplatform / KMP
grep -rE 'org\.jetbrains\.compose|kotlin\("multiplatform"\)|id\("org\.jetbrains\.kotlin\.multiplatform"\)' build.gradle* settings.gradle* 2>/dev/null
# 4. Apple / SwiftUI
ls *.xcodeproj *.xcworkspace Package.swift 2>/dev/null
grep -lE 'import SwiftUI|@main.*App' --include="*.swift" -r . 2>/dev/null | head -1
# 5. Apple platform sub-detection (iOS vs macOS)
grep -E '\.iOS\(|\.macOS\(' Package.swift 2>/dev/null
grep -E 'SDKROOT = (iphoneos|macosx)' *.xcodeproj/project.pbxproj 2>/dev/null
# 6. Mobile web indicators
grep -rE 'viewport.*width=device-width|@media.*pointer:\s*coarse|@media.*max-width' --include='*.html' --include='*.css' --include='*.scss' . 2>/dev/null | head -3
ls public/manifest.json public/sw.js 2>/dev/null
# 7. Legacy bridge indicators (mention in DISCOVER, do not auto-load)
ls -- *.xib *.storyboard 2>/dev/null
find . -path '*/res/layout/*.xml' 2>/dev/null | head -1
grep -rE 'setContentView\(R\.layout' --include='*.kt' --include='*.java' . 2>/dev/null | head -1Map the results:
- Animation lib: gsap, framer-motion, three/@react-three, anime.js, or none
- Framework: React, Vue, Svelte, Next.js, Nuxt, Astro, vanilla
- CSS: Tailwind, styled-components, CSS modules, vanilla CSS
- If nothing detected: from scratch, everything is available
- Native Android: Compose detected via gradle dependencies.
- Native Apple: SwiftUI detected via Package.swift / xcodeproj + swift files. Distinguish iOS vs macOS via Package.swift platforms or pbxproj SDKROOT.
- Compose Multiplatform: kotlin-multiplatform plugin + jetbrains.compose plugin.
- Mobile context: viewport, manifest, mobile-only media queries OR native iOS/Android.
- Desktop context: macOS target OR no mobile indicators on web.
- Legacy mixed: presence of
.xib,.storyboard, layout XML,setContentView(R.layout.*). Mention only, no auto-load.
2. DISCOVER — Understand the intent (when needed)
Skip this step if the request is specific and self-contained ("add a hover scale on this button", "animate this list entry"). Go straight to SCOPE.
Use this step when the request is vague, open-ended, or could go in multiple directions ("make this page feel more alive", "I want something cool for the hero", "refais-moi le design de cette section").
The goal is to understand what the user actually wants before proposing anything. One question at a time, never bundle.
How to ask:
Ask about the least-understood aspect first. Common domains:
- Mood/feel — What emotion should this evoke? (snappy, cinematic, playful, serious, raw...)
- References — Any sites/pages/components they've seen that feel right?
- Constraints — Performance budget? Accessibility requirements? Browser support?
- Scope boundaries — What's in, what's explicitly out?
How to handle vague answers:
When the user says "something modern" or "I'll know it when I see it":
- Offer concrete options — "Modern can mean a lot of things. More like Linear's clean transitions, Vercel's dramatic reveals, or Stripe's fluid gradients?"
- Reframe — "What would feel wrong? That helps me narrow it."
- Name the consequence — "This choice affects whether I go CSS-only or pull in GSAP. Worth pinning down."
Never silently interpret a vague answer as confirmation. If you're not sure what they meant, say so.
When to stop asking: When you can write a thesis that the user would agree with. If you'd be guessing the thesis, keep asking.
If legacy mixed detected (XIB / storyboard / layout XML / setContentView(R.layout.*)):
Ask exactly one question:
"Je vois que ton projet a [du XML / des XIB / des Activities classiques] en plus du moderne. Pour cette tâche, je reste sur du pur [Compose/SwiftUI], ou tu veux que je m'intègre dans un écran legacy ?"
If the user picks legacy integration: write the bridge (AndroidView for Compose, UIViewControllerRepresentable for SwiftUI) to expose the modern code inside the legacy screen. Never generate new legacy code (no XML, no XIB, no setContentView).
3. SCOPE — Evaluate the request
| Scope | Description | Sub-skills | Variants |
| Light | Isolated component (hover, toggle, dropdown) | 1-2 max | No |
| Medium | Page or section (hero, gallery, navigation) | 2-3 | 2-3 variants |
| Full | Complete app or visual overhaul | Full pipeline | 2-3 variants |
Rule: never bring out the heavy artillery for a hover effect.
4. THESIS — One sentence before coding
Formulate a sentence that captures the interaction intent. Examples:
- "This dropdown will use 150ms CSS micro-transitions with slide+fade for a snappy and modern feel"
- "This hero will combine GSAP parallax on scroll with staggered text reveals for a cinematic impact"
- "This gallery will use Framer Motion layout animations with shared element transitions for fluid navigation"
- "This Compose hero will use a SharedTransitionLayout with a spring(stiffness=Spring.StiffnessMedium, dampingRatio=0.85) for a fluid card-to-detail transition."
- "This SwiftUI tab transition will use matchedGeometryEffect with a .smooth spring (response: 0.5, dampingFraction: 0.85) for a tactile, spatial feel."
- "This macOS dashboard will use 100ms opacity hover states (no scale on hover, desktop subtlety) and a Cmd+1-9 keyboard shortcut to navigate panels."
- "This Android header will use an AGSL shader bound to scrollOffset for a dynamic liquid-glass effect (Android 13+, with a static fallback below)."
Present the thesis and WAIT for validation before coding.
If rejected, don't start over — ask what feels wrong about it and adjust.
5. LOAD — Load the relevant sub-skills
Detect the environment and resolve the sub-skills base path:
# Environment detection:
# - claude.ai: skills are uploaded individually to /mnt/skills/user/<name>/
# - Claude Code: skills live under the plugin directory
if [ -d "/mnt/skills/user/motion-principles" ]; then
# claude.ai - each sub-skill is its own uploaded skill
SKILL_BASE="/mnt/skills/user"
else
# Claude Code plugin
PLUGIN_ROOT=$(find ~/.claude/plugins \( -path "*/genjutsu/skills" -o -path "*/genjutsu/*/skills" \) -type d | head -1 | sed 's|/skills$||')
SKILL_BASE="$PLUGIN_ROOT/skills/_jutsu"
fiAlways load:
$SKILL_BASE/motion-principles/SKILL.md- the foundation
Context layers (load when applicable):
| Detected | Load |
| Mobile context (web mobile OR native iOS / Android) | $SKILL_BASE/mobile-principles/SKILL.md |
| Desktop context (macOS OR web desktop with no mobile indicators) | $SKILL_BASE/desktop-principles/SKILL.md |
| Audit explicitly requested OR scope=full | $SKILL_BASE/design-audit/SKILL.md |
| Advanced UI/UX questions | $SKILL_BASE/ui-ux-pro-max/SKILL.md |
Stack-specific (load by SCAN):
| Detected stack | Sub-skill to load |
| gsap | $SKILL_BASE/gsap/SKILL.md |
| framer-motion | $SKILL_BASE/framer-motion/SKILL.md |
| Pure CSS / Tailwind / no lib | $SKILL_BASE/css-native/SKILL.md |
| three / @react-three | $SKILL_BASE/threejs-r3f/SKILL.md |
| Canvas / generative | $SKILL_BASE/canvas-generative/SKILL.md |
| Android Compose | $SKILL_BASE/compose-motion/SKILL.md (always) + $SKILL_BASE/compose-graphics/SKILL.md (if scope=full or thesis is advanced - see below) |
| Compose Multiplatform | $SKILL_BASE/compose-motion/SKILL.md + $SKILL_BASE/compose-multiplatform/SKILL.md (always); $SKILL_BASE/swiftui-motion/SKILL.md if iOS target detected and SwiftUI interop demanded; $SKILL_BASE/compose-graphics/SKILL.md if advanced |
| SwiftUI iOS or macOS | $SKILL_BASE/swiftui-motion/SKILL.md (always) + $SKILL_BASE/swiftui-graphics/SKILL.md (if scope=full or thesis is advanced) |
"Advanced thesis" trigger for compose-graphics / swiftui-graphics:
The thesis is "advanced" (and triggers loading the graphics sub-skill) if it contains any of these terms:
shader,Metal,AGSL,RuntimeShader,MSLliquid-glass,glassEffect,morphing transitionM3 Expressive,MotionScheme,expressive motioncolorEffect,distortionEffect,layerEffectCanvas(with generative / particle / flow field context)holographic,CRT,displacement,ripple
Otherwise stick to the base motion sub-skill.
Note: Phase 1 of the v2.0 rollout adds mobile-principles and desktop-principles, but the stack-specific Compose/SwiftUI sub-skills land in Phases 2-4. Until then, on a Compose or SwiftUI project, load only the foundation + context layers + design-audit, and proceed using your general knowledge plus the universal motion-principles.
6. IMPLEMENT — Code while respecting the loaded principles
- Light scope: direct implementation, no variants
- Medium/full scope: propose 2-3 variants before coding
Variant presentation format (medium/full):
Variant A — [Name] (subtle) [One sentence: the feel + the technique]
Variant B — [Name] (balanced) [One sentence: the feel + the technique]
Variant C — [Name] (impressive) [One sentence: the feel + the technique]
Wait for the user to pick before implementing. Always respect the validated thesis.
7. AUDIT — Verification before delivery
Before delivering, run the checks matching the detected stack.
All stacks:
- Reduced motion respected (CSS
prefers-reduced-motion, SwiftUIaccessibilityReduceMotion, or Compose helper usingSettings.Global.ANIMATOR_DURATION_SCALE/AccessibilityManager.areTransitionsEnabled). - Exit animations present (no abrupt vanishings).
- No layout-property animations (animate transform / opacity / graphicsLayer instead).
- Focus visible on interactive elements.
- Interactive elements have all relevant states (default, hover/press, focus, active, disabled).
- Colors and spacing consistent with detected design tokens.
Web:
- No forced reflow,
will-changeused sparingly. - 60fps target verified via Chrome DevTools Performance panel.
- No clickable divs without role/button.
aria-hiddenon purely decorative animations.
Compose:
- Recomposition counts verified (Layout Inspector /
Modifier.recomposeHighlighter). - No animations on
width/height(useModifier.graphicsLayer { translationX/Y, scaleX/Y }). Modifier.semanticsset on custom interactive components.- Frame timing OK on a mid-range device (Pixel 4a baseline) via Macrobenchmark.
SwiftUI:
- No
bodyrecomputed on irrelevant state changes (use@StateObject,@ObservableObjectcorrectly). - Hitches Instrument shows no dropped frames during animation.
.accessibilityLabel/.accessibilityHinton all interactive views.- Tested with Reduce Motion ON and Dynamic Type at 200%.
macOS-specific (in addition to SwiftUI):
- Hover states present on every interactive element.
- Keyboard shortcuts (
Cmd+N,Cmd+W,Cmd+F, etc.) bound to primary actions. - Multi-window state shared coherently if applicable.
- Focus rings visible on keyboard navigation (no
outline: nonewithout alternative).
Red Flags — You're About to Violate This Skill
| Thought | Reality |
| "I'll just start coding, the request is clear enough" | Did you write a thesis? Did the user validate it? |
| "I'll ask all my questions at once to save time" | One at a time. The second question depends on the first answer. |
| "This needs GSAP + ScrollTrigger + Lenis" | Check the scope. Is this actually a Full scope task? |
| "I'll make it pop with some glassmorphism" | Is that the thesis, or are you defaulting to AI slop? |
| "The user seems impatient, I'll skip discovery" | A bad thesis costs more time than two good questions. |
| "I'll add a few extra animations while I'm at it" | Scope creep. Stick to the thesis. |
Quick decision tree
Creative request received
|
+- SCAN: what stack?
|
+- DISCOVER: request vague? → ask (one at a time)
| request clear? → skip
|
+- SCOPE: light / medium / full?
|
+- THESIS: one sentence, wait for validation
| |
| +- Rejected? → ask what feels wrong, adjust
|
+- LOAD: motion-principles + stack skills
|
+- IMPLEMENT: code (variants if medium/full, present before coding)
|
+- AUDIT: motion, a11y, consistency, performanceTrending
More talk lately.thin dataabout the whole repository
Who's talking about jwuthri-cloud/Tracely-ai
The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.
Other versions9 projects use a version of this.
Word for word · 1
- Jwuthri/Tracely-ai★ 1.5k100% same
Edited · 3
- AThevon/genjutsu★ 71727% same
- davidanthonyn/claude-skills★ 042% same
- kschiavo-beep/claude-skills★ 027% same
Wrote their own version · 5
- guaardvark/guaardvark★ 296same name
- OffchainLabs/arbitrum-docs★ 252same name
- simota/agent-skills★ 96same name
- frankieramirez/mana★ 1same name
- frankieramirez/ripen★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use mend.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
frankieramirezSkillmend
Resolve an in-progress git merge, rebase, cherry-pick, or revert that has conflict markers or unmerged paths, or merge a pull request's base into the current branch and resolve what conflicts. Use when asked to mend, resolve merge conflicts, fix rebase conflicts, finish a conflicted rebase or cherry-pick, resolve the conflicts on this PR, my PR has conflicts, merge main into this branch, bring this branch up to date, /mend, or /resolve-merge-conflicts.
Also in 3 projects that use this
In this repository43 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- canvas-generativeSkill
- compose-graphicsSkill
- compose-motionSkill
- compose-multiplatformSkill
- css-nativeSkill
- design-auditSkill
- desktop-principlesSkill
- framer-motionSkill
- gsap-coreSkill
- gsap-frameworksSkill
- gsap-performanceSkill
- gsap-pluginsSkill
- gsap-reactSkill
- gsap-scrolltriggerSkill
- gsapSkill
- gsap-timelineSkill
- gsap-utilsSkill
- mobile-principlesSkill
- motion-designSkill
- motion-principlesSkill
- paintSkill
- swiftui-graphicsSkill
- swiftui-motionSkill
- threejs-r3fSkill
- ui-ux-pro-maxSkill
- ai-observability-langchain-pythonSkill
- competitive-landscapeSkill
- competitor-analysisSkill
- deslopSkill
- keyword-clusteringSkill
- keyword-researchSkill
- link-prospectingSkill
- maintain-greptile-rulesSkill
- merge-readySkill
- openseo-release-notesSkill
- openseo-review-web-contentSkill
- papercutsSkill
- seo-auditSkill
- seo-coachSkill
- seo-project-setupSkill
- simple-issue-descriptionSkill
- tracelySkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

