Skip to content

feat: add cc:request label step to pr-push skill#2773

Merged
wwwillchen merged 1 commit intodyad-sh:mainfrom
wwwillchen:add-cc-request-label-to-pr-push
Feb 24, 2026
Merged

feat: add cc:request label step to pr-push skill#2773
wwwillchen merged 1 commit intodyad-sh:mainfrom
wwwillchen:add-cc-request-label-to-pr-push

Conversation

@wwwillchen
Copy link
Copy Markdown
Collaborator

@wwwillchen wwwillchen commented Feb 23, 2026

Summary

  • Add step 8 to the pr-push skill that automatically adds the cc:request label for non-trivial PRs to trigger code review
  • This prevents issues like lint failures from slipping through when the agent doesn't fully execute lint checks (e.g., due to token limits in long CI runs)
  • Renumbered subsequent steps (9-11) accordingly

Test plan

  • Verify the pr-push skill SKILL.md has the new step 8 with clear trivial/non-trivial criteria
  • Verify step numbering is correct (1-11)
  • Run pr-push on a non-trivial PR and confirm cc:request label is added

🤖 Generated with Claude Code


Open with Devin

Add step 8 to the pr-push skill that automatically adds the
cc:request label for non-trivial PRs to trigger code review.
This prevents issues like lint failures from slipping through
when the agent doesn't fully execute lint checks.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@wwwillchen wwwillchen requested a review from a team February 23, 2026 21:59
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @wwwillchen, 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 enhances the pr-push skill by automating the process of requesting code reviews for significant changes. It introduces a new step that intelligently applies a cc:request label to pull requests deemed "non-trivial" based on predefined criteria. This automation aims to prevent unreviewed issues, such as lint failures, from being merged, thereby improving code quality and review coverage.

Highlights

  • Automated Code Review Trigger: Introduced a new step (step 8) in the pr-push skill to automatically add the cc:request label to non-trivial pull requests, ensuring they trigger a code review.
  • Trivial vs. Non-Trivial Definition: Clearly defined criteria for what constitutes a "trivial" pull request (e.g., documentation, snapshot updates, single-line fixes) versus a "non-trivial" one (e.g., source code changes, test logic, config changes, or touching 3+ files).
  • Step Renumbering: Renumbered subsequent steps (originally 9 and 10) to 10 and 11 respectively, to accommodate the newly added step 8.
Changelog
  • .claude/skills/pr-push/SKILL.md
    • Added a new step (step 8) for automatically adding the cc:request label to non-trivial PRs.
    • Included detailed definitions for trivial and non-trivial PRs.
    • Updated the numbering of subsequent steps (9 and 10 became 10 and 11).
Activity
  • This is a new pull request introducing a feature. There is no human activity recorded 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.

@wwwillchen
Copy link
Copy Markdown
Collaborator Author

@BugBot run

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@github-actions github-actions bot added the needs-human:review-issue ai agent flagged an issue that requires human review label Feb 23, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Feb 23, 2026

Greptile Summary

This PR adds a new step 8 to the pr-push skill that automatically applies the cc:request label to non-trivial PRs, triggering automated code review via the existing pr-review-responder.yml workflow. The change includes clear criteria for distinguishing trivial from non-trivial PRs and renumbers subsequent steps (9–11) accordingly.

  • New step 8 defines trivial vs. non-trivial PR criteria and runs gh pr edit --add-label "cc:request" for non-trivial PRs
  • Step renumbering is correct (old 8→9, old 9→10, old 10→11)
  • Formatting regression: Step 10 ("Remember learnings") lost its 3-space indentation during renumbering, breaking the consistent nesting used by all other steps in the document

Confidence Score: 4/5

  • This PR is safe to merge — it only modifies a skill instruction document with no runtime code changes. The formatting regression is minor.
  • Score of 4 reflects that the core change (new step 8 with cc:request label logic) is well-defined and aligns correctly with the existing pr-review-responder workflow. The only issue is a markdown indentation regression in step 10 during renumbering, which is cosmetic but breaks consistency with the rest of the document.
  • .claude/skills/pr-push/SKILL.md — step 10 body indentation should be restored to match the rest of the document

Important Files Changed

