Claude Code CLAUDE.md Permission Recipe: दोहराया context और risky access घटाना
CLAUDE.md rules, permission boundaries और proof commands को जोड़ने वाली beginner-friendly recipe।
Claude Code की कई failures कमजोर model से नहीं, बल्कि हर session में बदलते project rules से होती हैं। साफ CLAUDE.md और permission recipe repeated context, risky edits और missing verification को घटाती है।
यह article beginner के लिए पहली recipe दिखाता है। लक्ष्य agent को बंद करना नहीं, बल्कि read-only context, ask-before areas, never-touch areas और proof commands को अलग करना है।
संबंधित लेख: permission safety ladder, Obsidian to CLAUDE.md workflow, getting started guide.
यह तरीका क्यों काम करता है
CLAUDE.md memory नहीं, work contract है। जब यह proof commands, protected directories और PDF, Gumroad, consultation paths लिखता है, तब development और publishing दोनों में मदद करता है।
permission recipe उस contract को behavior में बदलती है। read-only, ask-before, never-touch और auto proof commands अलग करने से Claude Code के आगे निकल जाने का जोखिम घटता है।
व्यावहारिक प्रक्रिया
- CLAUDE.md में goal, quality bar, proof commands और revenue paths लिखें
- file areas को read-only, ask-before और never-touch में बांटें
- वे proof commands लिखें जिन्हें बिना extra approval चलाया जा सकता है
- deploy, deletion और irreversible actions को human confirmation के पीछे रखें
- publish के बाद h1, opening body, CTA और Gumroad links screenshot करें
| स्थिति | सुरक्षित कदम | प्रमाण |
|---|---|---|
| solo site | article body edits allow करें; forms और APIs ask-before रखें | build और public URL |
| team PR | diff review allow करें; push और deploy request तक रोकें | PR diff |
| revenue page | product links, prices और inquiry forms protect करें | click check |
कॉपी करने योग्य प्रॉम्प्ट और कोड
इस project के लिए CLAUDE.md permission recipe बनाइए। read-only, ask-before, never-touch, auto proof commands, public URL checks और free PDF, Gumroad products, consultation path protection rules शामिल करें।
const permissionRecipe = {
readOnly: ["README.md", "package.json", "src/routes/"],
askBefore: ["site/src/layouts/", "scripts/", "wrangler.toml"],
neverTouch: [".env", "billing/", "customer-data/"],
proofCommands: ["npm.cmd run build", "git diff --stat"]
};
function canRunWithoutAsking(command) {
return permissionRecipe.proofCommands.includes(command);
}
console.log(canRunWithoutAsking("npm.cmd run build"));
console.log(canRunWithoutAsking("wrangler pages deploy"));
उदाहरण real config file नहीं है। यह decision को compact रूप में model करता है। इसे team permissions, CI और deploy flow के अनुसार बदलें।
तीन वास्तविक उदाहरण
पहला setup
Claude Code को README और package.json पढ़ने दें, फिर पहली edit से पहले CLAUDE.md बनाएं। पहली edit एक file तक रखें।
बहुभाषी लेख
सिर्फ slug और frontmatter पर भरोसा न करें। opening body और CTA target locale में हों, यह rule और screenshot proof रखें।
consultation से पहले
permission table, blocked areas और proof commands लेकर जाएं। call vague advice की जगह implementation session बनती है।
इन गलतियों से बचें
- CLAUDE.md में केवल principles लिखना, concrete blocked areas नहीं।
- सुविधा के लिए deploy या deletion allow करना।
- product links और inquiry forms को ordinary content files जैसा मानना।
बहुत लंबे rules ignore हो जाते हैं। छोटा शुरू करें और हर real failure के बाद एक rule जोड़ें।
मुफ्त PDF, Gumroad और परामर्श से जोड़ना
यदि basics shaky हैं, मुफ्त cheatsheet पास रखें। CLAUDE.md, permissions, hooks, MCP और CI के लिए Setup Guide तेज paid path है।
standard review और debugging requests के लिए 50 Prompt Templates उपयोग करें। team rules या revenue paths design करने हों तो consultation लें। संसाधन products पर तुलना करें।
प्रकाशन से पहले और बाद में जांच
publish से पहले देखें कि article और नया CLAUDE.md rule permission recipe से टकराता नहीं है। publish के बाद हर locale में mobile width पर h1, opening body, CTA और product links देखें।
आगे देखने वाली संख्याएँ
Setup Guide clicks, PDF starts, consultation visits और related permission articles के clicks देखें। यदि consultation बढ़ती है, readers को template से ज्यादा operating design चाहिए।
30 मिनट की operations review
जब CLAUDE.md permission recipe वास्तविक काम में जाता है, सबसे उपयोगी review अगले दिन होती है। run log पढ़कर allowed scope, बदली हुई files, proof commands और देखे गए public pages लिखें। केवल “checked” न लिखें। receipt साफ रखें: mobile h1, opening paragraph, CTA area, Gumroad link और consultation path।
फिर worker confidence और reader behavior अलग देखें। worker side पर blocked areas न छूना, build proof, वही public slug और translated pages में English body न रहना जरूरी है। reader side पर next step साफ होना चाहिए: command fluency के लिए free PDF, repeatable bottleneck के लिए Gumroad, workflow design के लिए consultation।
आखिर में review को अगली बार की एक rule बनाएं। हर समस्या पर दस rules न जोड़ें। एक rule जोड़ें: layout edit से पहले ask, production पर हर Gumroad URL click, या हर locale की opening body screenshot। रोज चलने वाला छोटा rule लंबी policy से मजबूत होता है।
मुफ़्त PDF: Claude Code cheatsheet
Email डालें और commands, review habits तथा safe workflow वाली एक-page PDF पाएँ.
हम आपका data सुरक्षित रखते हैं और spam नहीं भेजते.
लेखक के बारे में
Masa
Claude Code workflow और team adoption पर काम करने वाला engineer.
संबंधित लेख
Claude Code first repo audit checklist: पहली edit से पहले codebase map करें
20 मिनट में scope, risk area, proof command और revenue CTA जांचने की beginner-friendly checklist.
Claude Code Harness Lite: शुरुआती बदलावों के लिए छोटा सुरक्षित ढांचा
Claude Code में पढ़ना, edit, proof, public URL और revenue CTA अलग रखने वाला शुरुआती workflow.
Claude Code Repo Map First Pass: पुराने कोडबेस को सुरक्षित तरीके से पढ़ना
Claude Code से पुराने repository को edit करने से पहले समझने का सुरक्षित तरीका: repo map, छोटी task, proof, मुफ्त PDF, Gumroad और सलाह।