A comprehensive collection of production-tested configurations and slash commands for AI-powered development tools. Streamline your workflow with ready-to-use setups for WordPress, Rails, and React development that enable AI agents to work efficiently and safely within your projects.
This repository solves common friction points in AI-assisted development:
- Copy-Paste Ready: No complex setup - just copy configs directly into your projects
- Technology-Specific: Tailored permissions and workflows for WordPress, Rails, and React
- Production Tested: Based on real-world usage in professional development environments
- Parallel Development: Git worktree integration allows AI agents to work on multiple features simultaneously
- Structured Commands: XML-based slash commands provide reliable, parseable workflows
Choose your technology stack and copy the appropriate configuration files:
# WordPress Development
cp claude-code/wordpress/settings.json your-project/.claude/
cp -r claude-code/wordpress/commands/ your-project/.claude/
# Rails Development
cp claude-code/rails/settings.json your-project/.claude/
cp -r claude-code/rails/commands/ your-project/.claude/
# React Development
cp claude-code/react/settings.json your-project/.claude/
cp -r claude-code/react/commands/ your-project/.claude/
# General Commands (works with any project)
cp -r claude-code/general/commands/ your-project/.claude/# WordPress Development
cp cursor/wordpress/tasks.json your-project/.vscode/
cp cursor/wordpress/mcp-config.json your-project/.vscode/
cp -r cursor/wordpress/rules/ your-project/.cursor/
# Rails Development
cp cursor/rails/tasks.json your-project/.vscode/
cp cursor/rails/mcp-config.json your-project/.vscode/
cp -r cursor/rails/rules/ your-project/.cursor/
# React Development
cp cursor/react/tasks.json your-project/.vscode/
cp cursor/react/mcp-config.json your-project/.vscode/
cp -r cursor/react/rules/ your-project/.cursor/# WordPress Development (includes Claude Code, PHPCS, PHPStan)
mkdir -p your-project/.github/workflows
cp claude-code/wordpress/.github/workflows/* your-project/.github/workflows/
# Rails Development (includes Claude Code integration)
mkdir -p your-project/.github/workflows
cp claude-code/rails/.github/workflows/* your-project/.github/workflows/ai-editor-rules/
βββ claude-code/ # Claude Code configurations
β βββ general/ # Universal commands for any project
β β βββ commands/ # Cross-platform slash commands
β βββ wordpress/ # WordPress plugin/theme development
β β βββ settings.json # WordPress-specific permissions & environment
β β βββ commands/ # WordPress workflow commands (XML-based)
β β βββ .github/workflows/ # WordPress GitHub Actions (Claude, PHPCS, PHPStan)
β βββ rails/ # Ruby on Rails development
β β βββ settings.json # Rails development permissions
β β βββ commands/ # Rails workflow commands (XML-based)
β β βββ .github/workflows/ # Rails GitHub Actions (Claude integration)
β βββ react/ # React/frontend development
β βββ settings.json # Frontend development permissions
β βββ commands/ # React workflow commands (XML-based)
βββ cursor/ # Cursor editor configurations
β βββ wordpress/ # WordPress development setup
β β βββ tasks.json # VSCode tasks for WordPress
β β βββ mcp-config.json # MCP servers configuration
β β βββ rules/ # Cursor rules for WordPress (.mdc files)
β βββ rails/ # Rails development setup
β β βββ tasks.json # Rails-specific tasks
β β βββ mcp-config.json # Rails MCP configuration
β β βββ rules/ # Cursor rules for Rails (.mdc files)
β βββ react/ # React development setup
β βββ tasks.json # Frontend build tasks
β βββ mcp-config.json # React MCP configuration
β βββ rules/ # Cursor rules for React (.mdc files)
βββ README.md
- Daily Summary: Automated development progress reporting across repositories
- Cross-Platform: Works with any technology stack
- Git Integration: Smart repository discovery and multi-repo analysis
- Permissions: PHP tools, WordPress CLI, Composer, PHPUnit, browser automation
- Commands: GitHub issue implementation, support ticket resolution, documentation updates
- Security Focus: WordPress-specific security scanning and best practices
- Environment: WordPress development with admin testing capabilities
- API Integration: Optional support system and WordPress documentation API integration
- Permissions: Ruby/Rails tools, database access, RSpec, RuboCop, browser testing
- Commands: GitHub issue implementation, visual UI development workflows
- Multi-tenancy: Support for complex Rails application patterns
- Environment: Rails development with comprehensive testing setup
- Permissions: Node.js tools, build systems, testing frameworks, browser automation
- Commands: Feature implementation with visual testing and accessibility checks
- Modern Stack: TypeScript, ESLint, Prettier, Storybook integration
- Environment: Modern frontend development with performance optimization
- WordPress: Composer, PHPUnit, PHPCS, WordPress CLI integration
- Rails: Bundle, RSpec, RuboCop, database migrations, server management
- React: npm/yarn, ESLint, Prettier, TypeScript, Storybook
- File System: Project file access and manipulation
- Database: PostgreSQL integration for data operations
- Browser: Playwright automation for UI testing
- Git: Version control integration
- Search: Web search for documentation and troubleshooting
- Technology-specific best practices and conventions
- Security guidelines and performance optimizations
- Testing patterns and documentation standards
All commands use XML-structured workflows for improved reliability and parsing accuracy.
@daily-summary- Automated development progress reporting across repositories- Cross-Platform: Works with any Git repository and technology stack
@implement-gh-issue- Complete GitHub issue implementation with WordPress admin UI testing@implement-support-ticket- Support ticket resolution with customer communication@update-documentation- WordPress documentation updates via REST API
@implement-gh-issue- GitHub issue implementation with Rails patterns and testing@visual-development- UI development with visual comparison and iteration
@implement-gh-issue- React feature implementation with comprehensive testing and accessibility
- Claude Code Review: Automated WordPress-specific PR reviews with security, performance, and standards checking
- Claude Interactive: Full WordPress development environment with WP-CLI, Composer, and testing tools
- PHPCS: WordPress coding standards enforcement across multiple PHP versions
- PHPStan: Static analysis with WordPress-specific configuration and stubs
- Claude Code Review: Rails-focused PR reviews covering conventions, security, performance, and testing
- Claude Interactive: Complete Rails development setup with database, testing, and linting tools
- Automated code style checking and fixing
- PHPUnit test execution with coverage
- WordPress CLI integration for site management
- Asset building and optimization
- Database setup and migration management
- RSpec test suite execution
- RuboCop style enforcement
- Brakeman security scanning
- Rails server and console management
- Development server with hot reloading
- Production build optimization
- ESLint and Prettier integration
- TypeScript compilation checking
- Storybook development and building
Our Claude Code commands use XML structure because:
- Improved Parsing: Claude can more accurately separate instructions, examples, and context
- Reduced Errors: Clear structure prevents Claude from mixing up different parts of complex workflows
- Better Reliability: Structured prompts lead to more consistent and predictable outputs
- Easier Maintenance: XML tags make it simple to modify specific sections without rewriting entire commands
Commands create worktrees within ./worktrees/ for several reasons:
- Parallel Development: Work on multiple issues simultaneously without branch conflicts
- Isolated Testing: Each feature develops in its own clean environment
- No Permission Hassle: Worktrees stay within the project directory so Claude Code doesn't need additional folder access
- Clean Main Workspace: Your primary working directory remains unaffected during AI development
- Automatic Cleanup: Worktrees are automatically removed after PR creation
Example worktree structure:
your-project/
βββ worktrees/
β βββ issue-123/ # AI working on feature branch
β βββ ticket-456/ # AI working on bug fix
βββ src/ # Your main codebase (unchanged)
βββ .git/ # Shared git history
# For WordPress projects
mkdir -p .github/workflows
cp claude-code/wordpress/.github/workflows/* .github/workflows/
# For Rails projects
mkdir -p .github/workflows
cp claude-code/rails/.github/workflows/* .github/workflows/Go to your GitHub repository β Settings β Secrets and variables β Actions:
# Required for Claude Code integration
CLAUDE_CODE_OAUTH_TOKEN=your_claude_oauth_token_hereAdd these labels to your repository for better workflow control:
run analysis- Triggers PHPCS and PHPStan on PRscode review- Alternative trigger for analysis workflows
Triggers: Pull requests (opened/updated) Features:
- WordPress-specific code review focusing on security, performance, and standards
- Multi-PHP version testing (7.4, 8.0, 8.1, 8.2)
- WordPress environment setup with WP-CLI
- Comprehensive review prompts covering:
- WordPress coding standards compliance
- Security (sanitization, escaping, nonces, capabilities)
- Performance optimization
- WordPress API usage
- Accessibility and compatibility
Configuration:
# Optional: Filter by file types (default covers all WordPress files)
paths:
- "**/*.php"
- "**/*.js"
- "**/*.css"
- "readme.txt"
- "functions.php"
# Optional: Only review PRs from specific contributors
if: github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'Triggers: Issues, PR comments, reviews (when mentioning @claude)
Features:
- Full WordPress development environment
- WP-CLI integration for site management
- Comprehensive toolset (Composer, PHP tools, Node.js, build tools)
- WordPress test environment setup
- Custom WordPress development instructions
Usage:
# In GitHub issues or PR comments
@claude help me optimize this database query
@claude review the security of this user input handling
@claude set up unit tests for this WordPress hookTriggers: Push to main branches, labeled PRs Features:
- WordPress.org coding standards enforcement
- Multi-PHP version matrix testing
- Automatic WordPress standards detection
- Detailed failure reporting with summaries
- Composer caching for faster builds
Customization:
# Modify PHP versions to test
strategy:
matrix:
php-version: ['7.4', '8.1', '8.2']
# Change trigger conditions
if: contains(github.event.pull_request.labels.*.name, 'run analysis')Triggers: Push to main branches, labeled PRs
Features:
- WordPress-aware static analysis with WordPress stubs
- Automatic WordPress function recognition
- Level 5 analysis with WordPress-specific ignores
- Memory optimization for large WordPress projects
- Auto-configuration generation
WordPress-Specific Configuration:
# Auto-generated phpstan.neon includes:
parameters:
level: 5
ignoreErrors:
- '#Function wp_[a-zA-Z_]+ not found#'
- '#Constant [A-Z_]+ not found#'
bootstrapFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.phpTriggers: Pull requests on Rails files Features:
- Rails 7.2+ convention enforcement
- Security vulnerability scanning with Brakeman
- Database migration safety checks
- Performance optimization suggestions
- API design review for Rails APIs
Rails-Specific Focus:
- ActiveRecord patterns and N+1 query detection
- RESTful design principles
- Rails security best practices
- Test coverage and quality (RSpec/Minitest)
- Database migration reversibility
Triggers: Issues, PR comments with @claude
Features:
- Complete Rails development environment setup
- Database preparation and migration tools
- Comprehensive Rails toolset (RSpec, StandardRB, Brakeman)
- Rails console integration for debugging
- Multi-environment support
# In your GitHub repository secrets
CLAUDE_CODE_OAUTH_TOKEN=your_token_here# In claude.yml workflow
claude_env: |
WP_DEBUG: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_ENVIRONMENT_TYPE: development
PLUGIN_NAME: your-plugin-name
WP_MULTISITE: false# In claude.yml workflow
claude_env: |
RAILS_ENV: development
DATABASE_URL: postgresql://localhost/app_development
REDIS_URL: redis://localhost:6379/0
API_VERSION: v1Some WordPress slash commands require additional API credentials for full functionality:
# In your Claude Code settings.json or environment
SUPPORT_API_KEY=your_support_system_api_key
SUPPORT_URL=https://your-support-system.com
# For HelpScout integration specifically:
SUPPORT_API_KEY=your_helpscout_api_key
SUPPORT_URL=https://api.helpscout.net/v2# WordPress REST API credentials for documentation site
DOCS_URL=https://your-docs-site.com
DOCS_USER=your_wordpress_username
DOCS_PASSWORD=your_application_password
# Example for WordPress documentation site:
DOCS_URL=https://docs.yourcompany.com
DOCS_USER=documentation_bot
DOCS_PASSWORD=xxxx xxxx xxxx xxxxSetting up WordPress Application Passwords:
- Go to your WordPress admin β Users β Your Profile
- Scroll to "Application Passwords" section
- Enter application name (e.g., "Claude Documentation Bot")
- Click "Add New Application Password"
- Copy the generated password (format:
xxxx xxxx xxxx xxxx) - Use this as your
DOCS_PASSWORDvalue
Note: These API integrations are optional - the commands work without them but provide enhanced functionality when configured.
# WordPress: Only run on specific file changes
on:
pull_request:
paths:
- "includes/**/*.php"
- "admin/**/*.php"
- "*.php"
# Rails: Only run on backend changes
on:
pull_request:
paths:
- "app/**/*.rb"
- "lib/**/*.rb"
- "config/**/*.rb"# WordPress security-focused review
direct_prompt: |
Review this WordPress PR with extra focus on:
- Input sanitization using WordPress functions
- Output escaping with esc_html(), esc_attr(), esc_url()
- Nonce verification for all forms and AJAX
- User capability checks before sensitive operations
- SQL injection prevention with $wpdb->prepare()
# Rails performance-focused review
direct_prompt: |
Review this Rails PR focusing on:
- N+1 query prevention and database optimization
- Proper indexing strategies
- Background job usage for expensive operations
- Caching implementation with Rails cache
- Memory usage optimization# WordPress: Add custom build tools
allowed_tools: |
Bash(composer:*),
Bash(wp:*),
Bash(npm run custom-build),
Bash(gulp custom-task),
Bash(your-custom-script.sh)
# Rails: Add deployment tools
allowed_tools: |
Bash(bundle exec:*),
Bash(rails:*),
Bash(cap production deploy),
Bash(docker-compose:*)# Smart triggering based on PR labels
if: |
contains(github.event.pull_request.labels.*.name, 'needs-review') ||
contains(github.event.pull_request.labels.*.name, 'security') ||
github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'# Test across multiple PHP/Ruby versions
strategy:
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2']
wordpress-version: ['5.9', '6.0', '6.1', 'trunk']# Only run tests if test files exist
- name: Run Tests
if: hashFiles('tests/**/*.php') != ''
run: composer test
# Skip analysis for draft PRs
if: github.event.pull_request.draft == falseClaude workflows not triggering:
# Check that CLAUDE_CODE_OAUTH_TOKEN is set
# Verify @claude mention format in comments
# Ensure workflow file syntax is valid YAMLPHPCS/PHPStan failures:
# Verify composer.json includes required dev dependencies:
# - squizlabs/php_codesniffer
# - wp-coding-standards/wpcs
# - phpstan/phpstan
# - php-stubs/wordpress-stubsPermission errors:
# Ensure workflow has required permissions
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
actions: read- Monitor workflow runs in the Actions tab
- Review failure logs for debugging
- Check artifact uploads for detailed reports
- Use workflow caching to speed up builds
- Conditional execution to avoid unnecessary runs
- Matrix strategies for comprehensive testing
- Update file paths: Modify MCP configurations to point to your project directory
- Adjust permissions: Add or remove tools based on your specific needs
- Environment variables: Set appropriate values for your development setup
- Task configurations: Customize build and test commands for your workflow
{
"env": {
"WP_ENV": "development",
"WP_DEBUG": "true",
"PLUGIN_NAME": "your-plugin-name"
}
}{
"env": {
"RAILS_ENV": "development",
"DATABASE_URL": "postgresql://localhost/your_app_development",
"API_VERSION": "v1"
}
}{
"env": {
"NODE_ENV": "development",
"STORYBOOK_PORT": "6006",
"COMPONENT_LIB": "true"
}
}All configurations include Playwright integration for:
- Visual regression testing
- User interaction simulation
- Screenshot capture for documentation
- Accessibility testing
Built-in security scanning and best practices for:
- Input validation and sanitization
- SQL injection prevention
- XSS attack mitigation
- Dependency vulnerability checking
Automated performance analysis including:
- Database query optimization
- Bundle size analysis
- Memory usage monitoring
- Load time optimization
We welcome contributions! To add support for a new technology or improve existing configurations:
- Fork the repository
- Create a new directory under
claude-code/andcursor/for your technology - Add appropriate configuration files following the established patterns
- Test with real projects
- Submit a pull request with clear documentation
Each configuration is based on production usage in professional development environments:
- WordPress: Tested with complex plugins featuring 60+ third-party integrations
- Rails: Proven in multi-tenant SaaS applications with complex business logic
- React: Battle-tested in large component libraries and performance-critical applications
- Security-First: Built-in security scanning and vulnerability prevention
- Performance Optimized: Automated performance monitoring and optimization
- Testing Comprehensive: Visual, unit, integration, and accessibility testing
- Documentation Automated: Auto-updating documentation workflows
- Standards Compliant: Enforces coding standards and best practices
GNU GPL v3 - feel free to use these configurations in your projects!
Ready to supercharge your AI-assisted development? Choose your stack and copy the configs! π