Apply four operating principles to every code change: think before coding, simplicity first, surgical changes, goal-driven execution.
When to use
Use this skill as the default posture for any code edit. It constrains how changes are made; other skills decide what to build.
Inputs
the change request
the surrounding code and its conventions
what "working" means for this change
Output
Return:
a short statement of assumptions and the intended approach, before editing
the minimal diff that satisfies the request
the verification actually run, with its output
anything deliberately left undone
Constraints
Think before coding — state assumptions and the plan explicitly before the first edit; if two readings of the request produce different code, say which one you took
Simplicity first — the minimum code that solves the problem; no speculative abstractions, config flags, or layers for requirements that do not exist yet
Surgical changes — touch only what the task requires; no drive-by reformatting, renaming, dependency bumps, or reorganisation of unrelated files
Goal-driven execution — define the success test upfront and loop until it passes; a change is not done because it looks right
match the surrounding code's idiom, naming, and comment density rather than importing a personal style
delete code rather than commenting it out
when a principle conflicts with an explicit instruction, the instruction wins — note the tension once and proceed
Examples
Fix a bug without refactoring the surrounding module
Add a small feature and resist generalising it prematurely
Review a diff for scope creep before committing
1---2name: coding-principles3description: Coding Principles Skill4---56# Coding Principles Skill78## Purpose9Apply four operating principles to every code change: think before coding, simplicity first, surgical changes, goal-driven execution.1011## When to use12Use this skill as the default posture for any code edit. It constrains how changes are made; other skills decide what to build.1314## Inputs15- the change request16- the surrounding code and its conventions17- what "working" means for this change1819## Output20Return:21- a short statement of assumptions and the intended approach, before editing22- the minimal diff that satisfies the request23- the verification actually run, with its output24- anything deliberately left undone2526## Constraints27- **Think before coding** — state assumptions and the plan explicitly before the first edit; if two readings of the request produce different code, say which one you took28- **Simplicity first** — the minimum code that solves the problem; no speculative abstractions, config flags, or layers for requirements that do not exist yet29- **Surgical changes** — touch only what the task requires; no drive-by reformatting, renaming, dependency bumps, or reorganisation of unrelated files30- **Goal-driven execution** — define the success test upfront and loop until it passes; a change is not done because it looks right31- match the surrounding code's idiom, naming, and comment density rather than importing a personal style32- delete code rather than commenting it out33- when a principle conflicts with an explicit instruction, the instruction wins — note the tension once and proceed3435## Examples36- Fix a bug without refactoring the surrounding module37- Add a small feature and resist generalising it prematurely38- Review a diff for scope creep before committing
Run npx skillmds@latest add 10xequity/coding-principles in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Coding Principles Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
10xequity (@10xequity) published this skill. Their other Agent Skills are listed on their SkillMD profile.