Skip to content
๐Ÿค– Consolidated, AI-optimized GOMAD docs: llms-full.txt. Fetch this plain text file for complete context.
๐Ÿš€ Build your own GoMad modules and share them with the community! Get started or submit to the marketplace.

Install GoMad

Install GoMad in your project in five minutes using npx. By the end youโ€™ll have the persona library, knowledge packs, and slash-command launchers wired into your repo.

  • Install @xgent-ai/gomad from npm (or run it directly via npx).
  • Run the interactive gomad install flow and pick sensible defaults.
  • Understand the directory layout the installer produces under <installRoot>/_config/.
  • Verify the install by inspecting the files-manifest.csv and the on-disk tree.

You have two options. Pick the one that matches how committed you are to keeping GoMad in this project.

Option A โ€” One-shot via npx. Use this when you want to try GoMad without committing it to your package.json. Each invocation downloads the latest version.

Terminal window
npx @xgent-ai/gomad install

Option B โ€” Add as a dev dependency. Use this for projects that need a pinned version. The package lives in your lockfile and the same invocation can run repeatedly via the local binary.

Terminal window
npm install --save-dev @xgent-ai/gomad
npx gomad install

Either option drops you at the same interactive installer.

The installer walks through three prompts:

  • Choose install root. The default is _gomad. This is the directory where persona bodies, knowledge packs, and the manifest live. Pick something else if your project conventions require it; nothing else hardcodes this path.
  • Confirm IDE target. Claude Code, Cursor, Codex, and any other slash-command-capable IDE you have installed are auto-detected. The installer writes launcher stubs into the matching IDE directory.
  • Confirm agent selection. Defaults to all 8 personas (analyst, tech-writer, pm, ux-designer, architect, sm, dev, solo-dev). Deselect any you donโ€™t want.

Once you confirm, the installer copies files into your repo. The artifacts it writes are:

  • Persona body files at <installRoot>/_config/agents/<shortName>.md โ€” the runtime source of truth for each persona.
  • Domain knowledge packs at <installRoot>/_config/kb/<slug>/ โ€” retrieval-friendly markdown bundles.
  • Slash command launcher stubs at .claude/commands/gm/agent-*.md โ€” thin entry points your IDE picks up.
  • The install manifest at <installRoot>/_config/files-manifest.csv โ€” the record of every file the installer wrote, used for safe upgrades.

After the installer exits cleanly, the tree under your install root should look roughly like this:

_gomad/
โ”œโ”€โ”€ _config/
โ”‚ โ”œโ”€โ”€ agents/
โ”‚ โ”‚ โ”œโ”€โ”€ analyst.md
โ”‚ โ”‚ โ”œโ”€โ”€ architect.md
โ”‚ โ”‚ โ”œโ”€โ”€ dev.md
โ”‚ โ”‚ โ”œโ”€โ”€ pm.md
โ”‚ โ”‚ โ”œโ”€โ”€ sm.md
โ”‚ โ”‚ โ”œโ”€โ”€ solo-dev.md
โ”‚ โ”‚ โ”œโ”€โ”€ tech-writer.md
โ”‚ โ”‚ โ””โ”€โ”€ ux-designer.md
โ”‚ โ”œโ”€โ”€ kb/
โ”‚ โ”‚ โ”œโ”€โ”€ architecture/
โ”‚ โ”‚ โ””โ”€โ”€ testing/
โ”‚ โ””โ”€โ”€ files-manifest.csv
โ””โ”€โ”€ _backups/ # populated on subsequent installs

If your IDE supports slash commands, type /gm: to see the launcher list.

Where do persona files live? Each persona body is at <installRoot>/_config/agents/<shortName>.md. The launcher stubs at .claude/commands/gm/agent-*.md reference these bodies at runtime.

Can I customize a persona without losing changes on upgrade? Yes. Place a .customize.yaml next to the persona file; the installer respects customization fragments during cleanup. See the contributing guide for the merge contract.

How do I upgrade? Re-run npx @xgent-ai/gomad install. The cleanup planner snapshots replaced files under <installRoot>/_backups/<timestamp>/ before writing new ones, so you can always roll back.

Once the install completes, run a real workflow in the quick start tutorial โ€” invoke your first persona and produce a tangible artifact in five minutes.