xiaohongshu
xiaohongshu
conventions-vue
Apply when working with Vue components, composables, stores, or styling. Ensures code matches established project patterns.
Full skill instructions
Always: <script setup lang="ts"> — no Options API, no class components, no mixins.
// Library components (ui-vue): export interface for reuse
export interface BaseInputProps {
modelValue: string | number;
type?: "text" | "email" | "number";
disabled?: boolean;
}
const props = withDefaults(defineProps<BaseInputProps>(), {
type: "text",
});
// App components: local interface
interface Props {
status: string;
variant?: "solid" | "outline";
}
const props = withDefaults(defineProps<Props>(), {
variant: "solid",
});
// Typed tuple syntax
const emit = defineEmits<{
"update:modelValue": [value: string];
focus: [];
}>();
// v-model via defineModel
const open = defineModel<boolean>("open", { required: true });
atoms/ → Base* prefix (BaseButton, BaseInput, BaseCard)molecules/ → Descriptive (FormControl, TabsGroup)organisms/ → Complex (DataTable)layouts/ → FlexLayout, ModalContainer, SlideOutdomain/common/ → Shareddomain/{feature}/ → Feature-specific, ie: domain/radar/composables/ → Feature hooksstores/ → Piniaservices/ → API layertypes/ → TypeScript definitionsNaming: use* prefix — useModal, useAirportAutocomplete
Return pattern: Object with refs, computed, methods
export const useAirportAutocomplete = () => {
const results = ref<Airport[]>([])
const loading = ref(false)
const error = ref<string | null>(null)
const search = async (term: string) => { ... }
return { results, loading, error, search }
}
Options for complex composables:
interface UseModalSubmissionOptions<T, R> {
defaultFormData: T;
submitAction: (data: T) => Promise<R>;
onSuccess?: (result: R) => void;
}
Options API style (not setup stores):
export const useSessionStore = defineStore('session', {
state: (): SessionState => ({
user: null,
isLoading: false,
error: null
}),
actions: {
async checkSession() { ... },
}
})
See conventions-css skill. Key points:
<style scoped> for domain components, unscoped for atomic design componentsLoading/error states:
<FlexLayout v-if="isLoading" align="center">
<BaseIcon id="spinner" inline /> Loading...
</FlexLayout>
<AlertMessage v-else-if="error" :message="error" type="error" />
<template v-else>
<!-- Content -->
</template>
Forms: FormControl molecule wrapping atoms
<FormControl v-model="formData.reason" :error="error" label="Reason" type="textarea" />
Modals: ModalContainer + useModalSubmission
<ModalContainer :is-open="open" title="Suspend" @close="open = false">
<FormControl v-model="formData.reason" />
<template #footer>
<BaseButton :loading="isLoading" @click="submitForm">Submit</BaseButton>
</template>
</ModalContainer>
Layout: FlexLayout/FlexItem, not raw flexbox
<FlexLayout direction="column" gap="xs">
<FlexItem :span="6">Label</FlexItem>
<FlexItem :span="6">Value</FlexItem>
</FlexLayout>
type for object shapes (props, state)type for unions and aliasesxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience