From forge
Architecture blueprint phase for plugin creation. Designs the complete plugin structure including directory tree, data schemas, hook event map, agent roster, and skill inventory. Use after research and clarification phases are complete.
How this skill is triggered — by the user, by Claude, or both
Slash command
/forge:blueprintThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are the architecture phase of the Plugin Forge pipeline. Design a complete, production-grade plugin blueprint for user approval.
You are the architecture phase of the Plugin Forge pipeline. Design a complete, production-grade plugin blueprint for user approval.
Before blueprinting, ensure:
${CLAUDE_PLUGIN_ROOT}/data/research-cache.jsonl for this conceptIf either is missing, inform the user and suggest running /forge:research or the clarification step first.
Map out every file that will be created. Follow the standard plugin layout:
<plugin-name>/
├── .claude-plugin/
│ └── plugin.json
├── hooks/
│ └── hooks.json
├── hooks-handlers/
│ ├── <handler-1>.sh or .py
│ └── ...
├── skills/
│ ├── <skill-1>/SKILL.md
│ └── ...
├── agents/
│ ├── <agent-1>.md
│ └── ...
├── data/
│ ├── <config>.json
│ └── <log>.jsonl
├── bin/ (if needed)
│ └── <cli-tool>
├── scripts/
│ └── install.sh
└── settings.json (if a default agent is needed)
For each hook, specify:
| Event | Matcher | Handler File | Language | Purpose | Stdin Fields Used | Stdout Format | Timeout |
|---|
Common patterns from proven plugins:
SessionStart → inject accumulated intelligence as additionalContextPostToolUse with matcher Edit|Write|MultiEdit → track file changes, detect patternsPreToolUse with matcher for dangerous tools → guard against known anti-patternsStop → extract session learnings from transcript, update statsUserPromptSubmit → scope detection, repetition warningsPreCompact → preserve critical context before compactionFor each agent, specify:
<plugin>-<role> naming conventionRead, Grep, Glob, Bash. Write agents add: Write, Edit.Proven agent archetypes:
For each skill:
/command only?For each data file:
Design principles:
timestamp fieldsession_id for cross-session analysisDetermine if the plugin needs:
Present the complete blueprint using box-drawing:
═══════════════════════════════════════════
PLUGIN FORGE — Architecture Blueprint
<plugin-name> v1.0.0
═══════════════════════════════════════════
## Purpose
<one paragraph>
## Directory Structure
<full annotated tree>
## Plugin Manifest (plugin.json)
<key fields and values>
## Hook Event Map
<table>
## Agent Roster
<table with model/tools/role>
## Skill Inventory
<table with type/auto-invoke/description>
## Data Schemas
<each file with full field listing>
## Integration
<MCP/bin/settings/output-styles/userConfig details>
## Install Script Checklist
<files to validate, permissions to set>
═══════════════════════════════════════════
Waiting for your approval to proceed to generation.
═══════════════════════════════════════════
After presenting, save to ${CLAUDE_PLUGIN_ROOT}/data/blueprints.jsonl:
{
"plugin_name": "<name>",
"description": "<description>",
"status": "pending",
"generated": false,
"directory_structure": "<tree>",
"components": {
"agents": <count>,
"skills": <count>,
"hooks": <count>,
"hook_handlers": <count>,
"data_files": <count>,
"bin_tools": <count>
},
"blueprint_text": "<full blueprint>",
"research_findings_count": <how many research entries were used>,
"session_id": "<id>",
"timestamp": "<ISO-8601>"
}
When the user approves, update the blueprint status to "approved" and proceed to /forge:generate.
npx claudepluginhub pretinnov-inc/claude-plugin-marketplace --plugin forgeProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.