abd-clean-code

Generate runnable Python or JavaScript modules from domain stories with dependency injection.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/agilebydesign/agilebydesign-skills --skill abd-clean-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abd-clean-code
Source: https://github.com/agilebydesign/agilebydesign-skills/tree/main/skills/abd-clean-code
Command: npx skills add https://github.com/agilebydesign/agilebydesign-skills --skill abd-clean-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clean, maintainable production code generation from a story or requirement, turning ambiguous descriptions into runnable modules that follow domain language and explicit dependency injection.

Core Features & Use Cases

  • Generates Python or JavaScript modules from a given story, acceptance criteria, failing tests, or behavior description.
  • Enforces a consistent structure: one module per sub-epic area, one domain entity per class, functions under 20 lines, and dependencies injected at construction.
  • Supports templates like templates/clean-code.py and templates/clean-code.js to guide implementation.

Quick Start

Describe the domain story and request a clean Python or JavaScript module that implements the domain behavior.

Frequently Asked Questions about abd-clean-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate clean Python or JavaScript modules from a domain story description?

To generate clean code, provide a domain story or behavior description and the generator produces runnable Python or JavaScript modules that follow domain language and constructor-based dependency injection. Output is structured with one module per sub-epic and one class per entity.

What is constructor-based dependency injection in production code generation?

Constructor-based dependency injection in production code generation means explicit dependencies are provided at object construction rather than hidden internally. This approach enforces clean-code rules by making bounded contexts modular and dependencies visible within small helper functions under 20 lines.

Can I use acceptance criteria and failing tests to generate production-grade code?

Yes, you can use acceptance criteria and failing tests to generate production-grade code. The generator accepts story descriptions, behavior details, or failing tests as input and validates the resulting Python or JavaScript output against embedded quality scanners to ensure clean-code compliance.

Does the clean code generator enforce a modular layout for bounded contexts?

The clean code generator enforces a modular layout for bounded contexts by structuring output with one module per sub-epic area and one class per domain entity. It aligns with clean-code templates and keeps helper functions under 20 lines to maintain production-grade quality.

What is the best way to refactor ambiguous requirements into runnable code?

The best way to refactor ambiguous requirements into runnable code is to identify domain stories and generate modules using domain language. This process turns vague descriptions into structured Python or JavaScript implementations with explicit dependency injection and embedded quality validation.

When should I not use automated code generation for refactoring?

You should not use automated code generation for refactoring when your domain stories lack clear acceptance criteria or bounded contexts. The generator relies on identifiable domain entities and explicit dependencies, so highly ambiguous or unstructured requirements may not produce valid clean-code output.