Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

unhead-vue

Skill by unjs

Manages head tags in Vue 3 SSR and SPA apps with @unhead/vue v3, covering createHead, useHead, useSeoMeta, useHeadSafe, useScript and streaming SSR. Aimed at developers who set titles, meta tags, Open Graph tags or scripts in Vue apps, or who upgrade from @vueuse/head or Unhead v1 or v2.

  • Score 81
  • 1.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install unhead-vue

Built from the published package, never by AI.

git clone --depth 1 https://github.com/unjs/unhead /tmp/unhead && mkdir -p ~/.claude/skills && cp -r /tmp/unhead/packages/vue/skills/unhead-vue ~/.claude/skills/unhead-vue

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install unhead-vue in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through managing head tags in Vue 3 server-rendered and single-page apps with @unhead/vue v3. It covers creating a head per request on the server and once in the browser, setting titles, meta and Open Graph tags with useHead and useSeoMeta, sanitizing untrusted values with useHeadSafe, and loading third-party scripts with useScript. It also covers streaming SSR and title templates.

The source lists known traps and version limits, such as the useHead provide context error, template params printed literally, and hid or vmid attributes left in the HTML. It includes a table that maps names from Unhead v1, v2 and @vueuse/head to the 3.x equivalents. It is aimed at Vue developers building or upgrading head management. The source states it was tested with @unhead/vue 3.4.2 and Vue 3.5.

Written from the project's SKILL.md and checked against it.

What it can do

  • Server and client setupCreates a head with createHead from the client or server entry and renders it with transformHtmlTemplate.
  • Reactive head tagsUses useHead with refs and getters so titles and meta update when data changes.
  • SEO meta tagsSets titles, descriptions, Open Graph and robots tags with useSeoMeta.
  • Safe input handlingUses useHeadSafe to drop unsafe attributes, links and scripts from user or API values.
  • Third-party scriptsLoads external scripts with useScript, including lazy loading and a proxy for calls.
  • Streaming SSRSets up streamed head output with createStreamableHead and wrapStream on server and client.
  • Title templatesApplies titleTemplate and TemplateParamsPlugin to build page titles from parameters.
  • Upgrade mappingMaps Unhead v1, v2 and @vueuse/head names and functions to their 3.x equivalents.
  • Error troubleshootingExplains provide context errors, literal template params and leftover hid or vmid attributes.

What you need

  • Vue 3 app (tested with Vue 3.5)
  • @unhead/vue package (tested with 3.4.2)
  • Vite 8 (tested)
  • TypeScript 6.0.3 or 7.0.2 (tested)

Try asking

  • Add per-page titles and Open Graph tags to my Vue 3 SSR app with Unhead.
  • Upgrade my Vue app from @vueuse/head to @unhead/vue v3 and map the old names.
  • Fix the literal %siteName text showing in my Vue page title with Unhead.

Good to know

  • Tested with @unhead/vue 3.4.2; a templateParams value of 0 renders empty in that version.
  • Numeric templateParams in a JSON script with processTemplateParams can throw on the server in 3.4.2; pass strings.
  • Promise values are not awaited, so the data must be resolved before it is passed in.
  • In Nuxt, Nuxt creates and installs the head, so the setup steps do not apply.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/vue/skills/unhead-vue/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to unhead-vue

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

unhead-vue: common questions

Does this work with Nuxt?

The source says Nuxt creates and installs the head itself. In Nuxt you skip the setup steps and use the composables directly.

Why does useHead throw 'called without provide context'?

The source says this happens when useHead is called after an await in a callback, or in an async setup() outside script setup. Call it synchronously in setup, or update a ref instead.

Why do hid or vmid attributes appear in my HTML?

The source says v2 names are not converted in v3. Use key instead of hid or vmid, and innerHTML or textContent instead of children.

How do I install unhead-vue?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is unhead-vue free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is unhead-vue safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to unhead-vue?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

unhead-vue Install

Add to stack

Loading.