Skip to content
Agentmart
Submit a tool

coding-standards

The universal bar for good code — deep modules, design for testability, behavior-driven tests, mocking only at system boundaries, lean clean code.

Skill by noel-lopez

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/noel-lopez-coding-standards

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The universal bar for good code — deep modules, design for testability, behavior-driven tests, mocking only at system boundaries, lean clean code. Use when writing, reviewing, refactoring, or judging the quality of any code, or when the user references coding standards, clean code, or deep modules. Reconciles this universal bar with the repo's own GLOSSARY.md, docs/adr/, and CLAUDE.md/AGENTS.md.

Use cases: design, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/coding-standards

What's inside

Skill name
coding-standards
Description
The universal bar for good code — deep modules, design for testability, behavior-driven tests, mocking only at system boundaries, lean clean code. Use when writing, reviewing, refactoring, or judging the quality of any code, or when the user references coding standards, clean code, or deep modules. Reconciles this universal bar with the repo's own GLOSSARY.md, docs/adr/, and CLAUDE.md/AGENTS.md.
License
MIT
Instructions
69 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • testing.md · references/

SKILL.md (first lines)

# Coding Standards

The universal bar for what good code is.

## Reconcile with the repo first

This bar is the universal floor. Layer the repo's own rules on top — on conflict,
the repo wins:

- `GLOSSARY.md` — the project's domain language and shape.
- `docs/adr/` — recorded architectural decisions.
- `CLAUDE.md` / `AGENTS.md` — explicit instructions for this repo.

## Interface design

**Deep modules** — small interface, deep implementation: a few methods with
simple params hiding complex logic behind them. Avoid shallow modules (large
interface that just passes through to thin implementation). When designing, ask:
can I reduce the number of methods? Simplify the params? Hide more complexity
inside?

**Design for testability**:

1. **Accept dependencies, don't create them** — pass external dependencies in
   rather than constructing them internally.
2. **Return results, don't produce side effects** — a function that returns a
   value is easier to reason about and test than one that mutates state.
3. **Small surface area** — fewer methods = fewer tests; fewer params = simpler
   setup.

**Scrutinise optional parameters** — they are a major source of bugs by
omission. Prioritise correctness over backwards compatibility.

## Clean code

- Reduce nesting and complexity; flatten control flow where you can.
- Eliminate redundancy.
- Clear, intention-revealing names.
- Remove comments that describe obvious code.
- Avoid nested ternaries — prefer `if/else` or `switch`.
- Clarity over brevity.

**Don't over-simplify.** A simpler form isn't better if it buries clarity,
merges unrelated concerns into one unit, removes an abstraction that aided
organization, or makes the code harder to debug. Deep modules ≠ monolithic
functions.

## Testing

Tests verify **behavior through public interfaces, not implementation details**.
Code can change entirely; tests shouldn't break unless behavior changed.

- Test what callers care about, through the public API only.
- One logical assertion per test.
- Mock only at **system boundaries** (external APIs, time/randomness, FS/DB when
  no real instance is practical). **Never mock your own classes/modules or
  internal collaborators** — if something is hard to test without that, redesign
  the interface.

See [references/testing.md](references/testing.md) for GOOD/BAD examples, the
full red-flag list, boundary-mocking detail, and the TDD rationale.

## TDD (when feasible)

Vertical slices, one cycle at a time — `test1→impl1`, then `test2→impl2`, …
Never write all tests first, and never refactor while RED. TDD is complementary:
clean code and deep modules carry the weight.

From noel-lopez/skills, MIT.

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Oct 1, 2026 (28 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from noel-lopez

Cite this page

coding-standards skill. Agent Mart. https://agentmart.dev/skills/noel-lopez-coding-standards (last updated 2026-10-24)