Skip to content

feat(template): START_PROMPT を v10.0 Universal Supervisor へ刷新 + /goal キーワード11/11整合 - #338

Merged
Kensan196948G merged 2 commits into
mainfrom
feat/start-prompt-v10
Jun 6, 2026
Merged

Kensan196948G merged 2 commits into
mainfrom
feat/start-prompt-v10

Conversation

@Kensan196948G

@Kensan196948G Kensan196948G commented Jun 6, 2026 •

Copy link
Copy Markdown
Owner

📌 概要

Claude/templates/claude/START_PROMPT.md を v9.0 Boot Loader → v10.0 Universal Supervisor へ刷新する。
PR #322 のスコープ外として分離した「START_PROMPT v10.0 刷新(冒頭 /goal \"...\" 復元前提)」を別 PR で再提出するもの。

🔧 変更内容

  • 冒頭行を /goal \"Mission ... \" ブロックで開始(Claude Code UI が起動時に自動実行する規約を維持。start.bat/start.sh 経由・手動 claude 双方で機能)
  • 欠落していた 6 キーワードを /goal 引用符ブロック内へ正規表記で充足
    検査器 verify-goal-set.js は goalLine.includes(kw) の 大文字小文字・スペース完全一致 で判定するため、意味追加ではなく正規表記への寄せ込みが本質:
    キーワード 対応
    CTO全権委任 Authority 行に前置
    AgentTeams / DynamicWorkflows Agent Orchestration をスペース無し表記へ正規化
    5時間 Session Limit セクション新設 + Exit Condition に 5時間到達
    stop after Exit Condition に or stop after 20 turns
    security Review 行に security scan を追加(小文字一致用)
  • 本文を v9.0 Boot Loader → v10.0 Universal Supervisor ドキュメントへ全面置換(Purpose / Core Execution Model / Critical Rules / Supervisor Responsibilities / Workflow Selection / Agent Teams / Validation Requirements / Release Guard / Auto Stop Conditions / CTO Autonomous Development Mode)

✅ テスト結果

検証 結果
node .claude/claudeos/scripts/hooks/verify-goal-set.js ✅ 必須キーワード 11/11 整合(欠落警告ゼロ)
node scripts/check-doc-versions.js ✅ PASSED(README=v3.4.9 / agents=44 / commands=42、バージョンドリフトなし)
shellcheck / bats 非該当(本 PR は markdown テンプレ単体変更、.sh/.bats 差分なし)

差分: 1 file changed, 440 insertions(+), 60 deletions(-)(テンプレファイル単体)。

🗺️ 影響範囲

  • 変更は Claude/templates/claude/START_PROMPT.md テンプレ単体。配布は TemplateSyncManager / init-claudeos-project により各登録プロジェクトへ反映される(本 PR では配布実行しない)。
  • ⚠️ v9.0 → v10.0 で boot-step が外れる差分(要認識): v9.0 Boot Loader 本文にあった以下の起動手順が v10.0 ドキュメントには含まれない。
    • ステップB: .claude/claudeos/ カーネル 20 ファイルの順次 Read(core/00-04 → execution/05-08 → quality/09-13 → ai-review/14-16 → governance/17-20)
    • ステップC: goal_type 別ファイル読込
    • ステップD: Trust Level 確認 + gh issue list --label \"agent-msg,status:open\"
    • ステップE: claude agents(Agent View 起動)
    • これはユーザー提供の v10.0 ドキュメントを忠実に再提出したもの(再設計ではない)。boot-step を v10.0 に再統合するか否かは別途判断とする。

📋 残課題

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • システム用プロンプトテンプレートを全面更新しました。CTOへの委任指示、オーケストレーション要素(Workflows/DynamicWorkflows/AgentTeams/SubAgents/Hooks/Auto Mode)、開発ループ(Monitor/Development/Verify/Review)、厳守セッション制限(最大5時間)、終了条件(Release/Production/Goal/5時間到達/stop after 20 turns)、セキュリティスキャンやレビュー種別、code-review --fix 維持・拡張、及び「ClaudeCode Universal Supervisor v10.0」テンプレートを追加。

注記: 主に内部ドキュメント更新で、エンドユーザー向けの直接的な機能変更はありません。

… キーワード11/11整合

冒頭 /goal "..." ブロックを復元しつつ、検査器が要求する正規表記へ寄せ込み、
v9.0 Boot Loader 本文を v10.0 Universal Supervisor ドキュメントへ置換する。

変更点:
- 冒頭行を /goal "Mission ... " で開始 (Claude Code UI が自動実行する規約を維持)
- 欠落していた 6 キーワードを /goal 引用符ブロック内へ正規表記で充足
  - CTO全権委任 (Authority 行に前置)
  - AgentTeams / DynamicWorkflows (Agent Orchestration をスペース無し表記へ正規化)
  - 5時間 (Session Limit セクション新設 + Exit Condition に 5時間到達)
  - stop after (Exit Condition に or stop after 20 turns)
  - security (Review 行に security scan を追加・小文字一致用)
