From pattern-forge
Use to set up pattern-forge for a new project. Runs the full setup flow — detects dependencies, walks through pattern selection, and generates the conventions agent. Run this once when starting a new project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pattern-forge:initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run the complete setup flow for a new project. This chains three steps:
Run the complete setup flow for a new project. This chains three steps:
Check if .claude/pattern-forge/design-choices.json already exists. If it does, warn the user:
"This project has already been initialized with pattern-forge. Running init again will overwrite your existing design choices. If you want to update conventions after adding dependencies, use /pattern-forge:update instead. Continue with a fresh init?"
Wait for confirmation before proceeding. If the user declines, exit.
Before starting the flow, verify that the Context7 MCP server is available. Attempt to call resolve-library-id with the query "react".
If context7 MCP is not available or the call fails, display this message and stop immediately:
Pattern Forge requires the Context7 MCP server for documentation lookups.
Install it by adding this to your Claude Code MCP config:
context7 — https://github.com/upstash/context7
Then restart Claude Code and run /pattern-forge:init again.
Do NOT proceed without context7. It is a hard requirement.
Follow the complete detect skill instructions:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/detect-deps.sh" "$(pwd)" to find dependency files.claude/pattern-forge/detection-report.jsonTransition: "Now let's choose which patterns to adopt for this project."
Follow the complete design skill instructions:
.claude/pattern-forge/design-choices.jsonTransition: "Great choices. Let me generate the conventions agent."
Follow the complete generate skill instructions:
.claude/agents/conventions-enforcer.md.claude/settings.json (committable to git for team sharing)history.json entryCompletion: Present the summary of generated files and confirm setup is complete.
"Pattern Forge setup complete! Your conventions agent is ready. From now on, Claude will validate all code against your chosen patterns. Run /pattern-forge:update whenever you add or remove dependencies."
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub samuelasselin/pattern-forge --plugin pattern-forge