Skip to content

chore: add PR reviewer and TDD refactor agent files#1515

Merged
liudger merged 3 commits into
mainfrom
chore/add-agent-files
Jun 7, 2026
Merged

chore: add PR reviewer and TDD refactor agent files#1515
liudger merged 3 commits into
mainfrom
chore/add-agent-files

Conversation

@liudger

@liudger liudger commented Jun 7, 2026

Copy link
Copy Markdown
Owner

This pull request introduces two new agent configuration files to the .github/agents directory, defining detailed instructions for code review and TDD-driven refactoring workflows. The primary goal is to formalize and automate best practices for code quality, security, and review processes in the repository.

The most important changes are:

Agent Definitions for Review and Refactoring:

  • Added .github/agents/pr-review.agent.md to provide a comprehensive, constraint-driven checklist and review process for code changes, ensuring reviews are minimal, lean, idiomatic, and well-tested, with explicit output formatting and validation instructions.
  • Added .github/agents/tdd-refactor.agent.md to define a structured workflow for TDD-based refactoring, emphasizing code quality, security best practices, design improvements, and compliance with GitHub issue requirements, including detailed checklists and execution guidelines.

Copilot AI review requested due to automatic review settings June 7, 2026 14:22
@liudger liudger added documentation Solely about the documentation of the project. maintenance Generic maintenance tasks. labels Jun 7, 2026
@codecov

codecov Bot commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.91%. Comparing base (b346139) to head (973e60b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1515   +/-   ##
=======================================
  Coverage   99.91%   99.91%           
=======================================
  Files           6        6           
  Lines        1164     1164           
  Branches      156      156           
=======================================
  Hits         1163     1163           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds two GitHub agent definition files under .github/agents/ to standardize (1) how contributors perform pre-PR code reviews and (2) how TDD refactor phases are executed with quality/security guardrails, aligned to repository practices.

Changes:

  • Added a “PR Reviewer” agent with constraints, checklist, and a required output format for reviewing diffs before opening/updating PRs.
  • Added a “TDD Refactor Phase” agent describing refactoring principles, security hardening, and issue-compliance steps.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/agents/pr-review.agent.md Adds a structured PR review workflow, checklist, and output format.
.github/agents/tdd-refactor.agent.md Adds a TDD refactor workflow with quality/security guidance and execution checklist.

Comment on lines +2 to +4
description: "Improve code quality, apply security best practices, and enhance design whilst maintaining green tests and GitHub issue compliance."
name: "TDD Refactor Phase - Improve Quality & Security"
tools: ["github/*", "search/fileSearch", "edit/editFiles", "execute/runTests", "execute/runInTerminal", "execute/getTerminalOutput", "execute/testFailure", "read/readFile", "read/terminalLastCommand", "read/terminalSelection", "read/problems", "search/codebase"]
Comment thread .github/agents/tdd-refactor.agent.md
Comment thread .github/agents/pr-review.agent.md Outdated
liudger and others added 2 commits June 7, 2026 16:26
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud

sonarqubecloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

@liudger liudger merged commit 623122f into main Jun 7, 2026
16 checks passed
@liudger liudger deleted the chore/add-agent-files branch June 7, 2026 14:34
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Solely about the documentation of the project. maintenance Generic maintenance tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants