A centralized collection of instructions, guidelines, and custom slash commands for AI coding agents, specifically optimized for Claude Code. This repository provides structured workflows for feature development from ideation through production.
This repository provides:
- AGENTS.md - Core agent workflow and instructions following the AGENTS.md standard
- Custom Slash Commands - Complete workflow commands for Claude Code (brainstorming, requirements, task orchestration, git workflows)
- Specialized Agent Roles - Focused implementer and review-architect agents for structured development
- Development Guidelines - Language-specific conventions, testing practices, and git workflows
claude-config/
├── README.md # This file - complete guide and workflows
├── CLAUDE.md # Repository-specific Claude Code instructions
├── AGENTS.md # Core agent guidelines (use in project roots)
├── Rakefile # Automated setup/uninstall tasks
├── .gitignore # Ignore OS files, editors, generated tasks
├── agents/ # Specialized agent role definitions
│ ├── implementer.md # Task execution agent (no scope creep)
│ └── review-architect.md # Code review and quality assurance agent
├── commands/ # Custom Claude Code slash commands
│ ├── brainstorm.md # Interactive idea refinement
│ ├── create-prd.md # Product requirements generation
│ ├── create-erd.md # Engineering requirements generation
│ ├── generate-tasks.md # Task breakdown from requirements
│ ├── task-orchestrator.md # Automated task execution with AI agents
│ ├── process-task-list.md # Manual task list workflow guidance
│ ├── smart-commit.md # Intelligent commit creation
│ ├── create-pr.md # Draft PR creation
│ └── update-docs.md # Documentation sync from git history
└── guidelines/ # Language-specific development guidelines
├── git-workflow.md # Branch naming, commits, PRs, rebasing
├── ruby-rails.md # Rails conventions and best practices
├── javascript.md # JS/TS, React, Hotwire/Stimulus guidelines
└── testing.md # RSpec, Jest, FactoryBot, mocking strategies
Automated Setup (Easiest):
# Clone or navigate to this repository
cd ~/Code/claude-config
# Run the automated setup
rake setup
# This will:
# - Create ~/.claude/ directory if needed
# - Symlink AGENTS.md to ~/.claude/CLAUDE.md
# - Symlink all files in agents/, commands/, and guidelines/ to ~/.claude/
# To remove symlinks later:
rake uninstallManual Setup (Alternative):
# Reference this repo in your global Claude Code config
echo "For all projects, follow guidelines in ~/Code/claude-config/AGENTS.md" >> ~/.claude/CLAUDE.mdProject-Specific Setup:
# Copy commands to use in a specific project
cp -r ~/Code/claude-config/commands /path/to/project/.claude/
# Copy AGENTS.md to project root for project-specific context
cp ~/Code/claude-config/AGENTS.md /path/to/project/Install as Claude Plugin (Recommended for Web/IDE):
This repository is configured as a Claude plugin and can be installed directly in Claude Code (web version, VS Code extension, or JetBrains IDE):
- Open Claude Code in your preferred environment (web, VS Code, or JetBrains)
- Use the plugin menu to install from this repository:
- In Claude Code, go to the Plugins section
- Search for or paste the repository URL
- Click "Install" to add this plugin
- Verify installation:
- After installation, all slash commands (like
/task-orchestrator,/brainstorm, etc.) will be available - Agent guidelines will be loaded automatically
- This repository's CLAUDE.md will be available as your configuration
- After installation, all slash commands (like
The plugin configuration is defined in .claude-plugin/plugin.json and includes:
- All custom slash commands from
commands/directory - Specialized agents from
agents/directory - Development guidelines from
guidelines/directory
- Read AGENTS.md first - Contains core workflow instructions and philosophy
- Check CLAUDE.md - Repository-specific architecture and conventions
- Reference the Workflows section below - Complete workflow decision trees and examples
- Use language-specific guidelines in
guidelines/as needed
This repository can be installed in three ways:
- As a Claude Plugin (Recommended for web/IDE users) - Easiest, works everywhere Claude Code is available
- Automated CLI Setup (Recommended for CLI users) - Uses
rake setupto symlink files globally - Manual Setup (Alternative) - Copy files as needed to specific projects
- Ruby (for running
raketasks - likely already installed on macOS/Linux) - Git
This is the easiest method if you use Claude Code in the web, VS Code extension, or JetBrains IDE:
-
Get the repository URL:
- Clone this repository or use:
https://github.com/your-username/claude-config
- Clone this repository or use:
-
Open Claude Code:
- Web: Go to claude.com/code
- VS Code: Open the Claude Code extension
- JetBrains: Open Claude Code in your IDE
-
Install the plugin:
- Look for the Plugins menu/section in Claude Code
- Select "Install plugin"
- Paste the repository URL or search for the plugin
- Click "Install"
-
Verify installation:
- All slash commands (
/task-orchestrator,/brainstorm, etc.) are now available - The plugin's CLAUDE.md configuration is automatically loaded
- Agent guidelines and development workflows are ready to use
- All slash commands (
For CLI users who want all commands and guidelines available globally:
-
Clone this repository:
git clone https://github.com/your-username/claude-config.git ~/Code/claude-config cd ~/Code/claude-config
-
Run automated setup:
rake setup
This will:
- Create
~/.claude/directory - Symlink
AGENTS.md→~/.claude/CLAUDE.md - Symlink all agent definitions to
~/.claude/agents/ - Symlink all commands to
~/.claude/commands/ - Symlink all guidelines to
~/.claude/guidelines/
- Create
-
Verify setup:
ls -la ~/.claude/ -
To uninstall later:
rake uninstall
This only removes symlinks pointing to this repository, leaving other files unchanged.
Copy files as needed for specific projects:
# Copy all commands to a specific project
cp -r ~/Code/claude-config/commands /path/to/project/.claude/
# Copy agents to a specific project
cp -r ~/Code/claude-config/agents /path/to/project/.claude/
# Copy AGENTS.md to project root for project-specific guidelines
cp ~/Code/claude-config/AGENTS.md /path/to/project/The AGENTS.md file follows the AGENTS.md standard proposed by OpenAI. It contains:
- Core Philosophy - YAGNI, convention over configuration, clarity over cleverness
- Agent Workflow - Starting work, during development, pre-completion checklist
- Git Workflow - Branch naming (
<TICKET>-claude-<feature>), commit practices - Language-Specific Guides - Links to Rails, JavaScript, and testing guidelines
- Tools & Integrations - Context7, Linear, GitHub CLI usage patterns
- Learning & Documentation - Knowledge capture and decision records
Usage: Place in project roots or reference globally via ~/.claude/CLAUDE.md
This repository provides end-to-end workflows for feature development:
Ideation → Requirements → Implementation → Review → Merge
/brainstorm (vague idea)
↓
/create-prd or /create-erd (clear requirements)
↓
/generate-tasks (task breakdown)
↓
/task-orchestrator (AI implements) or /process-task-list (manual)
↓
/smart-commit (focused commits)
↓
/create-pr (pull request)
↓
/update-docs (keep docs in sync)
See the Workflows section below for complete workflow guide with decision trees.
This repository includes specialized agent role definitions in the agents/ directory. These agents are designed to work together in structured workflows.
Implementer Agent (agents/implementer.md)
A focused task execution agent that follows specifications precisely without scope creep.
Key characteristics:
- Executes tasks step-by-step as specified
- Does not add features beyond the scope
- Does not refactor code unless required
- Provides clear completion reports
- Focuses on implementation, not exploration
When to use:
- Implementing specific tasks from a task list
- Following detailed specifications
- Working within a larger orchestrated workflow
Review Architect Agent (agents/review-architect.md)
A quality assurance agent that provides critical oversight and code review.
Key characteristics:
- Reviews implementations with a fresh perspective
- Checks for correctness, quality, and best practices
- Provides constructive, actionable feedback
- Makes recommendations (APPROVE, REQUEST CHANGES, NEEDS DISCUSSION)
- Focuses on requirements alignment
When to use:
- Reviewing completed implementations
- Ensuring quality before merging
- Catching edge cases and potential bugs
- Working within a larger orchestrated workflow
This repository includes 10+ custom Claude Code slash commands organized by workflow category.
Ideation & Exploration:
/brainstorm- Interactively refine vague ideas through guided questions
Requirements & Planning:
/create-prd- Generate Product Requirements Documents/create-erd- Generate Engineering Requirements Documents/generate-tasks- Create detailed task breakdowns from requirements
Implementation:
/task-orchestrator- Automated task execution with implementer + reviewer agents/process-task-list- Manual task list workflow with approval gates
Git & Commits:
/smart-commit- Intelligently analyze changes and create focused commits/create-pr- Create draft pull requests with comprehensive summaries
Documentation:
/update-docs- Review git history and propose documentation updates
Coordinates structured task implementation using specialized agents:
/task-orchestrator tasks/tasks-feature-name.mdProcess:
- Reads task list, finds next uncompleted task
- Spawns Implementer Agent to execute task (no scope creep)
- Spawns Review Architect Agent to review implementation
- Presents both reports to you
- Pauses for your approval before proceeding
- Runs
/smart-committo commit changes - Marks task complete, moves to next task
Benefits: Systematic execution, built-in code review, human-in-the-loop control
Analyzes all changes and creates focused, logical commits:
/smart-commitFeatures:
- Auto-creates feature branch if on main
- Groups related changes by topic
- Splits unrelated changes into separate commits
- Writes clear commit messages (no "feat:" prefixes)
- Follows git-workflow.md conventions
Ruby on Rails (guidelines/ruby-rails.md)
Comprehensive Rails conventions covering:
- Code structure (controllers, models, services, concerns)
- Routing and RESTful design
- Database migrations and ActiveRecord queries
- Testing with RSpec
- Security best practices
- Performance optimization
- Code style with RuboCop
JavaScript (guidelines/javascript.md)
JavaScript best practices including:
- Framework detection (React, Vue, Hotwire/Stimulus)
- Modern vanilla JavaScript patterns
- Hotwire/Stimulus for Rails applications
- React component patterns (if applicable)
- TypeScript guidelines (when needed)
- Security (XSS prevention, CSRF tokens)
- Performance optimization
Testing (guidelines/testing.md)
Complete testing guide with:
- Test categories (unit, integration, system/feature)
- RSpec setup and configuration
- Model, controller, and request specs
- System tests with Capybara
- JavaScript testing (Jest, React Testing Library)
- Test data management with FactoryBot
- Mocking and stubbing strategies
- Performance optimization for test suites
Git Workflow (guidelines/git-workflow.md)
Git best practices covering:
- Branch management and naming conventions
- Commit message guidelines
- Pre-commit requirements (linting, tests, whitespace)
- Pull request workflows
- Rebasing and merging strategies
- Useful git commands and aliases
- Emergency procedures
Option 1: Automated (Recommended):
cd ~/Code/claude-config
rake setupOption 2: Manual:
Add to ~/.claude/CLAUDE.md:
# Global Agent Instructions
For all projects, follow the guidelines in ~/Code/claude-config/AGENTS.md
When working on specific technologies, reference:
- Ruby/Rails: ~/Code/claude-config/guidelines/ruby-rails.md
- JavaScript: ~/Code/claude-config/guidelines/javascript.md
- Testing: ~/Code/claude-config/guidelines/testing.md
- Git workflow: ~/Code/claude-config/guidelines/git-workflow.mdOption 1: Reference globally
# my-project/AGENTS.md
## General Guidelines
Follow universal guidelines: ~/Code/claude-config/AGENTS.md
## Project-Specific
- Tech: Rails 7 + Hotwire + PostgreSQL
- Testing: RSpec with FactoryBot
- Deployment: HerokuOption 2: Copy commands locally
# Use slash commands in specific project
cp -r ~/Code/claude-config/commands /path/to/project/.claude/
cp ~/Code/claude-config/agents/* /path/to/project/.claude/agents/Fork this repository and customize:
- Modify guidelines - Update language-specific conventions in
guidelines/ - Add new commands - Create custom slash commands in
commands/ - Adjust workflows - Update workflows section in README for your process
- Extend agent roles - Add specialized agents in
agents/
Create a new .md file in commands/ (or ~/.claude/commands/ for global use):
---
description: Brief description of what this command does
allowed-tools: Bash, Read, Edit, Write, Task, SlashCommand
---
Your command instructions here.
You can use:
- $ARGUMENTS for all arguments passed to the command
- $1, $2, etc. for specific positional arguments
- Reference other files with full paths
- Call other slash commands with SlashCommand toolSimple Example:
---
description: Run tests and show results
allowed-tools: Bash
---
Run the test suite and show any failures.
Execute the test command appropriate for this project and explain any failures.Available Tools:
Bash- Execute shell commandsRead- Read file contentsWrite- Create new filesEdit- Modify existing filesGrep- Search in filesGlob- Find files by patternTask- Spawn sub-agents for complex workSlashCommand- Execute other slash commands
Best Practices:
- Be specific - Clearly define expected behavior
- Include examples - Show what success looks like
- Handle edge cases - Think about error conditions
- Reference guidelines - Link to AGENTS.md or guidelines when relevant
- Test thoroughly - Try in different scenarios before committing
Create a new .md file in guidelines/:
# Language/Framework Name Guidelines
## Core Principles
[Fundamental patterns]
## Code Structure
[Conventions and patterns]
## Common Patterns
[Examples with code]
## Anti-Patterns
[What to avoid]Update AGENTS.md to reference the new guideline.
AI coding agents are powerful, but they work best with structured guidance. This repository provides:
- Systematic Workflows - From vague idea to production-ready code with clear steps
- Quality Gates - Built-in review processes prevent scope creep and bugs
- Human Control - Approval gates ensure AI never acts fully autonomously
- Consistency - All agents follow the same conventions across projects
- Knowledge Capture - Document decisions, patterns, and learnings as you work
- Rapid Onboarding - New team members (human or AI) understand your workflow immediately
- Systematic over ad-hoc - Repeatable workflows beat one-off solutions
- Human oversight - AI assists, humans decide
- Separation of concerns - Implementer focuses on execution, architect on review
- Documentation-driven - Requirements define tasks, tasks define code
- Convention over configuration - Strong conventions reduce cognitive load
Start: I have an idea
│
├─── Is the idea clear and well-defined?
│ ├─── No → /brainstorm
│ └─── Yes → Continue
│
├─── Is this a small change or large feature?
│ ├─── Small → Quick Fix Workflow
│ └─── Large → Feature Development Workflow
│
└─── Implementation approach?
├─── AI-assisted → /task-orchestrator
└─── Manual → /process-task-list
For: Bug fixes, small features, quick improvements
# 1. Create branch
git checkout -b claude-fix-validation
# 2. Make changes & tests
# 3. Commit
/smart-commit
# 4. Create PR
/create-pr
# 5. After merge
git checkout main && git pull
git branch -d claude-fix-validationFor: Major features, complex changes, multi-day work
# 1. Refine idea (if vague)
/brainstorm
# 2. Create requirements
/create-prd # or /create-erd
# 3. Generate tasks
/generate-tasks tasks/prd-feature-name.md
# 4. Implement
/task-orchestrator tasks/tasks-feature-name.md # or /process-task-list
# 5. Create PR
/create-pr
# 6. Update docs
/update-docs
# 7. After merge
git checkout main && git pullgit checkout -b claude-fix-login-validation
# ... make fixes ...
/smart-commit
/create-pr
# ... after merge ...
git checkout main && git pull
git branch -d claude-fix-login-validationTime: 30 minutes | Complexity: Low
git checkout -b claude-export-csv
/create-erd
/generate-tasks tasks/erd-export-csv.md
/process-task-list tasks/tasks-export-csv.md
/create-pr
/update-docs
# ... after merge ...
git checkout main && git pull
git branch -d claude-export-csvTime: 1-2 days | Complexity: Medium
git checkout -b claude-analytics
/brainstorm
/create-prd
/generate-tasks tasks/prd-analytics.md
/task-orchestrator tasks/tasks-analytics.md
/create-pr
/update-docs
# ... after merge ...
git checkout main && git pull
git branch -d claude-analyticsTime: 3-5 days | Complexity: High | AI Assistance: High
Tasks are stored in tasks/ directory:
## Relevant Files
- `app/models/user.rb` - User model
- `spec/models/user_spec.rb` - Tests
## Tasks
- [ ] 1.0 Parent Task
- [ ] 1.1 Subtask description
- [ ] 1.2 Subtask description
- [x] 2.0 Completed Tasktasks/brainstorm-*.md- Brainstorm outputstasks/prd-*.md- Product requirementstasks/erd-*.md- Engineering requirementstasks/tasks-*.md- Task breakdowns
Commands are designed to chain together:
/create-erd # → tasks/erd-feature.md
/generate-tasks tasks/erd-feature.md # → tasks/tasks-feature.md
/task-orchestrator tasks/tasks-feature.md # → implements & commits- AGENTS.md Standard - Original specification from OpenAI
- Claude Code Documentation - Official Claude Code docs
- Individual command files in
commands/- Detailed command documentation
Remember: This is a living configuration repository. Update guidelines, commands, and workflows as your practices evolve. Prioritize clarity and maintainability over cleverness.