engineering-discipline

engineering-discipline is a skill for Claude Code from i-stack/ai-coding-kit. It costs 62 tokens per session (615 once invoked), scanned A, original, MIT.

A set of engineering rules for coding tasks, covering safety checks, focused fixes, testing, and risk reporting.

In plain words
What is it for?
Guiding debugging, implementation, reviews, and other engineering work from the initial checks through verification.
Why use it?
It helps prevent unsafe changes, unclear assumptions, unnecessary rewrites, noisy code differences, and hidden risks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skills-engineering plugin — 10 skills shipped together

Good fit Guiding debugging, implementation, reviews, and other engineering work from the initial checks through verification.

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

Made for: Claude Code.

Or install skills-engineering, the plugin that ships this one along with the rest of its 10 skills.

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 engineering-discipline

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/i-stack/ai-coding-kit/engineering-discipline"><img src="https://agentmods.dev/badge/skills/i-stack/ai-coding-kit/engineering-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 615 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.00062 $0.00615
Opus 5.5 $0.00025 $0.00246
Sonnet 5.5 $0.00012 $0.00123
Haiku 4.5 $0.00006 $0.00061

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

Security

Grade A, and why

engineering-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-engineering/engineering-discipline/SKILL.md · 33 lines

What it actually says

Engineering Discipline

强制入口

命中本 skill 时,必须先完整阅读 references/engineering_discipline.md 并按其中条款执行。

  • 不得以 preamble、Cursor 规则摘要或其它二次摘要代替该文件全文。

核心规则

  • [GR-001] 绝对不读取、不打印、不提交任何敏感机密(.env、密钥、证书、API Token);在调用可能改变系统状态或高风险的 shell 命令前,必须进行安全与授权自检,绝对不暴露 Credentials。
  • [GR-002] 描述不清 / 上下文不足 / 歧义时,先以独立"前置确认"块字面输出 ≥1 个具体问题,不允许仅在散文里说"需要更多信息"。
  • [GR-003] 默认先锁定 1 个最高概率根因或主路径,最多补充 1 个备选;不同时展开多个大分支。
  • [GR-004] 默认按"根因 → 为什么 → 修法 → 验证"四段式输出;若任务命中长模板,四段式作为摘要层,详细模板作为附加层.
  • [GR-005] 先给最小可验证修复,不先提出整模块重写、架构翻新或大范围重构。
  • [GR-006] 限制工具调用深度与预算;当在同一修复/排障路径上连续失败 3 次,或单次任务工具调用深度(turn 数)超过 15 次时,必须主动中断、承认当前认知缺口,向用户进行战略前置确认。
  • [GR-007] 不要格式化代码,除非明确要求格式化当前代码。执行自动修复或自动格式化工具时,范围必须局限于 Staged 变更内已修改的 lines,禁止无意引入大面积 Diff 噪声。
  • [GR-008] 任何改动都必须声明"已覆盖、未覆盖、残留风险"三字段。

细则见 engineering_discipline.md。

何时加载

  • 默认:所有工程类任务(含排障、设计、实现、审查)。
  • 跳过:纯闲聊、无任何改动或判断成分的机械执行。
Files

What ships with it

7 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. 1mo ago First seen · 33 lines · 62 tokens per session scan A f096ef110400

Subscribe to this mod's changes

engineering-discipline is a skill published in the GitHub repository i-stack/ai-coding-kit (3 stars, last pushed 23d ago), licensed MIT. It adds 62 tokens to every session and 615 once invoked, about $0.0002 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

gza-system-triage

Turn the recurring watch stuck-task pile into (1) a diagnosis of why each class is stuck, (2) the existing stuck rows actually cleared now, and (3) systemic prevention so it does not recur. Snapshots watch/incomplete/queue, buckets stuck tasks by failure class, dedups against already-tracked system work, unsticks each…

mhawthorne/gza · 145 tokens

gza-task-triage

Triage gza incomplete rows — classify each unresolved merge-unit lineage and recommend the right corrective action (drop moot leaves, escalate to fix, surface manual-resolve rebases, etc.). Never merges, retries, resumes, or deletes branches; never edits code.

mhawthorne/gza · 61 tokens

gza-task-debug

Diagnose why a gza task failed — analyzes logs, detects loops, checks diffs, compares baselines, and suggests fixes.

mhawthorne/gza · 31 tokens

speclite-review-adversarial-general

A general review skill that critically examines code, specifications, stories, diffs, or documents for gaps, contradictions, risks, and unclear claims. It returns a Markdown list of findings.

flanliulf/SpecLite · 76 tokens

speclite-review-edge-case-hunter

A review skill that traces code branches and lists only edge cases the code does not handle. It checks inputs such as diffs, files, or functions and returns findings as JSON.

flanliulf/SpecLite · 71 tokens

vet

Run vet immediately after ANY logical unit of code changes. Do not batch your changes, do not wait to be asked to run vet, make sure you are proactive.

imbue-ai/vet · 35 tokens