Skip to content

chore: .gitignore に claude-mem 自動生成 CLAUDE.md を追加 - #84

Merged
Kensan196948G merged 1 commit into
mainfrom
chore/gitignore-claude-mem-files
Apr 14, 2026
Merged

Kensan196948G merged 1 commit into
mainfrom
chore/gitignore-claude-mem-files

Conversation

@Kensan196948G

@Kensan196948G Kensan196948G commented Apr 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • claude-mem MCP が各サブディレクトリに自動生成する CLAUDE.md ファイルを .gitignore に追加
  • 対象: .github/issues/, .github/workflows/, .claude/claudeos/system/, scripts/lib/, scripts/main/, tests/
  • repo root の CLAUDE.md と Claude/templates/ は意図的なもののため除外しない

Problem

claude-mem MCP はセッション開始時にメモリコンテキストとして各ディレクトリへ CLAUDE.md を自動生成する。
これらがコミットされると:

  • tests/CLAUDE.md → テストディレクトリの汚染
  • .github/workflows/CLAUDE.md → CI/CDワークフロー管理領域への混入(セキュリティリスク)
  • .github/issues/CLAUDE.md → Issue テンプレートへの混入

Test plan

  • .gitignore に追加後、対象 CLAUDE.md ファイルが git status で追跡されないことを確認
  • repo root の CLAUDE.md は引き続き追跡されることを確認
  • CI (lint/build) 通過確認

🤖 Generated with Claude Code

Summary by CodeRabbit

  • その他(Chores)
    • 開発環境の設定ファイルを更新し、自動生成されるファイルの除外ルールを追加しました。

claude-mem MCP が scripts/, tests/, .github/ 配下に自動生成する
CLAUDE.md ファイルをコミット対象外に設定する。
特に .github/workflows/, .github/issues/ への混入はCI安全性のリスク。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 14, 2026 03:32

Copilot AI 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.

Copilot wasn't able to review any files in this pull request.

@coderabbitai

coderabbitai Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d313ddd5-eae0-4c44-9a79-45cb94afd58f

📥 Commits

Reviewing files that changed from the base of the PR and between 214f098 and 329bdd2.

📒 Files selected for processing (1)
  • .gitignore
📜 Recent review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: test-and-validate
🧰 Additional context used
🧠 Learnings (11)
📓 Common learnings
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:21.915Z
Learning: Applies to Claude/.claude/CLAUDE.md : Project-specific configuration should be placed at `.claude/CLAUDE.md` in the repository root and overrides global Claude settings when necessary
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:21.915Z
Learning: Applies to Claude/**/README.md : README must be updated when user-facing features, setup procedures, architecture, or quality gates change
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claudeos/examples/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:41.360Z
Learning: Applies to Claude/templates/claudeos/examples/**/CLAUDE.md : Define branch strategy in CLAUDE.md at project root
📚 Learning: 2026-04-14T02:12:21.915Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:21.915Z
Learning: Applies to Claude/.claude/CLAUDE.md : Project-specific configuration should be placed at `.claude/CLAUDE.md` in the repository root and overrides global Claude settings when necessary

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:21.915Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:21.915Z
Learning: Applies to Claude/**/README.md : README must be updated when user-facing features, setup procedures, architecture, or quality gates change

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:41.360Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claudeos/examples/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:41.360Z
Learning: Applies to Claude/templates/claudeos/examples/**/CLAUDE.md : Define branch strategy in CLAUDE.md at project root

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:41.360Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claudeos/examples/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:41.360Z
Learning: Applies to Claude/templates/claudeos/examples/**/CLAUDE.md : Define project language in CLAUDE.md at project root

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:41.360Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claudeos/examples/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:41.360Z
Learning: Applies to Claude/templates/claudeos/examples/**/CLAUDE.md : Define README update policy in CLAUDE.md at project root

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:41.360Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claudeos/examples/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:41.360Z
Learning: Applies to Claude/templates/claudeos/examples/**/CLAUDE.md : Define test procedures in CLAUDE.md at project root

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:37.774Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:37.774Z
Learning: Applies to Claude/templates/claude/**.claude/claudeos/** : Documentation files and configuration references should be organized in the .claude/claudeos directory structure including agents, skills, commands, rules, hooks, scripts, contexts, examples, and mcp-configs

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:37.774Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:37.774Z
Learning: Applies to Claude/templates/claude/**/README.md : README.md should be frequently updated with clear formatting using tables, icons, and diagrams to reflect project changes including features, setup procedures, architecture, and quality gates

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:21.915Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:21.915Z
Learning: Applies to Claude/**/*.{js,ts,tsx,jsx,py,java,go,rs,cs,rb,php} : Code comments should be in English, while general project documentation and communication should be in Japanese

