FORGE
Onboard any project. Generate a CLAUDE.md. Make Claude understand your codebase.
Usage
/forge - Forge the current project (auto-detect)
/forge <path> - Forge a specific project directory
/forge update - Update an existing project's CLAUDE.md
/forge check - Verify project knowledge completeness
What FORGE Does
FORGE performs a deep scan of a codebase and generates a comprehensive CLAUDE.md file that gives Claude full context about the project. It's the difference between Claude guessing at your architecture and Claude knowing it.
The Forging Process
- Detect project type — language, framework, build tools, package manager
- Scan directory structure — map the project layout, identify key directories
- Read configuration files —
package.json, pyproject.toml, Cargo.toml, tsconfig.json, etc.
- Analyze entry points — find main files, API routes, CLI entry points
- Map dependencies — external packages, internal module relationships
- Identify patterns — architecture style (MVC, hexagonal, etc.), testing approach, CI/CD
- Generate CLAUDE.md — structured project context file
What Gets Generated
# Project Name
## Overview
Brief description, purpose, key technologies.
## Architecture
Directory structure, key patterns, data flow.
## Key Files
Entry points, configuration, critical modules.
## Development
How to install, run, test, build, deploy.
## Conventions
Naming, file organization, coding patterns used.
## Important Context
Things Claude should know that aren't obvious from code.
AUTO-EXECUTE Protocol
When this skill is invoked:
- Check for existing CLAUDE.md — if present, read it first
- Scan the project root:
ls the top-level directory
- Read
package.json, pyproject.toml, Cargo.toml, or equivalent
- Read
README.md if present
- Check for
.env.example or .env.template
- Scan source directories:
- Glob for source files (
**/*.py, **/*.ts, **/*.rs, etc.)
- Read key entry points (main files, index files, app files)
- Identify test directories and patterns
- Scan configuration:
- Build tools (webpack, vite, esbuild, cargo)
- Linting (eslint, ruff, clippy)
- CI/CD (GitHub Actions, GitLab CI)
- Docker/containerization
- Detect architecture patterns:
- Look for common patterns (routes/, controllers/, models/, services/)
- Identify state management, API patterns, database layers
- Generate CLAUDE.md — write to project root
- Report findings — summarize what was discovered
When to Use
- Opening a project for the first time
- Joining a new team or codebase
- A project has no CLAUDE.md and Claude keeps making wrong assumptions
- After major refactoring that changed project structure
- When Claude says "I'm not sure about the architecture"
Safety
- FORGE will never overwrite an existing
CLAUDE.md without asking first
- If a
CLAUDE.md exists, FORGE reads it and offers to update (not replace)
- FORGE only reads files — it does not execute any code from the project
Prerequisites
- Claude Code with file read/write access
- A project directory with source code to scan
- No external packages required
Quality Checklist
A properly forged CLAUDE.md should:
Tips
- Run
/forge check periodically to verify the CLAUDE.md is still accurate
- After major changes, run
/forge update instead of a full re-forge
- FORGE reads your code — it doesn't execute it. Safe to run on any project.
- The generated CLAUDE.md is a starting point. Edit it to add context only you know.
Know the codebase. Then write the code.
1---2name: forge3description: Project onboarding and CLAUDE.md generation. Use when: starting work on a new codebase, setting up a project for the first time, creating or updating a project CLAUDE.md, generating module summaries, or when opening a project with no CLAUDE.md file. Forges a complete project knowledge base so Claude understands the codebase from day one.4---56# FORGE78**Onboard any project. Generate a CLAUDE.md. Make Claude understand your codebase.**910---1112## Usage1314```15/forge - Forge the current project (auto-detect)16/forge <path> - Forge a specific project directory17/forge update - Update an existing project's CLAUDE.md18/forge check - Verify project knowledge completeness19```2021---2223## What FORGE Does2425FORGE performs a deep scan of a codebase and generates a comprehensive `CLAUDE.md` file that gives Claude full context about the project. It's the difference between Claude guessing at your architecture and Claude *knowing* it.2627### The Forging Process28291. **Detect project type** — language, framework, build tools, package manager302. **Scan directory structure** — map the project layout, identify key directories313. **Read configuration files** — `package.json`, `pyproject.toml`, `Cargo.toml`, `tsconfig.json`, etc.324. **Analyze entry points** — find main files, API routes, CLI entry points335. **Map dependencies** — external packages, internal module relationships346. **Identify patterns** — architecture style (MVC, hexagonal, etc.), testing approach, CI/CD357. **Generate CLAUDE.md** — structured project context file3637### What Gets Generated3839```markdown40# Project Name4142## Overview43Brief description, purpose, key technologies.4445## Architecture46Directory structure, key patterns, data flow.4748## Key Files49Entry points, configuration, critical modules.5051## Development52How to install, run, test, build, deploy.5354## Conventions55Naming, file organization, coding patterns used.5657## Important Context58Things Claude should know that aren't obvious from code.59```6061---6263## AUTO-EXECUTE Protocol6465When this skill is invoked:66671. **Check for existing CLAUDE.md** — if present, read it first682. **Scan the project root:**69 - `ls` the top-level directory70 - Read `package.json`, `pyproject.toml`, `Cargo.toml`, or equivalent71 - Read `README.md` if present72 - Check for `.env.example` or `.env.template`733. **Scan source directories:**74 - Glob for source files (`**/*.py`, `**/*.ts`, `**/*.rs`, etc.)75 - Read key entry points (main files, index files, app files)76 - Identify test directories and patterns774. **Scan configuration:**78 - Build tools (webpack, vite, esbuild, cargo)79 - Linting (eslint, ruff, clippy)80 - CI/CD (GitHub Actions, GitLab CI)81 - Docker/containerization825. **Detect architecture patterns:**83 - Look for common patterns (routes/, controllers/, models/, services/)84 - Identify state management, API patterns, database layers856. **Generate CLAUDE.md** — write to project root867. **Report findings** — summarize what was discovered8788---8990## When to Use9192- Opening a project for the first time93- Joining a new team or codebase94- A project has no CLAUDE.md and Claude keeps making wrong assumptions95- After major refactoring that changed project structure96- When Claude says "I'm not sure about the architecture"9798---99100## Safety101102- FORGE will **never overwrite** an existing `CLAUDE.md` without asking first103- If a `CLAUDE.md` exists, FORGE reads it and offers to update (not replace)104- FORGE only reads files — it does not execute any code from the project105106---107108## Prerequisites109110- Claude Code with file read/write access111- A project directory with source code to scan112- No external packages required113114---115116## Quality Checklist117118A properly forged CLAUDE.md should:119120- [ ] Accurately describe the project's purpose121- [ ] List all major dependencies and their roles122- [ ] Map the directory structure with explanations123- [ ] Document how to install, run, test, and build124- [ ] Identify naming conventions and coding patterns125- [ ] Note any non-obvious architecture decisions126- [ ] Be concise enough to fit in context without waste127128---129130## Tips131132- Run `/forge check` periodically to verify the CLAUDE.md is still accurate133- After major changes, run `/forge update` instead of a full re-forge134- FORGE reads your code — it doesn't execute it. Safe to run on any project.135- The generated CLAUDE.md is a starting point. Edit it to add context only you know.136137---138139*Know the codebase. Then write the code.*