component-create

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/aziontech/webkit/component-create
Clone the repo
git clone --depth 1 https://github.com/aziontech/webkit

Made for: Claude Code.

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. Scan, not verified.
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 $0.00043 $0.01343
Opus 5 $0.00022 $0.00672
Sonnet 5 $0.00009 $0.00269
Haiku 4.5 $0.00004 $0.00134

Measured yesterday against content hash 1e622326e771, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 (2 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 1,343 once invoked, about $0.0002 per session on Opus 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.