product-context-builder
Skill91 starsChanged 6 months agoMITView on GitHub
Create or improve a repo's AGENTS.md, CLAUDE.md, PRODUCT.md, DESIGN.md, and project skills so AI agents can use the product and design system accurately.
In this repository22 other files it gives its agents.
- accessibilitySkill
- agentic-design-systemsSkill
- ai-component-metadataSkill
- business-kickoff-workshopSkill
- cavemanSkill
- create-prdSkill
- create-skillSkill
- extract-design-systemSkill
- figma-generate-designSkill
- figma-useSkill
- find-skillsSkill
- frontend-designSkill
- marketing-psychologySkill
- performance-review-360-peerSkill
- performance-review-managerSkill
- performance-review-self-assessmentSkill
- pr-branch-namingSkill
- presentationSkill
- prompt-engineerSkill
- ux-auditSkill
- web-design-guidelinesSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Do not generate every file automatically.
- Distinctive: line 25
Create or update AGENTS.md when multiple coding agents need stable repository instructions.
- Distinctive: line 26
Create or update CLAUDE.md when Claude Code needs tool-specific guidance that is meaningfully different.
- Very specific: line 27
Create PRODUCT.md when agents need durable product judgment: audience, purpose, personality, principles, references, and anti-references.
- Very specific: line 28
Create DESIGN.md when a real visual system or component library can be documented from evidence.
- Distinctive: line 29
Create a project skill only for a repeatable task with a recognizable trigger and a stable workflow.
- Distinctive: line 31
Read the matching guide before drafting a file:
- Very specific: line 39
Use the templates in assets/templates/ as prompts for evidence, not forms that must be filled mechanically.
- Distinctive: line 49
Ask the user to review strategic judgment before treating it as durable context.
- Very specific: line 59
Do not copy the full contents of PRODUCT.md or DESIGN.md into AGENTS.md or CLAUDE.md.
- Distinctive: line 63
Read validation, check every generated file against the repository, and summarize:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Product Context Builder
Build a compact, connected context system grounded in the user's real product and repository. The finished files should help an AI agent understand the codebase, the product judgment behind it, the visual system it must reuse, and the task-specific workflows it can load when relevant.
Start by discovering what exists
Inspect the repository before interviewing the user. Locate:
- existing
AGENTS.md,CLAUDE.md,PRODUCT.md,DESIGN.md, and skill folders - package scripts, build and test commands, source directories, and contribution rules
- UI components, Storybook stories, theme files, CSS variables, Tailwind configuration, and token packages
- product documentation, PRDs, research, brand guidance, and accessibility requirements
Report what you found, what can be inferred safely, and what needs a human answer. Never invent commands, component names, product positioning, tokens, or constraints.
Choose the files that earn their place
Do not generate every file automatically.
- Create or update
AGENTS.mdwhen multiple coding agents need stable repository instructions. - Create or update
CLAUDE.mdwhen Claude Code needs tool-specific guidance that is meaningfully different. Keep shared rules aligned withAGENTS.md. - Create
PRODUCT.mdwhen agents need durable product judgment: audience, purpose, personality, principles, references, and anti-references. - Create
DESIGN.mdwhen a real visual system or component library can be documented from evidence. - Create a project skill only for a repeatable task with a recognizable trigger and a stable workflow.
Read the matching guide before drafting a file:
- Always-loaded files
- PRODUCT.md
- DESIGN.md
- Project skills
- Validation
Use the templates in assets/templates/ as prompts for evidence, not forms that must be filled mechanically. Remove empty and irrelevant sections.
Work in reviewable passes
Draft one file at a time and explain:
- which repository evidence shaped it
- which statements came from the user
- which questions or conflicts remain
Ask the user to review strategic judgment before treating it as durable context. Product personality, anti-references, exceptions, and hard constraints need explicit confirmation.
Keep the layers connected
The always-loaded file should contain the smallest useful routing rule. For example:
Before writing or changing UI, read PRODUCT.md and DESIGN.md. Reuse documented components and tokens. If the system does not cover a design need, ask before creating a new pattern.Do not copy the full contents of PRODUCT.md or DESIGN.md into AGENTS.md or CLAUDE.md. Do not hide universal repository rules inside a task skill.
Finish with a context audit
Read validation, check every generated file against the repository, and summarize:
- files created or updated
- evidence used
- contradictions resolved
- assumptions still awaiting confirmation
- the next real task the user should test with the new context system
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

