Skip to content

Comments

docs: Add documentation for customizing code review via skills#306

Closed
xingyaoww wants to merge 1 commit intomainfrom
openhands/pr-review-cloud-mode
Closed

docs: Add documentation for customizing code review via skills#306
xingyaoww wants to merge 1 commit intomainfrom
openhands/pr-review-cloud-mode

Conversation

@xingyaoww
Copy link
Contributor

Summary

This PR adds documentation for customizing the PR review behavior by adding a .openhands/skills/code-review.md file to your repository instead of forking the agent_script.py. This is the recommended approach for customization.

Changes to pr-review.mdx

  • Add "Customizing the Code Review" section with how-to guide
  • Include example custom skill with frontmatter and guidelines
  • List benefits of using custom skills over forking
  • Reference the software-agent-sdk's own code-review skill as example
  • Update reference workflow to use the new composite action
  • Add Action Inputs table documenting all available inputs
  • Add link to composite action in Related Files section
  • Add "Customizable" feature to Features list

Related PR

This documentation update accompanies the composite GitHub Action changes in:

Benefits of Custom Skills

  1. No forking required: Keep using the official SDK while customizing behavior
  2. Version controlled: Your review guidelines live in your repository
  3. Easy updates: SDK updates don't overwrite your customizations
  4. Team alignment: Everyone uses the same review standards

@xingyaoww can click here to continue refining the PR

Document that users can customize the code review behavior by adding
.openhands/skills/code-review.md to their repository instead of forking
the agent_script.py. This is the recommended approach for customization.

Changes to pr-review.mdx:
- Add 'Customizing the Code Review' section with how-to guide
- Include example custom skill with frontmatter and guidelines
- List benefits of using custom skills over forking
- Reference the software-agent-sdk's own code-review skill as example
- Update reference workflow to use the new composite action
- Add Action Inputs table documenting all available inputs
- Add link to composite action in Related Files section
- Add 'Customizable' feature to Features list

Co-authored-by: openhands <openhands@all-hands.dev>
@openhands-ai
Copy link

openhands-ai bot commented Feb 8, 2026

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • .github/workflows/sync-agent-sdk-openapi.yml
    • .github/workflows/sync-docs-code-blocks.yml

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #306 at branch `openhands/pr-review-cloud-mode`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

@xingyaoww xingyaoww closed this Feb 8, 2026
xingyaoww pushed a commit that referenced this pull request Feb 8, 2026
…site action

- Add 'Customizable' feature to Features section
- Add new 'Customizing the Code Review' section with:
  - How custom skills work
  - Example custom code review skill
  - Benefits of custom skills
- Update Reference Workflow to use simplified composite action
- Add Action Inputs table documenting all available inputs
- Add link to Composite Action in Related Files

Co-authored-by: openhands <openhands@all-hands.dev>
xingyaoww pushed a commit that referenced this pull request Feb 8, 2026
…site action

- Add 'Customizable' feature to Features section
- Add new 'Customizing the Code Review' section with:
  - How custom skills work
  - Example custom code review skill
  - Benefits of custom skills
- Update Reference Workflow to use simplified composite action
- Add Action Inputs table documenting all available inputs
- Add link to Composite Action in Related Files

Co-authored-by: openhands <openhands@all-hands.dev>
xingyaoww added a commit that referenced this pull request Feb 8, 2026
* Initial layout

This is an initial layout that roughly mimics Devin docs. It attempts to separate Documentation and Use Cases.

* Added content to TODO pages.

* Update Use Cases documentation pages

- incident-triage.mdx: Add content based on Datadog debugging blog post
  - Features automated error analysis with OpenHands SDK
  - Includes GitHub Actions workflow for Datadog integration
  - Links to blog: https://openhands.dev/blog/debugging-production-issues-with-ai-agents-automating-datadog-error-analysis

- cobol-modernization.mdx: Add content based on COBOL-to-Java refactoring blog post
  - Features iterative refinement approach with multiple agents
  - Includes code transformation examples (COBOL to Java)
  - Links to blog: https://openhands.dev/blog/20251218-cobol-to-java-refactoring

- vulnerability-remediation.mdx: Add content based on vulnerability fixer documentation
  - Explains automated vulnerability remediation with AI agents
  - Links to example implementation at github.com/OpenHands/vulnerability-fixer
  - Covers integration with security scanners (Snyk, Dependabot, CodeQL)

