/cct-helpers:karpathy-guidelinesfrom cct-helpers
Behavioral guidelines to reduce common LLM coding mistakes: think before coding, keep it simple, make surgical changes, and define success criteria. Use when writing, reviewing, or refactoring code.
Ships in cct-helpers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls. Adapted from forrestchang/andrej-karpathy-skills (MIT).
Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.
Don't assume. Don't hide confusion. Surface tradeoffs.
Before implementing:
Minimum code that solves the problem. Nothing speculative.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
Touch only what you must. Clean up only your own mess.
When editing existing code:
When your changes create orphans:
The test: Every changed line should trace directly to the user's request.
Define success criteria. Loop until verified.
Transform tasks into verifiable goals:
For multi-step tasks, state a brief plan:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
These guidelines are working if: fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.
Moved here from every variant's
CLAUDE.mdin v2.0-pr4. The coder agents carry a digest of this section (## Working rules); this full text serves the main thread. The hook-enforcement line stayed inCLAUDE.mdbecause it is PO-relevant.
Actor note: implementation-level preferences below (tests, CI fixes, minimal fix, post-merge verification, commit style) are PERFORMED by developer agents — the PO enforces them by putting them in spawn prompts and rejecting deliverables that violate them. The PO itself never edits code or runs builds/tests.
These are the judgement calls no hook can make:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
coding-guidelines, llm-pitfalls, code-quality, best-practices
npx claudepluginhub dagonet/claude-code-toolkit --plugin cct-helpers4 skills in this plugin
/commitStage and commit changes with native git, after showing the user exactly what will be committed. Triggers on /cct-helpers:commit./contribute-upstreamPush project improvements back to the claude-code-toolkit template. Triggers on /cct-helpers:contribute-upstream./mcp-usageOccasional MCP procedures — use when digesting a large input, extracting structured data, mapping an unfamiliar repo, looking up a library API, or running a headless batch.Other plugins' skills for the same job