gtm-agents
by ijas47
README.md
# gtm-agents
The go-to-market work I do most often, written down as agent skills plus a small MCP server so an agent can run it with me.
It covers seven jobs:
1. **Account scoring.** Rank accounts from a public market-data export with a separate scoring model per segment. Weights live in YAML.
2. **List building.** Fill in company data, find people and verified emails through treg, Apollo or Clay. A source without a key is skipped, not a crash.
3. **Messaging per segment.** Draft from a short messaging file, then lint the copy. The lint blocks em dashes, chatbot phrasing and drafts that run long.
4. **GTM plan.** Turn a brief into a Notion-ready page: value prop, ICP, how customers solve it today, what is wrong with that, how we do it better, positioning, messaging, channels, buyer personas and the customer journey.
5. **Company teardown.** Pull public signals (GitHub stars, npm downloads, open roles, pricing page) and draft a 30/60/90 plan from them.
6. **Reply triage.** Sort campaign replies and say what to do with each.
7. **Pipeline report.** Stage totals, weighted value, stage conversion, segment split and deals that have gone quiet.
Everything in `examples/` is made up. There are no case studies or results in this repo.
## Install
You need Node 20.12 or newer.
```bash
git clone https://github.com/ijas47/gtm-agents.git
cd gtm-agents
npm install
npm run build
cp .env.example .env # add only the keys you have
```
Check what is configured:
```bash
npx gtm status
```
### Use it from an agent
- **Claude Code:** open the folder. Skills are in `.claude/skills/` and the MCP server is in `.mcp.json`.
- **Cursor:** skills are in `.cursor/skills/` and the server is in `.cursor/mcp.json`.
- **Anything else that reads skill folders or speaks MCP:** run `npm run link-skills -- --target <your agent's skills folder>` and point its MCP config at `node /path/to/gtm-agents/dist/mcp/server.js`.
`AGENTS.md` tells the agent which skill fits which request and the rules that apply to all of them.
### Use it from the command line
```bash
npx gtm score examples/market-data/accounts.csv --out scored.csv
npx gtm lint draft.txt --max-words 110
npx gtm plan examples/gtm-plan-brief.yaml --out plan.md
npx gtm teardown my-company.yaml --out teardown.md
npx gtm triage examples/replies.json
npx gtm pipeline examples/deals.csv --stale-days 14
npx gtm enrich somecompany.com
npx gtm people somecompany.com --titles "Head of Growth,VP Sales"
```
## Data sources
| Source | Key | What it does here |
|---|---|---|
| [treg](https://treg.to) | `TREG_TOKEN` | Company enrichment, people search, email find with verification, job listings, page extraction. One token reaches many data providers; it routes each call to a provider and bills per answer from a prepaid balance. |
| Apollo | `APOLLO_API_KEY` | People search and organization enrichment. |
| Clay | `CLAY_WEBHOOK_URL` | Sends rows to a Clay table through its webhook source, so Clay's own enrichments run there. |
| GitHub, npm, Greenhouse, Ashby, Lever | none | Public APIs used by the teardown. `GITHUB_TOKEN` only raises the rate limit. |
treg calls carry a per-call price ceiling (`TREG_MAX_COST_PER_CALL`) and the client stops once a run has spent `TREG_MAX_RUN_USD`. Each result reports what it cost.
## How scoring works
Each file in `config/scoring/` describes one segment:
- `match` decides which accounts belong to it
- `columns` maps your export's column names to the fields the model reads
- `criteria` are weighted checks: `range`, `log_range` for counts that span orders of magnitude, `match`, `in` and `boolean`
- `disqualify` removes accounts outright and says why
- `tiers` sets the score floors for A, B and C
A blank field scores zero and is listed under missing data, so you can see when a tier rests on gaps. The three models that ship are examples for video publishers, ad networks and developer tools. Copy one and change it for your market.
The input is whatever public market data fits the segment: an ads.txt or sellers.json crawl, tech-install counts, a traffic or app-store ranking, a public dataset.
## The copy lint
`src/core/lint-rules.ts` holds the rules. Blocking rules fail the check; warnings are shown but pass. Each segment in a messaging file can add its own banned phrases and word limits. `npx gtm lint file --fix` only swaps dash punctuation for commas. Phrases need rewriting by a person or the agent.
## Project layout
```
config/scoring/ segment scoring models (YAML)
examples/ made-up inputs and the outputs they produce
skills/ one SKILL.md per workflow
src/core/ scoring, lint, messaging, plan, teardown, replies, pipeline
src/adapters/ treg, Apollo, Clay
src/mcp/server.ts MCP server over stdio
src/cli.ts the gtm command
tests/ unit tests and an MCP smoke test
```
## Development
```bash
npm test # builds, then runs the tests
npm run scan:secrets # run before every push
```
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues