UU

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5462 stars 质量 50 趋势 84

ub-mode是一种代理技能,在写作或更改代码时执行有纪律的软件工程原理.

概览

ub-mode是一种代理技能,在写作或更改代码时执行有纪律的软件工程原理. 以@poteto规则(poteto-mode / pstack)的部分内容为基础, 1. 《懒惰性议定书》、基础思维、TDD、从第一原则出发的重新设计、攻击精度、在你添加之前的减法、结果导向的执行、构建利弗和建筑(域名、边界纪律、类型系统纪律、使行动更有能力、在序列化共享国家之前分开)。 2. 解决根源、序列工作进入可核实单位、试验行为(不执行)、Crapper(CRAP < 10)、干燥器(重复 < 0.8)、Mutator(覆盖被发现者、杀死幸存者、删除已死亡代码)和重构。 3. 保持日志,保护上下文窗口,清理工作树,并按小订单提交和推进.

概述(AI 翻译)

ub-mode是一种代理技能,在写作或修改代码时执行有纪律的软件工程原理. 它松散地基于 @poteto 规则([[T1]/pstack)的部分内容,缩小并配有决定性的质量门工具:

  1. ** 首先使之发挥作用** —— 懒惰性议定书、基础思维、TDD、从第一原则出发的重新设计、攻击精髓、在你添加之前的减法、结果导向的执行、建设利弗和建筑(域名、边界纪律、类型系统纪律、使行动更有能力、在序列化共享国家之前分开)。
  2. ** 然后纠正**——消除了 " 确定根源 " 、 " 顺序工作 " 、 " 试验行为 " (不执行)、 " 破坏 " ([T3]相似性)。
  • unclebob/mutator – 运行突变测试,以曝光被发现的代码和存活的测试未能被捕获的突变人.
  • Unclebob/uml-viewer——可视化组件,覆盖,CRAP,突变分数,依赖方向.

□ 安装

复制 SKILL.md 到您的代理技能目录中作为 [[T5] (例如[T6], [T7], 或 /.

本页由 AI 翻译,技术细节请以原文为准。

README

ub-mode

ub-mode is an agent skill that enforces disciplined software engineering principles when writing or changing code. It is loosely based on portions of @poteto’s rules (poteto-mode / pstack), reduced and paired with deterministic quality-gate tools:

  1. First Make it Work — Laziness Protocol, Foundational Thinking, TDD, Redesign From First Principles, Attack the Premise, Subtract Before You Add, Outcome-Oriented Execution, Build the Lever, and Architecture (Model the Domain, Boundary Discipline, Type System Discipline, Make Operations Idempotent, Separate Before Serializing Shared State).
  2. Then Make it Right — Fix Root Causes, Sequence Work into Verifiable Units, Test Behavior (Not Implementation), Crapper (CRAP < 10), Dryer (duplication < 0.8), Mutator (cover the uncovered, kill the survivors, delete dead code), and Refactoring.
  3. Practice — Keep a Log, Guard the Context Window, Worktree Cleanup, and Commit and Push in small ordered commits.

Companion Tool Repositories

ub-mode relies on deterministic quality-gate tools to enforce structure, complexity, duplication, and test thoroughness:

  • unclebob/crapper — Computes cyclomatic complexity, test coverage, and CRAP score per function so every function stays under the CRAP threshold (< 10).
  • unclebob/dryer — Detects structural code duplication so duplicate blocks (>= 0.8 similarity) are eliminated.
  • unclebob/mutator — Runs mutation testing to expose uncovered code and surviving mutants that tests fail to catch.
  • unclebob/uml-viewer — Visualizes components, coverage, CRAP, mutation scores, and dependency directions.

Installation

Copy SKILL.md into your agent’s skills directory as ub-mode/SKILL.md (for example ~/.grok/skills/ub-mode/SKILL.md, ~/.claude/skills/ub-mode/SKILL.md, or ~/.cursor/skills/ub-mode/SKILL.md), then invoke /ub-mode.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add unclebob/ub-mode
新手?先看 mcpskill.org 教程 →