This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This repository contains shared Claude Code settings and commands for development teams. It includes:
settings.json- Claude Code permissions and environment variablescommands/- Custom slash commands (like/push_pr)justfile- Automation for setup and configuration
just setup- Install settings and commands to ~/.claude/ with confirmation promptsjust show- Display current settings.json with formatted JSON
Since this is a configuration repository, the main development tasks involve:
- Editing
settings.jsonto add/remove permissions - Adding new slash commands in
commands/directory as.mdfiles - Testing setup process with
just setup
The settings.json follows Claude Code's configuration format:
permissions.allow- Array of allowed tool patterns (uses wildcard matching likeBash(git:*))permissions.deny- Array of denied tools (currently empty)env- Environment variables (includesCLAUDE_CODE_ENABLE_TELEMETRY: false)
Custom slash commands are stored as .md files in commands/ with:
- YAML frontmatter for metadata (description, usage, examples)
- Markdown content with implementation details
- Special
$ARGUMENTSvariable for parameter handling
The justfile copies files to ~/.claude/ (not the standard ~/.config/claude-code/):
settings.json→~/.claude/settings.jsoncommands/*.md→~/.claude/(flattened, not in subdirectory)
When adding permissions, use broad patterns rather than specific commands:
- Prefer
Bash(git:*)over individualBash(git add:*),Bash(git commit:*), etc. - Group related tools (e.g., all GitHub CLI under
Bash(gh:*))
When adding custom commands, follow the existing /push_pr pattern with proper YAML frontmatter and detailed implementation sections.