Skip to content
Built into Specky

CLAUDE.md product context template

The product half of your agent instructions file, short enough to load on every task.

Use it in Specky

Card required · Eligible new accounts pay nothing until day 14

The template

claude-md-product-context.md7 sections

Product context

Paste this section into CLAUDE.md, AGENTS.md or your Cursor rules, below the build and test commands. It loads on every task, so keep the whole file well under 200 lines (Anthropic's guidance for CLAUDE.md) and this section under about 60. Put feature detail in a PRD and link to it; don't paste it here.

What we're building

One sentence a new engineer could repeat: what the product does, for whom, in plain words.

Who it's for

  • Primary user: role, company size, the situation they're in
  • Their main problem: in their words, not ours
  • Not for: the users we deliberately don't build for, so the agent doesn't design for them

Product principles

Three to five rules that settle trade-offs. Each one should be able to lose an argument.

  • e.g. "A person approves every change before it reaches a customer."
  • e.g. "Show the source for every number we display."
  • e.g. "Fewer settings: pick a good default instead of adding a toggle."

Current bets

What the team is trying to learn or move right now. Update when a bet closes.

BetSuccess signalSpec
e.g. Self-serve onboarding without a callshare of new accounts that finish setup in week 1docs/specs/onboarding.md

Decisions not to revisit

Settled choices an agent might otherwise "improve". Link each one to its decision record.

  • e.g. "No free tier. Don't add free-plan logic." (D-007)
  • e.g. "Postgres only. Don't add another datastore." (D-012)
  • e.g. "Emails are plain text. Don't add HTML templates." (D-019)

Words we use

  • Our term: what it means, and the word not to use instead

Where evidence lives

  • Specs and PRDs: docs/specs/ (one file per task)
  • Decision log: docs/decisions/ or link
  • Customer evidence: interviews, support tickets, analytics: link, don't paste
  • Who decides product questions: name

Asking Specky for context

If you connect Specky over MCP (setup at specky.space/for-agents), the agent can fetch the current product record instead of relying on this file.

  • Before planning a ticket, call get_coding_brief for the PRDs, decisions and evidence linked to it.
  • For a product question not answered here, call get_product_context or search_workspace and cite what comes back.
  • Before you report done, run validate_agent_change on the diff.
  • Anything you write back to Specky is a draft for a person to review. Don't treat it as approved.

When to stop and ask

  • The request conflicts with a principle or a settled decision above.
  • The change touches pricing, permissions, personal data or customer-facing copy.
  • The evidence for a requirement is marked "assumed" and the change is hard to reverse.

Keeping this short

  • Review this section when a bet closes or a decision is superseded.
  • If a line only matters for one feature, move it into that feature's PRD.
  • Link to sources instead of copying them; copies go stale.

What Specky makes with this

A filled-in version for a fictional product. In your workspace, Specky cites the calls, tickets and messages it found, as footnotes, and writes “Needs Evidence” where it found none instead of inventing a source.

ExampleFictional product, fictional peopleShow

Product context

What we're building

Acme Invoicing (example) tracks the money a small food business owes its suppliers.

Who it's for

  • Primary user: owners of cafés and bakeries with 1-15 staff
  • Not for: accountants managing many clients

Product principles

  • The owner confirms every amount before it is saved.
  • Fewer settings: pick a default instead of adding a toggle.

Decisions not to revisit

  • No bank-account connections in 2027. (D-004, example)

Asking Specky for context

  • Before planning a ticket, call get_coding_brief with the ticket title.
  • Before you report done, run validate_agent_change on the diff.

Do this from Claude

Stay in Claude Code, the Claude apps, Cursor or ChatGPT. Connect Specky’s MCP server once, copy this template, paste it into the chat and ask. The MCP tools can’t open your template library, so the agent works from the pasted copy and saves the result to Specky.

1. Connect once

claude mcp add --transport http specky \
  https://www.specky.space/api/mcp \
  --header "Authorization: Bearer sk_live_your_key"

Replace sk_live_your_key with a workspace API key from Settings → Developer in Specky. Write and AI calls follow your workspace role and plan limits, and anything an agent writes lands as a draft for review.

MCP setup guideAll supported agentshttps://www.specky.space/api/mcp

2. Ask

  • “Read my Specky product context and draft the product section of our CLAUDE.md from this template (pasted below). Keep it under 60 lines and link to sources instead of copying them.”

    Calls get_product_context

  • “Search Specky for our recorded decisions and list the ones a coding agent should not revisit, with one line each.”

    Calls search_workspace

  • “Read our Specky engineering standards and tell me which belong in CLAUDE.md and which belong in a hook or deny rule.”

    Calls get_engineering_standards

Questions

AGENTS.md or CLAUDE.md: which one?

Use the file your agent reads. Claude Code reads CLAUDE.md and falls back to AGENTS.md when there is no CLAUDE.md; Cursor, Copilot and many other agents read AGENTS.md. The product section is the same in either file.

How long should the product section be?

Short. Anthropic's guidance for CLAUDE.md is to stay under 200 lines for the whole file, because longer files reduce adherence. Aim for about 60 lines of product context and link to PRDs and the decision log for detail.

What should not go in it?

Anything that only matters for one feature. Put that in the feature's PRD. The instruction file loads on every task, so one-off details crowd out the rules that matter.

How do I use the CLAUDE.md / AGENTS.md Product Context template in Specky?

Open Templates from the command menu (Cmd+K, or Ctrl+K on Windows) and press Use on "CLAUDE.md / AGENTS.md Product Context". Specky creates a new document with these sections in place and opens it in the editor. If your workspace was created before this template was added, press "Add missing defaults" in Templates first.

Can I use it without Specky?

Yes. Copy it as Markdown or download the .md file and paste it into your docs tool, your repo or an issue. Specky adds the links back to the customer evidence behind each claim.

All templates