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

[REPLACE: SKILL_NAME]

First-touch review of newly opened PRs on [REPLACE: WATCHED_REPO] — verdict + welcoming comment + label

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.7 KB

SKILL.md(原文)

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

${var} — Optional. PR number to review. If empty, scans all newly-opened PRs on [REPLACE: WATCHED_REPO].

Today is ${today}. Review external PRs on [REPLACE: WATCHED_REPO] with a focus on [REPLACE: REVIEW_FOCUS].

Steps

  1. List candidates — every open PR opened in the last 24h that hasn't been reviewed by this skill yet:

    if [ -n "${var:-}" ]; then
      PRS="$var"
    else
      PRS=$(gh pr list -R [REPLACE: WATCHED_REPO] --state open --json number,author,createdAt,additions,deletions \
        --jq '.[] | select(.author.login != "github-actions[bot]" and .author.login != "aeonframework") | .number')
    fi
    

    Track previously-reviewed PRs in memory/topics/[REPLACE: SKILL_NAME]-reviewed.json (a flat array of PR numbers). Skip anything already in there.

  2. For each PR — fetch metadata + diff:

    gh pr view "$PR" -R [REPLACE: WATCHED_REPO] --json title,body,additions,deletions,files,author > .pr-meta.json
    gh pr diff "$PR" -R [REPLACE: WATCHED_REPO] > .pr-diff.patch
    

    Skip if additions + deletions > [REPLACE: MAX_PR_LINES] — flag it as DEFERRED: too large for first-touch review, leave a note, and move on.

  3. Apply the rubric — assign one of four verdicts:

    VerdictTrigger
    ACCEPTTouches expected paths, follows repo conventions, focused scope, no obvious bugs in the diff.
    NEEDS-CHANGESReasonable intent but specific issues: missing tests, broken format, incorrect assumption, naming.
    DEFEROut of scope for this skill — needs a human reviewer (large refactor, architectural change).
    OUT-OF-SCOPETouches files outside what the repo accepts contributions on (e.g. lock files, generated assets).

    Focus the rubric on [REPLACE: REVIEW_FOCUS] — that's the lens that matters most for this repo.

  4. Post a comment — use a friendly, specific tone. Acknowledge the contributor, name the verdict, give 1-3 concrete bullets:

    gh pr comment "$PR" -R [REPLACE: WATCHED_REPO] --body "Thanks for the PR! [verdict text]
    
    - [bullet 1]
    - [bullet 2]"
    
  5. Label the PR via gh pr edit "$PR" -R [REPLACE: WATCHED_REPO] --add-label "<label>" — use accepted / needs-changes / defer / out-of-scope (create the labels in the target repo first if they don't exist).

  6. Notify via ./notify only on ACCEPT or OUT-OF-SCOPE — those are the actionable verdicts for the operator. Silent on NEEDS-CHANGES and DEFER (the comment on the PR is the signal).

  7. Log — append to memory/logs/${today}.md:

    ## [REPLACE: SKILL_NAME]
    - **PRs reviewed**: N (skipped M as previously seen)
    - **Verdicts**: accept=X, needs-changes=Y, defer=Z, out-of-scope=W
    - **Status**: REVIEW_OK | REVIEW_QUIET (no new PRs)
    

Network note

gh handles auth via the workflow's GITHUB_TOKEN. To comment on or label a PR in [REPLACE: WATCHED_REPO], the token needs pull-requests: write and issues: write permission on that repo — verify the workflow grants those, or this skill will silently fail to write.

Constraints

  • Be welcoming. The PR may be someone's first open-source contribution. Lead with thanks, then specifics.
  • Never auto-merge. This skill is first-touch review, not auto-merge. Even an ACCEPT verdict still waits for a human merge.
  • Idempotent. Re-running the skill must never double-comment. The reviewed.json state file is what enforces that.

レビュー

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

同じリポジトリのスキル

概要と使いどころ

Watch Vercel deploys for [REPLACE: VERCEL_PROJECT] — alert on [REPLACE: ALERT_ON] in the last [REPLACE: LOOKBACK_HOURS] hours

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

aeonfun/aeon7702026年10月10日 更新

Digest of the most interesting new posts on [REPLACE: TOPIC] from RSS feeds and the open web

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

aeonfun/aeon7702026年10月10日 更新

Summary of the [REPLACE: CHANNEL_PLATFORM] channel [REPLACE: CHANNEL_NAME] — top [REPLACE: TOP_N_THREADS] threads + open questions

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

aeonfun/aeon7702026年10月10日 更新

Mention/keyword sweep on social platforms for [REPLACE: KEYWORDS] — trends, sentiment, top posts

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

aeonfun/aeon7702026年10月10日 更新

Price and volume tracker for [REPLACE: TOKEN_SYMBOL] with anomaly alerts above [REPLACE: ALERT_THRESHOLD_PCT]% movement

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

aeonfun/aeon7702026年10月10日 更新

5 concrete real-life actions, leverage-scored against open loops with specificity and anti-fluff gates

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

aeonfun/aeon7702026年10月10日 更新

aeonfun のスキルをすべて見る

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