Back/Personal/Claude
IntermediatePersonal

How to Create a Granular Context Library for 'Lazy Prompting' with AI

Give Claude a useful map of your work without loading everything at once. Store focused context in small Markdown files, connect them with profile indexes, and let short prompts pull only the files relevant to the task.

How to Create a Granular Context Library for 'Lazy Prompting' with AI

Teresa opens her LLM context vault, explains why one large CLAUDE.md became noisy, and shows profile indexes that route Claude to small business or personal context files.

Before you start

What you need

  • A local Markdown folder or Obsidian vault
  • Claude Code or another coding agent
  • A few recurring tasks where background context matters

What you’ll make

A context library of focused files and lightweight indexes that lets Claude find the right background from a short request.

Tools used

Step by step

The workflow

Follow the sequence once, then adapt the prompts, checks, and handoffs to your own setup.

4 steps

Step01

Deconstruct Your Context into Small Files

Create an LLM context folder and split durable knowledge into narrow Markdown files. Useful boundaries include one audience, product, writing style, channel, or personal topic per file. Keep each file focused enough that Claude can load it without dragging unrelated information into the session.

Step02

Create Index Files as Maps

Create profile indexes for broad areas such as business and personal context. Each index should describe what is available and link to the specific files Claude may need, without copying their contents.

Example prompt
# Business context index

Use this file to locate business context.

- Company overview: `business/company-overview.md`
- Audience: `business/audience.md`
- Writing style: `business/writing-style.md`
- Course details: `business/products/course-name.md`
- Marketing channels: `business/marketing-channels.md`

Load only the files relevant to the current request.
Step03

Instruct the AI to Use the Index

Keep the global CLAUDE.md brief. Tell Claude which profile index to open for business work and which to open for personal questions. Let those indexes route the next choice so an unrelated request never loads the whole library.

Example prompt
For business requests, start with `llm-context/business-profile.md`. For personal requests, start with `llm-context/personal-profile.md`. Follow the selected index and load only the detail files needed for the current task.
Step04

Build the Library Iteratively

Grow the library from real work. At the end of a useful session, ask Claude what durable knowledge should be captured, then decide whether to update an existing file or add one focused file and link it from the right index.

Example prompt
What did we learn in this session that will matter next time? Propose updates to existing context files first. If a new file is needed, keep it focused on one subject and show where it should be linked from the relevant profile index. Do not save transient conversation details.

This iterative process is key. As you use the system, you'll naturally identify gaps in its knowledge, which you can then fill by creating or updating a small context file.

What good looks like

  • The global instruction points to indexes rather than loading the whole library.
  • Each context file covers one subject and can be updated independently.
  • A short task prompt causes Claude to load the relevant profile and detail files.
  • Unrelated personal or business context stays out of the session.

Build your next product with ChatPRD

Turn an idea into a PRD, user stories, and a plan.

Try ChatPRD free

After the steps

Runbook notes

How to recover when the loop fails and where human judgment helps.

Recover

If it goes sideways

Claude loads too much irrelevant context
Move detailed material out of the global CLAUDE.md. Keep only routing instructions there, then split large files by product, audience, or task.
Claude does not find a relevant file
Add a plain language description and link to the nearest profile index. Test the route with the short prompt you actually plan to use.
The library contradicts current decisions
Give each subject one canonical file, update it when a decision changes, and remove or redirect duplicate notes.

Start shipping
better products.

Join 100,000+ product managers who use ChatPRD to write better docs, align teams faster, and build products users love.

Free to start
No credit card
SOC 2 certified
Enterprise ready