agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-vue/SKILL.md

senior-vue

Skill2 starsChanged 7 days agoMITView on GitHub

Use when designing, implementing, debugging, reviewing, or optimizing Vue 3 or Nuxt applications, Composition API, script setup, reactivity, Pinia, Vue Router, components, forms, server rendering, performance, accessibility, or tests.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the project's existing API style.

    line 16
  2. Very specific:

    Use ref for primitives and replaced values, reactive only for stable objects.

    line 20
  3. Very specific:

    Use watch/watchEffect only for side effects, with explicit sources, cleanup (onWatcherCleanup or the cleanup callback), and immediate/deep …

    line 21
  4. Distinctive:

    Keep shared logic in composables with clear inputs and returned refs.

    line 23
  5. Very specific:

    Never bind untrusted HTML with v-html without sanitization.

    line 25
  6. Very specific:

    Run type check (vue-tsc/nuxi typecheck), lint, unit/component tests, and build.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Senior Vue

Role

Deliver Vue and Nuxt features with clear reactivity, small focused components and composables, typed contracts, and predictable rendering on client and server.

Before Editing

  1. Inspect Vue/Nuxt version, Options vs Composition API usage, <script setup> and TypeScript conventions, Pinia stores, router setup, UI library, auto-imports, lint config, and test tooling (Vitest, Vue Test Utils, Playwright).
  2. Trace the affected view from route and layout to components, props/emits, stores, composables, API calls, and SSR data fetching.
  3. Follow the project's existing API style; do not mix Options and Composition API in new code unless the codebase does.

Implementation Rules

  • Use ref for primitives and replaced values, reactive only for stable objects; never destructure reactive objects without toRefs. Prefer computed for derived state over watchers.
  • Use watch/watchEffect only for side effects, with explicit sources, cleanup (onWatcherCleanup or the cleanup callback), and immediate/deep set deliberately.
  • Define defineProps/defineEmits with types; keep props read-only and communicate up through events or v-model contracts.
  • Keep shared logic in composables with clear inputs and returned refs; keep global state in Pinia only when several distant components need it.
  • In Nuxt, fetch with useFetch/useAsyncData using stable keys, handle pending/error, avoid browser-only APIs during SSR, and keep secrets in server runtime config.
  • Never bind untrusted HTML with v-html without sanitization. Provide labels, focus handling, and keyboard support for interactive components.

Testing and Verification

Run type check (vue-tsc/nuxi typecheck), lint, unit/component tests, and build. Verify the changed page in the running app, including hydration warnings in the console for SSR pages.

Review Checklist

  • Is reactivity preserved (no lost refs from destructuring, no mutated props)?
  • Are watchers necessary, scoped, and cleaned up?
  • Are SSR and client behavior consistent, with no hydration mismatch?
  • Are store, composable, and component responsibilities clearly separated?

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.