Skip to content

chore(template): instructions/ フォルダを完全削除 - #282

Merged
Kensan196948G merged 4 commits into
mainfrom
chore/remove-instructions-folder
May 16, 2026
Merged

Kensan196948G merged 4 commits into
mainfrom
chore/remove-instructions-folder

Conversation

@Kensan196948G

@Kensan196948G Kensan196948G commented May 13, 2026 •

Copy link
Copy Markdown
Owner

📌 概要

ClaudeOS v9.0 の「AI開発組織」としての成熟度を向上させる一連の改善。
instructions/ 削除によるブートローダー化に加え、長期学習・Trust Ledger・Agent並列通信の基盤を実装。


🔧 変更内容

1. instructions/ フォルダ完全削除

  • Claude/templates/claude/instructions/ を削除(ブートローダー化完了)
  • START_PROMPT.md が単一エントリーポイントとして機能

2. /goal テンプレート 11セクション構造化

  • 旧: 完了条件 / 制約 / 停止条件(3層)
  • 新: Goal / Priority / Success Criteria / Scope / Forbidden Changes / Execution Strategy / Agent Teams / Validation / Evidence Output / Constraints / Stop Conditions(11セクション)
  • goals/ を配布対象外から配布対象 claudeos/ へ移動

3. START_PROMPT.md 実行強制指示追加

  • /goal コマンドの「読むだけ終了」を禁止
  • 3ステップ手順(確認 -> Read -> 即時実行)を明示

4. reasoning-bank v2.0

  • success_count / failure_count を分離(confidence 計算の透明化)
  • negative_patterns セクション新設(失敗パターンの資産化)
  • usage_guide 追加(採用閾値 0.7 / decay ルール / 優先順位)

5. Trust Ledger(state.json 拡張)

  • trust.score / trust.level (1-3) / trust.auto_merge_enabled を追加
  • Level 2 (>=0.85): PR作成・auto_merge 自律化
  • Level 3 (>=0.95): Staging デプロイ自律化
  • CLAUDE.md §23 に行動ルールを追記

6. Trust Score 自動更新 GitHub Actions

  • .github/workflows/trust-score-update.yml 新規作成
  • CI完了後(main/master のみ)に Python で自動計算・commit
  • Claude/templates/claudeos/workflows/ に配布用テンプレートも追加

7. Agent Communication Protocol

  • GitHub Issues をエージェント間メッセージバスとして定義
  • .github/ISSUE_TEMPLATE/agent-message.md 新規作成
  • Claude/templates/claudeos/docs/agent-communication-protocol.md 新規作成
  • [AGENT-MSG] 送信元 -> 宛先 | 件名 フォーマットを統一

📊 テスト結果

  • lint: 対象ファイルなし(Markdown / JSON / YAML)
  • CI: 本 PR の CI 通過確認後 merge

🔭 影響範囲

  • 全登録プロジェクト(Start-ClaudeCode.ps1 実行時に自動配布)
  • 既存の state.json は trust セクション未記載でも動作(後方互換)

📋 残課題(次フェーズ)

  • GitHub Labels 作成(agent-msg / priority:urgent 等)
  • START_PROMPT に trust-score.json 読み込み指示を追加
  • blocked_events の自動更新機構
  • Cross-project reasoning-bank

🤖 Generated with Claude Code

ClaudeOS/ へ移行済みのため旧 instructions/ を廃止。
- 11ファイル + BackUp/ 12ファイル + ヘッダ/フッタ/YML を削除
- ClaudeOS/ (core/execution/quality/ai-review/governance/goals/) が正本

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 13, 2026 •

Copy link
Copy Markdown

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'ignore_dot_files'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

START_PROMPT と CLAUDE.md の起動/goal_type ロジックを更新し、旧 v9 指示テンプレート群を削除。.claude/claudeos/goals/ に hotfix、mvp-release、production-release、refactoring、security-emergency のゴールテンプレートを追加し、Trust Ledger と Agent Communication Protocol 文書と Issue テンプレートを導入しました。

Changes

Template migration & new goal templates

