@veleads/gtm
v0.7.1
Published
gtm-brain core: process kit (AGENTS.md, skills, templates, schemas) and the gtm CLI for client repos
Maintainers
Readme
@veleads/gtm
CLI and process kit for gtm-brain: run outbound for many projects with one standard, agent-agnostic process. Each project gets its own private git repo; this package scaffolds it, keeps its playbooks in sync with the core, validates it, and upgrades it safely.
Works with Claude Code, Codex, or any coding agent that can read files and run shell commands. Source: Veleads/gtm-core · MIT
Quick start
Requires Node.js 22+. npm is enough; pnpm or yarn work too (the repo follows whichever lockfile you commit).
# in an empty or freshly cloned (private) repo folder:
npx @veleads/gtm init . --name "Acme Corp"
npm install
npx gtm status
npx gtm validateinit . keeps an existing .git, README and .gitignore (gtm rules are appended) and never overwrites
files; init acme --name "Acme Corp" creates ./gtm-project-acme instead. Push to a private repository, then open it in your coding agent. The generated
AGENTS.md tells the agent how to work in the repo, starting at stage 00-intake.
What you get in a project repo
| Path | What | Edit? |
|---|---|---|
| AGENTS.md | operator manual: session start, 9-stage routing, hard stops, data rules | no, generated by gtm sync |
| .gtm/ | stage playbooks (Agent Skills), templates, JSON schemas, provider docs | no, generated by gtm sync |
| PROJECT.md | project-specific rules that add to the process | yes |
| project.yaml, context/ | owners, ICP (md + yaml), signals, personas, offer, proof, voice | yes |
| campaigns/<id>/ | brief, config, copy, QA report, run logs | yes |
Stages: intake → ICP (sign-off) → TAM → enrich → qualify → copy (sign-off) →
QA → launch (go/no-go) → results. ICP and copy approvals are pinned to the approved content:
editing either afterwards makes gtm validate fail until it's re-approved.
Commands
Run inside a project repo as npx gtm <command> (whichever package manager installed it). gtm <command> --help shows usage, what the
command writes, and examples, without running it.
| Command | What it does | Writes |
|---|---|---|
| init . --name "<Name>" / init <slug> --name "<Name>" | set up the current folder / a new one | target folder, never overwrites |
| new-campaign <slug> | scaffold campaigns/<slug>/ | that folder |
| validate [campaign] | schemas, gates, cross-references, no lead data, core sync | nothing |
| status | campaigns, stages, gates | nothing |
| approve icp --pr <n> / --by "<name>" | record ICP sign-off (GitHub PR review, or by name), pin its hash | context/icp.yaml |
| approve copy <campaign> --pr <n> / --by "<name>" | record copy sign-off the same way | campaign config.yaml |
| track stage\|gate-open\|gate-done … | mirror stages and gates as GitHub issues (or none) | tracker only |
| github setup [--apply] | labels + approval ruleset on the repo | GitHub settings |
| sync [--check] | copy the core kit into .gtm/ + AGENTS.md | .gtm/, AGENTS.md (nothing with --check) |
| migrate [--dry-run] | move YAML files to the current schema versions | YAML files |
| upgrade [version] | install a newer core, sync, migrate, validate, show changelog | deps, .gtm/, YAML |
| job <name> <campaign> | pipeline jobs (TAM, enrich, …) | planned, not available yet |
Exit codes: 0 success, 1 failure or validation errors.
GitHub mode
Set project.yaml owners to GitHub handles (approver: "@maria"). ICP and copy sign-off then is
the approver's PR review: gtm sync makes them the CODEOWNER of those files, gtm approve … --pr <n>
verifies the review on GitHub, and CI (gtm validate --verify-github) re-checks it against the exact
reviewed content. Stages and gates are mirrored as issues with gtm track. Approvers who aren't on
GitHub (or solo projects) use a plain name and --by. Details: .gtm/guides/github.md.
For coding agents
- Inside a project repo, read
AGENTS.mdfirst and follow it; thenPROJECT.md. - Intake starts with the
researchskill: research the business before asking anyone anything. - Read-only commands are always safe:
validate,status,sync --check,migrate --dry-run, and any--help. - Never edit
AGENTS.mdor.gtm/. Never rungtm approveunless a named human explicitly approved in the session. gtm jobis not available yet: stop and tell the human rather than improvising with scripts.
Upgrades
Project repos pin an exact version. New releases arrive as a pull request from the repo's weekly
gtm-upgrade workflow, or via npx gtm upgrade. Breaking YAML changes ship with automatic
migrations; see CHANGELOG.md.
