docs: add helper command guidelines and anti-patterns#598
Conversation
|
Summary of ChangesHello, 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 aims to standardize the development and review process for helper commands within the Highlights
Ignored Files
Using Gemini Code AssistThe 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
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 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. Footnotes
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces excellent documentation for helper commands, including guidelines, anti-patterns, and checklists. This will greatly improve contributor experience and code quality. I've found one issue in the documentation where the Helper trait's handle method signature is incorrect in the code example, which could lead to confusion and compilation errors for developers. A comment has been added to address this.
There was a problem hiding this comment.
Code Review
This pull request introduces excellent and much-needed documentation detailing the guidelines and anti-patterns for creating helper commands. The new sections in AGENTS.md and the comprehensive src/helpers/README.md will be very valuable for contributors. However, the PR also includes stylistic reformatting of YAML frontmatter across a large number of SKILL.md files. While this improves readability, it expands the scope of the PR beyond its primary documentation goal. I've added a comment regarding this scope creep.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request significantly improves the documentation for helper commands by adding detailed guidelines, anti-patterns, and checklists in src/helpers/README.md and a summary in AGENTS.md. The changes are well-structured and provide valuable context for contributors. My review focuses on ensuring the accuracy and consistency of the new documentation. I've pointed out a potential discrepancy in the Helper trait signature documented in src/helpers/README.md which may not align with the current codebase, and an inconsistency in the documented path for the validate_resource_name function between AGENTS.md and src/helpers/README.md. Addressing these points will ensure the documentation is clear and accurate for developers.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces comprehensive guidelines for creating helper commands, clarifying when they are appropriate and what anti-patterns to avoid. The changes include a detailed README.md in the src/helpers directory and a summary in AGENTS.md. The documentation is well-structured and provides clear rules for contributors. I've found one issue with an incorrect code path in the new documentation.
c5785a2 to
841f850
Compare
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request significantly improves the documentation by adding clear guidelines and anti-patterns for creating helper commands. The new src/helpers/README.md is comprehensive and will be a great resource for contributors. I have one point of feedback regarding an inconsistency in AGENTS.md.
Summary
Documents guidelines for when helper commands (
+verb) are justified vs. when they should be rejected. Adds anti-patterns with real PR examples (#563, #597) and flag design rules.Changes
AGENTS.md— Short helper guidelines section with key rule and link to full docssrc/helpers/README.md— Exhaustive guidelines: anti-patterns, flag design rules, decision checklist, architecture reference, new helper checklist.gemini/style_guide.md— Link to helper guidelines for code review contextMotivation
External PRs have been submitted that either wrap single API calls already available via Discovery (#563) or add unbounded flags to expose API response data (#597). These conflict with the schema-driven design philosophy.