Layer / File(s) Summary
CLAUDE goal path update
Claude/templates/claude/ClaudeOS/CLAUDE.md
goal_type に応じたゴール定義の参照先を goals/<name>.md から .claude/claudeos/goals/<name>.md に変更。
START_PROMPT startup & goal setup
Claude/templates/claude/START_PROMPT.md
System Startup 指示を拡張し、Goal 選択 を廃止。Goal 設定(必須) 手順(goal_type確認→対応ファイルRead→/goal を Skill で即時実行)と CTO 判定ルールを追加。
Add claudeos goal templates
Claude/templates/claudeos/goals/hotfix.md, Claude/templates/claudeos/goals/mvp-release.md, Claude/templates/claudeos/goals/production-release.md, Claude/templates/claudeos/goals/refactoring.md, Claude/templates/claudeos/goals/security-emergency.md
新規ゴールテンプレートを /goal ブロック形式で追加(hotfix、MVP、production、refactoring、security-emergency)。
Trust Ledger & Agent Communication
CLAUDE.md, Claude/templates/claudeos/docs/trust-ledger.md, Claude/templates/claudeos/docs/agent-communication-protocol.md, .github/ISSUE_TEMPLATE/agent-message.md
Trust Ledger(trust.score/level 計算、state.json への更新手順、昇降格ルール)と、GitHub Issues を用いる Agent Communication Protocol とその Issue テンプレートを追加・参照先更新。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed PR タイトルは削除対象のフォルダ(instructions/)を明確に指定し、変更内容の主要点を簡潔に説明している。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-instructions-folder

Comment @coderabbitai help to get the list of available commands and usage tips.

- Claude/templates/claude/ClaudeOS/goals/ → Claude/templates/claudeos/goals/ へ移動
- TemplateSyncManager の配布対象(claudeos/)に含まれるようになり
  Start-ClaudeCode.ps1 実行時に登録プロジェクトへ自動配布される
