atournayre/claude-agents
最新稳定版本:v1.0.0
Composer 安装命令:
composer require atournayre/claude-agents
包简介
A comprehensive collection of specialized Claude Code agents for modern PHP development
README 文档
README
A comprehensive collection of specialized Claude Code agents for modern PHP development, covering architecture patterns, frameworks, testing, and code quality.
🎯 Overview
This package provides reusable Claude Code agents that can be used across multiple projects to enforce best practices, automate code analysis, and provide expert guidance for complex development tasks.
📦 Installation
composer require --dev atournayre/claude-agents
🔧 Available Agents
PHP Development
php-standards-enforcer- Enforces PHP 8.2+ standards, strict types, and PSR compliancephpstan-error-resolver- Surgical resolution of PHPStan level 9 errors with type annotationsquality-assurance-enforcer- Comprehensive QA tools integration (PHPStan, PHP-CS-Fixer, Rector)
Symfony Framework
symfony-6-4-optimizer- Symfony 6.4 LTS best practices and performance optimizationsymfony-migration-specialist- Handles Symfony version migrations and deprecation fixes
Domain-Driven Design
ddd-architect- DDD architecture patterns with RAD (Rapid Application Development)entity-creator-specialist- Creates Doctrine entities following DDD principlesvalue-object-designer- Designs immutable Value Objects with business validationexception-hierarchy-designer- Creates comprehensive domain exception hierarchies
Messaging & Architecture
message-messagehandler-architect- CQRS patterns and Symfony Messenger architecturedependency-injection-architect- Advanced DI patterns with Symfony 6.4elegant-objects-enforcer- Enforces Elegant Object principles in PHP
Collections & Testing
collection-specialist- Domain-specific collections with business methodstesting-specialist- TDD principles with PHPUnit 10 and InMemory objects
Framework Integration
atournayre-framework-specialist- Expert in atournayre/framework v2 primitives and patterns
🚀 Usage
Each agent is a specialized AI assistant that can be invoked using the Claude Code Task tool:
Use the [agent-name] agent when [specific context]. Examples: - "I'm getting PHPStan level 9 errors" → use `phpstan-error-resolver` - "Need to create a DDD entity" → use `entity-creator-specialist` - "Optimizing Symfony performance" → use `symfony-6-4-optimizer`
📋 Agent Categories
🔵 Architecture & Design
Focus on software architecture patterns, SOLID principles, and design best practices.
🟢 Framework Integration
Specialized knowledge for Symfony, Doctrine, and modern PHP frameworks.
🟡 Code Quality
Static analysis, code style, testing, and quality assurance automation.
🟣 Domain Modeling
DDD patterns, entity design, value objects, and business logic encapsulation.
🟠 Messaging & Architecture
CQRS patterns, Symfony Messenger, dependency injection, and messaging architecture.
🔄 Integration Workflow
- Project Setup: Copy relevant agents to
.claude/agents/directory - Agent Selection: Choose appropriate agent based on your task
- Task Execution: Use Claude Code Task tool with selected agent
- Quality Validation: Run project QA tools to validate changes
📖 Agent Structure
Each agent follows a consistent structure:
--- name: agent-name description: Brief description with usage examples color: agent-color --- # Specialized prompt and instructions
🎯 Best Practices
When to Use Specific Agents
- Complex Type Issues →
phpstan-error-resolver - New Entity Creation →
entity-creator-specialist - Performance Optimization →
symfony-6-4-optimizer - Architecture Refactoring →
ddd-architect - Test Implementation →
testing-specialist
Agent Combination
Agents can be used in sequence for complex tasks:
ddd-architectfor designentity-creator-specialistfor implementationtesting-specialistfor test coveragequality-assurance-enforcerfor validation
🔧 Customization
Project-Specific Adaptations
For project-specific needs, create custom agents in your project's .claude/agents/ directory that extend or modify the base agents.
Configuration
Some agents support configuration through project-specific files:
- PHPStan configuration:
phpstan.neon - PHP-CS-Fixer:
.php-cs-fixer.php - Rector:
rector.php
📚 Documentation
Agent Reference
Each agent includes:
- Purpose: What the agent specializes in
- Context: When to use the agent
- Examples: Real-world usage scenarios
- Tools: Available commands and integrations
Framework Integration
- Symfony 6.4 LTS: Optimized for long-term support version
- Doctrine ORM: Entity mapping and repository patterns
- PHPUnit 10: Modern testing approaches with InMemory patterns
🤝 Contributing
Adding New Agents
- Create agent in appropriate category directory
- Follow the established YAML frontmatter format
- Include comprehensive examples and usage patterns
- Test with real-world scenarios
Improving Existing Agents
- Analyze agent performance in real projects
- Gather feedback from development teams
- Update patterns and best practices
- Maintain backward compatibility
📄 License
MIT License - See LICENSE file for details.
Built for modern PHP development teams who value code quality, architectural excellence, and development efficiency.
atournayre/claude-agents 适用场景与选型建议
atournayre/claude-agents 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 733 次下载、GitHub Stars 达 3, 最近一次更新时间为 2025 年 07 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「php」 「ddd」 「architecture」 「PHPStan」 「code-quality」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atournayre/claude-agents 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atournayre/claude-agents 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atournayre/claude-agents 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Runn Me! Value Objects Library
The bundle for easy using json-rpc api on your project
Build a domain-oriented application on Laravel Framework
Symfony bundle for broadway/broadway.
Provides Symfony param converters for mediagone/types-common package.
Bundle Symfony DaplosBundle
统计信息
- 总下载量: 733
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-27