Agent skill

New Component

by Artexis10 in Artexis10/endstate-gui

Scaffold a new React component with co-located test, shadcn/ui primitives, and barrel export registration.

Apache-2.0Auto-check passedFrontend & Design

Install New Component

skills CLI
$ npx skills add Artexis10/endstate-gui --skill new-component -a claude-code

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

GitHub CLI
$ gh skill install Artexis10/endstate-gui new-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/Artexis10/endstate-gui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/new-component .claude/skills/new-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
new-component
GitHub stars
116
Token cost
~524 tokens
SKILL.md length
188 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

Scaffold a new React component with co-located test, shadcn/ui primitives, and barrel export registration.

  • Works in 5 steps: Determine file paths → Create the component file with → Create the co-located test file with → …
  • Tasks that involve React components
  • Calls npx

What it does

New Component is an agent skill from Artexis10/endstate-gui. Scaffold a new React component with co-located test, shadcn/ui primitives, and barrel export registration.

Its SKILL.md is about 520 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 Frontend & Design, covering React components. It works with shadcn/ui and React. The repository describes itself as: Endstate desktop app: reinstall your apps and restore your settings on a fresh Windows PC, from one portable file. Free, open source. Built with Tauri (React + Rust). The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve React components

Example prompts

  • “/new-component”

Requirements

  • Node.js

Workflow steps

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

  1. Determine file paths
  2. Create the component file with
  3. Create the co-located test file with
  4. Register in barrel export if one exists in the target directory's index.ts
  5. Verify — run the test: npx vitest run

What it can do on your machine

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

    • npx

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

  • Network

    No URLs in SKILL.md. Its commands use npx, 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

New Component loads about 524 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 188 words of instructions outside code blocks.

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

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 Artexis10/endstate-gui at commit 4bcd1ac, republished under its Apache-2.0 licence (© Artexis10). 188 words, ~524 tokens.