- START_PROMPT.md のパス参照を ClaudeOS/goals/ → claudeos/goals/ に更新
- ClaudeOS/CLAUDE.md のパス参照を .claude/claudeos/goals/ に明示

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Claude/templates/claude/START_PROMPT.md`:
- Around line 57-61: Update the goal file paths in the listed mappings so they
point to the unified directory prefix ".claude/claudeos/goals/"; specifically
change entries like "mvp-release → claudeos/goals/mvp-release.md",
"production-release → claudeos/goals/production-release.md", "hotfix →
claudeos/goals/hotfix.md", "security-emergency →
claudeos/goals/security-emergency.md", and "refactoring →
claudeos/goals/refactoring.md" to use ".claude/claudeos/goals/<name>.md" so they
match the assumption in Line 14 and the CLAUDE.md mapping.

In `@Claude/templates/claudeos/goals/mvp-release.md`:
- Line 8: Reference "CLAUDE.md §5.1" in the line should be updated because it no
longer matches the target document; open the file
Claude/templates/claudeos/goals/mvp-release.md, find the string "CLAUDE.md §5.1"
and either replace it with the actual heading title from CLAUDE.md (use the
exact heading text as the link target) or remove the section-number reference
entirely and, if appropriate, replace with a stable link to "CLAUDE.md" or the
correct heading anchor so the reference resolves.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bab69961-f616-4fae-a894-3fdb30dd7d2b

📥 Commits

Reviewing files that changed from the base of the PR and between a1cfbdc and c6a53fc.

📒 Files selected for processing (12)
  • Claude/templates/claude/ClaudeOS/CLAUDE.md
  • Claude/templates/claude/ClaudeOS/goals/hotfix.md
  • Claude/templates/claude/ClaudeOS/goals/mvp-release.md
  • Claude/templates/claude/ClaudeOS/goals/production-release.md
  • Claude/templates/claude/ClaudeOS/goals/refactoring.md
  • Claude/templates/claude/ClaudeOS/goals/security-emergency.md
  • Claude/templates/claude/START_PROMPT.md
  • Claude/templates/claudeos/goals/hotfix.md
  • Claude/templates/claudeos/goals/mvp-release.md
  • Claude/templates/claudeos/goals/production-release.md
  • Claude/templates/claudeos/goals/refactoring.md
  • Claude/templates/claudeos/goals/security-emergency.md
💤 Files with no reviewable changes (5)
  • Claude/templates/claude/ClaudeOS/goals/refactoring.md
  • Claude/templates/claude/ClaudeOS/goals/security-emergency.md
  • Claude/templates/claude/ClaudeOS/goals/production-release.md
  • Claude/templates/claude/ClaudeOS/goals/mvp-release.md
  • Claude/templates/claude/ClaudeOS/goals/hotfix.md
✅ Files skipped from review due to trivial changes (4)
  • Claude/templates/claudeos/goals/production-release.md
  • Claude/templates/claudeos/goals/refactoring.md
  • Claude/templates/claudeos/goals/security-emergency.md
  • Claude/templates/claudeos/goals/hotfix.md

Comment on lines +57 to +61
mvp-release → claudeos/goals/mvp-release.md
production-release → claudeos/goals/production-release.md
hotfix → claudeos/goals/hotfix.md
security-emergency → claudeos/goals/security-emergency.md
refactoring → claudeos/goals/refactoring.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

goalファイル参照パスを .claude/claudeos/goals/ に統一してください。

Line 14 の前提(.claude/ClaudeOS/ 配下を読む)と、CLAUDE.md のマッピング(.claude/claudeos/goals/*.md)に対して、ここだけ claudeos/goals/*.md になっており不整合です。必須手順のため、実行時に goal 読み込み失敗の原因になります。

修正例(差分)
-mvp-release        → claudeos/goals/mvp-release.md
-production-release → claudeos/goals/production-release.md
-hotfix             → claudeos/goals/hotfix.md
-security-emergency → claudeos/goals/security-emergency.md
-refactoring        → claudeos/goals/refactoring.md
+mvp-release        → .claude/claudeos/goals/mvp-release.md
+production-release → .claude/claudeos/goals/production-release.md
+hotfix             → .claude/claudeos/goals/hotfix.md
+security-emergency → .claude/claudeos/goals/security-emergency.md
+refactoring        → .claude/claudeos/goals/refactoring.md
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Claude/templates/claude/START_PROMPT.md` around lines 57 - 61, Update the
goal file paths in the listed mappings so they point to the unified directory
prefix ".claude/claudeos/goals/"; specifically change entries like "mvp-release
→ claudeos/goals/mvp-release.md", "production-release →
claudeos/goals/production-release.md", "hotfix → claudeos/goals/hotfix.md",
"security-emergency → claudeos/goals/security-emergency.md", and "refactoring →
claudeos/goals/refactoring.md" to use ".claude/claudeos/goals/<name>.md" so they
match the assumption in Line 14 and the CLAUDE.md mapping.

MVP Release Candidate を完成させ、最小限の動作可能な状態でリリース判定を受ける。

■ Priority
CTO優先順位テーブル (CLAUDE.md §5.1) の優先度4: /goal の Goal 直結 Issue(MVP機能実装)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

CLAUDE.md §5.1 の参照が現行構成と一致していません。

