Forge is not a plugin or extension in the traditional sense — it is a skill: a self-contained intelligence bundle installed directly into an AI agent’s configuration directory. When an agent starts a session, it loads the Forge SKILL.md as part of its system context, giving it architecture instructions, command routing, boot sequences, and runtime enforcement hooks. Each supported agent receives a copy of the full skill (scripts, profiles, reference docs, and templates), customized with agent-specific paths so every script invocation resolves correctly at runtime.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ronaldjdev/forge/llms.txt
Use this file to discover all available pages before exploring further.
Supported Agents
Forge deploys into five AI agents simultaneously, each with a hook model tailored to its extension system:| Agent | Install Directory | Hook Type | Hook | Effect |
|---|---|---|---|---|
| OpenCode | .opencode/skills/forge/ | SKILL.md system | — | Architecture instructions loaded at startup |
| Claude Code | .claude/skills/forge/ | PostToolUse | forgeSentinel | Reports violations after each Edit / Write / MultiEdit |
| Cursor | .cursor/skills/forge/ | preToolUse | forgeSmith | Can DENY writes that introduce CRITICAL or ERROR violations |
| Codex CLI | .agents/skills/forge/ | PostToolUse | forgeSentinel | Reports violations after Edit / Write / apply_patch |
| Gemini | .gemini/skills/forge/ | SKILL.md | — | Architecture instructions loaded at startup |
All agents that expose a runtime hook share the same underlying violation-detection logic via
forgeSentinel-lib.mjs. The difference is only when enforcement fires: Cursor’s forgeSmith acts before a write, while the forgeSentinel adapters on Claude Code and Codex CLI act after.Installation
Install Forge into one or more agents usingnpx. The interactive wizard auto-detects which agents are present in your project:
The
--global flag installs Forge into ~/.config/opencode/skills/forge/ so it is available in every OpenCode session on your machine, not just the current project.| Flag | Target Agent | Active Hook |
|---|---|---|
--opencode | OpenCode | forgeSentinel (via SKILL.md) |
--cursor | Cursor | forgeSmith (preToolUse) |
--claude | Claude Code | forgeSentinel (PostToolUse) |
--codex | Codex CLI | forgeSentinel (PostToolUse) |
--gemini | Gemini Code Assist | — |
--all | All of the above | — |
--global | OpenCode (global) | forgeSentinel |
Path Rendering
Every file in the Forge skill — SKILL.md, all reference docs, all scripts that call other scripts — uses the placeholder{{AGENT_PATH}} wherever the agent-specific root directory is needed. During installation, cli.js calls renderSkillPaths(), which recursively walks the installed skill directory and replaces every occurrence of {{AGENT_PATH}} with the agent’s actual path:
| Agent | {{AGENT_PATH}} resolves to |
|---|---|
| OpenCode (local) | .opencode/skills/forge |
| OpenCode (global) | ~/.config/opencode/skills/forge |
| Claude Code | .claude/skills/forge |
| Cursor | .cursor/skills/forge |
| Codex CLI | .agents/skills/forge |
| Gemini | .gemini/skills/forge |
Skill Directory Structure
Every agent receives the same directory layout under its own root. Here is the structure as installed for Claude Code (.claude/skills/forge/):
Learn More
Hooks
How forgeSentinel and forgeSmith enforce architecture rules in real time
Profiles
10 pre-built tech profiles — Express, Fastify, NestJS × MongoDB, Postgres, Prisma, Drizzle
Quickstart
Install Forge and run your first audit in under five minutes