What you'll learn: What context files are, which five files matter, how to create them, and why they change everything about how AI works for PM teams.
When you ask ChatGPT to write a PRD, the first thing it says is "tell me about your product." You explain. It gives you something decent. Next week, you need another PRD. Same question. Same explanation. Same starting point.
When you ask Claude Code with context files, it already knows your product. It knows your users. It knows your competitive landscape. It writes the PRD referencing your actual positioning, your real personas, and the features you shipped last month.
That is the difference between a chat tool and a system. Context files for Claude Code are what make that difference possible. They are the single most important concept for any PM using Claude Code, and the reason agentic AI works differently than chat AI for product work.
This article explains what context files are, which ones matter, and how to create them. If you already have Claude Code installed and want to follow along, the setup guide covers the full installation process.
Context files are the first thing Claude looks at before answering any of your questions. Think of them as the "hello, my name is" for your product — once they're in place, Claude already knows who you are, what you're building, and who you're building it for. Every session starts from knowledge instead of a blank slate.
What Context Files Are
Context files are markdown files that sit in a context/ folder inside your project directory. They describe the world your product lives in: your company, your product, your users, and your competitors.
Claude Code reads these files automatically at the start of every session. You don't paste them in. You don't reference them in your prompt. They're just there, loaded into every interaction, giving the AI the background knowledge it needs to produce useful output.
The concept is simple. The impact is not.
Without context files, every Claude Code session starts from zero. With them, every session starts from a shared understanding of your business. The AI knows what you're building, who you're building it for, and who you're building it against. It doesn't ask. It already knows.
Here's what the structure looks like on your computer:
your-product/
├── context/
│ ├── company.md
│ ├── product.md
│ ├── personas.md
│ ├── competitors.md
│ └── goals.md
├── CLAUDE.md
└── ... your other project files
That's it. Five markdown files in a folder, plus one configuration file at the root. No database. No special software. No proprietary format. Just text files that Claude Code reads every time you start a session.
Instead of re-explaining your product at the start of every AI conversation, you explain it once, in files, and it persists forever.
If you've read The Copy-Paste Illusion, context files are the direct answer to the problem that article describes.
The Five Core Context Files
Each context file serves a specific purpose. Together, they give Claude Code a complete picture of your business. Here's what goes in each one and why it matters.
company.md
This file describes who you are as an organization. Your mission. Your values. Your market position. Your stage and size. The strategic bets you're making right now.
A typical company.md includes:
- Mission and values — What you exist to do, and the principles that guide decisions
- Market position — Where you sit in the landscape, what gap you fill
- Company stage — Seed, Series A, Series B, bootstrapped. This shapes everything from risk tolerance to resource constraints
- Team size and structure — How many people, how the org is organized
- Strategic priorities — What matters this quarter, what trade-offs you've made
Why it matters: Every output Claude Code produces should align with who you actually are. When /positioning-statement-generator writes your positioning, it should reflect a bootstrapped Series A company competing against enterprise incumbents, not a generic SaaS startup. When /okr-coach helps you set objectives, it should understand your constraints and ambitions. company.md is the foundation that makes that alignment automatic.
Without this file, the AI defaults to generic assumptions. With it, every skill run produces output that sounds like it came from someone who works at your company.
product.md
This file describes what you're building. The current state of the product, the features that are live, the roadmap ahead, and the problems you're solving.
A typical product.md includes:
- What the product is — A clear description of what it does and how it works
- Who it's for — The target market and use cases (this overlaps with personas, and that's fine)
- Current features — What's live today, what users can actually do
- What's coming — The near-term roadmap, what you're building next
- Key metrics — The numbers that define success for the product
- How it's different — The core differentiators that matter in your market
Why it matters: PRDs, roadmaps, strategy documents, and status updates all need to reference your actual product. When /prd-generator writes a spec, it should reference existing features and upcoming plans. When /roadmap-builder creates a roadmap, it should know what's already shipped and what's in flight. product.md gives every skill the product knowledge it needs to produce output that reflects reality, not a blank canvas.
Watch out — This is the file that prevents the single most frustrating AI failure: output that's technically correct but completely disconnected from what you're actually building.
personas.md
This file describes your users. Not demographic profiles — real people with real jobs, real pain points, and real definitions of success.
A typical personas.md includes:
- User archetypes — The 2-4 distinct types of people who use your product
- Jobs to be done — What each persona is trying to accomplish (functional, emotional, and social)
- Pain points — What's hard or broken in their current workflow
- Current behavior — How they solve these problems today, before your product
- What success looks like — How they'd know your product is working for them
- Quotes — Real words from real users (if you have them) that capture how they think and talk
Why it matters: User research, interview guides, and user stories all need to reference real people. When /interview-guide-creator builds a guide, it should ask questions relevant to your actual users' jobs to be done. When /user-story-writer writes stories, it should reference the pain points your personas actually experience. When /research-synthesis-engine processes interview transcripts, it should map findings back to your defined user archetypes.
personas.md is what turns generic AI output into output that reflects your users' world. The difference is visible immediately. A PRD written with persona context includes user stories that sound real. A PRD written without it includes user stories that sound like a textbook.
competitors.md
This file maps your competitive landscape. Who you compete with, where you win, where you lose, and what differentiates you.
A typical competitors.md includes:
- Direct competitors — Products that solve the same problem for the same users
- Indirect competitors — Alternative approaches your users might choose instead
- Per-competitor breakdown — What they do, their strengths, their weaknesses, their pricing
- Your differentiation — Where you win and why, stated clearly
- Competitive dynamics — How the market is moving, what trends matter
Why it matters: Competitive analysis, positioning, and go-to-market strategy all depend on knowing the landscape. When /competitive-profile-builder analyzes a new entrant, it should compare them against your existing competitive map. When /positioning-statement-generator writes positioning, it should reference what makes you different from specific alternatives. When /gtm-strategy builds a launch plan, it should account for competitive dynamics.
competitors.md prevents the kind of output where the AI tells you to "differentiate on quality and customer service" — which is what every company says when the AI doesn't know your actual market. With this file, competitive skills produce analysis grounded in your real landscape.
goals.md
This file tells Claude what you're trying to accomplish this quarter — your objectives, key results, and the initiatives that matter most right now.
A typical goals.md includes:
- This quarter's objective — One sentence: what does winning look like this quarter?
- Key results — Measurable outcomes with real numbers attached
- Product goals — What product must deliver and how each initiative connects to the objective
- What you're not prioritizing — Explicit decisions to defer — this is often as valuable as the priority list
- Key dates — Milestones and deadlines that constrain the quarter
- Biggest risks — What could derail the objective
Why it matters: Goals give Claude the north star for every recommendation. /roadmap-builder without goals context might suggest a balanced portfolio of features. /roadmap-builder with a goals.md that says "retention is the only metric this quarter" produces a roadmap where every initiative maps to churn reduction. The same shift applies to /prd-generator, /experiment-designer, /ship-decision, and anything that touches prioritization.
Without goals.md, the other four context files tell Claude about your product — but not what winning looks like right now. Skills will make implicit assumptions about your stage and priorities that may be completely wrong for your current quarter.
Tip — goals.md is the file that /welcome generates with the least source material — since your quarterly objectives aren't on your website. Review it carefully after the initial run and enrich it with your real targets, key dates, and what you're explicitly not prioritizing this quarter.
The Configuration File: CLAUDE.md
The four context files describe your business. CLAUDE.md is different. It describes how Claude Code should behave.
CLAUDE.md lives at the root of your project folder (not inside the context/ folder). It's the project instruction file — Claude Code reads it first, before anything else, and uses it to configure its own behavior.
Where context files answer "what are we building and for whom," CLAUDE.md answers "how should the AI work with us."
A CLAUDE.md for PM work typically includes:
- Tone and voice — "Write in a direct, concise style. Avoid buzzwords. No exclamation marks."
- Preferred frameworks — "Use Marty Cagan's opportunity assessment for PRDs. Use Teresa Torres's continuous discovery for research synthesis."
- What to avoid — "Don't suggest features we've already ruled out. Don't recommend tools we've already evaluated."
- Output preferences — "Keep PRDs under 3 pages. Use bullet points over paragraphs for status updates."
- Team conventions — "We use Now/Next/Later for roadmaps. We track OKRs quarterly."
This is how you configure AI behavior for your team. Instead of each PM writing their own "please use this format" instruction at the start of every prompt, the instructions live in a file that applies to every session, for every PM, automatically.
Tip — CLAUDE.md is where context files compound over time. As you learn what works, add instructions: "Always include pricing comparison in competitive analyses." Six months in, your CLAUDE.md encodes dozens of lessons that make every future output better.
For a detailed walkthrough of creating your first CLAUDE.md, the setup guide covers it step by step.
Why This Changes Everything
Context files aren't a feature. They're a structural shift in how AI works for PM teams. Three things change when context is persistent instead of pasted.
Accumulation Instead of Repetition
Without context files, every AI interaction is independent. You explain the product. You get output. The output goes into a Google Doc. Tomorrow, you start over.
With context files, every interaction builds on the ones before it. The competitive analysis you ran last month lives in a file that your PRD skill can reference. The research synthesis from your last interview round connects to the user stories you write this sprint. The positioning you refined feeds into the launch messaging you create next quarter.
This is the difference between using AI as a one-shot tool and using it as an accumulating system. Each run adds knowledge. Each output connects to what came before. Over weeks and months, the system gets more useful — not because the AI gets smarter, but because your context gets richer.
Example — Run /enhance-context after a competitive win-loss analysis and it updates your context files automatically. The next time any PM runs any skill, that new intelligence is available. Knowledge compounds in files instead of disappearing into chat logs.
Consistency Across the Team
Put two PMs on the same task without context files. One writes a detailed prompt with product background and competitive context. The other writes a two-line request. The outputs are wildly different — not because of talent, but because of setup.
Now put two PMs on the same task with shared context files. Both PMs run /prd-generator. Both get output that references the same product context, the same personas, the same competitive landscape. The quality floor is the same. The frameworks are the same. The output structure is the same.
This doesn't eliminate individual judgment — it should not. A senior PM and a junior PM will still make different decisions about what to prioritize. But the baseline quality of the artifacts they produce is consistent. The Head of Product reviewing two PRDs from two different PMs sees consistent structure, consistent context awareness, and consistent use of frameworks.
For PM teams where consistency is hard to enforce because there's no PM ops function, context files are the standardization layer that doesn't require a process police.
Build this for your team → We set up and manage PM Operating Systems for product teams — context files, shared skills, and the infrastructure to make AI compound across your team. See how it works →
Speed Without Setup Tax
The setup tax is real and it's invisible. Every time a PM opens a new AI conversation and spends five minutes explaining the product, that's five minutes of pure overhead. Multiply by the number of AI interactions per day, per PM, per week.
With context files, the setup tax is zero. You open Claude Code. It reads your context. You run a skill. The output references your product, your users, your market. No explanation needed.
This is the difference between "I use AI when I have time to set it up" and "I use AI for everything because it's always ready." PMs who have context files configured use AI more frequently, for more tasks, with better results — because the barrier to each use is zero.
Over a week, the time saved on context setup alone is measured in hours. Over a month, it's measured in days. And unlike one-off prompt optimization, the savings are permanent. You set up context files once. The setup tax disappears forever.
How to Create Your Context Files
There are two paths. One is manual, the other is automated. Both get you to the same place.
Path 1: Create Them Manually
If you prefer to write your own context, the process is straightforward.
Create a context/ folder in your project directory. Create five markdown files: company.md, product.md, personas.md, competitors.md, and goals.md. Write the content described above for each file. Create a CLAUDE.md at the project root with your team's instructions and preferences.
Tip — You don't need perfect content on day one. A company.md with your mission, stage, and team size is more useful than no company.md at all. Start with what you know. Enrich later.
The setup guide includes detailed templates and examples for each file if you want structure to start from.
Path 2: Automate with /welcome
If you'd rather not start from a blank page, the /welcome skill does the initial setup for you. Point it at your website, your existing product docs, or your pitch deck. It extracts the relevant information and generates all five context files (company.md, product.md, personas.md, competitors.md, and goals.md) plus your CLAUDE.md.
The output isn't perfect — it's a strong starting point that you edit and refine. Most PMs spend 15-20 minutes cleaning up the generated files, adding details the AI couldn't infer, and adjusting tone. That's still faster than writing five files from scratch.
Enriching Over Time
Context files aren't a one-time setup. They're a living system. As your product evolves, your users change, and your competitive landscape shifts, your context should evolve with them.
The /enhance-context skill is designed for this. Feed it a new document — a customer interview transcript, a competitor's funding announcement, a quarterly planning doc — and it updates your context files with the relevant information. Over time, your context gets richer and more accurate without manual maintenance.
This is where the system compound effect becomes visible. Three months of context enrichment means your AI has three months of accumulated product knowledge. Six months means six months. The longer you use it, the more useful it becomes.
Where to Start
If you're new to Claude Code, start with the setup guide. It walks you through installation, project setup, and creating your first context files step by step.
If you already have Claude Code running and want to automate context creation, download the /welcome skill. It generates your initial context files from your existing product documentation.
If you've been using Claude Code without context files — running skills with generic output and re-explaining your product every session — adding context files is the single highest-leverage change you can make. Five markdown files, a focused writing session, and every AI interaction from that point forward starts from knowledge instead of a blank slate.
The PM Operating System includes pre-built context templates along with all 70+ skills, but you don't need to buy anything to start. The files are plain markdown. The format is open. The value is in the content you put in them.
Context files are what separate PMs who use AI from PMs who run on AI. The difference isn't the AI model. It's the context.
About the Author
Ron Yang is the founder of mySecond — he builds and manages PM Operating Systems for product teams. Prior to mySecond, he led product at Aha! and is a product advisor to 25+ companies.