baku-coding-discipline

baku-coding-discipline is a skill for Claude Code, Codex from Basic-XYZ/baku-skills. It costs 168 tokens per session (7,273 once invoked), scanned A, original, MIT.

An engineering workflow for writing code, fixing bugs, refactoring, reviewing implementations, and handling AI-generated changes. It guides the agent through understanding the code, making changes, testing them, and checking documentation and delivery details.

In plain words
What is it for?
Use it for feature work, bug fixes, performance regressions, interface design, refactoring, technical debt, code review, and checking AI-written code.
Why use it?
It reduces unclear scope, unnecessary complexity, missed tests, and changes that conflict with the project’s existing rules. It also provides lighter or more detailed paths depending on the task.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/javaclimber/.agents/skills/neat-freak/SKILL.md.

Good fit Use it for feature work, bug fixes, performance regressions, interface design, refactoring, technical debt, code review, and checking AI-written code.

Compare 6 skills from other repositories ↓
Install

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.

Made for: Claude Code, 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 baku-coding-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/basic-xyz/baku-skills/baku-coding-discipline/github.svg)](https://agentmods.dev/skills/basic-xyz/baku-skills/baku-coding-discipline)
Your own site
<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.

agentmods 80×15 button for baku-coding-discipline

Your own site · 80×15
<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>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,273 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.00168 $0.07273
Opus 5 $0.00084 $0.03637
Sonnet 5 $0.00034 $0.01455
Haiku 4.5 $0.00017 $0.00727

Measured 12d ago against content hash dd2152f65c2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check_code_complexity.py, scripts/validate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

baku-coding-discipline/SKILL.md · 262 lines

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 步按需触发,不要求每个任务完整走一遍:

  1. 边界与授权:确认目标、非目标、成功标准、只读边界和副作用授权。
  2. 代码与事实理解:读取当前代码、测试、规范、接口、数据模型和领域术语。
  3. 方案、Spec 与设计确认:复杂需求读取 plan-spec-and-grill.md,执行内置的规格化和逐轮确认。
  4. 任务拆分与执行切片:大功能或重构读取 plan-spec-and-grill.md,执行内置的纵向 tickets 和依赖拆分。
  5. 代码实现:读取 implementation-loop.md,按功能、故障或重构模式小步修改。
  6. 测试、审查与质量验证:按实现验证规则运行类型检查、测试和 review,检查 AI 编码反模式和文档影响。
  7. 编码完成后的架构复盘:非微小改动读取 architecture-improvement-review.md,提出架构改进候选;不自动重构。
  8. 文档、知识与交接收尾:代码影响文档时联动 neat-freak;需要中断或移交时读取 handoff-and-delivery.md
  9. 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;常见类型包括 featfixrefactordocstestperfbuildcichore,不要用 feature 代替 feat
  • 分支同步、提交标题语言、emoji、scope 命名、推送门禁和是否允许强制推送属于项目约束,按当前仓库的 AGENTS.md 执行。
  • 涉及提交、push、worktree 或分支归属时,必须先读取 git-worktree-guardrails.md,再执行只读核对、提交范围确认和 push 前门禁。

Read the full file on GitHub · 262 lines

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. 12d ago First seen · 262 lines · 168 tokens per session scan A dd2152f65c2b

Subscribe to this mod's changes

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.

Related

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…

jiweiyeah/Skills-Manager · 151 tokens

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.

sunchaokun/PPT-Design-Skill · 35 tokens

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.

CesiumGS/cesiumjs-skills · 61 tokens

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.

CesiumGS/cesiumjs-skills · 61 tokens

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…

CesiumGS/cesiumjs-skills · 76 tokens

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…

CesiumGS/cesiumjs-skills · 84 tokens