ub-mode Open Source Agent Skill Enforces Disciplined Software Engineering Principles
· GlobeWire Daily Editorial Desk · Source: github.com

Image: GitHub · Photo source · Resized and letterboxed to 16:9; no AI generation
ub-mode is an open source agent skill published on GitHub designed to enforce disciplined software engineering principles when writing or modifying code. According to the documentation, the project is loosely based on portions of @poteto's rules, specifically poteto-mode and pstack, while pairing reduced guidelines with deterministic quality-gate tools.
Core Principles and Methodology
The repository outlines a structured methodology divided into sequential phases and practices:
- First Make it Work: Incorporates protocols such as the Laziness Protocol, Foundational Thinking, Test-Driven Development (TDD), Redesign From First Principles, Attack the Premise, Subtract Before You Add, Outcome-Oriented Execution, Build the Lever, and Architecture components including domain modeling, boundary discipline, type system discipline, idempotent operations, and state separation before serialization.
- Then Make it Right: Focuses on fixing root causes, sequencing work into verifiable units, testing behavior rather than implementation, maintaining low CRAP scores, reducing duplication, utilizing mutation testing, and refactoring.
- Practice: Emphasizes keeping a log, guarding the context window, performing worktree cleanups, and committing and pushing in small, ordered commits.
Deterministic Quality-Gate Tools
ib-mode relies on specific tools to enforce structure, complexity limits, duplication checks, and test thoroughness:
- unclebob/crapper: Computes cyclomatic complexity, test coverage, and CRAP scores per function to keep metrics below defined thresholds.
- unclebob/dryer: Detects structural code duplication to help eliminate duplicate blocks.
- unclebob/mutator: Executes mutation testing to expose uncovered code and surviving mutants.
- unclebob/uml-viewer: Visualizes components, coverage, CRAP, mutation scores, and dependency directions.
Installation and Usage
To use the skill, developers can copy SKILL.md into their agent's designated skills directory—such as ~/.grok/skills/ub-mode/SKILL.md, ~/.claude/skills/ub-mode/SKILL.md, or ~/.cursor/skills/ub-mode/SKILL.md—and invoke the command `/ub-mode`.
Readers should verify the original README.md file directly on the official GitHub repository for any updates, configuration details, or additional requirements.
AI-assisted reporting; source claims are attributed and have not been independently verified.
More to read
Trending on GlobeWire Daily
Selected from recent coverage and related topics; not live search rankings.
Madhya Pradesh Government Plans Revenue Generation from 117-Year-Old Edward Villa in Mumbai Through Leasing
iPhone 18 Pro Named TechRadar Product of the Year 2026
Google Project Suncatcher Runs Gemma 4 AI on Orbiting Satellite and Receives First Response
Gender Disparities in Eye Care Access Across India Examined
Satellite Images Show Cyclone Arnab Weakening Over India As New System Brews
Expanding Green and Blue Spaces Crucial for India's Economic and Public Health, Reports Indicate