Download SKILL.mdSave it as .claude/skills/new-component/SKILL.md (or your agent's skills folder).
name
new-component
description
Scaffold a new React component with co-located test, shadcn/ui primitives, and barrel export registration.

Scaffold a new React component following project conventions.

Input: Component name and location. Examples:

  • /new-component StatusBadge in components/app → src/components/app/status-badge.tsx
  • /new-component LiveCounter in components/app/overview/components → in the overview subdirectory

Steps

  1. Determine file paths

    • Component: src/<location>/<kebab-case-name>.tsx
    • Test: src/<location>/<kebab-case-name>.test.tsx
    • Component names are PascalCase exports, file names are kebab-case
  2. Create the component file with:

    • Typed props interface (<Name>Props)
    • shadcn/ui imports for any interactive elements (Button, Card, Select, Dialog, etc.)
    • @/ path alias for all project imports
    • Icons from lucide-react if needed
    • framer-motion for animations if needed
  3. Create the co-located test file with:

    • Import from @/test/test-utils (not @testing-library/react directly)
    • Basic render test + one behavioral test
    • Query by role, not by test ID
  4. Register in barrel export if one exists in the target directory's index.ts

  5. Verify — run the test: npx vitest run <test-file>

Component Template

tsx
import { ComponentProp } from '@/components/ui/button'; // shadcn as needed

interface MyComponentProps {
  // typed props
}

export function MyComponent({ ...props }: MyComponentProps) {
  return (
    // JSX using shadcn/ui primitives for interactive elements
  );
}

Mandatory Rules

  • All interactive elements (buttons, inputs, selects, toggles, dialogs) MUST use shadcn/ui components from @/components/ui/
  • Native HTML <button>, <select>, <input> are only allowed for non-interactive semantic markup or documented exceptions
  • Use Tailwind classes for styling — no inline styles, no CSS modules
  • Use the project's extended color tokens: success, warning, danger, panel, muted (defined in tailwind.config.js)

© Artexis10, Apache-2.0. 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 .claude/skills/new-component of Artexis10/endstate-gui.

Open the folder on GitHubat commit 4bcd1ac

Compare with similar skills

New 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.

New Component compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
New Component this skillArtexis10/endstate-gui116—~524Automated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
Creative Tim UI Blockscreativetimofficial/ui12k—~2.1kAutomated safety check: NotesMIT
Animated React Component LibrariesHainrixz/editor-pro-max2611 repos~5.7kAutomated safety check: PassCustom licence
React To Solidcarere/zaidan1461 repos~1.6kAutomated safety check: PassMIT
Tailwind To Stylexshadcn-labs/shadcn-cssinjs123—~2.7kAutomated safety check: PassMIT

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Creative Tim UI Blocks

    creativetimofficial/ui

    Helps install, generate and review Creative Tim UI blocks: shadcn/ui-based React and Tailwind sections that follow a restrained, production-minded design philosophy.

    12k GitHub stars~2.1k tokensUpdated 6 mo ago
    Frontend & DesignAuto-check: notes
  • Animated React Component Libraries

    Hainrixz/editor-pro-max

    Helps choose and drop in animated React components from Magic UI and React Bits for landing pages, marketing sites and dashboards, instead of hand-coding animations.

    261 GitHub starsUsed in 1 repo~5.7k tokens
    Frontend & DesignAuto-check passed
  • React To Solid

    carere/zaidan

    React-to-SolidJS transformation patterns for porting shadcn-style React components, examples, docs snippets, and blocks into Zaidan.

    146 GitHub starsUsed in 1 repo~1.6k tokens
    Frontend & DesignAuto-check passed
  • Tailwind To Stylex

    shadcn-labs/shadcn-cssinjs

    Migrate TailwindCSS to StyleX. An agent skill from shadcn-labs/shadcn-cssinjs.

    123 GitHub stars~2.7k tokensUpdated 27 days ago
    Frontend & DesignAuto-check passed
  • Reactflow Workflow

    veloxbase/veloxdb

    Build and harden React Flow diagram surfaces in VeloxDB using @xyflow/react patterns (nodes, edges, viewport, controls, interactions, performance).

    646 GitHub stars~897 tokensUpdated 8 days ago
    Frontend & DesignAuto-check passed

More from Artexis10/endstate-gui

  • Livewire

    Artexis10/endstate-gui

    Drive the real GUI against the real engine via the standalone dev HTTP bridge (npm run dev:bridge).

    116 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Gen Test

    Artexis10/endstate-gui

    Generate unit tests following project conventions. An agent skill from Artexis10/endstate-gui.

    116 GitHub stars~661 tokensUpdated yesterday
    Auto-check passed
  • E2E Test

    Artexis10/endstate-gui

    Generate Playwright E2E tests following project conventions (Tauri fixture, storage isolation, helpers).

    116 GitHub stars~775 tokensUpdated yesterday
    Auto-check passed
  • Tauri Command

    Artexis10/endstate-gui

    Scaffold a new Tauri command across Rust backend and TypeScript frontend with proper patterns.

    116 GitHub stars~606 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about New Component

What does New Component do?

Scaffold a new React component with co-located test, shadcn/ui primitives, and barrel export registration. New Component is an agent skill from Artexis10/endstate-gui. Scaffold a new React component with co-located test, shadcn/ui primitives, and barrel export registration.

When should I use New Component?

New Component fits situations like: tasks that involve React components.

How do I install New Component in Claude Code?

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

How do I install New Component in Codex?

Run `npx skills add Artexis10/endstate-gui --skill new-component -a codex`. Or copy the skill folder (.claude/skills/new-component in Artexis10/endstate-gui) into .agents/skills/new-component in your project. Codex loads it when a task matches its description.

Can I use New 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 Artexis10/endstate-gui --skill new-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/new-component, .gemini/skills/new-component, .github/skills/new-component and .opencode/skills/new-component in your project.

What does New Component need to run?

Going by SKILL.md and its folder, New Component needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does New Component access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

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

New Component is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does New Component use?

About 524 tokens (SKILL.md is roughly 2.1k 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 New Component?

Skills that share tags, products or a category with New Component: Web Artifacts Builder (anthropics/skills, 180k stars), Creative Tim UI Blocks (creativetimofficial/ui, 12k stars), Animated React Component Libraries (Hainrixz/editor-pro-max, 261 stars) and React To Solid (carere/zaidan, 146 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains New Component?

Artexis10 (a GitHub user) maintains it in Artexis10/endstate-gui, which has 116 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 6, 2026.

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