Changelog¶
All notable changes to this project are documented here. Format loosely follows Keep a Changelog.
[1.6.0] - 2026-05-12¶
Added¶
- Agent View guide (
guides/agent-view.md) — covers theclaude agentsdashboard added in Claude Code v2.1.139. When to use it vs. tmux or worktrees, how it interacts with/teams, and triage/cost workflows. Cross-linked bidirectionally withmulti-agent.md,cost-management.md, andcontext-management.md. - Goal Mode guide (
guides/goal-mode.md) — covers the/goalcommand added in Claude Code v2.1.139. Completion-condition patterns (good vs. bad), when goal mode beats plan mode + manual loops, cost implications of "keeps working across turns," and behaviour in interactive,-pheadless, and Remote Control modes. Cross-linked bidirectionally withworkflow-patterns.md,permission-modes.md,cost-management.md, andci-and-automation.md.
Changed¶
- Security guides document
disableSkillShellExecution(new in v2.1.139) inguides/security-practices.mdandguides/security-playbook.md. Added to the recommended defaultclaude_internal/settings.jsonsnippet, the per-user audit checklist, and the security checklist. Threat model: a future malicious plugin update cannot add inlinecurl … | shto aSKILL.mdand have it execute. - MCP guides cover
_meta["anthropic/maxResultSizeChars"](new in v2.1.139).guides/mcp-servers.mdadds a "Handling Large Tool Results" section with a table of when to override the default truncation cap (up to 500K chars).guides/building-custom-mcp-servers.mdadds TypeScript and Python snippets showing how server authors set the annotation, plus guidance on picking a cap and paginating instead of maxing out. - Versions and metadata refreshed. Bumped Claude Code references from
v2.1.122tov2.1.139acrossindex.md,guides/benchmarks.md,guides/context-management.md,guides/cost-management.md,guides/performance-tuning.md,guides/troubleshooting.md,tools/benchmark.sh, and the bug-report template. Opus 4.7 / Sonnet 4.6 / Haiku 4.5 unchanged. - README header updated — "Last updated" bumped to May 12, 2026, version chip to v1.6, "Current release" line in the versioning section set to v1.6.0.
Notes¶
- Benchmark numbers in
guides/benchmarks.mdwere not rerun for this release — only the version-line metadata was bumped. The "Last reference run" date (2026-04-22) is intentionally unchanged. Rerun the harness on a fork withANTHROPIC_API_KEYset if you want fresh numbers under v2.1.139.
[1.5.0] - 2026-04-29¶
Added¶
- Next.js starter kit (
starters/nextjs/CLAUDE.md) — drop-inCLAUDE.mdfor Next.js 15 (App Router) projects with conventions for Server vs. Client Components, server actions, Prisma/auth wiring, and the Vitest + Playwright test layout. Mirrors the structure of the React starter. claude-md-checkerplugin (plugins/claude-md-checker/) —PreToolUsehook onEdit/Writethat runstools/lint-claude-md.shagainst any file whose basename isCLAUDE.md. Blocks the write on lint errors (exit 2) and surfaces the lint output. Warnings (exit 1) pass through. No-ops cleanly when no linter is on disk.
Changed¶
- Versions and model IDs refreshed. Bumped Claude Code references from
v2.1.92tov2.1.122and Opus references from4.6to4.7acrossindex.md,guides/benchmarks.md,guides/cost-management.md,guides/context-management.md,guides/performance-tuning.md,guides/tips-and-tricks.md,guides/troubleshooting.md,tools/benchmark.sh, and the bug-report template. Sonnet 4.6 / Haiku 4.5 unchanged. - README tables updated — added Next.js to the starters table and
claude-md-checkerto the plugins table; bumped the "Last updated" header to v1.5 / 2026-04-29.
Notes¶
- Benchmark numbers in
guides/benchmarks.mdwere not rerun for this release — only the version-line metadata was bumped. Rerun the harness on a fork withANTHROPIC_API_KEYset if you want fresh numbers under v2.1.122.
[1.4.0] - 2026-04-23¶
Added¶
- Dogfooded repo setup —
CLAUDE.mdat repo root andclaude_internal/wiringblock-secrets+format-on-writehooks, a narrow permission allowlist, and a repo-local/lint-docsskill. We use Claude Code to maintain the repo that teaches Claude Code. - Anti-Patterns Gallery (
guides/anti-patterns.md) — 14 annotated bad/fixed pairs across CLAUDE.md, hooks, and prompts, cross-linked to the positive-space guides. - Starter kits (
starters/) — whole-project drop-in kits withCLAUDE.mdandclaude_internal/(settings, skills, hooks) for React, Python, and Go. Each kit is self-contained (hook scripts copied in, not referenced) so it can be dropped into a project with a singlecp -r. - Security Playbook (
guides/security-playbook.md) — covers prompt injection from tool results, plugin supply chain, per-repo and per-user audit checklists, and a recommended defaultclaude_internal/settings.json. - Published site —
mkdocs.yml+requirements-docs.txtwire up mkdocs-material with search, nav mirroring the README sections, and a dark/light palette. Deployed viagithub_internal/workflows/docs.ymlto GitHub Pages on every push tomain. - Benchmarks workflow (bring your own key) —
github_internal/workflows/benchmarks.ymlwires up the harness to run in CI, commit CSVs tobenchmarks/history/YYYY-MM-DD.csv, and regeneratebenchmarks/latest.mdviatools/benchmark-summary.sh. The nightly cron is commented out — running the harness bills the owner ofANTHROPIC_API_KEYfor tokens, and this repo isn't funding that right now. Manualworkflow_dispatchstill works; uncomment theschedule:block on a fork with a key set to turn nightly on. - CI quality gates (
github_internal/workflows/): shellcheck.yml— shellcheck on every.shon push/PR (fails on warnings).markdownlint.yml—markdownlint-cliagainst all markdown with a shared.markdownlint.json.links.yml—lycheelink checker on push/PR and a weekly schedule to catch external rot.lint-claude-md.yml— runstools/lint-claude-md.shagainst everyexamples/claude-md-*.mdand the repo's ownCLAUDE.md.- Status badges for six CI workflows in the README, plus a link to the published site.
- Awesome list (
awesome.md) — curated community plugins, skills, essays, talks, and adjacent tooling, with explicit inclusion criteria so it stays signal-heavy. - Decision trees (
guides/decision-trees.md) — Mermaid flowcharts for "which model?" and "plan mode when?" with plain-text fallbacks for viewers without Mermaid support, calibrated from the benchmark numbers. - Issue and PR templates (
github_internal/ISSUE_TEMPLATE/,github_internal/PULL_REQUEST_TEMPLATE.md) — bug, tool/workflow, and guide request forms withconfig.ymlrouting open-ended questions to Discussions; PR template checklist ties to the style rules inCONTRIBUTING.md. - Social preview card (
github_internal/social-preview.svg) — 1280×640 SVG source. Convert withrsvg-convert, Inkscape, or ImageMagick, then upload via Repo → Settings → General → Social preview. - Extra README badges — License, PRs-welcome, and Awesome-list badges; new Community section linking the awesome list, Discussions, and Issues.
Fixed¶
tools/hooks/block-secrets.shandplugins/commit-helper/hooks/block-secret-commits.sh—grep -Ewas parsing the-----BEGIN …pattern as a flag; added--separator. Caught by dogfooding the hook against the anti-patterns guide draft.plugins/commit-helper/hooks/block-secret-commits.sh— renamed a localcommandvariable that shadowed thecommandbuiltin.tools/hooks/test-on-stop.sh— parenthesized a||/&&chain whose precedence was ambiguous.
Notes¶
- CI badge URLs assume the repo is hosted at
github.com/MuhammadUsmanGM/claude-code-best-practices. Update them if you fork.
[1.3.0] - 2026-04-23¶
Added¶
- Benchmarks guide (
guides/benchmarks.md) — published numbers for model comparison, plan mode on/off, CLAUDE.md payoff, and prompt cache impact, with guidance on how to read the ratios. - Benchmark harness (
tools/benchmark.sh) — reproducible headless harness (claude -p ... --output-format json) that runs a fixed task set across models and emits a CSV with tokens, duration, cost, and outcome. commit-helperplugin (plugins/commit-helper/) — a working Claude Code plugin: Conventional Commits skill plus aPreToolUsehook that blocksgit commitwhen staged content contains secrets.- Example skills (
examples/skills/) — drop-in/changelog,/pr-describe, and/test-triageskills with fullSKILL.mdmanifests. - Standalone hook scripts (
tools/hooks/) —block-secrets,format-on-write, andtest-on-stopas installable.shfiles, each with dry-run instructions and a one-line install recipe.
Changed¶
- README reorganized: new "Plugins and Skills" section, Benchmarks linked under Cost & Efficiency, Toolbox expanded with hooks and harness.
Notes¶
- Benchmark numbers in the guide are representative (from the 2026-04-22 run against a medium Node.js repo). Rerun the harness in your own repo to get numbers that match your setup — the ratios travel; the absolutes don't.
[1.2.0] - 2026-04-05¶
- CLAUDE.md examples for Django, Flutter, Rust, Spring Boot.
- Added cost estimation tool.
- Additional hook recipes.
- Clarified 1M-token context window implications across context/cost/perf/troubleshooting guides.
[1.1.0] - 2026-03¶
- Guides for custom MCP servers, advanced architecture, enterprise patterns, cloud integration, case studies.
[1.0.0]¶
- Initial release: fundamentals, workflows, permissions, advanced topics, cost/efficiency, and reference guides.