ChiefLab recipe for Claude Code

Drop-in MCP server entry + project-scoped command file. When the user says "get users" after building, Claude Code calls ChiefLab on their behalf.

1. ~/.claude.json (global)

Adds the ChiefLab MCP server to the user's Claude Code config. Run chieflab_signup_workspace once to mint the key, then paste below.

{
  "mcpServers": {
    "chieflab": {
      "url": "https://api.chieflab.io/api/mcp",
      "env": {
        "CHIEFLAB_API_KEY": "YOUR_KEY"
      }
    }
  }
}

2. .claude/commands/launch-with-chieflab.md (project-scoped)

Tells Claude Code when and how to use ChiefLab. Lives in the repo. Paste verbatim.

---
name: launch-with-chieflab
description: Use ChiefLab after the repo is built/deployed and the user asks to launch, get users, market, find customers, or announce.
---

When the user says one of: "get users" / "get first users" / "launch this" /
"announce this" / "market this" / "find customers" / "make money" / "what now":

1. Gather repoContext (whatChanged, recentCommits, changedFiles, routes,
   readme, targetCustomer, launchGoal). Use the bash + read tools.
2. Call chieflab_get_users_after_build with goal = the user's literal
   phrase, productUrl = the live URL if known, repoContext.
3. Render firstResponseScript verbatim. ChiefLab returns ONE action
   routed to the channel for the product type. Don't fan out to 5
   channels.
4. The user posts manually, pastes URL back in /command/. ChiefLab
   measures at 24h + creates tomorrow's move.

Safety:
- Nothing publishes without user approval.
- Manual execution is the default. Don't call publish tools without
  explicit user approval per action.
- Don't paraphrase tool names. Don't fake tool calls.
- Don't tell the user to install anything — the tool call does install
  + launch in one shot.

3. One-shot install

If editing files manually isn't appealing, this command does everything for you:

npx -y @chieflab/cli launch-here --intent "get first users"

Detects Claude Code, mints a workspace, writes both files above, fires the first launch.

What ChiefLab returns

The single-action routing per product type:

  • Devtool / AI agent / open-source project → Hacker News
  • SaaS / B2C SaaS / consumer / mobile app / game / community → Reddit
  • Service agency / consultant / enterprise / fintech / healthcare / nonprofit / event → LinkedIn
  • Ecommerce / newsletter / content site → X
  • Visual products (consumer / mobile / ecommerce / hardware IoT / course) → short-form video script
  • Internal tool → email

The action carries a draft body grounded in the repo + a manual-publish flow. 24h measurement (public API for HN/Reddit; paste-what-you-see for everything else) + auto-created next-move actions form the loop. Founder lives in /command/.