CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dev-create-component

Use when adding a new UI component to an existing module - handles templates, props, and test scaffolding.

Quality

88%

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

SKILL.md
Quality
Evals
Security

Create a Nuxt component following docs/ARCHITECTURE.md section 5.

Component: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md section 5.

  2. Determine the type:

    • Feature component -> modules/[module]/components/ComponentName.vue
    • Shared component -> components/ComponentName.vue (auto-imported)
    • Page -> pages/[route]/index.vue (file-based routing)
  3. Create the component with the standard template:

<script setup lang="ts">
// In Nuxt, Vue APIs and composables are auto-imported
// NO import statements needed for ref, computed, watch, etc.

interface Props {
  // type all props
}

interface Emits {
  // type all emits
}

const props = defineProps<Props>()
const emit = defineEmits<Emits>()

// composables, state, computed, handlers...
</script>

<template>
  <!-- clean template, < 100 lines -->
</template>

<style scoped>
/* styles */
</style>
  1. Checklist:

    • <script setup lang="ts"> ✅
    • Type-based props ✅
    • Type-based emits ✅
    • Auto-imports (no explicit Vue/composable imports) ✅
    • < 200 lines ✅
    • PascalCase.vue ✅
  2. Validate: nuxi typecheck

Repository

fernandezbaptiste/specialist-agent

Path

packs/nuxt/skills/dev-create-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.