init

A guided project setup wizard for NXTG-Forge that detects whether a project uses Node.js, Rust, Python, Go, or Java and creates its governance configuration. Governance files record project context, work progress, quality checks, and metrics.

In plain words
What is it for?
Use it when adding NXTG-Forge to a project for the first time, recording its goals, and creating the initial configuration for later commands.
Why use it?
Starting without shared project settings means creating configuration and tracking rules by hand. This establishes the files that other Forge commands use to understand the project.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nxtg-ai/forge-plugin/init
Clone the repo
git clone --depth 1 https://github.com/nxtg-ai/forge-plugin
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,091 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01091
Opus 5 $0.00000 $0.00545
Sonnet 5 $0.00000 $0.00218
Haiku 4.5 $0.00000 $0.00109

Measured yesterday against content hash b01fc5bf0490, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/init.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/forge:init

Initialize NXTG-Forge governance in any project with a 60-second setup wizard that detects your stack and captures your vision.

Level L1 Vibe Coder
Category Setup & Maintenance
Syntax /forge:init

What It Does

/forge:init is the starting point for every NXTG-Forge project. It runs a guided setup wizard that detects your project type (Node.js, Rust, Python, Go, Java), checks for existing configuration, captures your product vision and goals, then creates the governance files that power every other Forge command.

The wizard creates two files: .claude/governance.json (the project state tracker that records workstreams, quality gates, metrics, and sentinel audit entries) and optionally appends a Forge section to your CLAUDE.md with project context. This is all that is needed -- commands, agents, skills, and hooks are loaded automatically from the plugin.

Without /forge:init, you would need to manually create governance configuration, remember to track quality gates, and lose the contextual intelligence that makes commands like /forge:status and /forge:gap-analysis understand your project. The wizard replaces all of that with four questions and a confirmation.

Syntax & Options

/forge:init

This command takes no arguments. It runs interactively, asking questions via prompts.

When to Use It

  • Starting a new project: Run it immediately after git init and installing dependencies to establish governance from day one.
  • Onboarding an existing codebase: Point Forge at a mature project and let it detect the stack, then layer governance on top without disrupting existing workflows.
  • After a fresh plugin install: The first command to run after claude plugin install nxtg-forge.

Do not run /forge:init if .claude/governance.json already exists and is healthy. Use /forge:status instead to verify your current setup. If you need to reset, the wizard will detect existing config and offer a fresh-start option.

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 113 lines · 0 tokens per session scan A b01fc5bf0490

Subscribe to this mod's changes

init is a command published in the GitHub repository nxtg-ai/forge-plugin (5 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,091 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.