Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .claude/commands/security-review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
このコードを10個の改善案を出してください。
12 changes: 6 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

このリポジトリは Claude Code と GitHub Actions を通じて以下の機能を提供します:

| 機能 | 説明 |
| -------------------------- | -------------------------------------------------------------- |
| Issue 自動解決 | `@claude` メンションによる GitHub Issue の自動対応 |
| PR レビュー支援 | Pull Request に対する自動的なコードレビューとフィードバック |
| 品質チェック自動化 | 継続的インテグレーションでの自動品質検証 |
| ドキュメント同期 | ドキュメントと実装の整合性確認 |
| 機能 | 説明 |
| ------------------ | ----------------------------------------------------------- |
| Issue 自動解決 | `@claude` メンションによる GitHub Issue の自動対応 |
| PR レビュー支援 | Pull Request に対する自動的なコードレビューとフィードバック |
| 品質チェック自動化 | 継続的インテグレーションでの自動品質検証 |
| ドキュメント同期 | ドキュメントと実装の整合性確認 |

## 開発ワークフロー

Expand Down
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It includes settings for various tools, such as the shell (Zsh), Git, npm, and V

## Directory Structure

- `.claude/`: Claude Code configuration directory (currently empty after recent refactoring)
- `.claude/`: Claude Code configuration directory containing settings, commands, agents, and hooks. User-specific settings like `settings.local.json` are git-ignored while shared configurations are version-controlled.

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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify that .gitignore contains all files documented as local-only

echo "=== Checking for documented git-ignored entries ==="
if [ -f .gitignore ]; then
  echo "✓ .gitignore exists"
  
  # List of entries from README lines 66-68
  declare -a entries=("settings.local.json" ".credentials.json" "debug" "file-history" "history.jsonl" "plans" "projects" "session-env" "shell-snapshots" "statsig" "todos")
  
  echo ""
  for entry in "${entries[@]}"; do
    if grep -q "$entry" .gitignore; then
      echo "✓ Found: $entry"
    else
      echo "✗ MISSING: $entry"
    fi
  done
else
  echo "✗ .gitignore not found"
fi

# Show .claude/.gitignore if it exists (may have nested ignore rules)
if [ -f .claude/.gitignore ]; then
  echo ""
  echo "=== .claude/.gitignore contents ==="
  cat .claude/.gitignore
fi

# Also show root .gitignore for reference
echo ""
echo "=== Root .gitignore (relevant sections) ==="
grep -E "(claude|settings|credentials|debug|history)" .gitignore 2>/dev/null || echo "No matches found"

Repository: keito4/config

Length of output: 658


Resolve discrepancy between documented and actual .gitignore entries.

The README claims that debug/, file-history/, history.jsonl, plans/, session-env/, and shell-snapshots/ are git-ignored (lines 66-68), but these directories and files are not present in either .gitignore or .claude/.gitignore. Only settings.local.json, .credentials.json, projects/, statsig/, and todos/ are actually ignored.

Either add the missing entries to .gitignore or update the README to list only the files that are actually ignored. Ensure documentation matches the actual git configuration.

🤖 Prompt for AI Agents
In README.md around line 9 and later lines 66-68, the documentation states that
debug/, file-history/, history.jsonl, plans/, session-env/, and shell-snapshots/
are git-ignored but the actual .gitignore and .claude/.gitignore only ignore
settings.local.json, .credentials.json, projects/, statsig/, and todos/. Update
one of the two sources so they match: either add the missing entries (debug/,
file-history/, history.jsonl, plans/, session-env/, shell-snapshots/) to the
repository .gitignore/.claude/.gitignore, or edit the README to list only the
files and directories that are actually ignored; ensure the README text and the
.gitignore files are consistent and run git check-ignore to verify the entries.

- `.codex/`: Codex CLI configuration directory (currently empty after recent refactoring)
- `.devcontainer/`: Development container configuration providing containerized development environment with consistent tooling across different machines.
- `brew/`: Contains Brewfiles for different operating systems (Linux, macOS) and dependency configurations, including lock files for reproducible package installations. Supports categorized package management and dependency analysis.
Expand Down Expand Up @@ -49,6 +49,33 @@ git config --global user.signingkey "$(cat ~/.ssh/id_ed25519.pub)"

For detailed security guidelines, see [SECURITY.md](SECURITY.md).

## Claude Code Configuration Management

The `.claude/` directory contains Claude Code configuration that is partially version-controlled:

### Version-Controlled Files

- `settings.json` - Shared permissions, environment variables, and hooks
- `commands/` - Custom slash commands available to all users
- `agents/` - Specialized agent configurations
- `hooks/` - Event-driven automation scripts
- `CLAUDE.md` - Global development standards and guidelines

### Local-Only Files (Git-Ignored)

- `settings.local.json` - User-specific overrides (plugin preferences, local permissions)
- `.credentials.json` - Sensitive authentication data
- `debug/`, `file-history/`, `history.jsonl`, `plans/`, `projects/`, `session-env/`, `shell-snapshots/`, `statsig/`, `todos/` - Runtime and session data

### Synchronizing Configuration

To sync settings from `~/.claude/` to the repository:

1. Review `~/.claude/commands/` for custom commands worth sharing
2. Copy new commands to `.claude/commands/` in this repository
3. Update `settings.local.json` with personal plugin preferences (git-ignored)
4. Commit shared configurations while keeping local overrides private

## Usage

Before using these configuration settings, you should review them and adjust as necessary for your specific environment and preferences. For credentials, we use environment variables managed by 1Password.
Expand Down
Loading