Z Tools
Overview
Review PRs by combining prdump output, Jira ticket context via jiradump, and a branch diff from gh pr diff using only PR/Jira URLs.
Tools
prdump <pr_url>: Dumps PR title, branch, description, discussion, reviews, and inline review comments.prcopy <pr_url>: Copiesprdumpoutput to clipboard.jiradump <jira_url_or_key>: Dumps Jira ticket details and comments.jiracopy <jira_url_or_key>: Copiesjiradumpoutput to clipboard.gh pr diff <pr_url>: Prints the PR diff using the PR URL.
Workflow
- Run
prdump <pr_url>and capture the PR title, description, discussion, reviews, and inline review comments. - Extract Jira IDs/URLs from the user-provided Jira URLs and the PR description (e.g.,
ABC-123or Jira URLs). - De-duplicate the Jira list and run
jiradumpfor each relevant ticket to gather context. - Fetch the diff with
gh pr diff <pr_url>(PR URL only; do not require repo/branch inputs). - Review the PR using:
- Jira context (intent, acceptance criteria, risks).
- Diff (logic changes, tests, edge cases, regressions).
- PR discussion and review comments (address concerns or missing follow-ups).
Diagnostics
If prdump or jiradump report missing tools or auth, provide brief setup instructions:
ghmissing:brew install gh, thengh auth login.jiramissing:brew install jira-cli, thenjira init.- Auth errors (e.g., “not logged in”): run the appropriate login/init command.
Output Expectations
Summarize findings, highlight risks, and list actionable feedback with references to relevant diff sections or Jira requirements. Keep the response concise and review-focused.