Filename Overview
.claude/skills/pr-push/SKILL.md Adds new step 8 to apply cc:request label for non-trivial PRs and renumbers subsequent steps. The new step is well-structured with clear trivial/non-trivial criteria. However, the renumbering of step 9→10 introduced an indentation regression where the step's body content lost its nesting.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Step 7: Create/Update PR] --> B[Step 8: Evaluate PR triviality]
    B --> C{Is PR trivial?}
    C -->|Yes: docs-only, snapshot updates, single-line typo| D[Skip label]
    C -->|No: source code, test logic, config, 3+ files| E["gh pr edit --add-label cc:request"]
    D --> F[Step 9: Remove review-issue label]
    E --> F
    F --> G[Step 10: Remember learnings]
    G --> H[Step 11: Summarize results]
    E -.-> I[pr-review-responder.yml triggers]
    I -.-> J[Automated code review loop]
Loading

Last reviewed commit: 592ad87

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 592ad871e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

If the PR is non-trivial:

```
gh pr edit --add-label "cc:request"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use label that actually triggers PR review responder

Adding cc:request here can leave PRs stuck in an unprocessed state because the responder workflow only reacts to a labeling event for cc:request:now (.github/workflows/pr-review-responder.yml lines 7-24), while cc:request is only picked up on a later CI workflow_run; if CI has already completed when this step runs (for example, rerunning pr-push on an existing PR with no new push), no responder run is triggered and the status labeler also skips these PRs due to cc:request* (.github/workflows/pr-status-labeler.yml lines 56-64).

Useful? React with 👍 / 👎.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Dyadbot Code Review Summary

Verdict: 🤔 NOT SURE - Potential issues

Reviewed by 3 independent agents: Correctness Expert, Code Health Expert, UX Wizard.

Issues Summary

Severity File Issue
🟡 MEDIUM .claude/skills/pr-push/SKILL.md:167-176 Contradictory trivial/non-trivial criteria for docs PRs touching 3+ files
🟡 MEDIUM .claude/skills/pr-push/SKILL.md:180 No error handling for gh pr edit --add-label, unlike step 9
🟢 Low Priority Notes (1 item)
  • Step 10 indentation regression - .claude/skills/pr-push/SKILL.md:192-208 - Body content lost its 3-space indentation during renumbering, breaking visual consistency with all other steps
🚫 Dropped False Positives (2 items)
  • No guidance on re-evaluating label on subsequent pushes - Dropped: Adding a label that already exists is a no-op in GitHub CLI; re-adding is harmless and idempotent
  • No guidance on verifying label exists before adding - Dropped: Subsumed by the error-handling issue above; adding || true covers this case

Generated by Dyadbot multi-agent code review

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file

Confidence score: 5/5

  • Only a minor documentation formatting issue in .claude/skills/pr-push/SKILL.md where a paragraph lost indentation in step 10; no functional impact
  • Low severity and limited scope make this safe to merge with minimal risk
  • Pay close attention to .claude/skills/pr-push/SKILL.md - restore indentation to keep the paragraph within step 10
Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".claude/skills/pr-push/SKILL.md">

<violation number="1" location=".claude/skills/pr-push/SKILL.md:194">
P2: Restore the indentation for this paragraph and the subsequent block so they remain part of the numbered list step 10.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

9. **Remember learnings (after initial push):**
10. **Remember learnings (after initial push):**

Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Feb 23, 2026

Choose a reason for hiding this comment

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

P2: Restore the indentation for this paragraph and the subsequent block so they remain part of the numbered list step 10.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .claude/skills/pr-push/SKILL.md, line 194:

<comment>Restore the indentation for this paragraph and the subsequent block so they remain part of the numbered list step 10.</comment>

<file context>
@@ -160,32 +160,54 @@ Commit any uncommitted changes, run lint checks, fix any issues, and push the cu
-9. **Remember learnings (after initial push):**
+10. **Remember learnings (after initial push):**
+
+Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.
 
-   Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.
</file context>
Fix with Cubic

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Multi-agent review: 2 issue(s) found

Comment on lines +167 to +176
A PR is **trivial** (skip the label) if it ONLY contains:
- Documentation-only changes (`.md` files, comments)
- Snapshot/baseline updates with no test logic changes
- Single-line typo or formatting fixes

All other PRs are **non-trivial** (add the label), including:
- Any changes to source code (`.ts`, `.tsx`, `.js`, etc.)
- Changes to test logic (not just snapshot baselines)
- Configuration changes (`.yml`, `.json`, etc.)
- Any PR touching 3+ files
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 MEDIUM | logic

Contradictory trivial/non-trivial criteria for 3+ doc files

The trivial criteria say a PR is trivial if it "ONLY contains documentation-only changes (.md files, comments)", but the non-trivial criteria say "Any PR touching 3+ files" is non-trivial. A PR that modifies 3 or more .md files satisfies both rules simultaneously, with no tie-breaking precedence defined.

This ambiguity could cause inconsistent agent behavior across runs.

💡 Suggestion: Clarify precedence, e.g.: "If all changes match the trivial criteria, the PR is trivial regardless of file count." Or remove the 3+ files heuristic since the file-type rules already cover the intent.


If the PR is non-trivial:

```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 MEDIUM | error-handling