- dependency-upgrades.mdx: Remove redundant security scanning section
  - Links to Vulnerability Remediation page for security-related upgrades
  - Focuses on general dependency upgrade workflows

Co-authored-by: openhands <openhands@all-hands.dev>

* Update Tutorial Library page

- Rename from 'TODO-Tutorial Library' to 'Tutorial Library'
- Remove 'Getting Started with Tutorials' section
- Add Note linking to Use Cases section for in-depth guidance
- Add Code Review cross-references:
  - Link to Code Review Use Case page
  - Link to PR Review SDK Guide (sdk/guides/github-workflows/pr-review)
- Add Bug Fixing cross-reference to Incident Triage Use Case

Co-authored-by: openhands <openhands@all-hands.dev>

* Redesign Quick Start page with cards

Replace tabs-based layout with a card-based design:
- OpenHands Cloud (recommended) - links to https://app.all-hands.dev
- Local GUI - links to /openhands/usage/run-openhands/local-setup
- Terminal / CLI - links to /openhands/usage/cli/installation

Each card includes relevant icons and bullet points highlighting key features.

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Update code review documentation with PR review workflow

- Rewrite code-review.mdx to document the automated PR review workflow
- Explain how the workflow uses the Software Agent SDK with /codereview and /github-pr-review skills
- Add Quick Start guide with step-by-step setup instructions
- Document customization options including repo-specific review guidelines
- Add security considerations and troubleshooting sections
- Remove TODO- prefix from title

Closes #297

* minor deletions, overview rework

* re-organize sections to match flow

* understanding section rewrite

* scaling up moved, rewritten

* validation restructure

* tranlsation rewrite

* docs: Update code review docs to use new composite GitHub Action

Update the code review documentation to reflect the new composite GitHub
Action from software-agent-sdk PR #1927. The changes include:

- Simplified Quick Start workflow using the composite action
- Added new 'Composite Action' section with action inputs table
- Updated Customization section to show input-based configuration
- Removed manual setup steps (Python, uv, dependencies) that are now
  handled by the composite action

Co-authored-by: openhands <openhands@all-hands.dev>

* fix: Remove broken link to non-existent security page

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Bring changes from PR #306 - customizable code review and composite action

- Add 'Customizable' feature to Features section
- Add new 'Customizing the Code Review' section with:
  - How custom skills work
  - Example custom code review skill
  - Benefits of custom skills
- Update Reference Workflow to use simplified composite action
- Add Action Inputs table documenting all available inputs
- Add link to Composite Action in Related Files

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Add composite action link and SDK skill example reference to code-review.mdx

- Add link to Composite Action in Related Resources section
- Add reference to software-agent-sdk's code-review skill as example

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Link skills to OpenHands/skills repo in code-review.mdx

- Add links to /codereview skill in OpenHands/skills repo
- Add links to /codereview-roasted skill in OpenHands/skills repo
- Add links to /github-pr-review skill in OpenHands/skills repo

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Mark llm-model as required in Action Inputs table

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Replace 'What Gets Reviewed' with real example PR reviews

- Remove generic 'What Gets Reviewed' section with tabs
- Replace 'Example Review Output' with table of real PR examples from software-agent-sdk
- Link to PRs #1927, #1916, #1904, #1889 showing different review styles

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Link directly to review comments instead of PR pages

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Add security warning about API key exfiltration risk from fork PRs

- Add 'API Key Protection' subsection explaining the potential risk
- Document how SDK secrets mitigate the risk
- Add best practices: review PRs first, use separate API keys, monitor usage
- Link to SDK secrets documentation

Co-authored-by: openhands <openhands@all-hands.dev>

* docs: Simplify security considerations section

- Summarize pull_request_target usage in one sentence
- Keep warning about API key exfiltration risk concise
- Remove prescriptive best practices list

Co-authored-by: openhands <openhands@all-hands.dev>

* Update sdk/guides/github-workflows/pr-review.mdx

Co-authored-by: Engel Nyst <engel.nyst@gmail.com>

* Update openhands/usage/use-cases/code-review.mdx

Co-authored-by: Engel Nyst <engel.nyst@gmail.com>

* Update openhands/usage/use-cases/code-review.mdx

Co-authored-by: Engel Nyst <engel.nyst@gmail.com>

---------

Co-authored-by: jpelletier1 <44589723+jpelletier1@users.noreply.github.com>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Calvin Smith <calvin@all-hands.dev>
Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
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.

2 participants