This repository contains your custom Claude Code configurations including settings, commands, agents, and hooks.
.
βββ .claude/
β βββ settings.json # Global settings (permissions, hooks, models)
β βββ commands/ # Custom slash commands
β β βββ clean-up-unused.md # Remove unused code
β β βββ docs.md # Documentation generator
β β βββ merge-conflict-resolver.md # Resolve merge conflicts
β β βββ pr_fix.md # Fix PR review comments
β β βββ pr_review.md # Pull/Merge request reviewer
β β βββ repo-research.md # Repository analysis
β β βββ review.md # Code review helper
β β βββ test-all.md # Run all tests
β βββ agents/ # Custom subagents
β β βββ architect.md
β β βββ code-reviewer.md
β β βββ debugger.md
β β βββ test-writer.md
β βββ skills/ # Custom skills
β βββ commit/
β β βββ SKILL.md # Smart commit message generator
β βββ github-cli/
β βββ SKILL.md # Routing + shared rules for `gh` workflows
β βββ references/
β βββ issue.md # Standard for opening a GitHub issue
β βββ pr.md # Standard for opening a GitHub PR
βββ .mcp.json # MCP server configuration
βββ .env.example # Environment variables template
βββ config.sh # Shared configuration (sourced by install/status)
βββ install.sh # Installation script (copies files to targets)
βββ status.sh # Check configuration status
βββ README.md # This file
-
Clone this repository:
git clone <your-repo-url> cd AI-Configs
-
Set up environment variables:
cp .env.example .env # Edit .env with your API tokens and target directoriesAdd one or more
CONFIG_SOURCE_DIRentries pointing to your Claude data directories:CONFIG_SOURCE_DIR=~/.claude-provectus CONFIG_SOURCE_DIR=~/.claude-livenation
-
Run the install script:
./install.sh
This copies commands, agents, skills, and .mcp.json from this repo into each target directory listed in .env. Stale files that no longer exist in the source are automatically removed.
commands/β Custom slash commandsagents/β Custom subagentsskills/β Custom skills.mcp.jsonβ MCP server configuration
To check the configuration status:
./status.shContains:
- Tool permissions
- Model preferences
- Hook configurations
- Feature flags
Custom slash commands stored as Markdown files.
Example (.claude/commands/review.md):
1. Run git diff to see recent changes
2. Review code for bugs, security issues, and best practices
3. Provide detailed feedback with line numbers
4. Suggest improvementsUsage: /review
Custom subagents with specialized roles.
Example (.claude/agents/test-writer.md):
---
name: test-writer
description: Writes comprehensive unit tests for code
tools: Read, Write, Edit, Bash
model: sonnet
---
You are a test writing expert. When invoked:
1. Analyze the code structure
2. Write comprehensive unit tests
3. Follow testing best practices
4. Ensure high coverage/commit - Intelligent commit message generator (skill)
- Analyzes your repository's commit history
- Detects and follows existing conventions
- Generates 3 commit message candidates
- Interactive selection process
/github-cli - Project-agnostic GitHub issue + PR opener (skill)
- Single entry point that routes to either the issue or PR workflow
- Detects the default branch, package manager, and CI gates from the repo
- Optionally runs lint / format / typecheck / build / test before opening a PR
- Learns the project's voice from recent issues and merged PRs
- Drafts title and body, confirms with you, then opens via
gh issue create/gh pr create
/pr_review [number] - Comprehensive PR/MR review
- Reviews code quality, security, and performance
- Provides categorized feedback (Critical, High, Medium, Low)
/pr_fix [number] - Fix PR/MR review comments
- Fetches all review comments
- Categorizes and prioritizes issues
- Implements fixes automatically
- Creates clean commits with fixes
/review - Quick code review
- Reviews recent git changes
- Provides feedback on quality and best practices
- Suggests improvements
/test-all - Run all tests
- Executes test suite
- Analyzes failures
- Suggests fixes
/clean-up-unused - Remove unused code
- Identifies dead code, unused imports, and unreferenced functions
- Cleans up safely
/merge-conflict-resolver - Resolve merge conflicts
- Analyzes conflicting changes
- Resolves conflicts intelligently
/docs - Generate documentation
- Analyzes codebase structure
- Identifies undocumented code
- Generates comprehensive documentation
- Follows language-specific conventions
/repo-research - Repository analysis
- Analyzes languages, frameworks, and tech stack
- Lists dependencies and their versions
- Maps project structure and architecture
- Identifies build tools, testing, and CI/CD setup
- Flags outdated dependencies and security concerns
# Generate smart commit message
/commit
# Review PR #42
/pr_review 42
# Fix issues in current branch's PR
/pr_fix
# Quick code review
/review
# Generate documentation
/docs
# Analyze repository structure
/repo-researchAgents are invoked automatically by Claude when relevant, or explicitly:
Use the test-writer agent to add tests for this function
Use the code-reviewer agent to review this file
Use the debugger agent to find and fix this bug
Use the architect agent to review the system design
Available Agents:
code-reviewer- Expert code reviewer for quality, security, and best practicestest-writer- Writes comprehensive unit and integration testsdebugger- Systematic debugging and troubleshooting expertarchitect- Software architecture and design specialist
-
Create a new
.mdfile in.claude/commands/:touch .claude/commands/my-command.md
-
Add numbered instructions:
1. First step 2. Second step 3. Third step
-
Commit and push:
git add .claude/commands/my-command.md git commit -m "Add my-command" git push
-
Create a new
.mdfile in.claude/agents/:touch .claude/agents/my-agent.md
-
Add frontmatter and instructions:
--- name: my-agent description: What this agent does tools: Read, Write, Edit model: sonnet --- Your system prompt here...
-
Commit and push
This repository includes MCP server configurations for Sequential Thinking and Context7.
Sequential Thinking:
- No additional configuration required
- Provides extended thinking capabilities for complex reasoning tasks
Context7:
- No additional configuration required
- Provides up-to-date code documentation and examples
- Optional API key available for higher rate limits and private repos
All sensitive data is stored in .env (not committed to git). See .env.example for all available variables:
CONFIG_SOURCE_DIR- Target Claude data directory (one or more)
This setup uses copy-based installation. Running ./install.sh copies managed items from this repo into each target directory configured in .env. Running it again overwrites targets with the latest source and removes stale files.
Shared configuration (colors, paths, managed item lists, .env parsing) lives in config.sh and is sourced by both install.sh and status.sh. To manage a new folder or file, add it to the COPY_DIRS or COPY_FILES array in config.sh.
If you're sharing this with a team:
- Fork this repository
- Make your changes
- Submit a pull request
- Run
./install.shto deploy latest changes
Your choice of license here.