Skip to content

fix(resolve-pr-threads): rewrite negation rules as affirmative clarity#58

Merged
JacobPEvans merged 3 commits intomainfrom
fix/clarify-graphql-thread-instructions
Feb 27, 2026
Merged

fix(resolve-pr-threads): rewrite negation rules as affirmative clarity#58
JacobPEvans merged 3 commits intomainfrom
fix/clarify-graphql-thread-instructions

Conversation

@JacobPEvans
Copy link
Owner

@JacobPEvans JacobPEvans commented Feb 27, 2026

Summary

  • Replace ## DO NOT prohibition list in SKILL.md with affirmative ## Rules section — tells agents what TO do with correct mutations/commands front and center
  • Replace "Fallback: Top-Level PR Comment" section in rest-api-patterns.md with "When REST Reply Fails" diagnosis table — eliminates the fallback pattern that caused agents to post unresolvable top-level comments
  • Add "When a Mutation Fails" diagnosis flow to graphql-queries.md with error-specific remediation steps
  • Fix Step 3b sub-agent prompt to use REST API (gh api .../issues/{number}/comments) instead of gh pr comment
  • Bump plugin version 1.0.01.1.0 to bust stale caches

Test Plan

  • markdownlint-cli2 — 0 errors across all 3 modified skill files
  • cspell — 0 issues across all 3 modified skill files
  • test_graphql_guidance.py — 8/8 tests pass
  • Grep confirms zero "fallback"/"top-level comment" matches in reply/thread context
  • addPullRequestReviewComment appears only in reference/warning rows

🤖 Generated with Claude Code


Important

Rewrite negation rules as affirmative in documentation, fix command usage, and bump version to 1.1.0.

  • Documentation Updates:
    • Replace ## DO NOT section in SKILL.md with ## Rules for affirmative guidance.
    • Replace "Fallback: Top-Level PR Comment" in rest-api-patterns.md with "When REST Reply Fails" diagnosis table.
    • Add "When a Mutation Fails" diagnosis flow to graphql-queries.md.
  • Command Fixes:
    • Fix Step 3b sub-agent prompt to use gh api .../issues/{number}/comments instead of gh pr comment in SKILL.md.
  • Version Update:
    • Bump plugin version from 1.0.0 to 1.1.0 in plugin.json.

This description was created by Ellipsis for 5507885. You can customize this summary. It will automatically update as commits are pushed.

Replace "DO NOT" prohibition lists with affirmative rules that tell
agents exactly what TO do, reducing the risk of latching onto the
wrong patterns. Key changes:

- SKILL.md: Replace ## DO NOT section with ## Rules using bold
  affirmative statements; correct Step 3b to use REST API instead
  of gh pr comment
- rest-api-patterns.md: Replace "Fallback: Top-Level PR Comment"
  with "When REST Reply Fails" diagnosis table; fix troubleshooting
  row to recommend diagnosis over fallback
- graphql-queries.md: Add "When a Mutation Fails" diagnosis flow
  after Mutation Reference Table
- plugin.json: Bump version 1.0.0 → 1.1.0 to invalidate stale cache

(claude)
Copilot AI review requested due to automatic review settings February 27, 2026 06:19
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 5507885 in 7 seconds. Click for details.
  • Reviewed 103 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.

Workflow ID: wflow_ARXwA579yZ53Kogy

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the clarity and robustness of the PR thread resolution process by reframing instructions from prohibitions to positive rules, providing detailed error diagnosis flows for both REST and GraphQL API interactions, and correcting specific command usage. The changes aim to prevent common pitfalls, improve the reliability of automated responses, and ensure that all replies are properly threaded within pull request conversations.

