Skip to main content
skill CX Codex

coding-guidelines · tech-leads-club — Claude Code skill: what it does, how to install

Behavioral guidelines to reduce common AI coding mistakes. It forces agents to write minimal code, touch only what is requested, and verify every step.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tech-leads-club/agent-skills --skill coding-guidelines -a claude-code
Open on GitHub

What coding-guidelines does

The skill adapts Karpathy guidelines into four operating principles for coding agents. The agent must stop if confused. It requires the model to state assumptions upfront, surface tradeoffs, and push back on questionable ideas. Multi-step work must follow a plan tied to verifiable checks, like writing a failing test before fixing a bug.

Simplicity and surgical edits sit at the center. The agent cannot touch neighboring code, reformat untouched lines, or add single-use abstractions. If 200 lines can be 50, rewrite it.

This rule set targets active coding, bug fixing, and review. Applying it to architecture design or documentation is explicitly forbidden by the author.

What it helps with

  • Stop agents from refactoring adjacent code or styling without permission
  • Force the agent to write reproducing tests before applying bug fixes
  • Prevent speculative abstractions and unnecessary flexibility in one-off logic
  • Push back against flawed technical decisions before code gets generated

Example prompts for the agent

  • Fix the memory leak in the worker pool using coding-guidelines
  • Refactor the session store using coding-guidelines without breaking existing tests
  • Review this pull request according to coding-guidelines

How to install coding-guidelines

1Skills CLI (Vercel)

npx skills add tech-leads-club/agent-skills --skill coding-guidelines -a claude-code

2Manually: put the files in place

~/.claude/skills/coding-guidelines/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/coding-guidelines/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about coding-guidelines

How do I install coding-guidelines in Claude Code?

Run npx skills add tech-leads-club/agent-skills --skill coding-guidelines -a claude-code. The file will be placed in ~/.claude/skills/coding-guidelines/SKILL.md.

What does coding-guidelines do?

It enforces strict engineering discipline on the agent: minimal diffs, zero speculative abstractions, and goal-driven loops verified with tests.

When should I not use coding-guidelines?

Do not use it for architecture design, documentation, or tasks unrelated to code.

Source text

SKILL.md · MIT
---
name: coding-guidelines
description: Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, modifying, or reviewing code — implementation tasks, code changes, refactoring, bug fixes, or feature development. Do NOT use for architecture design, documentation, or non-code tasks.
metadata:
  author: ale
  version: '1.0.0'
  source: 'Karpathy Guidelines'
---

# 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:

- Don't "improve" adjacent code, comments, or formatting.
- Don't refactor things that aren't broken.
- Match existing style, even if you'd do it differently.
- If you notice unrelated dead code, mention it—don't delete it.

When your changes create orphans:

- Remove imports/variables/functions that YOUR changes made unused.
- Don't remove pre-existing dead code unless asked.

**The test:** Every changed line should trace directly to the user's request.

## 4. Goal-Driven Execution

**Define success criteria. Loop until verified.**

Transform tasks into verifiable goals:

- "Add validation" → "Write tests for invalid inputs, then make them pass"
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
- "Refactor X" → "Ensure tests pass before and after"

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.

© ale · MIT · tech-leads-club/agent-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

coding-guidelines by other authors comes first.

From the same set11

subagent-creator Walks you through writing a subagent: frontmatter, prompt, steps and a report format. Useful when a task needs its own context window. CX Codex +1 909installs technical-design-doc-creator Generates Technical Design Documents, RFCs, and architecture specs through interactive discovery before coding. Useful for aligning migrations, schemas, and team reviews. CX Codex +1 609installs domain-analysis Walks a codebase to find subdomains and suggest where service boundaries belong. Useful before splitting a monolith. CX Codex +1 358installs nestjs-modular-monolith Takes an agent from domain analysis to code: module boundaries, DDD, Clean Architecture and CQRS in a NestJS backend. CX Codex +1 329installs mermaid-studio A skill that builds Mermaid diagrams, validates syntax and renders to SVG, PNG or ASCII. Useful when you need to document architecture or a database schema. CX Codex +1 324installs perf-lighthouse Runs local Lighthouse audits via CLI or Node API, parses reports, and configures performance budgets. Useful for tracking Core Web Vitals and integrating speed checks into CI. CX Codex +1 320installs codenavi Guides the AI through unfamiliar codebases, plans surgical edits, and stores project discoveries in .notebook/. Useful for debugging and refactoring without guesswork. CX Codex +1 312installs decomposition-planning-roadmap Builds a step-by-step decomposition plan and migration roadmap for breaking a monolith into services. Useful when the extraction order is unclear. CX Codex +1 308installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor