ub-mode

unclebob/ub-mode

Apply a disciplined software development workflow with test-driven changes, refactoring and code-quality tools.

内容更新日:

GitHub で見る
mkdir -p ~/.claude/skills/ub-mode && curl -fL https://raw.githubusercontent.com/unclebob/ub-mode/master/SKILL.md -o ~/.claude/skills/ub-mode/SKILL.md
7,800スター447フォークリポジトリの最終プッシュ

このスキルについて

ub-mode is a compact coding-agent Skill organized around making a change work, improving its design and following a repeatable practice. It asks for a failing test before a change where practical, attention to domain boundaries and idempotency, root-cause fixes, behavior-focused tests and refactoring. It references separate CRAP score, duplication and mutation-testing tools.

おすすめする理由

A concise set of coding-agent instructions covering small changes, domain boundaries and quality gates. It also asks the agent to keep an action log and commit and push work; review those practices against your own project instructions.

役立つこと

  • Guide a coding agent through a small, test-driven change.
  • Review duplication, complexity and mutation-testing results during refactoring.
  • Make architectural boundaries and data validation explicit in a software project.

How it works

  1. Make it work

    Prefer small changes, model the data and write a failing test first when an honest test is practical.

  2. Make it right

    Reproduce and fix root causes, test observable behavior, refactor and use the separately installed quality tools.

  3. Follow project practice

    Record actions and review cleanup or Git operations against the project’s own rules.

Upstream README and installationSkill instructions

Installation and companion tools

The author documents copying the single SKILL.md into an agent-specific skills directory. The example below targets Claude Code; Cursor and Grok use the respective directories listed in the README.

The quality tools are separate projects. Their availability, setup and language support depend on each tool.

コマンド用途と使いどころ
mkdir -p ~/.claude/skills/ub-mode && curl -fL https://raw.githubusercontent.com/unclebob/ub-mode/master/SKILL.md -o ~/.claude/skills/ub-mode/SKILL.mdCopy the Skill entrypoint to the Claude Code skills directory.

Upstream README and installationCrapper quality toolDryer duplication toolMutator mutation testing

使う前に

  • Copy the upstream SKILL.md into a supported agent’s skills directory. The repository documents Claude Code, Cursor and Grok installation paths.
  • Crapper, Dryer and Mutator are separate repositories and must be installed or made available separately for their respective checks.
  • The instructions request action logging, worktree cleanup, commits and a push to the main line. Follow your project’s own permissions and Git workflow when applying them.
  • The upstream repository does not specify a license.

対応エージェント

Claude CodeCursorGrok Build

資料・参照元

元の資料は以下のリンクから確認できます。実践のヒントは SkillHey による編集上の提案です。