用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/davila7/claude-with-skills --skill migrate-component命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Explains code in plain language for someone unfamiliar with the programming language. Use when asked to explain code, walk through logic, describe what a function does, or when the user says "explain this" or "walk me through this".
Summarizes uncommitted git changes in a concise machine-readable format. Use in CI pipelines, scripts, or headless invocations where the output will be piped or captured.
Explains what a skill is and demonstrates that skills are working. Use when testing skills, when asked about skills, or when asked to demonstrate how skills work.
基于 SOC 职业分类
正在显示 SKILL.md
| title | migrate-component |
| name | migrate-component |
| description | Migrate a UI component from one framework to another, preserving behavior and tests. |
| disable-model-invocation | true |
| argument-hint | [component-name] [from-framework] [to-framework] |
Migrate the $0 component from $1 to $2.
Find and read the current $0 component file. Search for it:
src/components/, components/, app/components/, or similar common locationsgrep -r "$0" --include="*.$1*" -l if the framework extension is known (e.g., .vue, .jsx)Read all files that make up the component:
.css, .scss, .module.css)*.test.*, *.spec.*)If you cannot find the component, stop and ask the user for the file path.
Before writing any code, document:
This documentation becomes the specification the new implementation must satisfy.
Write the $0 component in $2, matching the same public API:
Use idiomatic $2 patterns. Do not transliterate $1 patterns directly into $2 if $2 has a better way to express the same thing.
Rewrite any tests associated with the original component to use $2 testing conventions:
mount from $1 to the $2 equivalent)Produce a brief report:
Changed:
Preserved:
Needs manual review:
Do not delete the original $1 component file. Leave that for the user to remove after verifying the migration.