Prompt Details
Model
(claude-4-6-sonnet)
Token size
972
Example input
[PROJECT_DESCRIPTION]: A Node.js + TypeScript SaaS backend monorepo with 14 microservices, shared libraries, Prisma ORM, and a test suite exceeding 3,000 files. Active development across auth, billing, and notification services simultaneously.
[TEAM_SETUP]: Solo senior engineer working alone, no subagent budget constraints, context window is the primary bottleneck, needs maximum output per session
Example output
Now I'll build this as a rich, interactive HTML playbook artifact.Here's your complete **Claude Code Session Discipline Playbook** β interactive, tabbed, and built for your exact stack. Here's what each pillar gives you:
**P1 β Scope:** A decision tree for every file-read question, the 4-file ceiling visualized, and two concrete badβgood scope examples pulled from your actual service/Prisma/test structure.
**P2 β File Limit:** The definition of "large" tuned to this monorepo (test files always count, regardless of line count), plus a copy-paste `/read` command sequence for a real auth debugging scenario.
**P3 β /compact:** The 60% threshold explained for your specific project (TypeScript interface chains + Prisma schemas bloat context faster than most), visual warning signals, and the exact 3-turn pre-compact ritual. The "never compact during" list is there to protect you mid-migration.
**P4 β CLAUDE.md:** A ready-to-paste template skeleton plus the before/after comparison showing 127 tokens β 18 tokens on a single entry. The skills pattern keeps your base context clean every session.
**P5 β Checkpoints:** Hook config for `.claude/settings.json`, the ASCII checkpoint template, and the 3 health-check signals that tell you your checkpoint has become a liability.
The **Quick Ref** tab is the desk-pinnable card β all five rules, under 200 words, zero fluff.
By purchasing this prompt, you agree to our terms of service
CLAUDE-4-6-SONNET
Generates a personal Claude Code session discipline playbook: scope investigations narrowly, cap inline file reads at 4, run /compact at 60% fill, keep CLAUDE.md under 500 tokens, and add a 10-turn checkpoint hook.
π§ Cuts token waste by up to 7Γ vs undisciplined agent teams
π Keeps CLAUDE.md lean with on-demand skill files
β‘ /compact timing rules that prevent context cliff-drops
π Scope rules that stop runaway file reads cold
πͺ Session-checkpoint hook setup, ready to paste
...more
Added 1 day ago
