بنقرة واحدة
migrate-component
Migrate a UI component from one framework to another, preserving behavior and tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Migrate a UI component from one framework to another, preserving behavior and tests.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| 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.
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.
Demonstrates the personal scope for Claude Code skills. Use when testing personal-scoped skills or when the user wants to understand the difference between personal and project skill scopes.
Lists the conventions for this project and demonstrates the project scope for Claude Code skills. Use when asked about project conventions, code style, or as a demonstration of project-scoped skills.
Draft a CHANGELOG.md entry for the current changes in Keep a Changelog format. Use when releasing, tagging a version, or updating CHANGELOG.md.