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

create-component

Skill by pagezero-dev

Creates a new UI component for PageZERO projects, including the component file, an index export, unit tests and Storybook stories. Use it when adding a component to packages/ui or an app.

  • Score 70
  • 145 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install create-component

Built from the published package, never by AI.

git clone --depth 1 https://github.com/pagezero-dev/pagezero /tmp/pagezero && mkdir -p ~/.claude/skills && cp -r /tmp/pagezero/.agents/skills/create-component ~/.claude/skills/create-component

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

Step-by-step: install create-component in Claude Code

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

About

This skill scaffolds a new UI component that follows the PageZERO component structure. It asks the user one question about the component's purpose and where it should go. Reusable components go in packages/ui, and feature-specific components go in apps/{feature}/components. The skill then writes four files: the component implementation, an index.ts export, a Vitest and Testing Library test file, and a Storybook stories file. Naming follows kebab-case file names and PascalCase component names. For components with variants, it shows how to use class-variance-authority.

After the files are created, the skill tells the assistant to run bun run check:fix to format them and bun run test to confirm the tests pass. It then asks the assistant to share a link to the relevant Storybook story. It is aimed at developers working in a PageZERO repository who want new components to match the project's conventions.

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

What it can do

  • Gathers component detailsAsks the user in one question for the component's purpose and location.
  • Scaffolds four filesCreates the component, index.ts, a test file and a Storybook stories file.
  • Applies naming conventionsUses kebab-case file names, PascalCase component names and location-based story titles.
  • Adds variants with cvaShows how to add variant and size props using class-variance-authority when needed.
  • Runs post-creation checksDirects the assistant to run bun run check:fix and bun run test after creating files.

What you need

  • Bun
  • A PageZERO repository with packages/ui and apps directories
  • Storybook
  • Vitest

Try asking

  • Create a checkout button component in packages/ui with tests and stories
  • Scaffold a feature component for the orders page in apps/orders
  • Add a card component with cva size and variant props

Good to know

  • Model invocation is disabled in the skill frontmatter.
  • Assumes the PageZERO project layout and component conventions.
  • Running checks outside the sandbox requires required_permissions set to all.

Security check

A

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

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

Alternatives to create-component

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

create-component: common questions

Where does this skill put new components?

Reusable components go in packages/ui/{component-name}/. Feature components go in apps/{feature}/components/{component-name}/.

What files does it create for a component?

It creates the component file, an index.ts export file, a unit test file using Vitest and Testing Library, and a Storybook stories file.

Does the skill run tests after creating a component?

It tells the assistant to run bun run check:fix to format the files and bun run test to verify the tests pass.

How do I install create-component?

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

Is create-component free?

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

Is create-component safe to use?

It scores 70 of 100. Grades: maintenance A, licence A, quality B. 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 create-component?

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

create-component Install

Add to stack

Loading.