Skip to content

Add fix-bug, add-test, and review-pr agent skills#10062

Merged
maliberty merged 5 commits intoThe-OpenROAD-Project:masterfrom
ApeachM:add-agent-skills
Apr 11, 2026
Merged

Add fix-bug, add-test, and review-pr agent skills#10062
maliberty merged 5 commits intoThe-OpenROAD-Project:masterfrom
ApeachM:add-agent-skills

Conversation

@ApeachM
Copy link
Copy Markdown
Contributor

@ApeachM ApeachM commented Apr 6, 2026

Summary

  • Add three new cross-tool AI agent skills to complement the existing triage-issue skill
  • fix-bug: guides root cause analysis, fix implementation, and test creation for bug reports
  • add-test: handles test creation workflow with dual CMake/Bazel registration (the most common contributor mistake)
  • review-pr: reviews PRs following the project's review priority order (correctness > QoR > testing > architecture > style > process)
  • Each skill supports Claude Code (.agents/skills/ via .claude/skills symlink) and Gemini CLI (.gemini/commands/*.toml)
  • AGENTS.md updated with a skill reference table

Motivation

The existing triage-issue skill handles bug reproduction and test case minimization. These three skills cover the natural next steps in the contribution workflow:

  1. triage-issue (existing) -- reproduce and minimize
  2. fix-bug (new) -- trace root cause and fix
  3. add-test (new) -- add tests with correct dual build system registration
  4. review-pr (new) -- review with OpenROAD-specific priorities

Extend the AI agent skill set with three new cross-tool skills:
- fix-bug: guides root cause analysis, fix implementation, and test
  creation for bug reports
- add-test: handles test creation with dual CMake/Bazel registration
  (the most common contributor mistake)
- review-pr: reviews PRs following the project's priority order
  (correctness > QoR > testing > architecture > style > process)

Each skill supports Claude Code (.agents/skills/ via .claude/skills
symlink) and Gemini CLI (.gemini/commands/*.toml). AGENTS.md updated
with a skill reference table.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Minjae Kim <minjae.kim@baum-ds.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a set of AI agent skills for the OpenROAD project, including automated workflows for adding tests, fixing bugs, and reviewing pull requests. The changes also update the AGENTS.md documentation to list these new capabilities. Feedback was provided to improve the review-pr skill by ensuring the gh pr view command fetches the necessary commit SHA (headRefOid) and that the gh api call for posting comments correctly specifies the side and parameter types required by the GitHub API.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

clang-tidy review says "All clean, LGTM! 👍"

Address gemini-code-assist review:
- Add headRefOid to gh pr view --json fields for commit_id
- Use -F for line parameter (integer type) in gh api call
- Add side="RIGHT" parameter for review comments

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Minjae Kim <minjae.kim@baum-ds.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

clang-tidy review says "All clean, LGTM! 👍"

@maliberty maliberty requested a review from jhkim-pii April 6, 2026 17:24
- add-test: fix CMake example (add module name arg), fix Bazel example
  (use TESTS list + comprehension pattern), fix ./regression -R usage
- fix-bug: remove duplicated test instructions, reference add-test skill
  and docs/agents/testing.md instead
- review-pr: never post to GitHub (draft locally for human to review),
  support URL or bare PR number, remove unused headRefOid field
- AGENTS.md, .gemini: sync descriptions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: minjae <develop.minjae@gmail.com>
@github-actions github-actions bot added the size/M label Apr 9, 2026
@ApeachM
Copy link
Copy Markdown
Contributor Author

ApeachM commented Apr 9, 2026

Thanks for the thorough review! All feedback has been addressed in ee685d1.

  • CMake/Bazel examples fixed to match actual codebase patterns
  • ./regression -R corrected
  • review-pr skill no longer posts to GitHub (local draft only)
  • fix-bug deduplication via docs/add-test references

Please take another look when you have a chance.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"


## AI Agent Skills

Skills are located in `.agents/skills/` (with `.claude/skills` symlink for Claude Code).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see a .claude/skills symlink in this PR

@@ -0,0 +1,201 @@
---
name: add-test
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'll accept this but I would like to see more use of c++ unit tests rather than tcl style tests. Would you follow up with something to cover that use model?

Comment on lines +53 to +67
**Critical constraint**: Never modify files under `src/sta/`. OpenSTA is
managed upstream. If the root cause is in OpenSTA, report this finding
instead of patching it.

## 3. Implement the fix

- Follow Google C++ Style Guide and OpenROAD coding practices
- Use modern C++20 features where appropriate
- Use `{...}` braces even for single-line statements
- Keep functions under 100 lines
- Use `int64_t` for area calculations to prevent integer overflow
- Add `const` qualifiers where possible
- Remove any unreachable code after `error()` or `throw`

Read `docs/contrib/CodingPractices.md` if unfamiliar with project idioms.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is already covered in AGENTS.md. Is there a need to repeat it here?


Read `docs/contrib/CodingPractices.md` if unfamiliar with project idioms.

## 4. Create regression test
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could this reference the add-test skill rather than repeat it?


### Priority 6: Process

- DCO sign-off present?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Covered by the GHA so no need to review this

- add-test: expand C++ unit test section with fixture hierarchy,
  CMake/Bazel registration examples, correct include paths
- fix-bug: remove CodingPractices.md duplicate, condense test section
  to add-test skill reference
- review-pr: remove DCO check item (covered by GHA)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: minjae <develop.minjae@gmail.com>
@ApeachM
Copy link
Copy Markdown
Contributor Author

ApeachM commented Apr 9, 2026

Thanks for the review @maliberty! All feedback addressed in a63c03d:

  • .claude/skills symlink: Already exists in master (added in 30f5080) — it's not part of this PR's diff since it wasn't changed.
  • C++ unit test coverage: Expanded the add-test skill with fixture hierarchy table (FixtureNangate45FixtureIntegratedFixture), correct include paths, and CMake/Bazel registration examples matching actual codebase patterns.
  • CodingPractices.md duplication: Removed from fix-bug skill.
  • Test section duplication: Condensed to a two-line reference to the add-test skill.
  • DCO check: Removed from review-pr (covered by GHA).

@github-actions github-actions bot added size/L and removed size/M labels Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: minjae <develop.minjae@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"

@maliberty maliberty merged commit 5762259 into The-OpenROAD-Project:master Apr 11, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants