AI product Open source

ub-mode

ub-mode is an agent skill that applies disciplined software-engineering practices when an AI coding agent writes or changes code. Its workflow separates making code work from making it right: it uses foundational thinking, test-driven development, premise checking, domain and boundary modeling, type-system discipline, idempotent operations, root-cause fixes, behavior-focused testing, and refactoring, with work organized into verifiable units and small ordered commits. It pairs these rules with deterministic quality gates: crapper measures complexity, coverage, and CRAP scores; dryer detects structural duplication; mutator performs mutation testing; and uml-viewer visualizes components, coverage, mutation scores, and dependency directions. The skill is installed by copying SKILL.md into an agent's skills directory and invoking /ub-mode.

View repository Mentioned in 2 videos ↓

What ub-mode is used for

2 uses taken from transcripts — each links to the moment in the video.

  • A coding agent skill built around Uncle Bob's software engineering principles, telling your agent to think through problems, write tests, fix root causes, and refactor. Works with companion tools for complexity checks, duplication finding, and mutation testing.

  • An agent skill that makes AI coding agents follow disciplined software engineering rules in two stages: make it work with test-driven development and sound architecture, then make it right through refactoring and root-cause fixes. Companion tools check complexity, duplication and mutation testing.

Videos mentioning ub-mode

2 in the library.