# Project brief

What every draft and every fix should know about one site — brand, design tokens, components, glossary, what earlier feedback taught, and rules for agents. Claude writes it from the repo and the project's feedback; your team confirms it line by line.

Source: https://pinprompt.veren-technology.com/docs/project-brief

> Status: Beta. See https://pinprompt.veren-technology.com/docs/what-works-today.md

Reviewers say "make it our green" or "the services card". Without context, the drafter and the fixing agent have to guess what that means on this site. The project brief writes it down once, so every spec and every fix uses the site's own names and values: `--color-brand`, `ServiceCard`, "products, not solutions".

![Settings → Project brief, drafted from the repo](https://pinprompt.veren-technology.com/docs-shots/project-brief.jpg)

## Who can use it

- **Owners and developers** draft it from the repo and change it.
- **Designers, QA and PMs** can read it.
- **Clients** never see it.

## Set it up

1. Connect GitHub for the project (*Settings → Integrations*). The brief reads the repo through that connection. It only reads: it never writes to the repo.
2. Open *Settings → Project brief* and press **Draft from repo**. pinprompt reads the file tree and up to 24 files that describe how the site looks and talks: token files, `tailwind.config`, global CSS, brand or style-guide docs, `README.md`, `CLAUDE.md`, `AGENTS.md`, the main layout and the visible components. Claude writes short lines in five sections:
   - **Brand**: voice, colours by name, logo rules.
   - **Tokens**: design tokens with their names in code and their values.
   - **Components**: what reviewers point at and what it is called in code.
   - **Glossary**: the words reviewers use and what they mean on this site.
   - **Rules for agents**: do and don't for every fix, taken from the repo's own docs.

   A sixth section, **Learned from feedback**, doesn't come from the repo: it fills from the project's own items. See [Learned from feedback](https://pinprompt.veren-technology.com/docs/learned-from-feedback.md).
3. Read each line. Use **Confirm** when it's right, **Edit** when it's nearly right, and **Remove** when it's wrong. Use **Add line** for anything the repo doesn't say. **Confirm all** confirms every line at once.

Each line shows the file it came from, such as `styles/tokens.css:4`, so you can check it.

## Where it is used

Only **confirmed** lines are sent. A guess from the repo never steers a fix until someone on the team has read it.

- **Drafts**: Claude's spec draft gets the brief, so "our green" becomes `--color-brand`.
- **Agent prompts**: `get_spec` over MCP, and the prompt you copy from an item, include the brief under *Project notes*.
- **Fix rounds**: the fixing agent gets it with every round.
- **`get_project`** (MCP) returns it, so your own agents can read it before they start.

Under *Rules for agents* there's a **Notes for agents** box for anything longer than a line (it used to be in *Settings → Rules*). Its text is sent first, then the brief. Only owners change it.

## Draft it again

**Draft again from repo** after the site changes. Confirmed lines and lines a person wrote stay as they are. Unconfirmed lines from the earlier draft are replaced. Lines in Learned from feedback are never touched by a repo draft. Drafting is limited to 6 times an hour per project.

## Without an Anthropic key

When the server has no `ANTHROPIC_API_KEY`, or Claude fails, a simple file reader drafts the brief instead. It only picks up CSS custom properties (as tokens) and component names from the tree. Add brand, glossary and rules by hand.

## Figma

Not yet. The project's Figma link (*Settings → Code and content*) is only stored, and nothing reads it. Reading Figma styles and frames into the brief needs a Figma access token. It is planned, not built.

## Cost

One draft is one call to Claude on the server's key, using the default model (Haiku 5.5), with at most about 40,000 tokens in. That is under one cent per draft.
