Communitygithub.com

エージェントドキュメント規律

エージェントが消費するドキュメント(5つのサーフェス、仕様、チケット、.omc/skills/)を作成・編集する際の記述規律です。すべてのルールはチェック可能であり、「なぜ」が明確で、手順は参照より優先され、意味は一箇所に集約され、環境がすでに示していることを再記述しません。drydockシード生成と起動C5セディメントパスでは必須、その他のエージェント向けドキュメント編集ではオプトインです。最小コード規律のパートナーであり、こちらはコードではなく文書を規律します。

エージェントドキュメント規律 とは?

このスキルは、エージェントが行動するために消費するドキュメント(CLAUDE.md、CONTEXT.md、docs/standards/、design-system/、.omc/skills/、仕様、チケット、スキルファイル)を作成・編集する際に適用する記述規律を定義します。すべてのルールはチェック可能であり、その理由が明示されており、「会話履歴のない読者」がドキュメントだけを読んで即座に行動できることをテスト基準とします。主な規律として、「手順を先に、参照を後で」「一つの意味は一つの場所に」「環境が示すことは再記述しない」「各手順は完了条件で終わる」「肯定形で指示する」「書き込み時に古い情報を削除する」などが含まれます。drydockでのシード生成と起動C5セディメントパスでは必須、それ以外のエージェント向けドキュメント編集ではオプトインで適用可能です。人間専用のドキュメント(ビジネスナラティブ、ADR決定ストーリー、READMEなど)には必須ではありませんが、可能な範囲でこの規律に従うことが推奨されます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Yeachan-Heo/oh-my-claudecode/tree/main/skills/agent-doc-discipline

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

エージェントドキュメント規律 は何をしますか?

このスキルは、エージェントが行動するために消費するドキュメント(5つのサーフェス(CLAUDE.md、CONTEXT.md、docs/standards/、design-system/、.omc/skills/)、仕様、チケット、スキルファイル)を作成・編集する際に記述規律を適用するために使用します。ドキュメントが満たすべきテスト条件は次のとおりです。新しいエージェントセッションが、ドキュメントを読むだけで行動できること。

必須の場合:drydockがサーフェスシードを生成するとき、起動C5セディメントパスがレッスンをスロットに書き込むとき。それ以外の編集ではオプトインですが、エージェント向けドキュメントへの編集はこれらのルールを満たすべきです。

使用すべきでない場合

人間専用のドキュメント:docs/business/ ナラティブ、ADR決定ストーリー、人間のオンボーディング用のREADME。これらのドキュメントは、コストがかからない場合に限りルールに従うことができますが、この規律の対象にはなりません。

規律

会話履歴のない読者のために書く。 ドキュメントは自己記述的であり、「議論したように」、以前のセッション、または誰かの頭の中にある知識に依存してはなりません。テスト: まったく新しいエージェントセッションが、ドキュメントを読むだけで行動できること。

すべてのルールはチェック可能であり、「なぜ」を伴うこと。 「きれいに保つ」だけでは不十分です。観察可能な条件と理由を記述してください。テスト: エージェントがテキストだけで合格/不合格を判断でき、理由がルールの隣に記述されていること。

一つの意味、一つの場所。 各ルールまたは定義には単一の信頼できる場所があります。重複はやがてずれを生みます。テスト: 振る舞いを変更するには、一箇所の編集で済むこと。

環境が示すことを決して再記述しない。 パッケージスクリプト、ディレクトリレイアウト、--help 出力は参照するものであり、ドキュメントではありません。コピーした参照は古くなります。ドキュメントには、見ただけでは見つけられないものだけを記述してください。文書化されていない慣習、選択の背後にある理由、ハマりどころなど。テスト: すべての行が「これは他の場所で参照できるか?」という問いに耐えられること。

手順を先に、参照を後で、稀な資料はポインタの後ろに。 何をすべきか、順序に沿って上部に配置し、オンデマンドで参照するルールはその下に配置します。頻度の低い資料は、それを参照すべき分岐を名前で示すポインタの後ろに押し込みます。テスト: 次のアクションが最初の画面内で見つけられること。