No error suppression for label-add command

This command has no error guard, but step 9's analogous label-removal uses 2>/dev/null || true. If the cc:request label doesn't exist in the repository (e.g., on a fork), this command will fail and block subsequent steps (learnings recording, summary).

💡 Suggestion:

Suggested change
```
gh pr edit --add-label "cc:request" 2>/dev/null || true

Copy link
Copy Markdown
Contributor

@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

The pull request successfully adds a new step to the pr-push skill to automatically label non-trivial PRs with cc:request, which helps ensure appropriate code review coverage. My feedback focuses on adhering to the repository's Git workflow rules regarding the use of the GitHub REST API for labeling (due to known GraphQL issues) and restoring the indentation in step 10 to maintain markdown consistency and readability.

If the PR is non-trivial:

```
gh pr edit --add-label "cc:request"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

According to rules/git-workflow.md, gh pr edit --add-label is known to fail in this repository due to GraphQL deprecation issues. The REST API should be used instead to ensure the label is applied correctly.

Suggested change
gh pr edit --add-label "cc:request"
gh api repos/dyad-sh/dyad/issues/$(gh pr view --json number -q .number)/labels -f "labels[]=cc:request"
References
  1. The repository rules specify that gh pr edit --add-label fails due to GraphQL deprecation and the REST API should be used instead.

Comment on lines +194 to +208
Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.

Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.
If any files were modified by the skill (check with `git status`):

If any files were modified by the skill (check with `git status`):
- Stage the modified files: `git add AGENTS.md rules/`
- Create a new commit for the learnings:
```
git commit -m "docs: record session learnings"
```
- Push the learnings commit:
```
git push
```
- Stage the modified files: `git add AGENTS.md rules/`
- Create a new commit for the learnings:
```
git commit -m "docs: record session learnings"
```
- Push the learnings commit:
```
git push
```

**IMPORTANT:** Do NOT amend the previous commit. Create a separate commit for learnings so the main work is already pushed before this step.
**IMPORTANT:** Do NOT amend the previous commit. Create a separate commit for learnings so the main work is already pushed before this step.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The indentation for the content of step 10 was removed in this PR. Restoring the 3-space indentation is necessary to maintain the markdown list structure and consistency with the rest of the document.

Suggested change
Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.
Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.
If any files were modified by the skill (check with `git status`):
If any files were modified by the skill (check with `git status`):
- Stage the modified files: `git add AGENTS.md rules/`
- Create a new commit for the learnings:
```
git commit -m "docs: record session learnings"
```
- Push the learnings commit:
```
git push
```
- Stage the modified files: `git add AGENTS.md rules/`
- Create a new commit for the learnings:
```
git commit -m "docs: record session learnings"
```
- Push the learnings commit:
```
git push
```
**IMPORTANT:** Do NOT amend the previous commit. Create a separate commit for learnings so the main work is already pushed before this step.
**IMPORTANT:** Do NOT amend the previous commit. Create a separate commit for learnings so the main work is already pushed before this step.
Run the `/remember-learnings` skill to capture any errors, snags, or insights from this session into `AGENTS.md` or `rules/` files.
If any files were modified by the skill (check with `git status`):
- Stage the modified files: `git add AGENTS.md rules/`
- Create a new commit for the learnings:
```
git commit -m "docs: record session learnings"
```
- Push the learnings commit:
```
git push
```
**IMPORTANT:** Do NOT amend the previous commit. Create a separate commit for learnings so the main work is already pushed before this step.

@wwwillchen wwwillchen merged commit 822a998 into dyad-sh:main Feb 24, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human:review-issue ai agent flagged an issue that requires human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant