mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
fix(agents): make the project agent-agnostic (#26646)
This commit is contained in:
10
.github/agents/README.md
vendored
10
.github/agents/README.md
vendored
@@ -19,14 +19,14 @@ The PR Reviewer agent is configured to review pull requests with deep understand
|
||||
- Testing and validation requirements
|
||||
- Security and quality standards
|
||||
|
||||
**Key Feature**: This agent always references `/CLAUDE.md`, the C++ Code Standards wiki, and the SQL Standards wiki before reviewing any PR.
|
||||
**Key Feature**: This agent always references `/AGENTS.md`, the C++ Code Standards wiki, and the SQL Standards wiki before reviewing any PR.
|
||||
|
||||
## How It Works
|
||||
|
||||
When an AI tool reviews a PR in this repository:
|
||||
|
||||
1. The tool reads the appropriate agent configuration from this directory
|
||||
2. The agent configuration instructs it to read `/CLAUDE.md` for full project context
|
||||
2. The agent configuration instructs it to read `/AGENTS.md` for full project context
|
||||
3. For C++ changes, the agent also references the [C++ Code Standards wiki](https://github.com/azerothcore/wiki/blob/master/docs/cpp-code-standards.md)
|
||||
4. For SQL changes, the agent also references the [SQL Standards wiki](https://github.com/azerothcore/wiki/blob/master/docs/sql-standards.md)
|
||||
5. The agent applies project-specific rules during review
|
||||
@@ -36,7 +36,7 @@ When an AI tool reviews a PR in this repository:
|
||||
|
||||
If you're using AI tools to assist with contributions:
|
||||
|
||||
1. Familiarize yourself with `/CLAUDE.md` - it contains essential project knowledge
|
||||
1. Familiarize yourself with `/AGENTS.md` - it contains essential project knowledge
|
||||
2. Review the [C++ Code Standards](https://github.com/azerothcore/wiki/blob/master/docs/cpp-code-standards.md) for C++ contributions
|
||||
3. Review the [SQL Standards](https://github.com/azerothcore/wiki/blob/master/docs/sql-standards.md) for database contributions
|
||||
4. The AI agents will help ensure your changes follow project standards
|
||||
@@ -47,13 +47,13 @@ If you're using AI tools to assist with contributions:
|
||||
To update agent configurations:
|
||||
|
||||
1. Edit the relevant `.md` file in this directory
|
||||
2. Ensure any changes align with documentation in `/CLAUDE.md` and the wiki standards
|
||||
2. Ensure any changes align with documentation in `/AGENTS.md` and the wiki standards
|
||||
3. Test the updated configuration with a sample PR review
|
||||
4. Commit changes following the project's commit message format
|
||||
|
||||
## References
|
||||
|
||||
- Project guidelines: `/CLAUDE.md`
|
||||
- Project guidelines: `/AGENTS.md`
|
||||
- C++ standards: [C++ Code Standards](https://github.com/azerothcore/wiki/blob/master/docs/cpp-code-standards.md)
|
||||
- SQL standards: [SQL Standards](https://github.com/azerothcore/wiki/blob/master/docs/sql-standards.md)
|
||||
- PR template: `/pull_request_template.md`
|
||||
|
||||
8
.github/agents/pr-reviewer.md
vendored
8
.github/agents/pr-reviewer.md
vendored
@@ -5,13 +5,13 @@ You are an expert code reviewer for the AzerothCore project. When reviewing pull
|
||||
## Required Reading
|
||||
|
||||
Before reviewing any PR, you MUST read and follow the instructions in:
|
||||
- `/CLAUDE.md` - Contains comprehensive project architecture, coding standards, build instructions, and PR requirements
|
||||
- `/AGENTS.md` - Contains comprehensive project architecture, coding standards, build instructions, and PR requirements
|
||||
- [C++ Code Standards](https://github.com/azerothcore/wiki/blob/master/docs/cpp-code-standards.md) - Detailed C++ coding conventions and style guide
|
||||
- [SQL Standards](https://github.com/azerothcore/wiki/blob/master/docs/sql-standards.md) - SQL query formatting and database standards
|
||||
|
||||
## Key Review Focus Areas
|
||||
|
||||
Based on CLAUDE.md, always verify:
|
||||
Based on AGENTS.md, always verify:
|
||||
|
||||
### 1. Commit Message Format
|
||||
- Uses Conventional Commits: `Type(Scope/Subscope): Short description`
|
||||
@@ -95,7 +95,7 @@ Based on CLAUDE.md, always verify:
|
||||
|
||||
## Review Process
|
||||
|
||||
1. Read CLAUDE.md to understand project context
|
||||
1. Read AGENTS.md to understand project context
|
||||
2. Review C++ Code Standards wiki for C++ changes
|
||||
3. Review SQL Standards wiki for database changes
|
||||
4. Check commit message format
|
||||
@@ -108,7 +108,7 @@ Based on CLAUDE.md, always verify:
|
||||
## Feedback Style
|
||||
|
||||
- Be constructive and educational
|
||||
- Reference specific sections of CLAUDE.md, C++ Code Standards, or SQL Standards when applicable
|
||||
- Reference specific sections of AGENTS.md, C++ Code Standards, or SQL Standards when applicable
|
||||
- Suggest specific fixes with code examples if necessary
|
||||
- Highlight both issues and good practices
|
||||
- For C++ issues, cite specific rule from C++ Code Standards wiki
|
||||
|
||||
Reference in New Issue
Block a user