component

component is a command for coding agents from opkod-france/opkod-claude-code-plugins. It costs 27 tokens per session (501 once invoked), scanned A, original, MIT.

A scaffolding command for creating common Strapi v5 admin interface components with Strapi's Design System. Scaffolding means generating a starting file from an established template.

In plain words
What is it for?
Use it to generate settings pages, data tables, forms, modals, or dashboards in the appropriate admin/src location.
Why use it?
It removes repetitive setup and helps new components follow Strapi's expected structure, form handling, data loading, feedback, and permission patterns.

Command

Part of the strapi-ui-design plugin — 1 skill, 2 commands, 1 agent shipped together

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/opkod-france/opkod-claude-code-plugins/component
Clone the repo
git clone --depth 1 https://github.com/opkod-france/opkod-claude-code-plugins

Or install strapi-ui-design, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/opkod-france/opkod-claude-code-plugins/component.svg)](https://agentmods.dev/commands/opkod-france/opkod-claude-code-plugins/component)
Your own site
<a href="https://agentmods.dev/commands/opkod-france/opkod-claude-code-plugins/component"><img src="https://agentmods.dev/badge/commands/opkod-france/opkod-claude-code-plugins/component.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 501 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.00027 $0.00501
Opus 5 $0.00014 $0.00251
Sonnet 5 $0.00005 $0.00100
Haiku 4.5 $0.00003 $0.00050

Measured 5d ago against content hash 3bc673277d54, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

component 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 5d 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.

plugins/strapi-ui-design/commands/component.md · 38 lines

What it actually says

Scaffold an admin UI component of type $1 (one of: settings, table, form, modal, dashboard) named $2.

Steps

  1. Validate $1 is one of the supported types. If not, list the valid options and stop.

  2. Locate the template in the strapi-ui-design skill's examples.md:

    • settings → "Complete Settings Page with Tabs"
    • table → "Data Management Page" (table + pagination + filters)
    • form → forms in "Complete Plugin Walkthrough" + patterns.md "Forms" section
    • modalpatterns.md "Modals" section
    • dashboard → "Dashboard with Charts and Stats"
  3. Choose the destination path:

    • settings, dashboard, tableadmin/src/pages/$2.tsx
    • form, modaladmin/src/components/$2.tsx
  4. Generate the file using ONLY @strapi/design-system v2 components and the Page.Main + Layouts.* shell. Use:

    • Field.Root for every input
    • Modal.Root/Modal.Content/Modal.Header/Modal.Body/Modal.Footer (NEVER ModalLayout)
    • react-hook-form + zod for forms
    • @tanstack/react-query v5 + useFetchClient for data
    • useNotification for feedback
    • useRBAC if the page should be permission-gated
  5. If wiring is needed (e.g., menu link or route registration), edit admin/src/index.tsx to register the new page/component.

  6. Report the file created and any registration edits.

Defer to the strapi-ui-design skill for visual decisions. Verify uncertain DS APIs against Context7 (/strapi/design-system).

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. 5d ago First seen · 38 lines · 27 tokens per session scan A 3bc673277d54

Subscribe to this mod's changes

component is a command published in the GitHub repository opkod-france/opkod-claude-code-plugins (9 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 501 once invoked, about $0.0001 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.