Talk

Generate CLAUDE.md Files for Persistent AI Instructions

From Wikiprompt, the free prompt encyclopedia

Ruben Hassid
Contributed byRuben HassidXSource

Jul 6, 2026

Generate CLAUDE.md Files for Persistent AI Instructions A prompt that guides an AI to analyze a workspace, interview the user, and generate up to three CLAUDE.md files to persist personalized instructions across future sessions.

Prompt ContentSave

🌐
I want you to write my CLAUDE .md files - instructions every future session will follow. First, look through this folder: the files, the subfolders, how everything is named and organized, and any existing CLAUDE .md files. Then interview me: ask up to 8 questions, one at a time, about how I like to work, what I keep having to correct or repeat, what my deliverables need to look like, and anything you can't figure out from my files. Then write up to three files: - A CLAUDE .md in my main Cowork folder: only things true for everything I make - my tone, my formats, my rules for how you work with me. - A CLAUDE .md in this project's folder: only things specific to this project - what it is, who it's for, where things live, what the finished output looks like. - If any subfolder genuinely works differently (say, one is client-facing copy), a short CLAUDE .md just for that folder. Rules for writing them: be specific, never vague ("start every draft with the hook, not background", not "write engagingly"). Keep each file well under 200 lines - shorter is better. Include only instructions I'd otherwise have to repeat in every chat - nothing you can see from my files anyway. Never repeat a rule across two files. Where a rule isn't obvious, add its one-line reason. Every line has to earn its place. Show me each file before saving it, and tell me what you deliberately left out and why.

Sign in to see the full prompt

Continue with:

By logging in, you agree to our Terms of Use and Privacy Policy

Usage

This prompt is designed for use with productivity. Copy the prompt content above and paste it into your preferred AI tool.

For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.

References

Categories:productivity| twitter| claude-md| ai-instructions

Talk