scaffold-plugin

scaffold-plugin is a command for Claude Code from opkod-france/opkod-claude-code-plugins. It costs 28 tokens per session (502 once invoked), scanned A, original, MIT.

A command that creates a new Strapi v5 plugin with a predefined folder layout and selected libraries for forms, validation, data fetching, and the admin interface.

In plain words
What is it for?
Use it when starting a Strapi v5 plugin, especially one with an admin panel, forms, CRUD operations, or separate admin and content API routes.
Why use it?
It removes the repetitive setup work and gives the plugin a consistent starting structure. It also checks the generated files and installs the required packages.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; positional $N argument.

Part of the strapi-plugin-dev plugin — 1 skill, 4 commands, 1 agent, 2 hooks shipped together

Good fit Use it when starting a Strapi v5 plugin, especially one with an admin panel, forms, CRUD operations, or separate admin and content API routes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/opkod-france/opkod-claude-code-plugins/scaffold-plugin
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.

Clone the repo
git clone --depth 1 https://github.com/opkod-france/opkod-claude-code-plugins

Made for: Claude Code.

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

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 scaffold-plugin

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

Measured 8d ago against content hash 8d3061bfd7eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

scaffold-plugin 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 8d 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-plugin-dev/commands/scaffold-plugin.md · 41 lines

What it actually says

Scaffold a new Strapi v5 plugin named $1. Follow the strapi-plugin-dev skill.

Steps

  1. Run the official scaffolder as the base:

    npx @strapi/sdk-plugin@latest init $1
    
  2. Verify the generated structure matches the canonical layout (see strapi-plugin-dev SKILL.md). It should contain server/src/, admin/src/, strapi-server.js, strapi-admin.js, package.json with strapi.kind: "plugin".

  3. Layer the opinionated defaults on top:

    • Add dependencies to package.json: @hookform/resolvers, @strapi/design-system: ^2.0.0, @strapi/icons: ^2.0.0, @tanstack/react-query: ^5, react-hook-form: ^7, react-intl: ^7, zod: ^3.
    • Drop react: ^17 from peerDependencies; keep ^18.0.0 only.
    • Create admin/src/pluginId.ts exporting the plugin id constant.
    • Create admin/src/components/Initializer.tsx (standard setPlugin pattern).
    • Split server/src/routes/ into admin/ and content-api/ subdirectories.
    • Use factories.createCoreService, factories.createCoreController, factories.createCoreRouter for any generated CRUD scaffolding (see patterns.md).
  4. Run npm install in the new plugin directory.

  5. Verify with npx @strapi/sdk-plugin@latest verify and surface any errors.

Output

Report:

  • Path of the new plugin
  • Files customized beyond the base scaffold
  • Any verify errors
  • Next-step commands (npm run build, npm run watch:link)

Defer to the strapi-plugin-dev skill for any architecture decisions during scaffolding. Do not invent file structures — use the canonical patterns from patterns.md.

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. 8d ago First seen · 41 lines · 28 tokens per session scan A 8d3061bfd7eb

Subscribe to this mod's changes

scaffold-plugin is a command published in the GitHub repository opkod-france/opkod-claude-code-plugins (9 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 502 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.