Applied to files:

  • .gitignore
📚 Learning: 2026-04-14T02:12:37.774Z
Learnt from: CR
Repo: Kensan196948G/ClaudeCLI-CodexCLI-CopilotCLI-StartUpTools-New PR: 0
File: Claude/templates/claude/CLAUDE.md:0-0
Timestamp: 2026-04-14T02:12:37.774Z
Learning: Applies to Claude/templates/claude/**/*.{js,ts,tsx,jsx,py,java,go,rs,rb,php,cs,cpp,c,h} : Code comments within files should be written in English

Applied to files:

  • .gitignore
🔇 Additional comments (1)
.gitignore (1)

128-135: 意図どおりの除外設定で問題ありません。

自動生成 CLAUDE.md の混入リスクがあるディレクトリをピンポイントで除外できており、PR 目的(ルート CLAUDE.md は追跡維持)とも整合しています。


📝 Walkthrough

Walkthrough

.gitignoreファイルに、CLAUDE関連の自動生成ファイル(CLAUDE.md)を複数のディレクトリパス下で除外する設定が9行追加されました。既存の除外ルールやその他の動作に変更はありません。

Changes

コホート / ファイル 概要
GitIgnore設定
.gitignore
CLAUDE関連の自動生成メタデータファイルを.github/、.claude/claudeos/system/、scripts/lib/、scripts/main/、tests/の各ディレクトリ下で除外する設定を追加

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰✨ Claude の足跡を消して、
クリーンな庭へようこそ!
自動ファイルは隠れん坊、
リポジトリはスッキリ、
Gitの心も喜びいっぱい!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR タイトルは、claude-mem が自動生成する CLAUDE.md ファイルを .gitignore に追加するという変更内容を明確に要約しており、実際の changeset と完全に一致しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ 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 chore/gitignore-claude-mem-files

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

@Kensan196948G
Kensan196948G merged commit 8c736c2 into main Apr 14, 2026
3 checks passed
@Kensan196948G
Kensan196948G deleted the chore/gitignore-claude-mem-files branch April 14, 2026 03:36
Kensan196948G added a commit that referenced this pull request Apr 14, 2026
v2.9.0 セクションを `[v2.9.0-dev] - 2026-04-08` から `[v2.9.0] - 2026-04-14 (STABLE)` に更新し、
ClaudeOS v7.5 の全成果 (Boot Sequence Step 3/7/9 完全実装、CodeRabbit 統合、
/team-onboarding、ループ時間最適化、Issue Sync 修正) を反映。

新規に `[v3.0.0] - Unreleased` セクションを追加し、Phase 4 残タスク
(セキュリティ監査 / E2E テスト / リリースタグ) と Go/No-Go 基準を明文化。

- テスト数: 304 → 311 件に更新
- 追加 PR: #77, #79, #80, #81, #82, #83, #84, #86, #87, #88, #89

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Kensan196948G added a commit that referenced this pull request Apr 14, 2026
v2.9.0 セクションを `[v2.9.0-dev] - 2026-04-08` から `[v2.9.0] - 2026-04-14 (STABLE)` に更新し、
ClaudeOS v7.5 の全成果 (Boot Sequence Step 3/7/9 完全実装、CodeRabbit 統合、
/team-onboarding、ループ時間最適化、Issue Sync 修正) を反映。

新規に `[v3.0.0] - Unreleased` セクションを追加し、Phase 4 残タスク
(セキュリティ監査 / E2E テスト / リリースタグ) と Go/No-Go 基準を明文化。

- テスト数: 304 → 311 件に更新
- 追加 PR: #77, #79, #80, #81, #82, #83, #84, #86, #87, #88, #89

Co-authored-by: 有藤 健太郎 <k-aritoh@mirai-const.co.jp>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Kensan196948G added a commit that referenced this pull request Apr 14, 2026
claude-mem MCP が `docs/common/` 配下にも自動生成 CLAUDE.md を
展開することが Loop 12 Monitor で判明。既存の除外パターン
(PR #84 で追加された他ディレクトリのエントリ) と整合させる。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Kensan196948G added a commit that referenced this pull request Apr 14, 2026
claude-mem MCP が `docs/common/` 配下にも自動生成 CLAUDE.md を
展開することが Loop 12 Monitor で判明。既存の除外パターン
(PR #84 で追加された他ディレクトリのエントリ) と整合させる。

Co-authored-by: 有藤 健太郎 <k-aritoh@mirai-const.co.jp>
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.

2 participants