Use when a component needs migration to the target architecture or framework version.
67%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./packs/nuxt/skills/migration-migrate-component/SKILL.mdMigrate a Nuxt component from Nuxt 2 / Options API to Nuxt 3 <script setup lang="ts"> following docs/ARCHITECTURE.md section 5.
Component: $ARGUMENTS
Read docs/ARCHITECTURE.md section 5.
Analyze the component:
Convert to <script setup lang="ts">:
props -> defineProps<T>()emits -> defineEmits<T>()data() -> ref() / reactive()computed: -> computed()watch: -> watch()methods: -> functionmounted() -> onMounted()mixins: [] -> extract to composable useXxx()asyncData() -> useAsyncData()fetch() -> useFetch()$axios -> $fetchthis.$route -> useRoute()this.$router -> useRouter()this.$store -> useState() / PiniaApply composition pattern if there is prop drilling.
Decompose if > 200 lines.
Validate:
nuxi typecheck
nuxi build
npx vitest run --passWithNoTestsfernandezbaptiste/specialist-agent
cd716d9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.