abd-clean-code
abd-clean-code
Purpose
Write production code that implements story behavior using domain language, clean functions, explicit dependencies, and observable design.
This skill produces real, runnable production modules — in Python or JavaScript — from whatever context is available: a story, acceptance criteria, a failing test, or a description of the behavior to implement. The output follows a consistent layout: one module per sub-epic area, one class per domain entity, functions under 20 lines, and all dependencies injected through the constructor.
The skill covers the full implementation quality bar: names that reveal intent, guard-clause control flow, no magic numbers, no swallowed exceptions, no hidden globals, encapsulated internals, and domain vocabulary throughout.
When to use this skill
- You are writing production code to implement a story or acceptance criteria.
- You are in the GREEN phase of a TDD cycle — a test is failing and you need to make it pass.
- You are reviewing code quality: naming, size, dependencies, encapsulation, error handling.
- You are refactoring to remove duplication, flatten nesting, or separate concerns.
- You are fixing a bug and want the correct pattern before writing the fix.
- An agent is asked to "implement", "write the code for", "build the production module for", or "refactor".