- Home
- Skills
- Frontend & Web Apps
- Vue Engineering
Works with the AI Agents you already use
Vue Engineering
Design and implement type-safe Vue 3 applications using Composition API, Pinia, and robust architectural patterns.
$5.99
Vue Engineering
Example session with this skill installed
Create a composable for handling paginated API data using TanStack Query, including search filters and loading states.
- Read your context and instructions
- Compiled the vue engineering
I have designed a paginated data composable using TanStack Query. It follows the async ownership rules to prevent stale writes and ensures reactive search filters are correctly tracked.
usePaginatedData Composable
import { computed, type Ref } from 'vue';
import { useQuery, keepPreviousData } from '@tanstack/vue-query';
interface PaginationParams {
page: Ref<number>;
pageSize: Ref<number>;
search: Ref<string>;
}
export function useItems(params: PaginationParams) {
const queryKey = computed(() => [
'items',
{
page: params.page.value,
pageSize: params.pageSize.value,
search: params.search.value
}
]);
const {
data,
isLoading,
isError,
isPlaceholderData,
error,
} = useQuery({
queryKey,
queryFn: async ({ queryKey }) => {
const [_key, { page, pageSize, search }] = queryKey as [string, any];
const response = await fetch(
`/api/items?page=${page}&limit=${pageSize}&q=${encodeURIComponent(search)}`
);
if (!response.ok) throw new Error('Network response was not ok');
return response.json();
},
placeholderData: keepPreviousData,
});
const items = computed(() => data.value?.items ?? []);
const total = computed(() => data.value?.total ?? 0);
const totalPages = computed(() => Math.ceil(total.value / params.pageSize.value));
return {
items,
total,
totalPages,
isLoading,
isError,
isPlaceholderData,
error,
};
}
Next steps
- Integrate this composable into the
ItemListView.vuecomponent. - Add a debounce to the
searchref to prevent excessive API calls during typing. - Implement a Vitest unit test using
flushPromisesto verify the loading state transitions.
Connects securely to your tools. The creator never sees your data.
About this skill
Vue codebases often degrade into a mess of fragmented reactivity, leaky component boundaries, and inconsistent state ownership. This skill provides a rigorous engineering approach to Vue 3 and TypeScript development, ensuring your application remains maintainable as it scales.
What it does
- Architectural design establishes clear module boundaries using Feature-Sliced Design (FSD) or vertical slices.
- State management implements authoritative ownership using Pinia, TanStack Query, or native Composition API composables.
- Component implementation builds robust SFCs using
<script setup>,defineModel, and strict TypeScript contracts. - Logic verification uses Test-Driven Development (TDD) with Vitest and Vue Test Utils to catch regressions early.
- Performance auditing identifies bottlenecks in reactivity, bundle sizes, and rendering cycles.
- SSR optimization handles request isolation and hydration specifically for Nuxt environments.
How it works
- Analyze context by reading package manifests, tsconfig, and existing reactivity patterns.
- Define contracts for props, events, and state lifetimes before writing implementation code.
- Execute implementation using the Composition API while preserving reactive sources across function boundaries.
- Verify behavior through type-checking with
vue-tscand executing targeted behavior tests.
Frameworks & tools
Built for Vue 3, Nuxt, and TypeScript. Works with Pinia, TanStack Query, Vite, Vitest, and Vue Router. Supports Feature-Sliced Design (FSD) and Clean Architecture patterns.
Why this beats prompting it yourself
Generic prompts often produce outdated Options API code or brittle reactivity that breaks under concurrent operations. This skill enforces strict ownership rules and async safety, preventing common memory leaks and stale data writes.
Use cases
- Migrating a legacy Options API or JavaScript module to Vue 3 and TypeScript.
- Designing a scalable component library with documented public APIs and slots.
- Debugging complex race conditions in async composables or Pinia stores.
- Implementing a Nuxt application with strict SSR hydration requirements.
Known limitations
Does not perform standalone visual design critiques or unrelated backend infrastructure work. Focuses strictly on the Vue/Nuxt ecosystem.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Excludes backend infrastructure, standalone visual design, and non-Vue translations. Limited to Vue/Nuxt ecosystem constraints.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today