
unclebob/ub-mode
Data science & MLこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ub-mode は、コードを記述したり変更したりする際に、ソフトウェアエンジニアリングの原則を強制するエージェントのスキルです.
概要
ub-mode は、コードを記述したり変更したりする際に、ソフトウェアエンジニアリングの原則を強制するエージェントのスキルです。 @potetoのルール(poteto-mode / pstack)の部分に基づいてゆるく、決定的な品質ゲートツールと組み合わせました。 1. — Laziness プロトコル, 基礎思考, TDD, 最初の原則から再設計, プレミスを攻撃します。, あなたが追加する前に、サブトラクト, アウトカムオリエントされた実行, レバーを構築します。, アーキテクチャ (ドメインのモデル, 境界の規律, タイプ システム 規律, 操作の隔離を行います, シリアル共有状態を分離する前に分離). 2。 — ルート原因を修正し、シーケンスは、検証可能なユニット、テスト行動(実装しない)、ク ラッパー(CRAP < 10)、乾燥機(複製 < 0.8)、ミュテーター(カバーされていない、生存者を殺し、デッドコードを削除)、およびリファクタリングを解除します。 3。 - ログを保持し、コンテキストウィンドウを監視し、Worktreeクリーンアップし、小注文コミットでコミットしてプッシュします.
概要(AI 翻訳)
[[ub-mode]は、コードを記述または変更する際に、ソフトウェアエンジニアリングの原則を強制するエージェントスキルです。 @poteto のルール (poteto-mode) / [pstack) の部分に基づいてゆるく、決定的な品質ゲートツールと組み合わせられます。
1。 まず、それを作業 — ラジネスプロトコル、ファウンデーション思考、TDD、ファースト原則から再設計、プレミスを攻撃し、追加する前に、請負、アウトカム指向の実行、レバーの構築、およびアーキテクチャ(ドメイン、境界線、タイプシステム規準、作業を分離、共有状態をシリアライズする前に分離)。
2。Then Make it Right — ルート原因を修正し、シーケンスは検証可能なユニット、テスト行動(実装していない)、ク ラッパー(CRAP = 0.8)に類似性を排除します。
- unclebob/mutator — 変異テストを実行して、未発見されたコードとテストがキャッチできない突然変異者を暴露します。
- unclebob/uml-viewer — コンポーネント、カバレッジ、CRAP、変異スコア、および依存方向を視覚化します。
インストール
[SKILL.md]をエージェントのスキルディレクトリに[`ub-mode/SKILL.md`としてコピーします。(例えば[`~/.grok/skills/ub-mode/SKILL.md`])、`~/.claude/skills/ub-mode/SKILL.md`、または`~/.
このページは 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:
- 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).
- 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. - 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.8similarity) 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.
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add unclebob/ub-mode