Repository navigation
docs(tools): add consolidated usage examples for all tools - #2547
Conversation
Resolves The-PR-Agent#2039. The README and tools docs listed the core tools but gave no invocation examples. Add a 'Usage examples' section to the Tools index page with the PR-comment and CLI command for every (currently enabled) tool, and a short pointer block in the README linking to it. help_docs is omitted from the quick reference since it is temporarily disabled (see The-PR-Agent#2445).
PR Summary by Qododocs(tools): add consolidated usage examples for PR-Agent tools
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
Pull request overview
This PR improves PR-Agent onboarding by adding a consolidated “usage examples” reference for tool invocations (PR-comment vs CLI) and a small README pointer so users can quickly find runnable command examples.
Changes:
- Added a “Usage examples” section to the Tools index docs with PR-comment and CLI invocation examples per tool.
- Added a short “Usage Examples” block in the README linking to the docs as the source of truth.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Adds a small “Usage Examples” snippet (PR comment + CLI) and links to the full tools examples in docs. |
| docs/docs/tools/index.md | Adds a consolidated “Usage examples” section with a compact per-tool command table. |
Comments suppressed due to low confidence (1)
README.md:233
- The PR-comment examples are wrapped in a fenced block and start with a
# ...line. If someone copy/pastes the whole block into a PR comment, PR-Agent won’t trigger because the command must appear at the beginning of the comment (the fence/leading#would come first). Consider formatting PR-comment commands separately (plain bullets or an indented block) and keeping the CLI invocation separate.
```bash
# Comment on a PR (GitHub/GitLab/Bitbucket/…):
/describe # generate title, summary, walkthrough and labels
/review # findings, security, review effort and tests
/improve # actionable code-improvement suggestions
Address code-review feedback on The-PR-Agent#2547: - similar_issue takes --issue_url=<ISSUE_URL>, not --pr_url; correct the CLI example and note that issue-scoped tools use --issue_url. - Soften the 'every tool runs as a PR comment' wording since some tools (e.g. similar_issue) operate on issues. - Explain that /help_docs is omitted because it is temporarily disabled (The-PR-Agent#2445).
|
Code review by qodo was updated up to the latest commit e91e3b0 |
Resolves #2039
Issue #2039 asked for usage examples for the core AI review tools. The README and the Tools docs listed the tools but gave no invocation examples. This adds a consolidated examples reference in the docs and a short pointer block in the README.
Changes
docs/docs/tools/index.md— new Usage examples section: explains the two ways to trigger a tool (comment on a PR vs. CLI) and a compact table giving the exact/commandandpython -m pr_agent.cli --pr_url=<PR_URL> <tool>line for every currently-enabled tool. Each row links to that tool's page for screenshots and options.README.md— a short Usage Examples block under "See It in Action" with the four most common commands (including/ask, which the screenshots omit) plus a CLI one-liner, linking to the docs section as the source of truth.Notes
command2classmap for accuracy (e.g.similar_issue, singular)./help_docsis intentionally omitted from the quick reference because it is temporarily disabled incommand2classpending the clone-target validation fix (PR-Agent /help_docs allows untrusted commenters to override git clone target and exfiltrate GITHUB_TOKEN via weak hostname validation #2445) — listing it as runnable would mislead.