webkit: Command for Claude Code

.claude/commands/component-create.md

component-create is a command for Claude Code from aziontech/webkit. It costs 43 tokens per session (1,343 once invoked), scanned A, original, MIT.

A command that builds a Vue component from an approved Markdown specification. It checks the specification, delegates fixed stages to separate helper agents, and produces the component files and a small Storybook example.

In plain words
What is it for?
Use it to create a Vue component with its package file, export entry, and minimal Storybook story from a matching file in .specs/.
Why use it?
It keeps component work tied to a reviewed specification and stops the process when the specification is missing, unapproved, changed, or locked. It also records each stage of the run.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions subagents.

This is aziontech/webkit's own configuration. It tells Claude Code how to work on webkit 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 webkit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aziontech/webkit. 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/aziontech/webkit/main/.claude/commands/component-create.md
Clone the repo
git clone --depth 1 https://github.com/aziontech/webkit

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-create

README.md
[![agentmods](https://agentmods.dev/badge/commands/aziontech/webkit/component-create/github.svg)](https://agentmods.dev/commands/aziontech/webkit/component-create)
Your own site
<a href="https://agentmods.dev/commands/aziontech/webkit/component-create"><img src="https://agentmods.dev/badge/commands/aziontech/webkit/component-create/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-create

Your own site · 80×15
<a href="https://agentmods.dev/commands/aziontech/webkit/component-create"><img src="https://agentmods.dev/badge/commands/aziontech/webkit/component-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 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,343 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.00043 $0.01343
Opus 5.5 $0.00017 $0.00537
Sonnet 5.5 $0.00009 $0.00269
Haiku 4.5 $0.00004 $0.00134

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

Security

Grade A, and why

component-create 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/commands/component-create.md · 78 lines

How it starts

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

You are the orchestrator for /component-create. You do not write component code yourself. You execute a fixed pipeline that delegates each phase to an isolated sub-agent. Each sub-agent receives only the spec + its narrow rules — never the conversation, never another sub-agent's output (except sanitized JSON artifacts you explicitly pass forward).

User input: $ARGUMENTS

Pipeline

Step 0 — Preflight

  1. Parse <name>. Reject if missing/invalid. --dry-run runs Steps 0–3 and exits with a preview (no writes).
  2. Generate a run-id (uuid). Open .claude/logs/<run-id>.jsonl and append one line per phase.
  3. Resolve .specs/<name>.md:
    • Absent → tell the user Run /spec-create <name> first. Exit 1.
    • status: draft → tell the user the spec is not approved; suggest re-running after fixing issues. Exit 1.
    • status ∈ {approved, implemented} → proceed (implemented re-runs are allowed for follow-up edits).
    • status: locked → block unless the user explicitly bumps spec_version. Exit 1.
  4. Recompute sha256(body) and compare to the frontmatter checksum. Mismatch → BLOCKED: spec tampered after approval. Exit 1.

Step 1 — Spec validation (blocking)

Spawn the spec-validator sub-agent with the universal envelope (see .claude/agents/_README.md). It re-runs the schema, body, and Constraints checks. On FAIL, surface every failure and exit. No writes happen until this passes.

Step 2 — Parallel discovery (read-only, safe to parallelize)

  • figma-extractor (only if spec.figma.url is set) — emits tokens JSON.
  • reuse-auditor — emits reuse JSON.
  • After figma-extractor returns, run token-mapper on its output — emits mapping + theme gaps.

Step 3 — Reconciliation (blocking)

  • Every token listed in spec.Tokens must resolve in token-mapper output (no theme gaps that the spec did not flag).
  • Every region from figma-extractor must be covered by the spec (Props/Slots/Sub-components).
  • Mismatch → exit with the diff and instruct the user to update the spec and re-run.

Read the full file on GitHub · 78 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 · 78 lines · 43 tokens per session scan A 1e622326e771

Subscribe to this mod's changes

component-create is a command published in the GitHub repository aziontech/webkit (3 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 1,343 once invoked, about $0.0002 per session on Opus 5.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-08-31.