CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

migration-migrate-component

Use when a component needs migration to the target architecture or framework version.

Quality

67%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./packs/vue/skills/migration-migrate-component/SKILL.md
SKILL.md
Quality
Evals
Security

Migrate a Vue component from Options API to <script setup lang="ts"> following docs/ARCHITECTURE.md section 5.

Component: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md section 5.

  2. Analyze the component:

    • Count lines (template, script, style)
    • List: props, emits, data, computed, watch, methods, mixins
    • Map who imports this component
  3. Convert to <script setup lang="ts">:

    • props → defineProps<T>()
    • emits → defineEmits<T>()
    • data() → ref() / reactive()
    • computed: → computed()
    • watch: → watch()
    • methods: → function
    • mounted() → onMounted()
    • mixins: [] → extract to composable useXxx()
  4. Apply composition pattern if there is prop drilling.

  5. Decompose if > 200 lines.

  6. Validate:

npx tsc --noEmit
npx vite build
npx vitest run --passWithNoTests
Repository

fernandezbaptiste/specialist-agent

Path

packs/vue/skills/migration-migrate-component/SKILL.md

Last updated
First committed

Is this your skill?

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.