Agent SkillsTerry-Mao/AICodingFlow › update-pr-review

update-pr-review

GitHub

将人工对机器人PR审查的反馈转化为仓库本地审查技能指南。通过识别重复模式,更新SKILL.md以优化未来审查规则,仅处理人类反馈,由Runner执行实际写入。

.github/skills/update-pr-review/SKILL.md Terry-Mao/AICodingFlow

Trigger Scenarios

收到包含人工审查反馈的JSON数据 需要根据历史人工反馈优化本地代码审查规则

Install

npx skills add Terry-Mao/AICodingFlow --skill update-pr-review -g -y
More Options

Non-standard path

npx skills add https://github.com/Terry-Mao/AICodingFlow/tree/main/.github/skills/update-pr-review -g -y

Use without installing

npx skills use Terry-Mao/AICodingFlow@update-pr-review

指定 Agent (Claude Code)

npx skills add Terry-Mao/AICodingFlow --skill update-pr-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add Terry-Mao/AICodingFlow --all -g -y

预览 repo 内 skill

npx skills add Terry-Mao/AICodingFlow --list

SKILL.md

Frontmatter
{
    "name": "update-pr-review",
    "description": "Improve repo-local PR review companion skills from human feedback on bot reviews. Use when updating review guidance from recent GitHub PR review feedback."
}

update-pr-review

Use this skill to turn human feedback on bot PR reviews into concise updates to repo-local review companion skills.

This skill owns only the self-evolution logic: how to turn aggregated human feedback into local review guidance. The GitHub Actions runner owns data collection, write-surface validation, commits, pushes, and PR creation. When run inside GitHub Actions, .agents may be read-only. Write proposed changes only to update-pr-review-output/; the runner applies them.

Workflow

  1. Read the aggregated feedback JSON provided by the runner.
  2. Identify repeated human-feedback patterns or stable repo preferences.
  3. Convert those patterns into concise repo-specific guidance.
  4. Write proposed local companion skill content to update-pr-review-output/.
  5. Stop; the runner validates and publishes the result.

Output Contract

Always write update-pr-review-output/status.json:

{
  "status": "changed",
  "reason": "Brief evidence summary.",
  "updated_files": [".github/skills/review-pr-repo/SKILL.md"]
}

Allowed statuses:

  • changed when guidance should be updated
  • no_change when evidence is insufficient or already covered
  • error when feedback cannot be interpreted safely

Use no_change when there is no human evidence. Agent-only feedback is not enough to update guidance.

For changed, write the complete replacement content for each updated file:

  • update-pr-review-output/review-pr-repo/SKILL.md
  • update-pr-review-output/review-spec-repo/SKILL.md

Do not edit .agents directly.

Learn And Edit

Read the JSON and look for patterns worth adding to local review rules:

  • humans clearly said an agent comment was wrong
  • the finding was directionally right, but severity, scope, or line target was wrong
  • the comment was not actionable
  • reviewers repeatedly emphasized a repo-specific check
  • human-only review threads reveal stable repo preferences
  • a pattern belongs in the top-level summary instead of inline comments

Use agent_comments only as context for what the agent said. Do not update guidance from agent_comments alone. Require human evidence from human_review_comments, human conversation_comments, or human-authored review bodies/comments.

Turn concrete feedback into repo-specific guidance:

  1. Start from the specific human feedback.
  2. Find repeated patterns or stable repo preferences.
  3. Abstract the pattern into guidance that applies to future reviews.
  4. Merge it into the most relevant existing section.
  5. Keep the final wording concise.

Acceptable edits:

  • add a bullet to an existing section
  • add a small section when no existing section fits
  • rewrite an existing rule to make it more accurate
  • make no change when the evidence is too weak

Do not:

  • paste raw JSON into skill files
  • write a chronological summary of PR feedback
  • add a rule for one reviewer's one-off preference
  • add a rule based only on agent comments
  • weaken correctness, security, or data-loss checks from one disagreement
  • override the core review contract

Write Routing

Use each PR's review_type:

  • code -> .github/skills/review-pr-repo/SKILL.md
  • spec -> .github/skills/review-spec-repo/SKILL.md

Skip a file when that feedback type has no useful pattern.

Boundaries

Allowed write surface:

  • .github/skills/review-pr-repo/
  • .github/skills/review-spec-repo/

Forbidden write surface:

  • .github/skills/review-pr/SKILL.md
  • .github/skills/review-spec/SKILL.md
  • other core skills or product code

Local companion skills may specialize repo preferences, but must not change the core review contract: output schema, severity labels, diff-line targeting, snapshot rules, validation rules, or safety rules.

Handoff

After writing output files, re-read the proposed skill content and keep it concise. Do not run Git commands, push branches, create PRs, edit workflow files, or edit .agents directly as part of this skill. The runner must apply output files and validate the write surface before publishing.

Version History

  • e53c5ac Current 2026-07-24 11:36

Same Skill Collection

.agents/skills/bootstrap-issue-config/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/diagnose-ci-failures/SKILL.md
.agents/skills/git-branch/SKILL.md
.agents/skills/git-commit/SKILL.md
.agents/skills/git-push/SKILL.md
.agents/skills/git-worktree/SKILL.md
.agents/skills/pr-walkthrough/SKILL.md
.agents/skills/resolve-merge-conflicts/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/review-spec-local/SKILL.md
.agents/skills/spec-driven-implementation/SKILL.md
.agents/skills/write-product-spec/SKILL.md
.agents/skills/write-tech-spec/SKILL.md
.github/skills/check-impl-against-spec/SKILL.md
.github/skills/create-product-spec/SKILL.md
.github/skills/create-tech-spec/SKILL.md
.github/skills/dedupe-issue-repo/SKILL.md
.github/skills/dedupe-issue/SKILL.md
.github/skills/implement-issue/SKILL.md
.github/skills/implement-specs/SKILL.md
.github/skills/product-change-report/SKILL.md
.github/skills/product-docs-sync/SKILL.md
.github/skills/product-wiki/SKILL.md
.github/skills/review-pr-repo/SKILL.md
.github/skills/review-pr/SKILL.md
.github/skills/review-spec-repo/SKILL.md
.github/skills/review-spec/SKILL.md
.github/skills/security-review-pr/SKILL.md
.github/skills/security-review-spec/SKILL.md
.github/skills/triage-issue-repo/SKILL.md
.github/skills/triage-issue/SKILL.md
.github/skills/update-dedupe/SKILL.md
.github/skills/update-triage/SKILL.md

Metadata

Files
0
Version
e53c5ac
Hash
d2ba501c
Indexed
2026-07-24 11:36

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 16:30
浙ICP备14020137号-1 $Carte des visiteurs$