- verify-goal-set.js: 必須キーワード 11/11 整合 (欠落警告ゼロ)
- 本文を v9.0 Boot Loader → v10.0 Universal Supervisor へ全面置換

検証:
- node verify-goal-set.js → ✅ 必須キーワード 11/11 整合
- node check-doc-versions.js → PASSED (README=v3.4.9, agents=44, commands=42)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

Complex PR? Review this PR in Change Stack to move by importance, not file order.

Review Change Stack

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: "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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 17bd345c-01c5-4e8e-b674-649ffdd6a03d

📥 Commits

Reviewing files that changed from the base of the PR and between 3e909ef and 23711ea.

📒 Files selected for processing (1)
  • Claude/templates/claude/START_PROMPT.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • Claude/templates/claude/START_PROMPT.md

ウォークスルー

START_PROMPT.md をアップデート。/goal 後の CTO 全権委任を具体化し、オーケストレーション要素・開発ループ・セッション上限(5時間)・終了条件(stop after 20 turns 等)を追加、v9.0 を置換して ClaudeCode Universal Supervisor v10.0 テンプレートを導入。

変更内容

START_PROMPT.md v10.0 Universal Supervisor 刷新

レイヤー / ファイル 概要
CTO全権委任の初期化
Claude/templates/claude/START_PROMPT.md
START_PROMPT 冒頭 /goal セクション後の文言を CTO 全権委任に明示的に置換(技術的/設計/優先順位/実装/レビュー/改善判断を含む)。
オーケストレーション要素とセッション制約の整備
Claude/templates/claude/START_PROMPT.md
CTO が利用可能なオーケストレーション要素(Workflows/DynamicWorkflows/AgentTeams/SubAgents/Hooks/Auto Mode)を列挙。セッション最大時間(5時間)、Development Loop(Monitor/Development/Verify/Review)、Review 手順に security scan やレビュー種別の明示、終了条件に stop after 20 turns と 5時間到達 を追加。
ClaudeCode Universal Supervisor v10.0 テンプレート導入
Claude/templates/claude/START_PROMPT.md
v9.0 ブートローダ記述を大幅置換し、Universal Supervisor v10.0 テンプレートを導入。目的・実行モデル・クリティカルルール(Security First/Verification First/Error Control/Change Control)、監督責務、ワークフロー選択、エージェントチーム編成、セッション開始/検証/リリースガード/セッションレポート/自動停止条件、CTO 自律開発モードとその終了条件を定義。

推定レビュー工数

🎯 4 (Complex) | ⏱️ ~50 分

関連する可能性のある PR

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PRタイトルは START_PROMPT を v9.0 から v10.0 Universal Supervisor へ刷新し、/goal キーワード11件の整合化という2つの主要な変更を正確に反映している。
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.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/start-prompt-v10

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

@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: 1

🤖 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 33-466: The file's Markdown headings lack the required icon
taxonomy; update every top-level and subsection header (e.g., "ClaudeCode
Universal Supervisor v10.0", "Core Execution Model", "Primary Objective",
"Critical Rules", and "Security First") to include the standard icons (e.g., 📌
for objectives, 🚀 for workflows, ✅/❌ for verification/pass-fail, 🔒 for
security, 📊 for reports) and ensure consistent usage across all headings (use
the same icon for the same semantic category); edit each heading string in this
file so it prepends the appropriate icon and adjust any related
session/startup/report blocks to match the taxonomy.
🪄 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: 7047681d-2b29-411b-a8b0-370b8d3bbf99

📥 Commits

Reviewing files that changed from the base of the PR and between 37cc3d6 and 3e909ef.

📒 Files selected for processing (1)
  • Claude/templates/claude/START_PROMPT.md

Comment thread Claude/templates/claude/START_PROMPT.md Outdated
CodeRabbit レビュー指摘 (PR #338): v10.0 ドキュメントの章見出しが
CLAUDE.md §2.1 の必須アイコン分類に未準拠。実見出し 24 個へ用途別
アイコンを付与し規約準拠とする。

- /goal ブロック (L1-31) は不変 (必須キーワード 11/11 整合を維持)
- コードフェンス内 L375 `# Session Report` はリテラルにつき非変更
- アイコンは §2.1 用途別表に従い選定 (📌章/🔁ループ/⚠️警告/🔐セキュ/
  ✅成功/🔧設定/🤖Agent/💻実装/🧪QA/🚀リリース/🏛️設計/🎬開始/🛡️Guard/
  📊メトリクス/👔CTO)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Kensan196948G
Kensan196948G merged commit dc158bc into main Jun 6, 2026
5 checks passed
@Kensan196948G
Kensan196948G deleted the feat/start-prompt-v10 branch June 6, 2026 02:19
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