agentleFS
jord0-cmdjord0-cmd/jord0.skills/skills/FORGE/SKILL.md

FORGE

Skill1 starsChanged 9 months agoMITView on GitHub

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.

  • Reads credentials

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forge-docs, forge-review and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • weselbenSkill

    forge-docs

    Load before code changes, before writing docs or an ADR, when a user question exposes a missing how-to, and when closing a chunk of work; also loaded by forge after each squash-merge and by deep-research after a report.

    Also in 3 projects that use this

  • tonmoy007Skill

    forge-review

    Run a multi-dimensional parallel code review over the current change.

    Also in 3 projects that use this

  • yike-gunshiSkill

    forge-ship

    发布上线:PR only(建 PR 即停)或 Full ship(合并 PR + 同步本地基础分支);测试失败不发布、不 force push,状态汇报严格区分提交/推送/合并/部署。 触发方式:用户说"ship"、"发布"、"合并上线"、"发 PR"。

    Also in 3 projects that use this

  • WordPressSkill

    blueprint

    Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.

    Also in 3 projects that use this

  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 3 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill is invoked:

    line 71
  2. Very specific:

    Read package.json, pyproject.toml, Cargo.toml, or equivalent

    line 76
  3. Distinctive:

    Read README.md if present

    line 77
  4. Very specific:

    Check for .env.example or .env.template

    line 78
  5. Distinctive:

    Read key entry points (main files, index files, app files)

    line 81
  6. Distinctive:

    Look for common patterns (routes/, controllers/, models/, services/)

    line 89
  7. Distinctive:

    After major refactoring that changed project structure

    line 101
  8. Distinctive:

    When Claude says "I'm not sure about the architecture"

    line 102
  9. Distinctive:

    If a CLAUDE.md exists, FORGE reads it and offers to update (not replace)

    line 109
  10. Distinctive:

    No external packages required

    line 118
  11. Very specific:

    Run /forge check periodically to verify the CLAUDE.md is still accurate

    line 138
  12. Very specific:

    After major changes, run /forge update instead of a full re-forge

    line 139

“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Detect project type — language, framework, build tools, package manager
  2. Scan directory structure — map the project layout, identify key directories
  3. Read configuration files — package.json, pyproject.toml, Cargo.toml, tsconfig.json, etc.
  4. Analyze entry points — find main files, API routes, CLI entry points
  5. Map dependencies — external packages, internal module relationships
  6. Identify patterns — architecture style (MVC, hexagonal, etc.), testing approach, CI/CD
  7. 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:

  1. Check for existing CLAUDE.md — if present, read it first
  2. 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
  3. 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
  4. Scan configuration:
    • Build tools (webpack, vite, esbuild, cargo)
    • Linting (eslint, ruff, clippy)
    • CI/CD (GitHub Actions, GitLab CI)
    • Docker/containerization
  5. Detect architecture patterns:
    • Look for common patterns (routes/, controllers/, models/, services/)
    • Identify state management, API patterns, database layers
  6. Generate CLAUDE.md — write to project root
  7. 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:

  • Accurately describe the project's purpose
  • List all major dependencies and their roles
  • Map the directory structure with explanations
  • Document how to install, run, test, and build
  • Identify naming conventions and coding patterns
  • Note any non-obvious architecture decisions
  • Be concise enough to fit in context without waste

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.