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.
npx agentmods add skills/eliranpv11/code-discipline-skills/code-disciplinenpx skills add eliranpv11/code-discipline-skills --skill code-disciplinegit clone --depth 1 https://github.com/eliranpv11/code-discipline-skillsWrote 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.
[](https://agentmods.dev/skills/eliranpv11/code-discipline-skills/code-discipline)<a href="https://agentmods.dev/skills/eliranpv11/code-discipline-skills/code-discipline"><img src="https://agentmods.dev/badge/skills/eliranpv11/code-discipline-skills/code-discipline.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00116 | $0.01926 |
| Opus 5 | $0.00058 | $0.00963 |
| Sonnet 5 | $0.00023 | $0.00385 |
| Haiku 4.5 | $0.00012 | $0.00193 |
Grade A, and why
code-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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Discipline
A coding methodology for production systems that must last. Not a communication standard. Not an honesty protocol. Purely: how to write code well.
Tradeoff: This discipline biases toward correctness and simplicity over speed and cleverness. For throwaway scripts, apply judgment. For production code — apply everything.
Priority Order
Every technical decision is evaluated in this order:
- Stability
- Reliability
- Readability
- Maintainability
- Scalability
- Performance
- Elegance
The goal is not "it works" — it is "it works correctly and reliably one year from now."
1. Think Before Coding
Don't assume. Surface tradeoffs. Map blast radius.
Before writing any code, present all four:
- Working assumptions — what are you assuming to be true?
- Constraints and risks — what could go wrong?
- Multiple valid solutions? — if yes, stop and present options; do not choose independently
- Dependencies and blast radius — what else is affected by this change?
Rules:
- If uncertain — ask, don't assume and proceed
- If multiple interpretations exist — present them, don't pick silently
- If a simpler approach exists — say so and push back
- If information is missing — stop and ask; do not proceed without answers
2. Verify Reality Before Acting
Don't code from memory. The codebase is the source of truth.
Before writing or changing code:
- Read the actual files involved. Don't work from a remembered shape.
- Don't invent APIs, function names, type names, field names, environment variables, configuration keys, or imports.
- Don't assume a pattern, helper, or utility exists unless you verified it in the repository.
- Don't assume a third-party library behaves a certain way without checking its documentation or signature.
- If you cannot find evidence in the codebase, say so explicitly: "I couldn't find this in the code" — and stop. Do not fill the gap from memory.
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.
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.
- 5d ago First seen · 198 lines · 116 tokens per session scan A f0abddac40d9
code-discipline is a skill published in the GitHub repository eliranpv11/code-discipline-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 116 tokens to every session and 1,926 once invoked, about $0.0006 per session on Opus 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.
Other skills, from other repositories
procoder
Work like a senior developer in a repository governed by procoder: run the commit gate before calling anything done, format and lint through the binary, and drive the spec, plan, todo, backlog, and sprint chain in .procoder/. Use this skill when the repository contains a .procoder/ directory or an AGENTS.md naming…
lov-maintain-partners
Maintain the Skill Publisher website's partners section AND align partner logo rows on event posters / hero strips: reuse lov-find-logo for brand logo discovery, normalize collected logos to a 240px-tall content canvas (retina-ready), rasterize SVGs via rsvg-convert before normalizing (so SVG viewBox padding gets…
lov-article-creator
统一创建、改写、品牌化或忠实转载微信公众号文章包:正文写作调用唯一文风与作者性能力,离线完成结构、品牌、封面、4:3 首图、来源与质量验收。Use when asked to write, brand, audit, or faithfully repost a WeChat article package.
dsh-plugin-publisher
Publish a validated DSH plugin package (@deepseek-ai/dsh- or @lovstudio/dsh-) to npm, git, or tarball channels and verify it loads in the DeepSeek Harness. Use when the user asks to publish, release, or ship a plugin. 触发:发布插件 / 上架插件 / release dsh 插件。.
lov-publish-event-onto-hdx
诊断并修改活动行已发布活动:核查分类页可见性与排名、替换详情正文配图,并守住 后台保存会清空分类这一平台陷阱。Trigger: 活动行分类找不到、活动行分类没了、 活动行排名、活动行曝光、活动行换海报、hdx category not showing, hdx category reset。.
lov-skill-pricing
为一个或多个 Agent Skill 生成可解释的 Skill Pricing Card:结合创作者时间与维护成本、用户价值、稀缺性、购买信心和生态潜力,输出建议价、价格区间、渠道策略及证据缺口;触发语包括“给这个 Skill 定价”和 “price this Skill”。.