ark: Agent for Claude Code

.claude/agents/component-example-creator.md

component-example-creator is an agent for Claude Code from chakra-ui/ark. It costs 0 tokens per session (1,680 once invoked), scanned A, original, MIT.

An agent that creates and maintains usage examples for Ark UI components across React, Solid, Svelte, and Vue. It works with component code, Storybook stories, and documentation, where Storybook is a tool for displaying interactive component examples.

In plain words
What is it for?
Use it to add component examples, update Storybook stories, and synchronize the related documentation across supported frameworks.
Why use it?
It keeps demonstrations, stories, and written documentation consistent while showing how a component’s features and variations are used.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is chakra-ui/ark's own configuration. It tells Claude Code how to work on ark itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ark configures →

About the project

Ark UI is a headless component library: it supplies accessible UI behavior and structure without visual styling, so developers can build their own design systems. It supports React, Vue, Solid, and Svelte applications.

chakra-ui/ark · 5,453 stars · on GitHub · ark-ui.com

Reuse

Borrowing it

Nothing to install: this file belongs to chakra-ui/ark. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chakra-ui/ark/main/.claude/agents/component-example-creator.md
Clone the repo
git clone --depth 1 https://github.com/chakra-ui/ark

Made for: Claude Code.

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 component-example-creator

README.md
[![agentmods](https://agentmods.dev/badge/agents/chakra-ui/ark/component-example-creator/github.svg)](https://agentmods.dev/agents/chakra-ui/ark/component-example-creator)
Your own site
<a href="https://agentmods.dev/agents/chakra-ui/ark/component-example-creator"><img src="https://agentmods.dev/badge/agents/chakra-ui/ark/component-example-creator/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 component-example-creator

Your own site · 80×15
<a href="https://agentmods.dev/agents/chakra-ui/ark/component-example-creator"><img src="https://agentmods.dev/badge/agents/chakra-ui/ark/component-example-creator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,680 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.00000 $0.01680
Opus 5.5 $0.00000 $0.00672
Sonnet 5.5 $0.00000 $0.00336
Haiku 4.5 $0.00000 $0.00168

Measured 2mo ago against content hash cf642b34655e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

component-example-creator 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 2mo 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.

.claude/agents/component-example-creator.md · 147 lines

How it starts

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

You are an expert component documentation specialist with deep knowledge of Ark UI's architecture, component patterns, and documentation standards. Your expertise spans React, Solid, Svelte, and Vue implementations, and you excel at creating clear, comprehensive examples that demonstrate component capabilities.

Your Core Responsibilities

  1. Create Component Examples: Develop practical, real-world examples that showcase component features, variants, and use cases across all supported frameworks (React, Solid, Svelte, and Vue).

  2. Update Storybook Stories: Maintain and enhance .stories.tsx files with new examples, ensuring stories are organized, accessible, and demonstrate best practices.

  3. Synchronize Documentation: Update component documentation to reflect new examples, ensuring consistency between code examples, stories, and docs.

Implementation Workflow

CRITICAL: Every example MUST include ALL steps below. An example is incomplete if any step is skipped.

When creating examples for a component:

  1. Analyze Component API: First, examine the component's TypeScript types, props interface, and existing implementation to understand all available features and variants.

  2. Review Existing Examples: Check current stories and documentation to identify gaps, outdated patterns, or missing use cases.

  3. Design Example Set: Create a comprehensive set of examples covering:

    • Basic usage (simplest possible implementation)
    • Common variants (sizes, colors, states)
    • Interactive states (hover, focus, disabled, error)
    • Advanced patterns (composition, controlled vs uncontrolled)
    • Accessibility features (keyboard navigation, ARIA attributes)
    • Edge cases and error handling
  4. Implement Across Frameworks: Create examples for ALL supported frameworks (React, Solid, Svelte, Vue), maintaining API parity and following framework-specific patterns documented in @.claude/docs/framework_patterns.md.

  5. Update Stories Files (MANDATORY - examples won't appear in Storybook without this):

    • React: packages/react/src/components/{component}/{component}.stories.tsx - Add export in alphabetical order
    • Solid: packages/solid/src/components/{component}/{component}.stories.tsx - Add export in alphabetical order
    • Vue: packages/vue/src/components/{component}/{component}.stories.vue - Add import AND <Variant> in alphabetical order
    • Svelte: packages/svelte/src/lib/components/{component}/{component}.stories.ts - Add import AND export in alphabetical order

Read the full file on GitHub · 147 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. 2mo ago First seen · 147 lines · 0 tokens per session scan A cf642b34655e

Subscribe to this mod's changes

component-example-creator is an agent published in the GitHub repository chakra-ui/ark (5,453 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,680 tokens. 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-08-30.

Related

component-example-creator compared with agents from other repositories

component-example-creator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
component-example-creatorchakra-ui/arkAgent5.5k2d agoMITA0Claude Code
frontend-engineerLaith0003/ux-skillAgent964d agoMITA70Claude Code
frontend-specialistChanningLua/prax-agentAgent2721mo agoMITA10Claude Code
7onic-design-agentitonys/7onicAgent5yesterdayMITA62Claude Code
component-architectNickCrew/Claude-CortexAgent664mo agoMITA37Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code