各手順は完了条件で終わる。 完了したかどうかがわからなければなりません。曖昧な境界は時期尚早な完了を招きます。テスト: 各手順について、「これが完了したかどうかはどうやってわかるか?」という問いに対する答えがテキスト内にあること。

肯定形で促す。 目標とする振る舞いを記述してください。禁止はハードなガードレールのために予約され、常に肯定形の目標と対にして記述されます。テスト: ドキュメント内のすべての禁止は、代わりに行うべきことを名前で示していること。

書き込み時にバーナクルを削り取る。 ドキュメントに古いまたは冗長な内容が含まれている場合は、同じ編集で削除します。含まれていない場合は、必要な内容のみを追加し、削除をでっち上げないでください。モデルがデフォルトですでに従う文は負荷のために存在するだけです。その文全体を削除してください。テスト: すべての行を再読し、「これはデフォルトと比較して振る舞いを変えるか?」という問いに耐えられることを確認し、編集時に見つかった古いまたは冗長な内容は削除されていること。

検証

ドキュメントの変更が完了したと報告する前に、以下を確認してください。

  • 新しいセッションが人間に何も尋ねずにそのドキュメントに基づいて行動できること
  • すべてのルールがチェック可能であり、その理由が明記されていること。どのルールも参照の再記述ではないこと
  • 意味が一箇所に存在し、ポインタがそのトリガーとなる分岐を名前で示していること
  • 編集時に見つかった古いまたは冗長な内容は削除され、有効な無関係な内容は保持されていること

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ai-slop-cleaner

Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode

ask

Process-first advisor routing for Claude, Codex, Gemini, Antigravity, Grok, or Cursor via `omc ask`, with artifact capture and no raw CLI assembly

ask-navigator

Shipyard

autopilot

Full autonomous execution from idea to working code

autoresearch

Stateful single-mission improvement loop with strict evaluator contract, markdown decision logs, and max-runtime stop behavior

cancel

Cancel any active OMC mode (autopilot, ralph, ultragoal, swarm, ultrapilot, pipeline, team) and clean up retired legacy state

configure-notifications

Configure notification integrations (Telegram, Discord, Slack) via natural language

debug

Diagnose the current OMC session or repo state using logs, traces, state, and focused reproduction

deepinit

Deep codebase initialization with hierarchical AGENTS.md documentation

deep-interview

Socratic deep interview with mathematical ambiguity gating before explicit execution approval

drydock

Lay the keel of the shipyard harness in any repo — the 4-pillar shared environment (Context, Rules, Tools, Standards) across 5 surfaces (CLAUDE.md, skills, design-system, mcp/cli, shared context) so that every human and agent inherits the same design language and anyone can ship. Run once per repo; re-run with --check to audit drift.

execute

Carry an approved task through to working, verified code

external-context

Invoke parallel document-specialist agents for external web searches and documentation lookup

graph

Deterministic orchestration graph runtime - declarative DAG pipelines with journal-based crash recovery

harbor

Harbor intake for external work — the captain only handles unresolved decisions. Sweeps incoming issues and PRs, verifies every claim before disposition, reuses every decision already made, and hands the maintainer a docket whose pending items each carry one question with options, recommendation, impact and evidence. Agent-autonomous for facts and for actions covered by standing authorization; signed for every new judgment. Never merges.

hud

Configure HUD display options (layout, presets, display elements)

launch

Shipyard

loft

Loft the shape before cutting steel — answer a design question that prose cannot settle by building a throwaway artifact: a pure logic module in a clickable shell, or structurally different UI variants behind one route. The captain reacts to the artifact; the answer folds into the decision; the artifact never docks. Use when a design question stalls in words, when a navigator map carries a loft ticket, or when a spec discussion reaches

minimal-code-discipline

YAGNI-ladder coding discipline for writing changes — existence-first, reuse before writing, dependency ladder, shortest correct diff, with non-negotiables that must never be minimized away

omc-doctor

Diagnose and fix oh-my-claudecode installation issues

関連スキル