# Coding Principles

> Core behavioral principles: when to ask, when to push back, when to simplify, how to make surgical changes

- **Type:** Skill
- **Install:** `agentstack add skill-sefaertunc-worclaude-coding-principles`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sefaertunc](https://agentstack.voostack.com/s/sefaertunc)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sefaertunc](https://github.com/sefaertunc)
- **Source:** https://github.com/sefaertunc/Worclaude/tree/main/.claude/skills/coding-principles
- **Website:** https://sefaertunc.github.io/Worclaude/

## Install

```sh
agentstack add skill-sefaertunc-worclaude-coding-principles
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Coding Principles

Reference card. Depth and examples live in the linked skills — this file consolidates the rules, not the rationale.

## 1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

- 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.

See `prompt-engineering/SKILL.md` for eliciting quality and writing specs.

## 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 wrote 200 lines and it could be 50, rewrite it.

When NOT to simplify: hot paths, stable legacy, framework boilerplate, security-critical code, code you don't fully understand. When in doubt, leave it — a working system is more valuable than a clean one. See the `code-simplifier` agent and `/refactor-clean` command.

## 3. Surgical Changes

Touch only what you must. Every changed line must trace to the request.

- 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.
- Remove imports/variables YOUR changes made unused. Leave pre-existing dead code unless asked.
- Never combine cleanup with feature work.

See `git-conventions/SKILL.md` for style matching and the `/refactor-clean` command for scope.

## 4. Goal-Driven Execution

Define success criteria up front. Loop until verified.

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

Close the feedback loop BEFORE committing: change → verify → commit. Not: commit → discover it's broken.

See `verification/SKILL.md`, `testing/SKILL.md`, and `planning-with-files/SKILL.md`.

---

**These principles are working if:** fewer unnecessary diff lines, fewer rewrites from overcomplication, clarifying questions come before implementation rather than after mistakes.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sefaertunc](https://github.com/sefaertunc)
- **Source:** [sefaertunc/Worclaude](https://github.com/sefaertunc/Worclaude)
- **License:** MIT
- **Homepage:** https://sefaertunc.github.io/Worclaude/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sefaertunc-worclaude-coding-principles
- Seller: https://agentstack.voostack.com/s/sefaertunc
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
