scaffold-plugin

scaffold-plugin is a command for Claude Code from davistroy/claude-marketplace. It costs 14 tokens per session (3,027 once invoked), scanned A, original, MIT.

A project generator that creates the folders, metadata, and starter files needed for a new coding-tool plugin. It can also add a commands folder for older plugin layouts.

In plain words
What is it for?
Use it to scaffold a new plugin, preview the files that would be created, or include the legacy commands directory.
Why use it?
It reduces setup mistakes when starting a plugin and checks that the name follows the required lowercase, hyphenated format.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Part of the personal-plugin plugin — 29 skills, 23 commands, 10 agents, 2 hooks shipped together

Good fit Use it to scaffold a new plugin, preview the files that would be created, or include the legacy commands directory.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/davistroy/claude-marketplace/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/davistroy/claude-marketplace

Made for: Claude Code.

Or install personal-plugin, the plugin that ships this one along with the rest of its 29 skills, 23 commands, 10 agents, 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/davistroy/claude-marketplace/scaffold-plugin/github.svg)](https://agentmods.dev/commands/davistroy/claude-marketplace/scaffold-plugin)
Your own site
<a href="https://agentmods.dev/commands/davistroy/claude-marketplace/scaffold-plugin"><img src="https://agentmods.dev/badge/commands/davistroy/claude-marketplace/scaffold-plugin/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 scaffold-plugin

Your own site · 80×15
<a href="https://agentmods.dev/commands/davistroy/claude-marketplace/scaffold-plugin"><img src="https://agentmods.dev/badge/commands/davistroy/claude-marketplace/scaffold-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,027 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.00014 $0.03027
Opus 5 $0.00007 $0.01514
Sonnet 5 $0.00003 $0.00605
Haiku 4.5 $0.00001 $0.00303

Measured 5d ago against content hash 13c8347acc1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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/personal-plugin/commands/scaffold-plugin.md · 397 lines

How it starts

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

Scaffold Plugin

Create a new Claude Code plugin with the proper directory structure, configuration files, and starter templates. This command ensures new plugins follow the established conventions.

Input Validation

Optional Arguments:

  • <plugin-name> - Name for the new plugin (kebab-case ending in -plugin)
  • --dry-run - Show the directory structure and file list that would be created without creating any files
  • --with-commands - Also scaffold a commands/ directory (legacy format — see ADR-0006). Default scaffold is skills-only.

Validation: If arguments are missing, the command will prompt interactively.

Plugin name must be:

  • kebab-case format ending in -plugin (e.g., my-new-plugin)
  • Unique (not already exist in plugins/ directory)
  • Descriptive but concise
  • Contain only lowercase letters, numbers, and hyphens (no special characters, no spaces)

Instructions

Phase 1: Gather Information

Interactively collect the following from the user:

1.1 Plugin Name

Ask:

What is the plugin name? (kebab-case ending in '-plugin', e.g., "data-tools-plugin")

Validate:

  • Must be kebab-case: lowercase letters, numbers, hyphens only
  • Must end with -plugin
  • Must not contain special characters (underscores, dots, spaces)
  • Must not already exist in plugins/ directory (scan with Glob)

If invalid:

Error: Plugin name must be kebab-case ending in '-plugin'
Invalid: [what was provided]
Reason: [specific reason]

Please provide a valid plugin name:
1.2 Description

Ask:

Provide a brief description for the plugin:

Validate:

  • Must be non-empty
  • Should describe the plugin's purpose
1.3 Category

Ask:

Select a category for the plugin:

[1] productivity  - Personal productivity and workflow tools
[2] workflow      - Process automation and management
[3] analysis      - Code and data analysis tools
[4] integration   - External service integrations
[5] utility       - General utility commands
[6] custom        - Enter a custom category

Enter number (1-6) or category name:

Read the full file on GitHub · 397 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. 5d ago First seen · 397 lines · 14 tokens per session scan A 13c8347acc1e

Subscribe to this mod's changes

scaffold-plugin is a command published in the GitHub repository davistroy/claude-marketplace (5 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 3,027 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-09-04.