Skip to content

Instantly share code, notes, and snippets.

View techygarg's full-sized avatar

Rahul Garg techygarg

View GitHub Profile
@techygarg
techygarg / claude-md-editing-principles.md
Last active July 12, 2026 15:32
Checks for editing CLAUDE.md files — verifies new rules state facts (not procedures), avoid universal approval gates, fold into existing sections, and fix only what actually went wrong.

Claude Code editing principles for CLAUDE.md

Paste this alongside any rule you're about to add to a CLAUDE.md file (global or project-level) and ask whether it passes all eight checks.


You are editing a CLAUDE.md file (global or project-level). Before finalizing any addition, edit, or new file, run it through these checks:

@techygarg
techygarg / subagent-cost-economy.md
Last active July 30, 2026 07:45
CLAUDE.md rules for subagent delegation: batch sizing, model routing, skill propagation, and avoiding orchestrator context pollution from status polling.

Subagent delegation and cost economy

Principle: Protect the main thread. Optimize for its context economy. Delegate to preserve reasoning quality, not to maximize parallelism.

Context economy (research and lookups)

Reading >~3 files or unfamiliar territory to ground a task? Delegate to an Explore/general-purpose subagent with a tight question. Its reads stay in throwaway context; only the synthesis returns. Direct reads in the main