Agent skill

Unhead Vue Skilld

by skilld-dev in skilld-dev/vue-ecosystem-skills

Full-stack <head manager for Vue (@unhead/vue 3.x). An agent skill from skilld-dev/vue-ecosystem-skills.

MITAuto-check passedDevelopment

Install Unhead Vue Skilld

skills CLI
$ npx skills add skilld-dev/vue-ecosystem-skills --skill unhead-vue-skilld -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install skilld-dev/vue-ecosystem-skills unhead-vue-skilld --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/skilld-dev/vue-ecosystem-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/unhead-vue-skilld .claude/skills/unhead-vue-skilld && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
unhead-vue-skilld
GitHub stars
181
Token cost
~1.9k tokens
SKILL.md length
533 words
Files
6 (incl. references)
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

Full-stack <head manager for Vue (@unhead/vue 3.x). An agent skill from skilld-dev/vue-ecosystem-skills.

  • Works in 6 steps: Async context: calling useHead() after… → Never call useHead() inside a watcher… → Deduplication key is key, not hid/vmid:… → …
  • Debugging code that imports @unhead/vue
  • SKILL.md covers Setup (mandatory), Composables, Critical rules and Deprecated in 3.4.1 (present…, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Unhead Vue Skilld is an agent skill from skilld-dev/vue-ecosystem-skills. Full-stack <head manager for Vue (@unhead/vue 3.x). Use when writing, reviewing, or debugging code that imports @unhead/vue, calls useHead, useSeoMeta, useHeadSafe, useScript, injectHead, createHead, or sets up Unhead SSR / streaming SSR / build plugins in a Vue app.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/api-surface.md`, `references/build-plugins.md` and `references/composables.md`).

It sits in Development. It works with Vue.js. The repository describes itself as: Agent Skills for the Vue ecosystem, written from current docs, issues, and releases. The licence is MIT.

When your agent uses it

  • Debugging code that imports @unhead/vue
  • Sets up Unhead SSR / streaming SSR / build plugins in a Vue app

Example prompts

  • “/unhead-vue-skilld”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Async context: calling useHead() after an await inside onMounted()/watchers throws useHead() was called without provide context. Fix, in…
  2. Never call useHead() inside a watcher callback: each call pushes a new entry and duplicates tags. Pass the reactive value into one…
  3. Deduplication key is key, not hid/vmid: meta: [{ key: 'description', name: 'description', content: '...' }].
  4. Inline content: innerHTML (was children in v1); body scripts use tagPosition: 'bodyClose' (was body: true).
  5. Untrusted input: use useHeadSafe(); it whitelists attributes and strips scripts/handlers.
  6. Head instance access in Vue: use injectHead() from @unhead/vue, not getActiveHead() from unhead; only the former binds to component…

What it can do on your machine

Read from SKILL.md and the folder at commit c8994af. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and vue).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • unhead.unjs.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Unhead Vue Skilld loads about 1.9k tokens when it runs, and up to ~7.5k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 533 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from skilld-dev/vue-ecosystem-skills at commit c8994af, republished under its MIT licence (© skilld-dev). 533 words, ~1,948 tokens.

Download SKILL.mdSave it as .claude/skills/unhead-vue-skilld/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
unhead-vue-skilld
description
Full-stack <head> manager for Vue (@unhead/vue 3.x). Use when writing, reviewing, or debugging code that imports @unhead/vue, calls useHead, useSeoMeta, useHeadSafe, useScript, injectHead, createHead, or sets up Unhead SSR / streaming SSR / build plugins in a Vue app.

@unhead/vue 3.4.1

Full-stack <head> management for Vue 3. ESM only ("type": "module"), no CJS. Peer deps: vue >= 3.5.18; optional vite >= 6.4.2, webpack >= 5.0.0 (source: package.json:138-150). Vue 2: not supported; use @unhead/vue@^1. Nuxt: Unhead is integrated already; do not install or set it up manually.

Setup (mandatory)

Install @unhead/vue, create the head instance, and register it as a Vue plugin. createHead comes from a subpath export, not the package root.

ts
// entry-client.ts (SPA or hydration)
import { createHead } from '@unhead/vue/client'
import { createApp } from './main'

const { app } = createApp()
const head = createHead()
app.use(head)
app.mount('#app')
ts
// entry-server.ts (SSR)
import { createHead } from '@unhead/vue/server'
import { renderToString } from 'vue/server-renderer'
import { createApp } from './main'

export async function render(url: string) {
  const { app } = createApp()
  const head = createHead()
  app.use(head)
  const html = await renderToString(app)
  return { html, head } // render tags later with transformHtmlTemplate(head, template)
}

Full SSR template wiring, streaming SSR, Options API, and auto-imports: references/setup.md.

Composables

All imported from @unhead/vue root and used inside setup():

vue
<script setup lang="ts">
import { useHead, useSeoMeta } from '@unhead/vue'

useHead({
  title: () => `${user.value.name} - Profile`, // getters, refs, computed all reactive
  titleTemplate: '%s | My Site',
  meta: [{ name: 'description', content: () => description.value }],
})

useSeoMeta({ // flat, type-safe keys; og/twitter handled automatically
  ogTitle: 'My Page',
  ogImage: 'https://example.com/image.jpg',
})
</script>
ts
// Third-party scripts
import { useScript } from '@unhead/vue'

const { proxy, onLoaded, status } = useScript(
  { src: 'https://example.com/analytics.js' },
  { use: () => window.analytics, trigger: 'client' },
)
proxy.track('pageview') // queued until the script loads

Details, options tables, and recipes: references/composables.md.

Critical rules

  1. Async context: calling useHead() after an await inside onMounted()/watchers throws useHead() was called without provide context. Fix, in order of preference: top-level await in <script setup>; declare useHead() once with refs/computed and update the ref later; capture const head = injectHead() at setup time and pass useHead(input, { head }). Source: https://unhead.unjs.io/docs/vue/head/guides/core-concepts/reactivity-and-context
  2. Never call useHead() inside a watcher callback: each call pushes a new entry and duplicates tags. Pass the reactive value into one useHead() call instead.
  3. Deduplication key is key, not hid/vmid: meta: [{ key: 'description', name: 'description', content: '...' }].
  4. Inline content: innerHTML (was children in v1); body scripts use tagPosition: 'bodyClose' (was body: true).
  5. Untrusted input: use useHeadSafe(); it whitelists attributes and strips scripts/handlers.
  6. Head instance access in Vue: use injectHead() from @unhead/vue, not getActiveHead() from unhead; only the former binds to component context (e.g. onServerPrefetch).

Deprecated in 3.4.1 (present but slated for removal)

ExportStatusReplacement
useServerHead, useServerHeadSafe, useServerSeoMetadeprecated (dist/index.d.ts:26-30)useHead / useHeadSafe / useSeoMeta
@unhead/vue/legacy (createHead, createServerHead, legacyPlugins)deprecated, removed in v4 (dist/legacy.d.ts:14-30)@unhead/vue/client / @unhead/vue/server
resolveUnrefHeadInputdeprecated (dist/utils.d.ts:9)resolveTags(head) from unhead/utils
unheadVuePlugin from @unhead/vue/stream/vitedeprecated (dist/stream/vite.d.ts:8)Unhead({ streaming: true }).vite() from @unhead/vue/bundler
MergeHead typedeprecated (dist/types.d.ts:66)generics on VueHeadClient

Removed in v3 (will not compile): DeprecationsPlugin, setHeadInjectionHandler, createHeadCore, { mode: 'server' | 'client' } entry option, init/dom:renderTag/dom:rendered hooks, headEntries() (use [...head.entries.values()]). Migration details: references/migration.md.

Show full SKILL.md (220 more words)Show less

Export map

SubpathPurpose
@unhead/vuecomposables: useHead, useSeoMeta, useHeadSafe, useScript, injectHead, VueHeadMixin, unheadVueComposablesImports, createUnhead, defineLink, defineScript
@unhead/vue/clientcreateHead() (SPA/hydration), renderDOMHead, VueHeadMixin
@unhead/vue/servercreateHead() (SSR), renderSSRHead, transformHtmlTemplate, propsToString
@unhead/vue/components<Head> component
@unhead/vue/pluginsre-exports unhead/plugins (TemplateParamsPlugin, AliasSortingPlugin, PromisePlugin, InferSeoMetaPlugin, ValidatePlugin, ...)
@unhead/vue/bundlerunified build plugin Unhead() for vite/webpack/rspack/rollup
@unhead/vue/viteVite-only Unhead(); prefer /bundler
@unhead/vue/stream/server, /stream/clientcreateStreamableHead() for streaming SSR
@unhead/vue/types, /utils, /scripts, /legacytypes, utilities, script types, legacy shims

Signatures and full type surface: references/api-surface.md.

Optional plugins at creation

Template params (%s, %separator), alias sorting (before:/after:), and Promise inputs are opt-in since v2:

ts
import { createHead } from '@unhead/vue/client'
import { AliasSortingPlugin, TemplateParamsPlugin } from '@unhead/vue/plugins'

const head = createHead({ plugins: [TemplateParamsPlugin, AliasSortingPlugin] })

Without TemplateParamsPlugin, %siteName placeholders render literally.

ts
// vite.config.ts
import { Unhead } from '@unhead/vue/bundler'

export default defineConfig({
  plugins: [vue(), Unhead()], // add { streaming: true } for streaming SSR
})

Tree-shakes server-only composables from the client bundle, converts useSeoMeta() to useHead() (~3kb), injects ValidatePlugin in dev. Options table and webpack notes: references/build-plugins.md.

Common mistakes

  • Importing createHead from @unhead/vue root (removed in v2): use /client or /server.
  • Awaiting renderSSRHead / renderDOMHead: both are synchronous in v3.
  • useScript() return is not a Promise: use onLoaded(() => ...); call APIs through .proxy.
  • Meta tags require content: { name: 'description', content: null } removes the tag.
  • Font preloads require crossorigin: { rel: 'preload', as: 'font', href: '/f.woff2', crossorigin: 'anonymous' }.

References

© skilld-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/unhead-vue-skilld of skilld-dev/vue-ecosystem-skills.

  • SKILL.md
  • references/api-surface.md
  • references/build-plugins.md
  • references/composables.md
  • references/migration.md
  • references/setup.md

Open the folder on GitHubat commit c8994af

Compare with similar skills

Unhead Vue Skilld next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Unhead Vue Skilld compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Unhead Vue Skilld this skillskilld-dev/vue-ecosystem-skills181—~1.9kAutomated safety check: PassMIT
Generate Release Notesteambit/bit18k—~2.2kAutomated safety check: PassCustom licence
Wagmi Feature Developmentwevm/wagmi6.8k—~3.8kAutomated safety check: PassMIT
Pnpm Engineteambit/bit18k—~1.9kAutomated safety check: PassCustom licence
Code Nest Project Specxiaou61/Code-Nest770—~1.3kAutomated safety check: PassMIT
Lint Commit PRTresjs/tres3.8k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Generate comprehensive release notes for Bit from git commits and pull requests.

    18k GitHub stars~2.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.

    6.8k GitHub stars~3.8k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Pnpm Engine

    teambit/bit

    Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.

    18k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Code Nest Project Spec

    xiaou61/Code-Nest

    Code-Nest 多模块全栈项目协作规范与落点导航。Use when modifying this repository for feature development, bug fixing, refactor, API change, SQL migration, or frontend-backend联调 so changes land in the correct module…

    770 GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Lint Commit PR

    Tresjs/tres

    Lint local changes, auto-fix, conventional commit, and optionally create PR

    3.8k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Create Skill

    Hyk260/PureChat

    Create a new skill in the current repository. An agent skill from Hyk260/PureChat.

    546 GitHub starsUsed in 1 repo~823 tokens
    DevelopmentAuto-check passed

More from skilld-dev/vue-ecosystem-skills

All 34 skills in this repo
  • Floating UI Vue Skilld

    skilld-dev/vue-ecosystem-skills

    Floating UI for Vue (@floating-ui/vue@2.0.1). An agent skill from skilld-dev/vue-ecosystem-skills.

    181 GitHub stars~1.3k tokensUpdated 16 days ago
    Auto-check passed
  • Formkit Core Skilld

    skilld-dev/vue-ecosystem-skills

    A skill your agent uses whenever writing, debugging, or reviewing code that imports @formkit/core — FormKit's framework-agnostic core (node trees, values, events, hooks, message stores, ledgers…

    181 GitHub stars~2.1k tokensUpdated 16 days ago
    Auto-check passed
  • Pinia Colada Skilld

    skilld-dev/vue-ecosystem-skills

    Data fetching layer for Vue built on Pinia. An agent skill from skilld-dev/vue-ecosystem-skills.

    181 GitHub stars~1.9k tokensUpdated 16 days ago
    Auto-check passed
  • Pinia Skilld

    skilld-dev/vue-ecosystem-skills

    A skill your agent uses when writing, debugging, or refactoring code that imports "pinia", the Vue 3 store library.

    181 GitHub stars~1.5k tokensUpdated 16 days ago
    Auto-check passed
  • Primevue Skilld

    skilld-dev/vue-ecosystem-skills

    A skill your agent uses when writing, debugging, or updating code that imports primevue (PrimeVue v5, UI component library for Vue 3).

    181 GitHub stars~1.9k tokensUpdated 16 days ago
    Auto-check passed
  • Quasar Skilld

    skilld-dev/vue-ecosystem-skills

    Build, configure, and debug apps with the Quasar framework (quasar npm package, v2.33.1).

    181 GitHub stars~1.6k tokensUpdated 16 days ago
    Auto-check passed

Works with

Categories

Questions about Unhead Vue Skilld

What does Unhead Vue Skilld do?

Full-stack <head manager for Vue (@unhead/vue 3.x). An agent skill from skilld-dev/vue-ecosystem-skills. Unhead Vue Skilld is an agent skill from skilld-dev/vue-ecosystem-skills.x).

When should I use Unhead Vue Skilld?

Unhead Vue Skilld fits situations like: debugging code that imports @unhead/vue; sets up Unhead SSR / streaming SSR / build plugins in a Vue app.

How do I install Unhead Vue Skilld in Claude Code?

Run `npx skills add skilld-dev/vue-ecosystem-skills --skill unhead-vue-skilld -a claude-code`. Or copy the skill folder (skills/unhead-vue-skilld in skilld-dev/vue-ecosystem-skills) into .claude/skills/unhead-vue-skilld in your project. Claude Code loads it when a task matches its description.

How do I install Unhead Vue Skilld in Codex?

Run `npx skills add skilld-dev/vue-ecosystem-skills --skill unhead-vue-skilld -a codex`. Or copy the skill folder (skills/unhead-vue-skilld in skilld-dev/vue-ecosystem-skills) into .agents/skills/unhead-vue-skilld in your project. Codex loads it when a task matches its description.

Can I use Unhead Vue Skilld in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add skilld-dev/vue-ecosystem-skills --skill unhead-vue-skilld -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/unhead-vue-skilld, .gemini/skills/unhead-vue-skilld, .github/skills/unhead-vue-skilld and .opencode/skills/unhead-vue-skilld in your project.

What does Unhead Vue Skilld need to run?

SKILL.md names no scripts, command-line tools or credentials: Unhead Vue Skilld is instructions for the agent only.

Does Unhead Vue Skilld access the network?

SKILL.md names 1 domain. As links in the text: unhead.unjs.io. This is read from the text; nothing was executed.

Is Unhead Vue Skilld safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Unhead Vue Skilld use?

Unhead Vue Skilld is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Unhead Vue Skilld use?

About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.5k tokens, read only when the agent opens those files.

What are the alternatives to Unhead Vue Skilld?

Skills that share tags, products or a category with Unhead Vue Skilld: Generate Release Notes (teambit/bit, 18k stars), Wagmi Feature Development (wevm/wagmi, 6.8k stars), Pnpm Engine (teambit/bit, 18k stars) and Code Nest Project Spec (xiaou61/Code-Nest, 770 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Unhead Vue Skilld?

skilld-dev (a GitHub organization) maintains it in skilld-dev/vue-ecosystem-skills, which has 181 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on September 22, 2026.

Source: skilld-dev/vue-ecosystem-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.