new-component
Skill0 starsChanged 8 months agoMITView on GitHub
Scaffold a new Vue 3 component using reka-ui primitives and Tailwind CSS. Use when the user asks to create a component, UI element, widget, or any .vue file in the components/ directory.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- codechup/claude-code-labtheir own version, first seen Nov 8, 2026
- robritacca-dotcom/rift-dstheir own version, first seen Nov 1, 2026
- Crawford-Young/claude-configtheir own version, first seen Oct 25, 2026
- ricci-labs/twisetheir own version, first seen Oct 20, 2026
- fangyuting/skillstheir own version, first seen Oct 11, 2026
- mark2685/agent-toolstheir own version, first seen Jun 12, 2026
Used with
Projects with it also use new-page.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
kkhh26864Skillnew-page
Vue 2 page creation specialist. Auto-triggers when user wants to: create new page, add page, build page, new vue page, create vue component page. Handles: page structure, routing, Vant components, Tailwind styling, mobile optimization. Works with Vue 2.6.11, Vant 2.13.2, Tailwind CSS, Vue Router.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- harunkurtdev/ros2-claude-code-template★ 214same name
- robritacca-dotcom/rift-ds★ 9same name
- kartikmanimuthu/agentfork★ 5same name
- fangyuting/skills★ 1same name
- codechup/claude-code-lab★ 0same name
- Crawford-Young/claude-config★ 0same name
- mark2685/agent-tools★ 0same name
- ricci-labs/twise★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- design-componentSkill
- new-composableSkill
- new-gql-operationSkill
- new-migrationSkill
- new-quill-fieldSkill
- new-resolverSkill
- new-server-routeSkill
- new-settings-storeSkill
- new-storeSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Always use <script setup lang="ts"> — never Options API
- Distinctive: line 12
Use reka-ui primitives where applicable (Dialog, Popover, Select, etc.)
- Very specific: line 13
Use cn() from ~/lib/utils for conditional class merging
- Very specific: line 15
Use useI18n() for all user-facing strings
- Very specific: line 17
Place in components/ui/ for primitives, components/ root for domain components
- Distinctive: line 84
Ask the user: what does this component do, what props does it need, does it use reka-ui?
- Very specific: line 87
If it uses GraphQL data, import the correct type from ~/types/gql
- Very specific: line 88
If it contains user-facing text, use t('key') and add key to app/locales/en.json
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: New Component
Rules
- Always use
<script setup lang="ts">— never Options API - Props via TypeScript interface +
withDefaults - Emits via typed
defineEmits - Use reka-ui primitives where applicable (Dialog, Popover, Select, etc.)
- Use
cn()from~/lib/utilsfor conditional class merging - Tailwind semantic utilities only — no raw color classes, no inline styles
- Use
useI18n()for all user-facing strings - Single root element in template
- Place in
components/ui/for primitives,components/root for domain components
Template
<script setup lang="ts">
import { cn } from '~/lib/utils'
// import { SomeRekaComponent } from 'reka-ui'
// import type { MyType } from '~/types/gql'
interface Props {
// required props first, optional after
label: string
variant?: 'default' | 'outline' | 'ghost'
disabled?: boolean
class?: string
}
const props = withDefaults(defineProps<Props>(), {
variant: 'default',
disabled: false,
})
const emit = defineEmits<{
click: [event: MouseEvent]
}>()
const { t } = useI18n()
// Reactive state
// const isOpen = ref(false)
const classes = computed(() =>
cn(
'base classes here',
props.variant === 'outline' && 'border border-border',
props.disabled && 'opacity-50 cursor-not-allowed',
props.class,
),
)
</script>
<template>
<div :class="classes">
<!-- component content -->
</div>
</template>Color Class Reference
| Semantic token | Tailwind class |
| Page background | bg-background |
| Card/panel bg | bg-card |
| Primary text | text-foreground |
| Secondary text | text-muted-foreground |
| Border | border-border |
| Action color (blue) | bg-primary / text-primary |
| Text on action bg | text-primary-foreground |
| Hover bg | bg-accent |
| Error/danger | text-destructive |
| Success | text-success |
| Warning | text-warning |
Steps
- Ask the user: what does this component do, what props does it need, does it use reka-ui?
- Identify the correct
components/subdirectory - Generate the component following the template above
- If it uses GraphQL data, import the correct type from
~/types/gql - If it contains user-facing text, use
t('key')and add key toapp/locales/en.json
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

