element-plus-ssr

element-plus-ssr is a skill for Claude Code, Codex from jiaiyan/element-plus-skills. It costs 34 tokens per session (2,173 once invoked), scanned A, original, MIT.

A configuration guide for using Element Plus, a Vue user-interface component library, with server-side rendering, where HTML is first created on a server.

In plain words
What is it for?
Use it with Nuxt or custom server-rendered Vue apps, including setup for generated IDs and related SSR details.
Why use it?
It helps prevent hydration errors, which happen when the server-rendered page differs from the browser’s version.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with Nuxt or custom server-rendered Vue apps, including setup for generated IDs and related SSR details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiaiyan/element-plus-skills/element-plus-ssr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiaiyan/element-plus-skills --skill element-plus-ssr
Clone the repo
git clone --depth 1 https://github.com/jiaiyan/element-plus-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for element-plus-ssr

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiaiyan/element-plus-skills/element-plus-ssr/github.svg)](https://agentmods.dev/skills/jiaiyan/element-plus-skills/element-plus-ssr)
Your own site
<a href="https://agentmods.dev/skills/jiaiyan/element-plus-skills/element-plus-ssr"><img src="https://agentmods.dev/badge/skills/jiaiyan/element-plus-skills/element-plus-ssr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for element-plus-ssr

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiaiyan/element-plus-skills/element-plus-ssr"><img src="https://agentmods.dev/badge/skills/jiaiyan/element-plus-skills/element-plus-ssr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,173 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.02173
Opus 5 $0.00017 $0.01086
Sonnet 5 $0.00007 $0.00435
Haiku 4.5 $0.00003 $0.00217

Measured 8d ago against content hash 90872fed7df4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

element-plus-ssr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

element-plus-ssr/SKILL.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Element Plus Server-Side Rendering (SSR)

This skill provides comprehensive guidance for using Element Plus in SSR environments, including Nuxt.js and custom SSR setups.

When to Invoke

Invoke this skill when:

  • User is building an SSR application with Element Plus
  • User encounters hydration errors with Element Plus components
  • User needs to configure Element Plus for Nuxt.js
  • User asks about Teleport handling in SSR
  • User needs to fix ID or z-index hydration mismatches

For Nuxt.js users, use the official Element Plus Nuxt module:

Installation

npm install -D @element-plus/nuxt

Configuration

Add to nuxt.config.ts:

export default defineNuxtConfig({
  modules: ['@element-plus/nuxt'],
})

The module automatically handles all SSR-specific configurations.

Refer to Element Plus Nuxt documentation for more details.

Custom SSR Configuration

For custom SSR setups, you need to handle several special cases to avoid hydration errors.

1. Provide ID Injection

Element Plus generates unique IDs for components. In SSR, different IDs on server and client cause hydration errors.

Solution: Inject ID_INJECTION_KEY:

import { createApp } from 'vue'
import { ID_INJECTION_KEY } from 'element-plus'
import App from './App.vue'

const app = createApp(App)
app.provide(ID_INJECTION_KEY, {
  prefix: 1024,
  current: 0,
})

2. Provide ZIndex

Components like Dialog, Drawer, and Tooltip use z-index. Hydration errors can occur if z-index values differ between server and client.

Solution: Inject ZINDEX_INJECTION_KEY:

import { createApp } from 'vue'
import { ZINDEX_INJECTION_KEY } from 'element-plus'
import App from './App.vue'

const app = createApp(App)
app.provide(ZINDEX_INJECTION_KEY, { current: 0 })

3. Handle Teleports

Many Element Plus components use Vue's Teleport internally:

  • ElDialog
  • ElDrawer
  • ElTooltip
  • ElDropdown
  • ElSelect
  • ElDatePicker
  • ElPopover
  • ElPopconfirm

Read the full file on GitHub · 377 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 377 lines · 34 tokens per session scan A 90872fed7df4

Subscribe to this mod's changes

element-plus-ssr is a skill published in the GitHub repository jiaiyan/element-plus-skills (25 stars, last pushed 6mo ago), licensed MIT. It adds 34 tokens to every session and 2,173 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

shadcn-svelte

Pre-built shadcn-svelte components for json-render Svelte apps. Use when working with @json-render/shadcn-svelte, adding standard UI components to a Svelte catalog, or building Svelte web UIs with shadcn-svelte + Tailwind CSS components.

vercel-labs/json-render · 63 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

v3-create-crud

A page generator for standard create, read, update, and delete screens, commonly called CRUD screens. It uses Element Plus, a Vue user-interface library, to build tables, searches, pagination, forms, and delete confirmations.

un-pany/v3-admin-vite · 108 tokens

v3-use-composables

Documentation for reusable Vue functions in a project, covering device detection, asynchronous dropdown data, loading screens, pagination, routing, themes, page titles, and watermarks.

un-pany/v3-admin-vite · 137 tokens

moai-domain-uiux

UI/UX design systems specialist covering accessibility, icons, theming, design tokens, and user experience patterns. Use when working on design systems, WCAG compliance, ARIA patterns, or dark mode theming.

modu-ai/moai-adk · 49 tokens

frontend-conventions

Frontend convention reference (SvelteKit / Svelte 5). Auto-injected into frontend-aware agents - not user-invocable.

fpindej/netrock · 27 tokens