この参照は、現在の Claude/templates/claude/ClaudeOS/CLAUDE.md では辿れないため、節番号ではなく実在見出し名へ置き換えるか、参照自体を削除してください。

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Claude/templates/claudeos/goals/mvp-release.md` at line 8, Reference
"CLAUDE.md §5.1" in the line should be updated because it no longer matches the
target document; open the file Claude/templates/claudeos/goals/mvp-release.md,
find the string "CLAUDE.md §5.1" and either replace it with the actual heading
title from CLAUDE.md (use the exact heading text as the link target) or remove
the section-number reference entirely and, if appropriate, replace with a stable
link to "CLAUDE.md" or the correct heading anchor so the reference resolves.

## 変更内容

### 1. reasoning-bank スキーマ v2.0
- success_count / failure_count を分離追加(confidence 計算の透明化)
- negative_patterns セクション新設(失敗パターンの資産化)
- usage_guide 追加(採用閾値・優先順位・decay ルール)

### 2. Trust Ledger(state.json 拡張)
- trust.score / trust.level / trust.auto_merge_enabled を追加
- Level 1〜3 の段階的自律判断権限を定義
- trust.history でセッション実績を蓄積
- CLAUDE.md §23 に行動ルールを追記

### 3. Agent Communication Protocol(GitHub Issues メッセージバス)
- .github/ISSUE_TEMPLATE/agent-message.md 新規作成
- claudeos/docs/agent-communication-protocol.md 新規作成
- CLAUDE.md §23.1 にプロトコル概要を追記

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CLAUDE.md`:
- Around line 949-950: 本文のパス表記が参照先一覧と不一致なので、§23 および §23.1 にある
".claude/claudeos/docs/..." プレフィックスを参照先セクションで使われている "claudeos/..."
表記に統一してください(該当するファイル名は trust-ledger.md と agent-communication-protocol.md
を含むエントリ)。該当文字列を置換して本文と目次/参照先エントリの表記が一致するように修正してください。
- Around line 903-920: Add a missing "trust" object to the state.json schema
example referenced in section 4 so the document defines trust.level,
trust.score, trust.history (array of entries with timestamp/action/score_delta),
and trust.auto_merge_enabled (boolean); update the example schema near the
existing state.json block to include these keys and sensible defaults. Also
update the section 23 header to include the required icon prefix so it matches
the style rule (e.g., change the title to "## 📌 Trust Ledger(自律判断範囲の段階的拡大)").
Ensure references in the text to trust.level, trust.score, trust.history, and
trust.auto_merge_enabled match the schema field names exactly.
- Around line 921-932: Insert a new Step 2.5 in §0 between existing Step 2 and
Step 3 to run the Agent Communication check as specified in §23.1: call out
running "gh issue list --label \"agent-msg,status:open\" --limit 10" to surface
unprocessed agent messages and immediately context-switch if any item has label
"priority:urgent" (reference Step 2/Step 3 and §23.1); also update the §23.1
heading (the line at 921) to include the required icon prefix per §2.1 (e.g.,
add "## 📌" before the title) so the section follows the chapter-title icon
rule.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d954d443-312e-470d-ab63-8513acf54d63

📥 Commits

Reviewing files that changed from the base of the PR and between c6a53fc and 6f7cb67.

⛔ Files ignored due to path filters (2)
  • .claude/claudeos/data/reasoning-bank.json is excluded by none and included by none
  • Claude/templates/claude/ClaudeOS/templates/state.json is excluded by none and included by none
📒 Files selected for processing (4)
  • .github/ISSUE_TEMPLATE/agent-message.md
  • CLAUDE.md
  • Claude/templates/claudeos/docs/agent-communication-protocol.md
  • Claude/templates/claudeos/docs/trust-ledger.md
✅ Files skipped from review due to trivial changes (2)
  • Claude/templates/claudeos/docs/agent-communication-protocol.md
  • Claude/templates/claudeos/docs/trust-ledger.md

Comment thread CLAUDE.md
Comment on lines +903 to +920
## 23. Trust Ledger(自律判断範囲の段階的拡大)

`state.json` の `trust.level` に応じて CTO の自律可能な操作範囲が変わる。
詳細: `.claude/claudeos/docs/trust-ledger.md`

| Level | score 条件 | 追加で自律可能な操作 |
|---|---|---|
| 1 | 0.0〜0.84 | ファイル編集・テスト・Issue起票・Draft PR |
| 2 | 0.85〜0.94 | + PR作成・auto_merge(CI全通過時) |
| 3 | 0.95〜1.00 | + Staging デプロイ |

> 本番デプロイは Level 3 でも人間サインオフ必須

**CTO 行動ルール:**
- セッション開始時に `trust.level` を確認し、許可操作範囲内で行動する
- セッション終了時に `trust.history` を更新し `trust.score` を再計算する
- Security Critical 検出時は即座に Level 1 へ降格する

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

state.json スキーマに trust フィールドの定義が欠けています

セクション23では trust.level、trust.score、trust.history、trust.auto_merge_enabled を参照していますが、セクション4(207-245行)の state.json スキーマにこれらのフィールドが定義されていません。CTO がセッション開始時に trust.level を確認し、終了時に更新する運用を実現するには、スキーマ例に trust オブジェクトを追加する必要があります。

