Agent setup
The point of Specline is that you don't carry the methodology and you don't paste the canon — the agent learns it from the tool, and you bring the judgment. Two pieces make that automatic.
1. The repo carries a brief
Drop a CLAUDE.md at the repo root. Claude Code reads it on open, so any
agent you start there is briefed without you saying a word. A ready template lives at
specline/templates/specline-CLAUDE.md; it tells the agent it's a Specline
repo, how to shape and migrate plans with you, and to use the doctor tools.
2. doctor is available as a tool
With the MCP server registered at user scope, the agent
discovers doctor_spec / doctor_rules / doctor_check
in every repo. The brief plus the tools mean the agent self-onboards.
The day-to-day flow
- Open a fresh agent chat in the repo (with
CLAUDE.mdpresent). - Say it in your own words:
Let's shape a new feature: <your idea>. — or — Migrate this plan into Specline with me: <the file>.
- The agent pulls the canon (
doctor_spec), asks you the shaping questions, and writes the spec folder — checking itself withdoctor_check(author mode) as it goes. - You read the result in one sitting and approve it, or send it back. That's the ratify gate — your call, not the machine's.
What's not your job: remembering the spec structure, checking it's right, or knowing the rules before you start. The agent knows the structure (from doctor_spec), doctor checks it, and doctor_rules lists the checks on demand.
Without Claude Code
The same works for any agent with shell access: have it run specline spec to load the canon and specline doctor --mode author --format json to check its work. MCP just makes discovery automatic.