Agent Skillsdyad-sh/dyad › dyad:pr-fix

dyad:pr-fix

GitHub

自动修复GitHub PR中的代码审查意见和失败的CI检查。通过协调子技能处理评论、修复测试,并提交推送更改,最终在PR上发布状态摘要。

.claude/skills/pr-fix/SKILL.md dyad-sh/dyad

Trigger Scenarios

需要解决PR上的代码审查反馈 PR的CI构建或测试失败

Install

npx skills add dyad-sh/dyad --skill dyad:pr-fix -g -y
More Options

Non-standard path

npx skills add https://github.com/dyad-sh/dyad/tree/main/.claude/skills/pr-fix -g -y

Use without installing

npx skills use dyad-sh/dyad@dyad:pr-fix

指定 Agent (Claude Code)

npx skills add dyad-sh/dyad --skill dyad:pr-fix -a claude-code -g -y

安装 repo 全部 skill

npx skills add dyad-sh/dyad --all -g -y

预览 repo 内 skill

npx skills add dyad-sh/dyad --list

SKILL.md

Frontmatter
{
    "name": "dyad:pr-fix",
    "description": "Address all outstanding issues on a GitHub Pull Request by handling both review comments and failing CI checks."
}

PR Fix

Address all outstanding issues on a GitHub Pull Request by handling both review comments and failing CI checks.

Arguments

  • $ARGUMENTS: Optional PR number or URL. If not provided, uses the current branch's PR.

Task Tracking

You MUST use the TaskCreate and TaskUpdate tools to track your progress. At the start, create tasks for each step below. Mark each task as in_progress when you start it and completed when you finish. This ensures you complete ALL steps.

Product Principles

When making decisions about review comments, consult rules/product-principles.md. Use these principles to resolve ambiguous or subjective feedback autonomously. Only flag issues for human attention when the product principles do not provide enough guidance to make a decision.

Instructions

This is a meta-skill that orchestrates two sub-skills to comprehensively fix PR issues.

  1. Run /dyad:pr-fix:comments to handle all unresolved review comments:

    • Address valid code review concerns
    • Resolve invalid concerns with explanations
    • Use product principles to resolve ambiguous feedback autonomously
    • Only flag issues for human attention when product principles are insufficient to decide
  2. Run /dyad:pr-fix:ci to handle failing CI checks from the latest PR run:

    • Fix failing tests (unit and E2E)
    • Update snapshots if needed
    • Ensure all checks pass
  3. Run /dyad:pr-push to commit and push all changes:

    • This step is REQUIRED. Do NOT skip it or stop before it completes.
    • It will commit changes, run lint/tests, and push to GitHub.
    • Wait for it to finish and verify the push succeeded.
  4. Post Summary Comment: After both sub-skills complete, post a comment on the PR with a consolidated summary using gh pr comment. The comment should include:

    • A header indicating success (✅) or failure (❌)
    • Review comments addressed, resolved, or flagged
    • CI checks that were fixed
    • Any remaining issues requiring human attention
    • Use <details> tags to collapse verbose details (e.g., full error messages, lengthy explanations)
    • If there were any errors, include specific error messages in the collapsed details

    Error handling: If gh pr comment fails (e.g., due to network issues, rate limits, or permissions), log a warning but do not fail the entire skill if the underlying fixes were successful. The comment is informational and should not block a successful run.

    Example formats:

    Success:

    ## ✅ Claude Code completed successfully
    
    ### Summary
    - Fixed 2 review comments
    - Resolved 1 CI failure (lint error in `src/foo.ts`)
    
    <details>
    <summary>Details</summary>
    
    ... detailed information here ...
    
    </details>
    
    ---
    [Workflow run](https://github.com/dyad-sh/dyad/actions/runs/12345678)
    

    Failure:

    ## ❌ Claude Code failed
    
    ### Summary
    - Attempted to fix 2 review comments
    - Failed to resolve 1 CI failure (lint error in `src/foo.ts`)
    
    <details>
    <summary>Error Details</summary>
    
    **Error:** `lint` command failed with exit code 1.
    
    

    ... linter output ...

    
    </details>
    
    ---
    [Workflow run](https://github.com/dyad-sh/dyad/actions/runs/12345678)
    

    Note: Include a link to the workflow run at the end. If the GITHUB_REPOSITORY and GITHUB_RUN_ID environment variables are available, use them to construct the URL: https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID. If these environment variables are not set, omit the workflow run link.

Version History

  • 7158f6f Current 2026-08-20 16:43

Same Skill Collection

.claude/skills/add-models/SKILL.md
.claude/skills/check-workflows/SKILL.md
.claude/skills/debug-minified-error/SKILL.md
.claude/skills/debug-with-playwright/SKILL.md
.claude/skills/deflake-e2e-from-run/SKILL.md
.claude/skills/deflake-e2e-recent-commits/SKILL.md
.claude/skills/deflake-e2e/SKILL.md
.claude/skills/e2e-rebase/SKILL.md
.claude/skills/feedback-to-issues/SKILL.md
.claude/skills/fix-issue/SKILL.md
.claude/skills/plan-to-issue/SKILL.md
.claude/skills/pr-fix-ci/SKILL.md
.claude/skills/pr-fix-comments/SKILL.md
.claude/skills/pr-push/SKILL.md
.claude/skills/pr-rebase/SKILL.md
.claude/skills/pr-screencast/SKILL.md
.claude/skills/promote-beta-to-stable/SKILL.md
.claude/skills/remember-learnings/SKILL.md
.claude/skills/swarm-pr-review/SKILL.md
.claude/skills/swarm-to-plan/SKILL.md
.claude/skills/multi-pr-review/SKILL.md

Metadata

Files
0
Version
157ab55
Hash
8f081f99
Indexed
2026-08-20 16:43

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 01:06
浙ICP备14020137号-1 $お客様$