useforgekit
Skill4 starsChanged 6 months agoMITView on GitHub
Generate optimal Claude Code configuration for any project. Creates CLAUDE.md, settings.json, skills, hooks, agents, and commands tailored to your stack. Run /forge to start.
- Reads credentials
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Run /forge when starting a new project or improving an existing Claude Code setup.
- Very specific: line 32
Check for an existing .claude/.forge.lock — if present, switch to rerun mode
- Distinctive: line 35
Create skill stubs for your domain
- Distinctive: line 38
Run a health check on the complete setup
- Distinctive: line 44
Read the project root. Look for:
- Distinctive: line 62
If none found, ask: "What are you building?"
- Very specific: line 107
After generating, run the health check (references/HEALTH-CHECK.md) to verify everything is correctly configured.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
useForgeKit
When to Use
Run /forge when starting a new project or improving an existing Claude Code setup.
This skill generates the complete configuration: CLAUDE.md, settings.json, skills structure,
hooks, agents, and commands — all tailored to your specific stack and workflow.
Also use when:
- Setting up Claude Code for the first time on a project
- Onboarding a team to Claude Code
- Auditing an existing setup for gaps
- Migrating from another AI coding tool
- Re-running on a project that already has forge config (see Rerun below)
Quick Start
/forgeClaude will:
- Detect your project type (or ask)
- Check for an existing
.claude/.forge.lock— if present, switch to rerun mode - Generate or update CLAUDE.md tailored to your stack
- Generate or update settings.json with appropriate permissions and hooks
- Create skill stubs for your domain
- Set up hooks for quality enforcement
- Configure agents if your project needs them
- Run a health check on the complete setup
The Setup Process
Step 1: Project Detection
Read the project root. Look for:
| File | Indicates |
package.json | Node.js / JavaScript / TypeScript |
tsconfig.json | TypeScript specifically |
next.config.* | Next.js |
vite.config.* | Vite |
requirements.txt / pyproject.toml | Python |
Cargo.toml | Rust |
go.mod | Go |
Gemfile | Ruby |
pom.xml / build.gradle | Java / Kotlin |
.swift files | Swift / iOS |
docker-compose.yml | Containerized |
supabase/ | Supabase backend |
.github/workflows/ | GitHub Actions CI/CD |
If none found, ask: "What are you building?"
Step 2: Generate Configuration
Load the appropriate reference module based on detection:
| Reference | When to Load |
| references/CLAUDE-MD.md | Always — CLAUDE.md structure and content |
| references/SETTINGS.md | Always — settings.json configuration |
| references/SKILLS-ARCHITECTURE.md | When creating skills |
| references/HOOKS.md | Always — hook setup |
| references/AGENTS.md | When project needs subagents |
| references/COMMANDS.md | Always — slash command setup |
| references/PERMISSIONS.md | Always — permission strategy |
| references/CONTEXT-WINDOW.md | Always — token budget management |
| references/PROJECT-TEMPLATES.md | Based on detected stack |
| references/ANTI-PATTERNS.md | Always — what to avoid |
| references/DECISION-TREE.md | Always — what goes where |
| references/WORKFLOWS.md | Based on project complexity |
| references/GIT-STRATEGY.md | Always — what to commit |
| references/TEAM-SETUP.md | When team size > 1 |
| references/PERFORMANCE.md | Always — speed optimization |
| references/MCP-GUIDE.md | When external tools needed |
| references/TROUBLESHOOTING.md | When auditing existing setup |
| references/HEALTH-CHECK.md | Always — final validation |
| references/RERUN-SEMANTICS.md | Always — region markers, lockfile, diff flow |
| references/PROMPTING.md | Prompt patterns, challenge prompts, voice triggers, anti-patterns |
| references/SUBAGENT-PATTERNS.md | Command→Agent→Skill, parallel agents, teams, worktrees, memory |
| references/DEBUGGING-WITH-CLAUDE.md | Iron law, 3-strike rule, systematic methodology, scope freezing |
| references/TESTING-STRATEGY.md | Test priority, AAA pattern, edge cases, coverage targets, TDD |
| references/SECURITY.md | Secret management, code security checklist, supply chain, git security |
| references/RULES-GUIDE.md | .claude/rules/ files, when rules vs skills vs CLAUDE.md |
| references/MEMORY.md | Auto-memory, managing memories, memory vs CLAUDE.md |
| references/PLUGINS.md | Installing, creating, recommending plugins |
| references/ENVIRONMENT.md | .env hierarchy, env var strategy, secrets |
| references/ADVANCED-HOOKS.md | Chained hooks, conditional hooks, Stop/SessionStart/PreCompact hooks |
| references/MONOREPO.md | CLAUDE.md hierarchy, workspace commands, package-level skills |
| references/CI-CD.md | Non-interactive mode, CI workflows, cost control |
| references/COST-OPTIMIZATION.md | Token costs, model routing, budget estimation |
| references/ERROR-RECOVERY.md | Recovery playbook, safety stack, post-incident checklist |
| references/MIGRATION.md | From Cursor, Copilot, Windsurf to Claude Code |
Step 3: Health Check
After generating, run the health check (references/HEALTH-CHECK.md) to verify everything is correctly configured.
Rerun
/forge is safe to run more than once. When .claude/.forge.lock exists, forge switches to rerun mode and respects the contract:
- forge owns scaffolding — content inside
<!-- forge:start id=... -->/<!-- forge:end -->markers in CLAUDE.md, and keys listed inowned_keysin settings.json. - you own decisions — anything outside those markers, and any key not in
owned_keys. Forge never touches it. - the lockfile mediates — if forge-owned content has been edited (hash differs from lockfile), forge surfaces a diff instead of overwriting.
Modes:
/forge— default. Diff prompts on conflict./forge --dry-run— show every change, write nothing./forge --force— regenerate everything. Backs up to.forge-backup-{timestamp}/first./forge --audit— read-only drift report. Useful for "is my setup still good?"
Full algorithm, lockfile schema, and migration rules: references/RERUN-SEMANTICS.md.
Output Structure
your-project/
├── CLAUDE.md # Project config (with forge regions + your notes)
├── .claude/
│ ├── .forge.lock # Lockfile — commit this
│ ├── settings.json # Hooks, permissions, env
│ ├── settings.local.json # Personal overrides (gitignored)
│ ├── skills/
│ │ └── [project-specific]/
│ │ └── SKILL.md
│ ├── agents/
│ │ └── [role-specific].md
│ └── commands/
│ └── [workflow].md
└── .gitignore # Updated with Claude-specific entriesuseForgeKit by Dragoon0x. Educational and experimental. DYOR.
Other versions1 project uses a version of this.
Word for word · 1
- Dragoon0x/useforgekit★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

