From c018d2ffa5b3b04eab89640808a79decae4118a0 Mon Sep 17 00:00:00 2001 From: okash1n <48118431+okash1n@users.noreply.github.com> Date: Fri, 12 Jun 2026 12:51:49 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20CLAUDE.md=20=E6=B3=A8=E5=85=A5=E9=83=A8?= =?UTF-8?q?=E3=82=92=E6=9C=80=E7=B5=82=E7=B8=AE=E5=B0=8F=20=E2=80=94=20/cl?= =?UTF-8?q?ear=20=E8=A1=8C=E5=89=8A=E9=99=A4=E3=83=BBSpec=20Kit=20feature?= =?UTF-8?q?=20=E5=8C=96=E3=81=BB=E3=81=8B=EF=BC=88#119=E3=80=81v0.69.0?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 「/clear を活用」行削除(モデルには実行不能な旧世代 babysitting) - Conventional Commits を既存規約優先の条件付きに(rules/git-workflow と整合) - Spec Kit ブロックを {{FEATURE:spec-kit}} + INSTALL_COMMANDS ゲートの partial 1 行へ - web-content-extraction partial を harness 標準注入と重複しないポリシー 1 行に縮小 - codex partial の旧能力前提タスクルーティングをクロスモデルレビュー + 明示依頼時 rescue に縮小 - 最大構成の合成 kit セクションは約 34% 縮小(分類器対策 #76 と同方向の純減) Closes #119 --- CHANGELOG.md | 13 +++++++++++++ features/codex-plugin/CLAUDE.md.partial.en | 4 ++-- features/codex-plugin/CLAUDE.md.partial.ja | 4 ++-- i18n/en/CLAUDE.md.base | 9 ++------- i18n/en/partials/spec-kit.md | 2 ++ i18n/en/partials/web-content-extraction.md | 2 -- i18n/ja/CLAUDE.md.base | 9 ++------- i18n/ja/partials/spec-kit.md | 2 ++ i18n/ja/partials/web-content-extraction.md | 2 -- lib/deploy.sh | 5 +++++ 10 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 i18n/en/partials/spec-kit.md create mode 100644 i18n/ja/partials/spec-kit.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 09d0757..5e170d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/). +## [0.69.0] - 2026-06-12 + +LLM 性能監査(#121)P4 の第 3 弾(#119)。CLAUDE.md 注入部(base + partials)の最終縮小。Fable 5 分類器対策(#76 / v0.54.0)と同方向の常時注入削減で、最大構成の合成 kit セクションは約 34% 縮小(ja: 2360 → 1557 bytes)。 + +### Removed +- **「長いセッションでは /clear を活用」行を削除(#119)**: auto-compact 未成熟期のユーザー向けベストプラクティス由来。/clear はユーザーコマンドでモデルは実行できず、常時注入の指示として情報量ゼロ +- **codex-plugin partial のタスク種別ルーティングを削除(#119)**: 「大きめのコード生成・複数ファイル変更・テスト作成・リファクタリング・原因調査は Codex へ」という旧世代の能力差前提の委譲示唆を、「クロスモデルの独立視点(/codex:review, /codex:adversarial-review)+ ユーザー明示依頼時の /codex:rescue」に縮小。打ち消し用だった「単純な作業は Claude が直接行う」も削除 + +### Changed +- **Conventional Commits を条件付き化(#119)**: 全プロジェクト一律強制から「リポジトリの既存規約を優先、規約がなければ Conventional Commits」に書換(rules/git-workflow.md と整合) +- **Spec Kit ブロックを feature 化(#119)**: base 直書きで全プロファイルに常時注入されていた 4 行を `{{FEATURE:spec-kit}}` + `INSTALL_COMMANDS` ゲートの partial(1 行)に変更。minimal プロファイルでは注入されなくなり、マーカー共存規則・constitution 優先順位の詳細は commands/spec-kit-init.md に集約 +- **web-content-extraction partial を縮小(#119)**: harness が標準注入する skill description・コマンド一覧と重複していたコマンド列挙・SKILL.md 参照の 2 行を削除し、生 HTML を直接読まないポリシー 1 行のみに + ## [0.68.0] - 2026-06-12 LLM 性能監査(#121)P4 の第 2 弾(#118)。agents/ を現行世代に合わせて現代化した。 diff --git a/features/codex-plugin/CLAUDE.md.partial.en b/features/codex-plugin/CLAUDE.md.partial.en index 5f2143c..1837b22 100644 --- a/features/codex-plugin/CLAUDE.md.partial.en +++ b/features/codex-plugin/CLAUDE.md.partial.en @@ -2,8 +2,8 @@ # Codex Plugin -> Applies only when the Codex plugin (`openai/codex-plugin-cc`) is installed. Simple tasks (single-file/few-line changes, config or doc edits) are handled directly by Claude. +> Applies only when the Codex plugin (`openai/codex-plugin-cc`) is installed. -- Larger code generation, multi-file changes, reviews, test creation, refactoring, and root-cause analysis can be delegated to Codex. Claude verifies and integrates the results before reporting. +- Use Codex for an independent cross-model perspective: reviews via `/codex:review` / `/codex:adversarial-review`, and `/codex:rescue` when the user explicitly asks to offload an investigation or long-running job. Claude verifies and integrates the results before reporting. - Commands: `/codex:review` `/codex:adversarial-review` `/codex:rescue` `/codex:status` `/codex:result` `/codex:cancel` `/codex:setup` - For delegation criteria, review focus, and cautions, follow the plugin's documentation. diff --git a/features/codex-plugin/CLAUDE.md.partial.ja b/features/codex-plugin/CLAUDE.md.partial.ja index cb6643c..d2ffb0f 100644 --- a/features/codex-plugin/CLAUDE.md.partial.ja +++ b/features/codex-plugin/CLAUDE.md.partial.ja @@ -2,8 +2,8 @@ # Codex プラグイン -> `openai/codex-plugin-cc` を入れている場合のみ適用する。単純な作業(1ファイル・数行の修正、設定/ドキュメント編集等)は Claude が直接行う。 +> `openai/codex-plugin-cc` を入れている場合のみ適用する。 -- 大きめのコード生成・複数ファイル変更・レビュー・テスト作成・リファクタリング・原因調査などは Codex に委譲できる。Claude は結果を検証・統合してから報告する。 +- Codex はクロスモデルの独立視点として使う: `/codex:review` / `/codex:adversarial-review` によるレビューと、ユーザーが明示的に依頼した場合の `/codex:rescue`(調査・長時間ジョブのオフロード)。Claude は結果を検証・統合してから報告する。 - コマンド: `/codex:review` `/codex:adversarial-review` `/codex:rescue` `/codex:status` `/codex:result` `/codex:cancel` `/codex:setup` - 委譲基準・レビュー観点・注意事項の詳細は plugin のドキュメントに従う。 diff --git a/i18n/en/CLAUDE.md.base b/i18n/en/CLAUDE.md.base index eeb94e4..7d59349 100644 --- a/i18n/en/CLAUDE.md.base +++ b/i18n/en/CLAUDE.md.base @@ -2,14 +2,9 @@ # Global Settings ## Basic Principles -- Use Conventional Commits format (feat: / fix: / refactor: / test: / docs: / chore:) -- Use `/clear` in long sessions to refresh context - -## Optional: GitHub Spec Kit (Spec-Driven Development) -- If a project uses GitHub Spec Kit, it manages a separate block in this file marked ` ... `. The two blocks coexist; do not merge or reorder them. -- Project-local `/.specify/memory/constitution.md` **overrides** user-level global rules (this file and `~/.claude/rules/`) for that project's scope. -- Run `/spec-kit-init` inside a project to bootstrap the SDD workflow; `specify-cli` itself is installed via `uv tool install`, not by this kit. +- Follow the repository's existing commit style; use Conventional Commits format (feat: / fix: / refactor: / test: / docs: / chore:) when no convention exists +{{FEATURE:spec-kit}} {{FEATURE:web-content-extraction}} {{FEATURE:codex-plugin}} diff --git a/i18n/en/partials/spec-kit.md b/i18n/en/partials/spec-kit.md new file mode 100644 index 0000000..22bb682 --- /dev/null +++ b/i18n/en/partials/spec-kit.md @@ -0,0 +1,2 @@ +## Optional: GitHub Spec Kit +- Run `/spec-kit-init` inside a project to bootstrap spec-driven development with GitHub Spec Kit (details, marker rules, and constitution precedence are documented in the command). diff --git a/i18n/en/partials/web-content-extraction.md b/i18n/en/partials/web-content-extraction.md index ea00975..0dcd399 100644 --- a/i18n/en/partials/web-content-extraction.md +++ b/i18n/en/partials/web-content-extraction.md @@ -1,5 +1,3 @@ ## Web Fetch / URL Analysis - When reading a web page, URL, official doc, blog post, news article, or OSS page, extract the main content with the `web-content-extraction` skill first (do not summarize or analyze raw HTML directly). -- Related commands: `/web-article` / `/oss-analyze` / `/web-source-review` -- For fetch policies and failure handling, follow the skill's documentation (SKILL.md). diff --git a/i18n/ja/CLAUDE.md.base b/i18n/ja/CLAUDE.md.base index ede7f45..cfb4bb3 100644 --- a/i18n/ja/CLAUDE.md.base +++ b/i18n/ja/CLAUDE.md.base @@ -2,14 +2,9 @@ # グローバル設定 ## 基本方針 -- Conventional Commits 形式でコミットする(feat: / fix: / refactor: / test: / docs: / chore:) -- 長いセッションでは `/clear` を活用してコンテキストをリフレッシュする - -## オプション: GitHub Spec Kit(仕様駆動開発) -- プロジェクトが GitHub Spec Kit を利用する場合、本ファイル内に独立した ` ... ` ブロックが追加される。2 つのブロックは共存させ、結合や順序変更は行わない。 -- プロジェクトローカルの `/.specify/memory/constitution.md` は、そのプロジェクトのスコープに限りユーザーレベルのグローバル規約(本ファイルおよび `~/.claude/rules/`)を **上書き** する。 -- プロジェクト内で `/spec-kit-init` を実行すると SDD ワークフローを導入できる。`specify-cli` 本体は `uv tool install` でユーザー側に入れる前提(本キットはインストールしない)。 +- リポジトリに既存のコミット規約がある場合はそれに従い、ない場合は Conventional Commits 形式(feat: / fix: / refactor: / test: / docs: / chore:)を使う +{{FEATURE:spec-kit}} {{FEATURE:web-content-extraction}} {{FEATURE:codex-plugin}} diff --git a/i18n/ja/partials/spec-kit.md b/i18n/ja/partials/spec-kit.md new file mode 100644 index 0000000..8049598 --- /dev/null +++ b/i18n/ja/partials/spec-kit.md @@ -0,0 +1,2 @@ +## オプション: GitHub Spec Kit +- プロジェクト内で `/spec-kit-init` を実行すると GitHub Spec Kit による仕様駆動開発を導入できる(詳細・マーカー規則・constitution の優先順位はコマンド側に記載)。 diff --git a/i18n/ja/partials/web-content-extraction.md b/i18n/ja/partials/web-content-extraction.md index 130010d..ed2a455 100644 --- a/i18n/ja/partials/web-content-extraction.md +++ b/i18n/ja/partials/web-content-extraction.md @@ -1,5 +1,3 @@ ## Web取得・URL解析 - Webページ・URL・公式Doc・ブログ・ニュース・OSSページを読むときは、`web-content-extraction` skill で本文を抽出してから読む(生HTMLをそのまま要約・分析しない)。 -- 関連コマンド: `/web-article` / `/oss-analyze` / `/web-source-review` -- 取得時のポリシーや失敗時の扱いなど詳細は skill 側のドキュメント(SKILL.md)に従う。 diff --git a/lib/deploy.sh b/lib/deploy.sh index 7224fdd..0610404 100644 --- a/lib/deploy.sh +++ b/lib/deploy.sh @@ -510,6 +510,11 @@ build_claude_md_to_file() { cp -a "$base" "$out" # Web content extraction standard rule — only when the skill is installed + if is_true "${INSTALL_COMMANDS:-false}"; then + local sk_partial="$PROJECT_DIR/i18n/${lang}/partials/spec-kit.md" + inject_feature "$out" "spec-kit" "$sk_partial" + fi + if is_true "${INSTALL_SKILLS:-false}"; then local wce_partial="$PROJECT_DIR/i18n/${lang}/partials/web-content-extraction.md" inject_feature "$out" "web-content-extraction" "$wce_partial"