Agent skill

Add Component

by indielayer in indielayer/ui

Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports.

MITAuto-check passedDevelopment

Install Add Component

skills CLI
$ npx skills add indielayer/ui --skill add-component -a claude-code

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

GitHub CLI
$ gh skill install indielayer/ui add-component --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/indielayer/ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/add-component .claude/skills/add-component && 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
add-component
GitHub stars
222
Token cost
~293 tokens
SKILL.md length
64 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports.

  • Works in 3 steps: packages/ui/src/components/index.ts (or… → Every… → packages/ui/volar.d.ts — add X to…
  • Creating a new component
  • SKILL.md covers Scaffold, Register, Docs (if user-facing) and Verify
  • Calls pnpm

What it does

Add Component is an agent skill from indielayer/ui. Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports. Use when creating a new component, adding X-prefixed components, or scaffolding under packages/ui/src/components.

Its SKILL.md is about 290 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Project scaffolding. It works with Vue.js and Tailwind CSS. The repository describes itself as: Vue UI Library with Tailwind CSS 🚀 Build and prototype fast web applications. The licence is MIT.

When your agent uses it

  • Creating a new component
  • Adding X-prefixed components
  • Scaffolding under packages/ui/src/components

Example prompts

  • “/add-component”

Workflow steps

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

  1. packages/ui/src/components/index.ts (or src/virtual/index.ts)
  2. Every packages/ui/src/themes//components.ts (currently base, carbon)
  3. packages/ui/volar.d.ts — add X to GlobalComponents (alphabetical)

What it can do on your machine

Read from SKILL.md and the folder at commit a34ae6d. 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

    Shell commands in SKILL.md call:

    • pnpm

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

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    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

Add Component loads about 293 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 64 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~293

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 indielayer/ui at commit a34ae6d, republished under its MIT licence (© indielayer). 64 words, ~293 tokens.

Download SKILL.mdSave it as .claude/skills/add-component/SKILL.md (or your agent's skills folder).
name
add-component
description
Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports. Use when creating a new component, adding X-prefixed components, or scaffolding under packages/ui/src/components.
disable-model-invocation
true

Add component

Scaffold

Create packages/ui/src/components/<name>/:

  • <Name>.vue — plain <script lang="ts"> for props/types/name: 'X<Name>', <script setup> for logic
  • index.ts — export { default as X<Name> } and prop/theme types
  • theme/<Name>.<id>.theme.ts for every shipped theme (base, carbon)
  • __tests__/<Name>.spec.ts

Register

  1. packages/ui/src/components/index.ts (or src/virtual/index.ts)
  2. Every packages/ui/src/themes/<id>/components.ts (currently base, carbon)
  3. packages/ui/volar.d.ts — add X<Name> to GlobalComponents (alphabetical):
ts
XRadioButton: typeof import('@indielayer/ui')['XRadioButton']

Docs (if user-facing)

Follow the docs-page skill: docs/pages/component/<name>/.

Verify

From repo root:

bash
pnpm lint:ui
pnpm typecheck
pnpm test:ci

Reference: packages/ui/src/components/button/

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

Files

Just SKILL.md in .cursor/skills/add-component of indielayer/ui.

Open the folder on GitHubat commit a34ae6d

Compare with similar skills

Add Component 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.

Add Component compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Component this skillindielayer/ui222—~293Automated safety check: PassMIT
Vtdfany-tdf/any-tdf779—~1.1kAutomated safety check: PassMIT
Jeecg Codegen Newjeecgboot/skills239—~2.4kAutomated safety check: PassApache-2.0
Figma Codegenawdr74100/figwright982—~4.2kAutomated safety check: PassMIT
Mock CodegenChenyCHENYU/Robot_Admin1k—~1.2kAutomated safety check: PassMIT
Any Tdf Developmentany-tdf/any-tdf779—~1.1kAutomated safety check: PassMIT

Similar skills

  • Vtdf

    any-tdf/any-tdf

    Build, review, and troubleshoot VTDF Vue 3 applications using exact component APIs, themes, icons, localization, and scaffolding.

    779 GitHub stars~1.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Jeecg Codegen New

    jeecgboot/skills

    A skill your agent uses when user asks to generate JeecgBoot CRUD code, create a new module, add/modify fields on existing module, or says "代码生成", "生成代码", "创建模块", "新增功能", "建表", "加字段", "加一个字段"…

    239 GitHub stars~2.4k tokensUpdated 21 days ago
    DevelopmentAuto-check passed
  • Figma Codegen

    awdr74100/figwright

    Generate framework-aware code from a Figma design. An agent skill from awdr74100/figwright.

    982 GitHub stars~4.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Mock Codegen

    ChenyCHENYU/Robot_Admin

    A skill your agent uses when: generating mock data for development without a backend.

    1k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Any Tdf Development

    any-tdf/any-tdf

    Guide implementation, fixes, reviews, documentation, generation, and validation in the Any TDF monorepo across the shared core, STDF/Svelte, RTDF/React, VTDF/Vue, demos, sites, tooling, AI skill…

    779 GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Page Codegen

    ChenyCHENYU/Robot_Admin

    A skill your agent uses when: generating Vue 3 page code from either a page-spec JSON or a natural language description.

    1k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed

More from indielayer/ui

  • Add Theme

    indielayer/ui

    Add a new shipped UITheme pack (like Base or Carbon) to @indielayer/ui.

    222 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Component Theme

    indielayer/ui

    Edit or add component theme classes and styles for shipped theme variants (base, carbon).

    222 GitHub stars~360 tokensUpdated today
    Auto-check passed
  • Docs Page

    indielayer/ui

    Create or update component documentation pages in packages/ui/docs.

    222 GitHub stars~419 tokensUpdated today
    Auto-check passed
  • Release

    indielayer/ui

    Prepare @indielayer/ui changes for release with changesets and conventional commits.

    222 GitHub stars~241 tokensUpdated today
    Auto-check passed

Categories

Questions about Add Component

What does Add Component do?

Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports. Add Component is an agent skill from indielayer/ui. Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports.

When should I use Add Component?

Add Component fits situations like: creating a new component; adding X-prefixed components; scaffolding under packages/ui/src/components.

How do I install Add Component in Claude Code?

Run `npx skills add indielayer/ui --skill add-component -a claude-code`. Or copy the skill folder (.cursor/skills/add-component in indielayer/ui) into .claude/skills/add-component in your project. Claude Code loads it when a task matches its description.

How do I install Add Component in Codex?

Run `npx skills add indielayer/ui --skill add-component -a codex`. Or copy the skill folder (.cursor/skills/add-component in indielayer/ui) into .agents/skills/add-component in your project. Codex loads it when a task matches its description.

Can I use Add Component 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 indielayer/ui --skill add-component -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-component, .gemini/skills/add-component, .github/skills/add-component and .opencode/skills/add-component in your project.

What does Add Component need to run?

Going by SKILL.md and its folder, Add Component needs the command-line tools its instructions call (pnpm).

Does Add Component access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Component 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 Add Component use?

Add Component 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 Add Component use?

About 293 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Component?

Skills that share tags, products or a category with Add Component: Vtdf (any-tdf/any-tdf, 779 stars), Jeecg Codegen New (jeecgboot/skills, 239 stars), Figma Codegen (awdr74100/figwright, 982 stars) and Mock Codegen (ChenyCHENYU/Robot_Admin, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Component?

indielayer (a GitHub organization) maintains it in indielayer/ui, which has 222 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 7, 2026.

Source: indielayer/ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.