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.
What youโll learn
Section titled โWhat youโll learnโ- Install
@xgent-ai/gomadfrom npm (or run it directly vianpx). - Run the interactive
gomad installflow and pick sensible defaults. - Understand the directory layout the installer produces under
<installRoot>/_config/. - Verify the install by inspecting the
files-manifest.csvand the on-disk tree.
Prerequisites
Section titled โPrerequisitesโQuick path
Section titled โQuick pathโStep 1: Choose how to install
Section titled โStep 1: Choose how to installโ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.
npx @xgent-ai/gomad installOption 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.
npm install --save-dev @xgent-ai/gomadnpx gomad installEither option drops you at the same interactive installer.
Step 2: Run the interactive installer
Section titled โStep 2: Run the 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.
Step 3: Verify the install
Section titled โStep 3: Verify the installโ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 installsIf your IDE supports slash commands, type /gm: to see the launcher list.
Common questions
Section titled โCommon questionsโ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.
Where to next
Section titled โWhere to nextโ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.