Skip to content
Back to skills

Exec Coding Standards

ASecurity

Language-agnostic senior-developer coding standards to embed into every Codex execution prompt — KISS/DRY/YAGNI, immutability, error handling, validation, naming, structure limits.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
ai-agentsgoexpressapi

Works with

  • api

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add anhnguyen0905/codex-mcp --skill exec-coding-standards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exec Coding Standards?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Exec Coding Standards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anhnguyen0905-exec-coding-standards/badge)](https://www.skillsdirectory.com/skills/anhnguyen0905-exec-coding-standards)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: exec-coding-standards
description: Language-agnostic senior-developer coding standards to embed into every Codex execution prompt — KISS/DRY/YAGNI, immutability, error handling, validation, naming, structure limits.
---

# Coding Standards (embed into Codex prompts)

These rules go INTO the `codex_execute` prompt so Codex writes to senior standard. Include the block below (plus the matching language skill) in every execution task.

## Standards block

```
Coding standards (mandatory):
- KISS: simplest solution that works; no premature optimization or speculative abstraction (YAGNI).
- DRY: extract repeated logic; but prefer a little duplication over the wrong abstraction.
- Immutability: return new values instead of mutating inputs/shared state.
- Errors: handle explicitly at every level; never swallow silently; user-facing messages friendly,
  logs detailed; fail fast on programmer errors.
- Validation: validate ALL external input (user, API, file, env) at the boundary with clear failures.
- No hardcoded secrets/config — env vars or config files; validate presence at startup.
- Naming: descriptive; booleans read as predicates (is/has/can/should); constants UPPER_SNAKE_CASE.
- Structure: functions < 50 lines, files < 800, nesting < 4 (use early returns).
- Comments: only for constraints code can't express (the "why"); no narration of the obvious.
- Match the existing codebase's style, structure, and idioms over any personal preference.
- No debug prints (console.log/print) left in production code paths.
```

## Why embedded, not assumed

Codex doesn't see Claude's skills or the user's global rules — the prompt is the only channel. A plan without embedded standards produces stylistically alien code that fails review round 1 on preventable findings.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.