source-coding-discipline

source-coding-discipline is a skill for Codex from martin1847/evolab. It costs 105 tokens per session (696 once invoked), scanned A, original, MIT.

A set of rules for working carefully with source-code files such as Python, TypeScript, JavaScript, Go, Rust, Java, and SQL. It emphasizes small changes, clear assumptions, tests, and honest reporting of verification.

In plain words
What is it for?
Reading, editing, reviewing, testing, debugging, refactoring, and otherwise changing source code while keeping the work focused and verifiable.
Why use it?
It helps prevent unnecessary rewrites, hidden assumptions, untested fixes, and duplicated or unused code. It also turns vague requests into results that can be checked, such as a failing test becoming a passing test after a bug fix.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Good fit Reading, editing, reviewing, testing, debugging, refactoring, and otherwise changing source code while keeping the work focused and verifiable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martin1847/evolab/source-coding-discipline
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 martin1847/evolab --skill source-coding-discipline
Clone the repo
git clone --depth 1 https://github.com/martin1847/evolab

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin source-coding-discipline — /plugin install source-coding-discipline after adding the marketplace above.

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 source-coding-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/martin1847/evolab/source-coding-discipline/github.svg)](https://agentmods.dev/skills/martin1847/evolab/source-coding-discipline)
Your own site
<a href="https://agentmods.dev/skills/martin1847/evolab/source-coding-discipline"><img src="https://agentmods.dev/badge/skills/martin1847/evolab/source-coding-discipline/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 source-coding-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/martin1847/evolab/source-coding-discipline"><img src="https://agentmods.dev/badge/skills/martin1847/evolab/source-coding-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 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.
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.00105 $0.00696
Opus 5.5 $0.00042 $0.00278
Sonnet 5.5 $0.00021 $0.00139
Haiku 4.5 $0.00011 $0.00070

Measured 1mo ago against content hash f9cf23b71358, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

source-coding-discipline 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 1mo 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.

skills/source-coding-discipline/SKILL.md · 24 lines

What it actually says

写码纪律(碰源码文件时加载)

镜像注:四段纪律正文与本仓库 templates/rules/coding.md 同源(路径相对 evolab 仓库根;本 skill 单独 cp 安装后该文件不随行,同步义务只落在仓库维护侧)—— rules 形态给支持 paths: 条件加载的 agent(Claude Code / omp),skill 形态给不支持的(codex 等)。 改任一边必须同步另一边(硬门:test/mirror-sync.test.sh 四段逐字 diff,漂移即红); 同一 agent 勿两种形态同装(双重注入)。

先思考再编码:显式说出假设,不确定就问;多种解读全部列出、不静默选边;有更简单的路径就说出来;困惑就停下来问。

简单优先——交付物代码零投机(仅限交付物;风险枚举 / 预判 / 评审轴不受此限、该大胆发散):不做超出要求的功能;单次使用的代码不抽象;没要求的"灵活性/可配置性"不引入;不可能发生的场景不写错误处理。写了 200 行能压到 50 行的,重写。自问:"资深工程师会觉得这过度复杂吗?"

外科手术式改动:每一行改动都能直接追溯到用户请求。不"改进"邻近代码/注释/格式,顺应已有风格。自己的改动产生的孤儿(未用 import/变量/函数)要清;既有死代码指出来、不删。

目标驱动执行:把任务转成可验证目标——"加校验"→"为非法输入写测试并让它过";"修 bug"→"先写能复现的测试再修到过";"重构"→"改前改后测试都过"。多步任务先列简短计划:步骤 → 验证。强验证标准让你独立循环,弱标准("能跑")需要不停澄清。

验证诚实性:禁止声称测试通过、命令成功、文件存在,除非实际跑过 / 读过。未跑就说"未运行验证"。完成时简短说明:改了什么 / 跑了什么验证 / 什么没验证 / 剩余假设或风险。

Files

What ships with it

1 file 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. 1mo ago First seen · 24 lines · 105 tokens per session scan A f9cf23b71358

Subscribe to this mod's changes

source-coding-discipline is a skill published in the GitHub repository martin1847/evolab (7 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 696 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

Pair Programming

AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with…

shyftlabs/continuum · 61 tokens

loop-verifier

Independent verification agent for loop-produced changes. Finds reasons to reject. Runs tests. Confirms diff scope. Use after minimal-fix or any implementer sub-agent — never in the same role as the implementer.

cobusgreyling/loop-engineering · 47 tokens

skill-coverage-audit

Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs.

nyldn/claude-octopus · 28 tokens

babysit

Watch an open PR — fix failing CI, handle the straightforward review comments, and drive it to a mergeable state. Claude Code analog of Cursor's built-in /babysit. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.

michael-denyer/pstack-claude · 61 tokens

make-pr-easy-to-review

Prepare PRs for review by cleaning noisy history, improving PR descriptions, and adding reviewer guidance without changing code behavior. Use for "make this easy to review", "tidy this PR", "clean up commits", or "annotate the diff".

michael-denyer/pstack-claude · 57 tokens

thermo-nuclear-code-quality-review

Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.

michael-denyer/pstack-claude · 54 tokens