coding-rules

coding-rules is a skill for Codex from shinpr/codex-workflows. It costs 35 tokens per session (1,315 once invoked), scanned A, original, MIT.

A set of repository-aware rules for implementing, changing, and reviewing code safely.

In plain words
What is it for?
Use it for implementation and refactoring, especially when working with TypeScript web frontends or changes involving inputs, permissions, secrets, stored data, or outputs.
Why use it?
It helps keep changes small, protect existing contracts, follow project-specific sources, and verify the result.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for implementation and refactoring, especially when working with TypeScript web frontends or changes involving inputs, permissions, secrets, stored data, or outputs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shinpr/codex-workflows/coding-rules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shinpr/codex-workflows --skill coding-rules
Clone the repo
git clone --depth 1 https://github.com/shinpr/codex-workflows

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coding-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinpr/codex-workflows/coding-rules/github.svg)](https://agentmods.dev/skills/shinpr/codex-workflows/coding-rules)
Your own site
<a href="https://agentmods.dev/skills/shinpr/codex-workflows/coding-rules"><img src="https://agentmods.dev/badge/skills/shinpr/codex-workflows/coding-rules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for coding-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/shinpr/codex-workflows/coding-rules"><img src="https://agentmods.dev/badge/skills/shinpr/codex-workflows/coding-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01315
Opus 5.5 $0.00014 $0.00526
Sonnet 5.5 $0.00007 $0.00263
Haiku 4.5 $0.00003 $0.00131

Measured 9d ago against content hash 7cf2c806fce0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coding-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/coding-rules/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coding Rules

Reference

Read references/typescript.md only for TypeScript used in web frontend work, including React applications. It does not apply to backend or non-web TypeScript. Read references/security-checks.md when the change crosses an input, authorization, secret, persistence, or output boundary.

Source Order

Follow, in order:

  1. User-required outcome, explicit constraints, repository rules, and actual consumer contracts
  2. Task, acceptance criteria, Design Doc, ADR, and Work Plan as the current implementation plan
  3. Representative repository patterns
  4. Language/framework defaults

Use a sourced project contract in preference to generic best practice. When a planned mechanism is unnecessary or incorrect, preserve user outcomes and explicit constraints while reducing it: document passage and a generated AC do not make that mechanism mandatory. Keep the affected plan and proof aligned with the selected reduction.

Minimal Design Surface

Deliver the current requirement with the least justified total complexity. Before detailing new state, fields, modes, abstractions, or component splits, establish what required result a direct implementation cannot deliver. Evidence of a possible benefit makes the addition a candidate; retain it only when necessary now and worth its total lifecycle cost over subtraction or reuse.

Measure size, including "smallest" and "smaller" wherever a design, response, or correction is compared, by what remains in the code: concepts, states, modes, paths, and contracts. Lines, files, or edits changed do not measure it.

Private local implementation details and test fixtures are not new design surface. If an element matches both categories, treat it as design surface. If several sufficient options remain, prefer the one with lower lifecycle cost.

Contract and Boundary Safety

  • Preserve contracts required by remaining consumers and explicit user constraints; authorized removal includes the retired entry point and its unused implementation. Absence of repository call sites does not establish absence of external consumers. Resolve uncertainty only when it changes the removal or compatibility decision.
  • Validate untrusted input at the boundary and encode output for its destination. Untrusted input includes request data, external service responses, model or tool output, and stored data whose writer is untrusted or whose consumer needs a guarantee the store does not make.
  • When a change alters a boundary where external content or model output selects a tool's action, target, or destination, verify that those values cannot exceed the operation scope and access rights already granted to the caller.
  • Propagate or handle errors with useful context and keep failures observable.
  • Keep secrets and sensitive values out of source, client bundles, errors, and logs.
  • Use parameterized data access and verify authorization at resource access points when applicable.
  • For persistent or shared state, verify when partial, stale, committed, and rollback-only states become observable.

Read the full file on GitHub · 76 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · +1 lines 7cf2c806fce0
  2. 10d ago Changed · +2 lines f89f72c8217d
  3. 22d ago Changed · +3 lines 90f95f00fa81
  4. 2mo ago Changed · +1 lines 144bcb955dfb
  5. 2mo ago Changed 87e5a20ddabf
  6. 3mo ago First seen · 69 lines · 35 tokens per session scan A c0a10fd21a55

Subscribe to this mod's changes

coding-rules is a skill published in the GitHub repository shinpr/codex-workflows (42 stars, last pushed 3d ago), licensed MIT. It adds 35 tokens to every session and 1,315 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

coding-rules compared with skills from other repositories

coding-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coding-rulesshinpr/codex-workflowsSkill423d agoMITA35Codex
chrome-cdpmattzcarey/shippieSkill2.5k1mo agoMITA91Claude Code, Codex
cross-model-reviewhashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A56Claude Code, Codex
gitnexushashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A58Codex
recipe-front-reviewshinpr/claude-code-workflowsSkill7253d agoMITA29Claude Code
new-skillhyhmrright/brooks-lintSkill1.6k2d agoMITA145Claude Code, Codex
brooks-sweephyhmrright/brooks-lintSkill1.6k2d agoMITA178Claude Code