CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dev-create-composable

Use when adding server state management to a module - creates Vue Query composable with caching and error handling.

Quality

82%

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 composable following docs/ARCHITECTURE.md §4.4.

Composable: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md section 4.4.

  2. Determine the type:

    • Query (data reading) → useQuery + service + adapter
    • Mutation (write/delete) → useMutation + query invalidation
    • Pure logic (no API) → refs + computed + lifecycle
  3. Create the composable in composables/use[Name].ts:

    • Required use prefix
    • Parameters with MaybeRef<T> for reactivity
    • Reactive queryKey (computed)
    • Explicit staleTime
    • Return type with refs/computed
  4. Connect the layers: service → adapter → Vue Query

  5. Validate: npx tsc --noEmit

Repository

fernandezbaptiste/specialist-agent

Path

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