本文へ移動
cccskills
無料GitHub で公開

pr-review

Address GitHub pull request feedback for this repository. Use when the user says "/pr-review" and wants review comments, requested changes, or unresolved feedback on an open PR inspected, incorporated into the branch, pushed, and marked resolved after the fix is made.

日本語の概要は準備中です。原文の説明を表示しています。

jtenniswood/espcontrolスター 1,120(GitHub 1,120 + cccskills 0)
連携ツールGitHub

実行スコア 未検証

インストール方法を見る

含まれるファイル(2)

  • SKILL.md5.1 KB
  • agents/openai.yaml312 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

/pr-review

Goal

Turn actionable PR feedback into a tested branch update. Find unresolved review comments, understand what they are asking for, make the matching code or docs changes, push the branch, and resolve only the feedback threads that were truly addressed.

This is different from /pr, which reviews a PR and recommends whether to merge. Use /pr-review when feedback already exists and needs action.

Workflow

1. Identify the PR

Use the PR number or URL if the user provides one. Otherwise use the single PR that the current chat is already active in, based on the existing chat context or linked PR context. If the chat does not identify exactly one PR with confidence, stop and ask the user for the PR number or URL before continuing.

Never choose a PR from the open PR list, by recency, or from an unrelated checked-out branch. Do not guess or silently substitute another PR.

Prefer GitHub connector tools when available. Otherwise use gh:

gh pr view <number> \
  --json number,title,body,headRefName,baseRefName,reviewDecision,statusCheckRollup,url

2. Work in the PR Branch

Protect main. Use the PR branch in a separate worktree when possible. If the branch is not local yet:

git fetch origin <head-branch>
git worktree add ../espcontrol-<short-topic> -b <head-branch> origin/<head-branch>

Before editing, check for local changes:

git status --short --branch

Do not overwrite or revert unrelated user changes.

3. Collect Unresolved Feedback

Collect unresolved review threads, requested changes, and ordinary PR comments. Use thread-level data whenever possible so resolved feedback is not repeated.

With gh, use GraphQL for review threads:

gh api graphql -f owner='{owner}' -f name='{repo}' -F number=<pr-number> -f query='
query($owner:String!, $name:String!, $number:Int!) {
  repository(owner:$owner, name:$name) {
    pullRequest(number:$number) {
      reviewDecision
      reviewThreads(first:100) {
        nodes {
          id
          isResolved
          path
          line
          startLine
          comments(first:20) {
            nodes {
              author { login }
              body
              createdAt
              url
            }
          }
        }
      }
      comments(first:50) {
        nodes {
          author { login }
          body
          createdAt
          url
        }
      }
    }
  }
}'

Summarize each actionable item in plain language before editing. Ignore already resolved threads unless later comments clearly reopen the same issue.

4. Make the Requested Changes

For each actionable item:

  • Read the relevant file and surrounding code before editing.
  • Make the smallest change that fully addresses the feedback.
  • Preserve existing project patterns and user-facing behavior unless the feedback explicitly asks for a behavior change.
  • If feedback is unclear, infer cautiously from the code and comment context. Ask the user only when the requested change could go in materially different directions.
  • Do not make unrelated cleanups while addressing review feedback.

If a comment is not actionable or should not be implemented, leave it unresolved and explain why in the final update.

5. Check the Change

Run focused checks based on touched files. Common checks:

npm run check:config
python3 scripts/build.py --check
python3 scripts/generate_device_slots.py --check
python3 scripts/check_timezones.py
npm run docs:build

Use the compile skill when firmware, common YAML, device YAML, or C++ changes could affect firmware builds and the user wants build-level confidence.

6. Commit and Push

This repo expects branch changes to be committed and pushed.

git status --short
git add <changed-files>
git commit -m "<short, human branch update summary>"
git push

Do not include "Codex" in branch names, commit subjects, or PR titles.

7. Resolve Addressed Feedback

After the fix is committed and pushed, resolve only the review thread IDs that were actually addressed. Do not resolve broad comments, unresolved decisions, or feedback you intentionally did not implement.

With gh GraphQL:

gh api graphql -f threadId='<review-thread-id>' -f query='
mutation($threadId:ID!) {
  resolveReviewThread(input:{threadId:$threadId}) {
    thread { id isResolved }
  }
}'

If a thread cannot be resolved because of permissions or API limits, say so and include the comment URL so the user can resolve it manually.

8. Final Update

Keep the final message approachable and concise:

Addressed PR #<number>: <title>

Changed:
- <plain-English summary>

Resolved feedback:
- <comment/topic>

Left open:
- <only if any, with reason>

Checks:
- <command>: <pass/fail/skipped and why>

Pushed branch: <branch>
PR: <url>

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Clean up completed Git branches and worktrees for this repository both locally and on GitHub. Use when the user asks to remove complete, completed, merged, stale, finished, or done branches, delete merged GitHub branches, tidy local worktrees, prune completed PR branches, or clean up branches and worktrees after pull requests have merged.

日本語の概要は準備中です。原文の説明を表示しています。

jtenniswood/espcontrol1,1202026年10月26日 更新

Clean up local branch worktree folders for this repository after their branches or pull requests have merged to main. Use when the user asks to remove merged branch folders, tidy local worktrees, clean old feature branch directories, prune merged PR worktrees, or clean up local development folders without impacting main.

日本語の概要は準備中です。原文の説明を表示しています。

jtenniswood/espcontrol1,1202026年10月26日 更新

compile

無料

Test compile ESPHome firmware for all devices using Docker and fix any YAML or configuration errors until every device compiles successfully. Use when the user says "/compile", "test compile", "compile check", "build test", "check builds", "verify compile", or wants to make sure all devices compile before committing.

日本語の概要は準備中です。原文の説明を表示しています。

jtenniswood/espcontrol1,1202026年10月26日 更新

Review EspControl repository changes specifically for missing, stale, excessive, or misplaced documentation. Use when the user asks for a documentation coverage review, asks whether a feature or behavior change is concisely documented, invokes $docs-review, or explicitly wants docs checked as a secondary pass during a pull request, branch, or local diff review.

日本語の概要は準備中です。原文の説明を表示しています。

jtenniswood/espcontrol1,1202026年10月26日 更新

Provide an expert codebase review for this repository. Use when the user says "Expert Review" or "/expert-review", asks for an expert review, wants refactoring or codebase improvement recommendations, wants consistency and quality assessed, or asks how to reduce duplication, improve component use, preserve the end-user experience, and keep upgrades cleanly migratable.

日本語の概要は準備中です。原文の説明を表示しています。

jtenniswood/espcontrol1,1202026年10月26日 更新

Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.

日本語の概要は準備中です。原文の説明を表示しています。

jtenniswood/espcontrol1,1202026年10月26日 更新

jtenniswood のスキルをすべて見る

このスキルの問題を報告する