Highlights

  • Documentation Clarity: Replaced negative prohibitions (## DO NOT) with affirmative rules (## Rules) in SKILL.md to provide clearer guidance on PR thread resolution.
  • Improved Error Diagnosis: Replaced the 'Fallback: Top-Level PR Comment' section in rest-api-patterns.md with a 'When REST Reply Fails' diagnosis table, eliminating problematic fallback patterns and guiding agents to fix root causes.
  • GraphQL Mutation Guidance: Added a 'When a Mutation Fails' diagnosis flow to graphql-queries.md with error-specific remediation steps for GraphQL operations.
  • Command Correction: Fixed the Step 3b sub-agent prompt in SKILL.md to correctly use the GitHub REST API (gh api .../issues/{number}/comments) instead of gh pr comment for replies.
  • Plugin Version Update: Bumped the plugin version from 1.0.0 to 1.1.0 to ensure caches are busted and the latest changes are adopted.
Changelog
  • github-workflows/.claude-plugin/plugin.json
    • Updated the plugin version from 1.0.0 to 1.1.0.
  • github-workflows/skills/resolve-pr-threads/SKILL.md
    • Replaced the 'DO NOT' section with a 'Rules' section, providing affirmative guidance for replying to and resolving threads.
    • Updated the command in Step 3 for replying to comments to use gh api instead of gh pr comment.
  • github-workflows/skills/resolve-pr-threads/graphql-queries.md
    • Added a new section 'When a Mutation Fails' detailing diagnosis steps for common GraphQL mutation errors.
  • github-workflows/skills/resolve-pr-threads/rest-api-patterns.md
    • Replaced the 'Fallback: Top-Level PR Comment' section with 'When REST Reply Fails', introducing a diagnosis table for REST API errors.
    • Updated the resolution for 'Resource not accessible' error to include verifying gh auth status and re-fetching thread IDs.
Activity
  • No human activity (comments, reviews) has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@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 significantly improves the clarity and correctness of the agent skills documentation by replacing prohibitive rules with affirmative guidance and refining error-handling procedures. The changes are well-aligned with the goal of preventing incorrect agent behavior, such as posting unresolvable top-level comments. I have a couple of suggestions to further enhance the clarity of the documentation and prevent potential confusion for the agent.

…permission error guidance

- SKILL.md: Clarify that top-level comments are prohibited only for
  thread replies, not for non-threaded feedback responses
- rest-api-patterns.md: Remove 're-fetch thread IDs' from Resource
  not accessible fix; re-fetching helps with stale IDs, not permissions

(claude)
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the resolve-pr-threads skill documentation to replace negative prohibitions and fallback behaviors with affirmative rules and error-diagnosis guidance, aiming to keep agents replying/resolving within review threads and avoiding unresolvable top-level comment workflows.

Changes:

  • Replaces the “Fallback: Top-Level PR Comment” guidance with a diagnosis table for REST reply failures.
  • Adds mutation-failure diagnosis guidance to the GraphQL query reference.
  • Rewrites SKILL.md prohibitions into an affirmative “Rules” section and updates the Step 3b sub-agent prompt to use the Issues comments REST endpoint.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
github-workflows/skills/resolve-pr-threads/rest-api-patterns.md Removes fallback-to-top-level-comment guidance and replaces it with error-specific REST reply diagnostics.
github-workflows/skills/resolve-pr-threads/graphql-queries.md Adds a “When a Mutation Fails” diagnostic flow for GraphQL replies.
github-workflows/skills/resolve-pr-threads/SKILL.md Replaces “DO NOT” list with affirmative rules; updates the comment-group sub-agent reply command.
github-workflows/.claude-plugin/plugin.json Bumps plugin version from 1.0.0 to 1.1.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…diagnosis accuracy

- SKILL.md: Expand top-level comment prohibition to explicitly name the
  Issues comments API as also off-limits for thread replies, while
  clarifying top-level comments are fine for general PR feedback
- SKILL.md: Rewrite Step 3b to distinguish non-thread comments from
  thread replies, preventing Issues API misuse as a thread reply fallback
- graphql-queries.md: Correct 'doesn't accept argument' diagnosis —
  this error means wrong argument name/input shape, not wrong mutation name;
  add a Note for 'Cannot query field' errors which do indicate wrong name

(claude)
@JacobPEvans JacobPEvans merged commit d5a25c4 into main Feb 27, 2026
5 checks passed
@JacobPEvans JacobPEvans deleted the fix/clarify-graphql-thread-instructions branch February 27, 2026 06:30
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