Skip to content
Public template

About

Template for a client's GTM agent stack: Artemis jobs and config, run by artemis-agent with skills from Quiver

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

gtm-stack

The starting point for a client's GTM agent stack. Each client gets a private copy of this template, which holds only that client's own files:

  • jobs/: the jobs and their schedules
  • artemis.config.ts: the agent config, with every value read from the environment
  • vercel.json and api/: the Vercel host files
  • RUNBOOK.md: setup, schedules, updates and handover

The runner is artemis-agent, pinned to a release tag in package.json. Skills come from the client's Quiver workspace over MCP (get_skill), along with custom skills, rubrics and the integrations setting. None of those live in this repo.

Jobs run on a schedule in one of two ways:

  • Vercel: Vercel Schedules in the client's timezone, nothing to keep running.
  • Local: launchd on macOS or cron on Linux, through npm run schedule:local.

Quick start

Needs Node.js 22.18.0 or later.

gh repo create client-org/gtm-stack --private --template built-for-devs/gtm-stack --clone
cd gtm-stack                       # the clone is in a new gtm-stack/ folder
cp .env.example .env               # make .env before you create any key
# put QUIVER_MCP_URL in .env, then copy each key as you create it and run:
npm run set-secret -- QUIVER_AGENT_KEY
npm run set-secret -- ANTHROPIC_API_KEY --check
npm install
npm run jobs
npm run doctor
npm run run -- daily-review

set-secret reads the key from your clipboard (or stdin), checks it, writes it into .env and prints only its length, so a key never shows on screen or in an AI agent's chat. Already in an empty folder? Create the repo without --clone and run gh repo clone client-org/gtm-stack . instead.

Then turn on schedules with npm run schedule:vercel or npm run schedule:local. RUNBOOK.md walks through every step.

Scripts

Script What it does
npm run doctor Checks the config, Quiver, model keys, skills and host tooling.
npm run doctor:vercel The same checks as Vercel runs them (ARTEMIS_HOST=vercel), including CRON_SECRET and job timeouts against the plan.
npm run jobs Lists the jobs the agent loads.
npm run run -- <job> Runs one job now. Add --force to run it again the same day.
npm run carryout Carries out decisions answered yes in Quiver.
npm run report Shows spend by job, how often people agreed with the agent's recommendations, and the lowest-scoring skills.
npm run schedule:vercel Writes vercel.json (Vercel Schedules) and api/.
npm run schedule:local Installs launchd (macOS) or cron (Linux) entries. Add -- --uninstall to remove them.
npm run report-bug -- --dry-run Prints the bug report the agent would send for the last failed run.
npm run set-secret -- <VAR> Puts a key into .env from the clipboard, stdin or a hidden prompt without showing it, and says which it used. --check tests an Anthropic key; --generate makes CRON_SECRET or DEPLOY_HOOK_SECRET.
npm run typecheck Type checks the config and jobs.
npm test Runs the tests for the repo's own scripts.

More

  • RUNBOOK.md: set up a new client, schedules, bug reporting, updating, handover and troubleshooting.
  • jobs/README.md: add, schedule and remove jobs, and name custom ones.
  • artemis-agent README: the full config and command reference.

License

MIT

About

Template for a client's GTM agent stack: Artemis jobs and config, run by artemis-agent with skills from Quiver

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages