Skip to content

[Feat] Add agent guidance and code review skill - #1211

Merged
saeedvaziry merged 1 commit into
4.xfrom
chore/agent-code-review-guidance
Jul 25, 2026
Merged

[Feat] Add agent guidance and code review skill#1211
saeedvaziry merged 1 commit into
4.xfrom
chore/agent-code-review-guidance

Conversation

@saeedvaziry

@saeedvaziry saeedvaziry commented Jul 25, 2026

Copy link
Copy Markdown
Member

Track AGENTS.md as a symlink to CLAUDE.md and add a code-review skill that independently evaluates changes against specifications and project standards.

Summary by CodeRabbit

  • Documentation
    • Added guidance for conducting code reviews across requirements and project standards.
    • Added a repository guidance entry that points to the existing project instructions.
  • Chores
    • Updated ignore rules so repository guidance files can be tracked.

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds a code-review skill with parallel Specs and Standards checks, and changes AGENTS.md to reference CLAUDE.md while allowing it to be tracked by Git.

Changes

Code review setup

Layer / File(s) Summary
Code-review skill definition
.agents/skills/code-review/SKILL.md
Defines the skill metadata, Specs and Standards review tracks, and parallel sub-agent process.
Repository guidance linkage
.gitignore, AGENTS.md
Removes AGENTS.md from the ignore list and changes its content to reference CLAUDE.md.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding agent guidance and a code-review skill.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/agent-code-review-guidance

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.agents/skills/code-review/SKILL.md:
- Around line 18-24: Update the Review Process in SKILL.md to explicitly define
whether this two-agent workflow complements or replaces the existing /review-pr
contract. Preserve /review-pr’s three specialised reviewer coverage and
prioritised findings, and describe how these agents’ results integrate without
removing or weakening that behaviour.
- Around line 14-16: Update the Standards section in the review skill to
explicitly require inspecting the authoritative repository instructions,
including .github/copilot-instructions.md and all applicable
.github/instructions/*.md files, alongside AGENTS.md or CLAUDE.md. Ensure
standards reviews are based on these sources rather than only the latter files.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 03c9c68f-156f-4c6f-bf50-90652cfa7025

📥 Commits

Reviewing files that changed from the base of the PR and between 956ca41 and 88b80ed.

📒 Files selected for processing (3)
  • .agents/skills/code-review/SKILL.md
  • .gitignore
  • AGENTS.md
💤 Files with no reviewable changes (1)
  • .gitignore

Comment on lines +14 to +16
## Standards

Understand the project standards, check existing patterns, read AGENTS.md or CLAUDE.md.

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.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Read the authoritative repository instructions, not only AGENTS.md or CLAUDE.md.

CLAUDE.md states that the authoritative standards are in .github/copilot-instructions.md and .github/instructions/*.md. Without explicitly requiring the Standards Agent to inspect those files, this skill can report a standards review based on incomplete guidance.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.agents/skills/code-review/SKILL.md around lines 14 - 16, Update the
Standards section in the review skill to explicitly require inspecting the
authoritative repository instructions, including .github/copilot-instructions.md
and all applicable .github/instructions/*.md files, alongside AGENTS.md or
CLAUDE.md. Ensure standards reviews are based on these sources rather than only
the latter files.

Comment on lines +18 to +24
## Review Process

Spawn 2 independent and parallel sub-agents without sharing or accessing context to eachother.

**Specs Agent:** Should review the code changes to verify if they are achieving the specs or not.

**Standards Agent:** Should review the code changes to verify if they are following the project standards or not.

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.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Reconcile this workflow with the existing /review-pr contract.

CLAUDE.md documents /review-pr as running three specialised reviewer agents and returning prioritised findings, whereas this skill mandates two generic agents and does not define how their results integrate with that workflow. Please state whether this skill complements or replaces /review-pr, and preserve the existing reviewer coverage and prioritisation behaviour where applicable.

🧰 Tools
🪛 LanguageTool

[style] ~22-~22: In contexts where ‘if’ is followed by ‘or’, using ‘whether’ may be more appropriate (and formal).
Context: ...hould review the code changes to verify if they are achieving the specs or not. *...

(IF_WHETHER)


[style] ~24-~24: In contexts where ‘if’ is followed by ‘or’, using ‘whether’ may be more appropriate (and formal).
Context: ...hould review the code changes to verify if they are following the project standard...

(IF_WHETHER)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.agents/skills/code-review/SKILL.md around lines 18 - 24, Update the Review
Process in SKILL.md to explicitly define whether this two-agent workflow
complements or replaces the existing /review-pr contract. Preserve /review-pr’s
three specialised reviewer coverage and prioritised findings, and describe how
these agents’ results integrate without removing or weakening that behaviour.

@saeedvaziry saeedvaziry changed the title [Chore] Add agent guidance and code review skill [Feat] Add agent guidance and code review skill Jul 25, 2026
@saeedvaziry
saeedvaziry merged commit bacfb95 into 4.x Jul 25, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant