Getting it into your agent
There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.
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.
[](https://agentmods.dev/skills/basic-xyz/baku-skills/baku-coding-discipline)<a href="https://agentmods.dev/skills/basic-xyz/baku-skills/baku-coding-discipline"><img src="https://agentmods.dev/badge/skills/basic-xyz/baku-skills/baku-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.
<a href="https://agentmods.dev/skills/basic-xyz/baku-skills/baku-coding-discipline"><img src="https://agentmods.dev/badge/skills/basic-xyz/baku-skills/baku-coding-discipline.svg" alt="Reviewed on agentmods" width="80" 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.00168 | $0.07273 |
| Opus 5 | $0.00084 | $0.03637 |
| Sonnet 5 | $0.00034 | $0.01455 |
| Haiku 4.5 | $0.00017 | $0.00727 |
Grade A, and why
baku-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 12d 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 — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.
编码纪律
概览
把所有编码任务先收束到一个工程纪律入口:先判断任务类型,再选择最小合适流程,最后用复杂度、测试、接口、故障和长期维护责任做门禁。
这个 skill 是总入口,不是把所有规则都硬套一遍。简单改动走轻量路径;行为变化、bug、重构和审查走对应模式。它也不替代项目自己的 AGENTS.md、测试策略或代码规范;如果有冲突,优先遵守用户明确要求和当前仓库规范。
执行分组
按下面九个环节组织任务;第 3、4、7、8、9 步按需触发,不要求每个任务完整走一遍:
- 边界与授权:确认目标、非目标、成功标准、只读边界和副作用授权。
- 代码与事实理解:读取当前代码、测试、规范、接口、数据模型和领域术语。
- 方案、Spec 与设计确认:复杂需求读取 plan-spec-and-grill.md,执行内置的规格化和逐轮确认。
- 任务拆分与执行切片:大功能或重构读取 plan-spec-and-grill.md,执行内置的纵向 tickets 和依赖拆分。
- 代码实现:读取 implementation-loop.md,按功能、故障或重构模式小步修改。
- 测试、审查与质量验证:按实现验证规则运行类型检查、测试和 review,检查 AI 编码反模式和文档影响。
- 编码完成后的架构复盘:非微小改动读取 architecture-improvement-review.md,提出架构改进候选;不自动重构。
- 文档、知识与交接收尾:代码影响文档时联动
neat-freak;需要中断或移交时读取 handoff-and-delivery.md。 - Git、Worktree 与交付核对:涉及提交、冲突、分支或 push 时读取 git-worktree-guardrails.md。
主链路是“理解 → 实现 → 验证 → 收尾”。方案、拆票和架构复盘是受条件控制的辅助环节,不是普通编码任务的固定前置流程。
所有运行期中间产物统一放到项目根目录的 .baku-coding-discipline/,按类型分组;不在项目根目录散落 spec、plan、ticket、报告、诊断脚本或 handoff。具体目录和生命周期见 runtime-artifacts.md。
第一步
开始编码前先完成这四件事:
- 明确用户要的结果、非目标、假设和成功标准。
- 如果用户说“先研究、只排查、先方案、不要执行、先别改、只读看看”,先进入只读 / 方案模式。
- 搜索并阅读相关代码、项目规范、测试和已有接口;不要凭文件名猜。
- 选择一个执行模式;不确定时先用最轻量模式,再按风险升级。
- 复杂需求存在关键未决事项时,可在只读 / 方案模式下按需进行规格化、逐轮确认和纵向切片;明确需求和微小修改不要额外触发。
- 如果要编辑文件,先给 3-6 条计划,并写清每步验证方式;微小修改可以压缩流程,但不能跳过最小验证。
- 预判文档影响:只要变更可能影响 API、数据结构、配置、状态、业务规则、模块入口、联调方式、运维方式或用户可见行为,就把文档同步列为本次任务的一部分。
Git 提交建议
- 一个提交只表达一个清晰、可回滚的意图,标题说明结果,正文说明动机、影响和验证。
- 可以采用 Conventional Commits,例如
feat(scope): add capability;常见类型包括feat、fix、refactor、docs、test、perf、build、ci和chore,不要用feature代替feat。 - 分支同步、提交标题语言、emoji、scope 命名、推送门禁和是否允许强制推送属于项目约束,按当前仓库的
AGENTS.md执行。 - 涉及提交、push、worktree 或分支归属时,必须先读取 git-worktree-guardrails.md,再执行只读核对、提交范围确认和 push 前门禁。
What ships with it
25 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.
- .gitignore 100 B
- CHANGELOG.md 1.2 KB
- CONTRIBUTING.md 783 B
- LICENSE 1.0 KB
- README.md 7.3 KB
- references/ai-coding-antipatterns.md 2.3 KB
- references/architecture-improvement-review.md 3.9 KB
- references/architecture-patterns.md 2.2 KB
- references/code-style.md 3.7 KB
- references/deep-module-design.md 3.7 KB
- references/domain-modeling.md 2.4 KB
- references/frontend-ui-work.md 2.5 KB
- references/git-worktree-guardrails.md 4.5 KB
- references/handoff-and-delivery.md 2.6 KB
- references/implementation-loop.md 2.2 KB
- references/maturity-checklist.md 6.1 KB
- references/mode-routing.md 11 KB
- references/module-boundary-design.md 2.4 KB
- references/plan-spec-and-grill.md 4.3 KB
- references/readability-review.md 1.3 KB
- references/related-skills.md 4.1 KB
- references/reliability-checklist.md 1.3 KB
- references/runtime-artifacts.md 2.5 KB
- scripts/check_code_complexity.py 10 KB runs code
- scripts/validate.py 7.4 KB runs code
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.
- 12d ago First seen · 262 lines · 168 tokens per session scan A dd2152f65c2b
baku-coding-discipline is a skill published in the GitHub repository Basic-XYZ/baku-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 168 tokens to every session and 7,273 once invoked, about $0.0008 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
skills-manager-cli
Drive the Skills Manager CLI (skm) to initialize the hub, adopt unmanaged skills, list/enable/disable skills per AI tool, and doctor/fix symlink sync. Use whenever the user or an agent needs to manage skills from a terminal, SSH session, CI job, or headless machine; when a skill is missing in Claude Code, Codex…
ppt-design-skill
Design, generate, review, and revise editable PowerPoint presentations through a rigorous brief-to-PNG workflow using the public pptx-designer Python library.
cesiumjs-camera
CesiumJS camera control - Camera, flyTo, lookAt, setView, ScreenSpaceCameraController, CameraEventAggregator, flight animation. Use when positioning the camera, creating flyTo animations, constraining user navigation, tracking entities, or converting between screen and world coordinates.
cesiumjs-custom-shader
CustomShader authoring — vertexShaderText and fragmentShaderText against VertexInput, FragmentInput, FeatureIds, Metadata, czmmodelMaterial. Use when reading EXTmeshfeatures or EXTstructuralmetadata property textures/tables, vertex displacement, or shading VoxelPrimitive.
cesiumjs-primitives
CesiumJS primitives and geometry - Primitive, GeometryInstance, Appearance, BufferPrimitive collections, GeoJsonPrimitive, Billboard/Label/PointPrimitive collections, built-in geometry shapes, ground primitives, classification. Use when rendering performance-critical static or vector geometry, loading GeoJSON without…
cesiumjs-time-properties
CesiumJS time, properties, and animation - Clock, JulianDate, TimeInterval, Property, SampledProperty, CallbackProperty, PathMode, interval and sampled path materials, interpolation, splines, CZML temporal data. Use when making entity attributes or path materials time-dynamic, configuring the simulation clock…