agentleFS
anhnguyen0905anhnguyen0905/codex-mcp/skills/exec-coding-standards/SKILL.md

exec-coding-standards

Skill4 starsChanged 4 days agoMITView on GitHub

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

The file

Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.