Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

slidev-magic-move幻灯片魔法动作

Agent Skill

slidev-magic-move 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,812

周安装

74

GitHub Stars

27

下载量

580
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:slidev-magic-move(幻灯片魔法动作)
来源仓库:https://github.com/yoanbernabeu/slidev-skills
仓库路径:skills/slidev-magic-move
安装命令:
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-magic-move
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/yoanbernabeu/slidev-skills --skill slidev-magic-move

简介

slidev-magic-move 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于 Slidev 演示文稿中的动画过渡效果研究与实现场景。
  • 通过 npx skills add 命令从 GitHub 安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。
  • 注意该技能当前无详细功能说明,建议进一步查阅源码以了解实际能力边界。

SKILL.md

Shiki Magic Move

This skill covers Shiki Magic Move, a powerful feature that creates smooth animated transitions between different code states, similar to Keynote's Magic Move effect.

When to Use This Skill

  • Showing code evolution step by step
  • Refactoring demonstrations
  • Before/after code comparisons
  • Tutorial walkthroughs
  • Animated code transformations

How Magic Move Works

Magic Move analyzes two code blocks and:

  1. Identifies unchanged tokens
  2. Finds moved/renamed tokens
  3. Detects added/removed tokens
  4. Animates the transition smoothly

Basic Syntax

Use 4 backticks with md magic-move:

console.log('Hello')
console.log('Hello, World!')

Each code block represents a step, animated on click.

Step-by-Step Example

Refactoring Journey

// Step 1: Original code
function add(a, b) {
  return a + b
}
// Step 2: Add types
function add(a: number, b: number) {
  return a + b
}
// Step 3: Add return type
function add(a: number, b: number): number {
  return a + b
}
// Step 4: Convert to arrow function
const add = (a: number, b: number): number => a + b

Multiple Steps

const name = 'world'
const name = 'world'
const greeting = 'Hello'
const name = 'world'
const greeting = 'Hello'
console.log(`${greeting}, ${name}!`)
const name = 'world'
const greeting = 'Hello'
console.log(`${greeting}, ${name}!`)
// Output: Hello, world!

Combining with Line Highlighting

Add highlights within Magic Move:

const a = 1
const b = 2
const c = 3
const sum = 1 + 2 + 3

Advanced Options

Control Animation Timing

// Starts at click 3
const x = 1
const x = 1
const y = 2

Disable Line Numbers

const x = 1
const x = 2

Combined Options

const first = 1
const second = 2
const result = first + second

Real-World Examples

React Hook Evolution

// Class component state
class Counter extends React.Component {
  state = { count: 0 }

  increment = () => {
    this.setState({ count: this.state.count + 1 })
  }

  render() {
    return (
      <button onClick={this.increment}>
        {this.state.count}
      </button>
    )
  }
}
// Function component with useState
function Counter() {
  const [count, setCount] = useState(0)

  const increment = () => {
    setCount(count + 1)
  }

  return (
    <button onClick={increment}>
      {count}
    </button>
  )
}
// Simplified with inline handler
function Counter() {
  const [count, setCount] = useState(0)

  return (
    <button onClick={() => setCount(c => c + 1)}>
      {count}
    </button>
  )
}

API Evolution

// Callbacks
function fetchUser(id, callback) {
  fetch(`/api/users/${id}`)
    .then(res => res.json())
    .then(data => callback(null, data))
    .catch(err => callback(err, null))
}

fetchUser(1, (err, user) => {
  if (err) console.error(err)
  else console.log(user)
})
// Promises
function fetchUser(id) {
  return fetch(`/api/users/${id}`)
    .then(res => res.json())
}

fetchUser(1)
  .then(user => console.log(user))
  .catch(err => console.error(err))
// Async/Await
async function fetchUser(id) {
  const res = await fetch(`/api/users/${id}`)
  return res.json()
}

try {
  const user = await fetchUser(1)
  console.log(user)
} catch (err) {
  console.error(err)
}

Building a Function

function processData() {

}
function processData(data) {

}
function processData(data: string[]) {

}
function processData(data: string[]): string[] {
  return data
}
function processData(data: string[]): string[] {
  return data
    .filter(item => item.length > 0)
}
function processData(data: string[]): string[] {
  return data
    .filter(item => item.length > 0)
    .map(item => item.trim())
}
function processData(data: string[]): string[] {
  return data
    .filter(item => item.length > 0)
    .map(item => item.trim())
    .sort((a, b) => a.localeCompare(b))
}

SQL Query Building

SELECT * FROM users
SELECT id, name, email FROM users
SELECT id, name, email FROM users
WHERE active = true
SELECT id, name, email FROM users
WHERE active = true
ORDER BY created_at DESC
SELECT id, name, email FROM users
WHERE active = true
ORDER BY created_at DESC
LIMIT 10

Patterns and Tips

Start Simple, Add Complexity

// Start with the goal
const result = processData(input)
// Show the implementation
function processData(input) {
  return input
}

const result = processData(input)
// Add details
function processData(input) {
  return input
    .filter(x => x != null)
    .map(x => transform(x))
}

const result = processData(input)

Show Problem Then Solution

// Problem: Callback hell
getData(function(a) {
  getMoreData(a, function(b) {
    getMoreData(b, function(c) {
      getMoreData(c, function(d) {
        // Finally done
      })
    })
  })
})
// Solution: Promises
getData()
  .then(a => getMoreData(a))
  .then(b => getMoreData(b))
  .then(c => getMoreData(c))
  .then(d => {
    // Clean and flat!
  })

Highlight Changes with Comments

const config = {
  debug: true,
  timeout: 1000
}
const config = {
  debug: false,    // Changed!
  timeout: 1000
}
const config = {
  debug: false,
  timeout: 5000    // Increased!
}

Best Practices

  1. Small Steps: Each transition should show one logical change
  2. Maintain Context: Keep surrounding code visible when possible
  3. Use Comments: Add comments to explain what's changing
  4. Consistent Style: Keep formatting consistent across steps
  5. Test the Animation: Verify smooth transitions before presenting

Common Mistakes

Too many changes at once

Step 1: Original code
Step 2: Completely different code

Incremental changes

Step 1: Original
Step 2: Add one feature
Step 3: Add another feature
Step 4: Refactor

Lost context

Step 1: function foo() { ... }
Step 2: const bar = ...  // Where did foo go?

Preserved context

Step 1: function foo() { ... }
Step 2: function foo() { const bar = ... }

Interactive Playground

Try Magic Move at: https://shiki-magic-move.netlify.app/

Output Format

When creating Magic Move animations:

ANIMATION GOAL: [What transformation are you showing?]

STEPS:
1. [Initial state - describe]
2. [Change 1 - describe]
3. [Change 2 - describe]
...

CODE:
[Step 1 code]
[Step 2 code]

...

SPEAKER NOTES:
- Step 1: [What to say]
- Step 2: [What to say]

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.72%
按下载量换算149

Antigravity

24.69%
按下载量换算143

OpenCode

16.51%
按下载量换算96

Codex

13.14%
按下载量换算76

Gemini CLI

7.41%
按下载量换算43

continue

3.72%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills