
Coding Guidelines
Based on Andrej Karpathy's guidelines, this addresses the habits that trip up LLMs when writing code. It pushes for stating assumptions upfront, keeping implementations minimal without speculative features, making surgical edits that don't refactor unrelated code, and defining verifiable success criteria before starting work. The "think before coding" section is especially pointed about surfacing confusion rather than silently picking an interpretation. Use it when you're actually writing or modifying code, not for architecture discussions or documentation. It's opinionated about simplicity over flexibility, which means you'll need to override it when building genuinely extensible systems.
- skills.sh installs
- 338
- GitHub stars
- 7.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add tech-leads-club/agent-skills --skill coding-guidelines --agent claude-codeInstalls into .claude/skills of the current project.
Files
Coding Guidelines
Behavioral guidelines to reduce common LLM coding mistakes. These principles bias toward caution over speed—for trivial tasks, use judgment.
1. Think Before Coding
Don't assume. Don't hide confusion. Surface tradeoffs.
Before implementing:
- State assumptions explicitly. If uncertain, ask.
- If multiple interpretations exist, present them—don't pick silently.
- If a simpler approach exists, say so. Push back when warranted.
- If something is unclear, stop. Name what's confusing. Ask.
- Disagree honestly. If the user's approach seems wrong, say so—don't be sycophantic.
2. Simplicity First
Minimum code that solves the problem. Nothing speculative.
- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility" or "configurability" that wasn't requested.
- No error handling for impossible scenarios.
- If you write 200 lines and it could be 50, rewrite it.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
3. Surgical Changes
Touch only what you must. Clean up only your own mess.
When editing existing code:
Sponsors
Details
- Repository
- github.com/tech-leads-club/agent-skills
- Categories
- Documentation, Code Review & Quality, AI & Agent Building, Debugging, Design & UI/UX
- First seen
- Jun 3, 2026
More from tech-leads-club/agent-skills
All 22- Mermaid Studio335
- Perf Lighthouse332
- Decomposition Planning Roadmap314
- Docs Writer301
- Playwright Skill297
- Perf Astro286
- Coupling Analysis282
- Perf Web Optimization278
- Best Practices276
- Jira Assistant261
- Cursor Subagent Creator259
- Accessibility253
- Excalidraw Studio251
- Seo236
- Figma Implement Design234
- Tlc Spec Driven1.3K
- Subagent Creator941
- Technical Design Doc Creator639
- Security Best Practices378
- Domain Analysis368
- Nestjs Modular Monolith344