🛠️ 提案修正: state.json スキーマに trust フィールドを追加

セクション4の state.json スキーマ例(207-245行付近)に以下を追加:

   "learning": {
     "failure_patterns": [],
     "success_patterns": []
   },
+  "trust": {
+    "score": 0.5,
+    "level": 1,
+    "auto_merge_enabled": false,
+    "history": []
+  },
   "quality_gates": {

セクションタイトルにアイコンが不足しています

§2.1(162行)で「章タイトルは必ずアイコン付きで開始する」と規定されていますが、セクション23のタイトル(903行)にアイコンがありません。

♻️ 提案修正
-## 23. Trust Ledger(自律判断範囲の段階的拡大)
+## 🔐 23. Trust Ledger(自律判断範囲の段階的拡大)

As per coding guidelines: "章タイトルは必ずアイコン付きで開始する(## 📌 タイトル の形式)"

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## 23. Trust Ledger(自律判断範囲の段階的拡大)
`state.json` の `trust.level` に応じて CTO の自律可能な操作範囲が変わる。
詳細: `.claude/claudeos/docs/trust-ledger.md`
| Level | score 条件 | 追加で自律可能な操作 |
|---|---|---|
| 1 | 0.0〜0.84 | ファイル編集・テスト・Issue起票・Draft PR |
| 2 | 0.85〜0.94 | + PR作成・auto_merge(CI全通過時) |
| 3 | 0.95〜1.00 | + Staging デプロイ |
> 本番デプロイは Level 3 でも人間サインオフ必須
**CTO 行動ルール:**
- セッション開始時に `trust.level` を確認し、許可操作範囲内で行動する
- セッション終了時に `trust.history` を更新し `trust.score` を再計算する
- Security Critical 検出時は即座に Level 1 へ降格する
## 🔐 23. Trust Ledger(自律判断範囲の段階的拡大)
`state.json` の `trust.level` に応じて CTO の自律可能な操作範囲が変わる。
詳細: `.claude/claudeos/docs/trust-ledger.md`
| Level | score 条件 | 追加で自律可能な操作 |
|---|---|---|
| 1 | 0.0〜0.84 | ファイル編集・テスト・Issue起票・Draft PR |
| 2 | 0.85〜0.94 | + PR作成・auto_merge(CI全通過時) |
| 3 | 0.95〜1.00 | + Staging デプロイ |
> 本番デプロイは Level 3 でも人間サインオフ必須
**CTO 行動ルール:**
- セッション開始時に `trust.level` を確認し、許可操作範囲内で行動する
- セッション終了時に `trust.history` を更新し `trust.score` を再計算する
- Security Critical 検出時は即座に Level 1 へ降格する
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CLAUDE.md` around lines 903 - 920, Add a missing "trust" object to the
state.json schema example referenced in section 4 so the document defines
trust.level, trust.score, trust.history (array of entries with
timestamp/action/score_delta), and trust.auto_merge_enabled (boolean); update
the example schema near the existing state.json block to include these keys and
sensible defaults. Also update the section 23 header to include the required
icon prefix so it matches the style rule (e.g., change the title to "## 📌 Trust
Ledger(自律判断範囲の段階的拡大)"). Ensure references in the text to trust.level,
trust.score, trust.history, and trust.auto_merge_enabled match the schema field
names exactly.

Comment thread CLAUDE.md
Comment on lines +921 to +932
## 23.1 Agent Communication Protocol(GitHub Issues メッセージバス)

複数 Claude セッションが並列動作する場合、GitHub Issues を通信チャネルとして使用する。
詳細: `.claude/claudeos/docs/agent-communication-protocol.md`

```bash
# セッション開始時に未処理のエージェントメッセージを確認する
gh issue list --label "agent-msg,status:open" --limit 10
```

緊急メッセージ(`priority:urgent`)は現在の作業を中断して最優先で処理する。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

セッション開始時の自動実行手順に Agent Communication 確認が含まれていません

セクション23.1では「セッション開始時に未処理のエージェントメッセージを確認する」と記載されていますが、§0「セッション開始時の自動実行(最優先)」(20-125行)にこの手順が含まれていません。Based on learnings: "GitHub Issues を message bus として使用; セッション開始時に未処理メッセージ確認; priority:urgent は即座に context switch" という運用方針と整合させるため、§0 のステップ2とステップ3の間に Agent メッセージ確認手順を追加する必要があります。

🛠️ 提案修正: §0 にステップ 2.5 を追加

ステップ2(31-66行)とステップ3(67-112行)の間に以下を挿入:

### ステップ 2.5: Agent Communication 確認(v9.0+)

複数 Claude セッションが並列動作している場合、未処理のエージェントメッセージを確認する:

```bash
gh issue list --label "agent-msg,status:open" --limit 10

緊急メッセージ(priority:urgent)が存在する場合は現在の作業を中断して最優先で処理する。
詳細: §23.1 / .claude/claudeos/docs/agent-communication-protocol.md

</details>

---

**セクションタイトルにアイコンが不足しています**

§2.1の規約に従い、セクション23.1のタイトル(921行)にもアイコンを付ける必要があります。




<details>
<summary>♻️ 提案修正</summary>

```diff
-## 23.1 Agent Communication Protocol(GitHub Issues メッセージバス)
+## 📨 23.1 Agent Communication Protocol(GitHub Issues メッセージバス)

As per coding guidelines: "章タイトルは必ずアイコン付きで開始する(## 📌 タイトル の形式)"

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CLAUDE.md` around lines 921 - 932, Insert a new Step 2.5 in §0 between
existing Step 2 and Step 3 to run the Agent Communication check as specified in
§23.1: call out running "gh issue list --label \"agent-msg,status:open\" --limit
10" to surface unprocessed agent messages and immediately context-switch if any
item has label "priority:urgent" (reference Step 2/Step 3 and §23.1); also
update the §23.1 heading (the line at 921) to include the required icon prefix
per §2.1 (e.g., add "## 📌" before the title) so the section follows the
chapter-title icon rule.

Comment thread CLAUDE.md
Comment on lines +949 to +950
| Trust Ledger | `claudeos/docs/trust-ledger.md` |
| Agent通信 | `claudeos/docs/agent-communication-protocol.md` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

パス表記が本文と参照先セクションで不一致です

参照先セクション(949-950行)では claudeos/docs/trust-ledger.md および claudeos/docs/agent-communication-protocol.md と記載されていますが、§23(906行)および §23.1(924行)では .claude/claudeos/docs/ と記載されています。他の参照先エントリ(937-948行)も claudeos/ で統一されているため、本文側の記載を参照先セクションと一致させる必要があります。

♻️ 提案修正
 `state.json` の `trust.level` に応じて CTO の自律可能な操作範囲が変わる。
-詳細: `.claude/claudeos/docs/trust-ledger.md`
+詳細: `claudeos/docs/trust-ledger.md`
 複数 Claude セッションが並列動作する場合、GitHub Issues を通信チャネルとして使用する。
-詳細: `.claude/claudeos/docs/agent-communication-protocol.md`
+詳細: `claudeos/docs/agent-communication-protocol.md`

As per coding guidelines: "template ↔ root のドリフトを指摘"

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CLAUDE.md` around lines 949 - 950, 本文のパス表記が参照先一覧と不一致なので、§23 および §23.1 にある
".claude/claudeos/docs/..." プレフィックスを参照先セクションで使われている "claudeos/..."
表記に統一してください(該当するファイル名は trust-ledger.md と agent-communication-protocol.md
を含むエントリ)。該当文字列を置換して本文と目次/参照先エントリの表記が一致するように修正してください。

- .github/workflows/trust-score-update.yml 新規作成
  - CI ワークフロー完了後(main/master のみ)に自動トリガー
  - Python で trust-score.json を更新・commit
  - score / level / auto_merge_enabled を自動再計算
- .claude/claudeos/data/trust-score.json 初期ファイル作成
- Claude/templates/claudeos/workflows/ に配布用テンプレート追加

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant