plugin-generator

plugin-generator is a skill for Claude Code from luiseiman/dotforge. It costs 22 tokens per session (2,023 once invoked), scanned C, original, MIT.

A skill that packages a project's dotforge configuration as a distributable Claude Code plugin.

In plain words
What is it for?
Scanning .claude/ files, generating plugin components, choosing an output directory or name, and preparing a package for local testing or marketplace submission.
Why use it?
It removes the manual work of turning project instructions, rules, hooks, commands, agents, and settings into a marketplace-ready package.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dotforge plugin — 25 skills, 25 commands, 7 agents, 8 hooks shipped together

Good fit Scanning .claude/ files, generating plugin components, choosing an output directory or name, and preparing a package for local testing or marketplace submission.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add luiseiman/dotforge
Claude Code
/plugin install dotforge

Made for: Claude Code.

Or install dotforge, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 7 agents, 8 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 plugin-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/luiseiman/dotforge/plugin-generator/github.svg)](https://agentmods.dev/skills/luiseiman/dotforge/plugin-generator)
Your own site
<a href="https://agentmods.dev/skills/luiseiman/dotforge/plugin-generator"><img src="https://agentmods.dev/badge/skills/luiseiman/dotforge/plugin-generator/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 plugin-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/luiseiman/dotforge/plugin-generator"><img src="https://agentmods.dev/badge/skills/luiseiman/dotforge/plugin-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00022 $0.02023
Opus 5.5 $0.00009 $0.00809
Sonnet 5.5 $0.00004 $0.00405
Haiku 4.5 $0.00002 $0.00202

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

Security

Grade C, and why

plugin-generator scanned grade C with 1 finding 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

"Bash(rm -rf /)",
skills/plugin-generator/SKILL.md · 259 lines

How it starts

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

Plugin Generator

Generate a distributable Claude Code plugin from the current project's dotforge configuration. The output is a standalone directory ready for claude --plugin-dir testing or marketplace submission.

Input

$ARGUMENTS may contain:

  • Output directory path (default: ./dotforge-plugin/)
  • --name <name> to override plugin name (default: project directory name)

Step 1: Validate source

Verify the current project has dotforge configuration:

  • CLAUDE.md must exist
  • .claude/settings.json must exist
  • .claude/rules/ should exist (warn if missing)

If missing, error: "No dotforge configuration found. Run /forge bootstrap first."

Step 2: Detect components

Scan the project's .claude/ directory and catalog:

Component scan:
  CLAUDE.md          → will become commands/context.md
  .claude/rules/     → will become skills (one per rule with globs preserved)
  .claude/hooks/     → will become hooks/hooks.json + script files
  .claude/commands/  → will become commands/
  .claude/agents/    → will become agents/ (if present)
  .claude/settings.json → will extract deny list → settings.json

Show the scan results and ask for confirmation before generating.

Step 3: Generate plugin structure

Two shapes — pick by component count:

Flat (single-skill plugin, v2.1.142+) — when the plugin exposes ONE skill and no other components, put SKILL.md at the root. Claude Code surfaces it automatically since v2.1.142. Less boilerplate, no skills/ directory needed.

{output-dir}/
├── .claude-plugin/
│   └── plugin.json
├── SKILL.md                  (root-level, single skill)
├── README.md
└── LICENSE

Structured (default, multi-component plugin) — when the plugin ships ≥2 skills, or any combination of hooks, agents, commands:

{output-dir}/
├── .claude-plugin/
│   └── plugin.json
├── skills/
│   └── {rule-name}/
│       └── SKILL.md          (one per rule, with globs as description context)
├── agents/                   (copy from .claude/agents/ if exists)
│   └── *.md
├── hooks/
│   ├── hooks.json            (converted from settings.json hook wiring)
│   └── *.sh                  (hook scripts)
├── commands/
│   └── *.md                  (from .claude/commands/)
├── settings.json             (deny list only)
├── README.md                 (auto-generated usage guide)
└── LICENSE                   (copy from project root if exists)

Read the full file on GitHub · 259 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. 1mo ago Changed · +1 lines 8cbb3f11dc97
  2. 3mo ago First seen · 258 lines · 22 tokens per session scan C c6e58f653b30

Subscribe to this mod's changes

plugin-generator is a skill published in the GitHub repository luiseiman/dotforge (8 stars, last pushed 26d ago), licensed MIT. It adds 22 tokens to every session and 2,023 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

plugin-generator compared with skills from other repositories

plugin-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plugin-generatorluiseiman/dotforgeSkill826d agoMITC22Claude Code
zephermineDannykkh/skill-olympusSkill96d agoMITA97Codex
design-planDannykkh/skill-olympusSkill96d agoMITA108Codex
agent-teamDannykkh/skill-olympusSkill96d agoMITA132Claude Code, Codex
clioDannykkh/skill-olympusSkill96d agoMITA107Claude Code, Codex
frontend-designDannykkh/skill-olympusSkill96d agoMITA92Claude Code, Codex
argosDannykkh/skill-olympusSkill96d agoMITA89Claude Code, Codex