跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

pr-review-fix

Periodically analyze open pull requests for CI failures, code review feedback, and quality issues, then fix them in batch. Use this skill when the user asks to check PR status, triage CI failures, fix review comments, analyze open PRs, or run a scheduled PR health check across the repository.

数据库与数据1.1kskills/pr-review-fix/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/tencentcloudbase/cloudbase-ai-toolkit/pr-review-fix/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

PR Review & Fix

Systematically analyze open pull requests for CI failures, code review feedback, and code quality issues — then fix them efficiently.

When to use this skill

Use this skill when you need to:

  • Check the status of all open PRs (CI, reviews, conflicts)
  • Triage and fix CI build/test failures on PR branches
  • Address code review feedback (reviewer comments, requested changes)
  • Run a scheduled health check across all open PRs
  • Fix multiple PRs in a single session without losing context

Do NOT use for:

  • Creating new PRs or new features
  • Merging PRs (that's a manual decision)
  • General code refactoring unrelated to PR feedback
  • Reviewing code as a reviewer (this skill is for responding to reviews)

Workflow

Phase 1 — Discovery

  1. Read references/discovery.md for the full discovery procedure.
  2. Fetch the list of open PRs from GitHub:
    gh pr list --state open --json number,title,headRefName,statusCheckRollup,reviewDecision,mergeable --limit 30
    
  3. For each PR, classify its health status:
    • 🔴 CI Failed — at least one required check failed
    • 🟡 Changes Requested — reviewer left requested changes
    • 🟢 Healthy — CI passing + approved or no review yet
    • ⚪ Conflict — merge conflicts detected

Phase 2 — Triage

  1. Read references/triage.md for prioritization rules.
  2. Prioritize by severity: CI failures > review changes > conflicts.
  3. For each failing PR, identify root cause category:
    • Build error — TypeScript/webpack compilation failure
    • Test failure — vitest/jest test assertion or timeout
    • Lint/type error — ESLint, type-check, or format issues
    • Review feedback — code style, logic, security, or design concerns
  4. Present a summary table to the user before proceeding to fixes.

Phase 3 — Fix

  1. Read references/fix-workflow.md for the fix procedure.
  2. For each PR to fix (in priority order): a. Stash current work: git stash b. Check out the PR branch: git checkout -B <branch> github/<branch> c. Reproduce the issue locally (build, test, or lint) d. Apply the fix e. Verify locally: build → test → lint f. Commit with conventional-changelog format: fix(<scope>): 🔧 <description> g. Push: git push github <branch> h. Return to original branch: git checkout <original> && git stash pop
  3. After all fixes, present a completion summary.

Phase 4 — Verify

  1. After pushing fixes, wait 1-2 minutes for CI to trigger.
  2. Check CI status for each fixed PR:
    gh pr checks <number>
    
  3. If CI still fails, loop back to Phase 3 for that PR.

Routing

TaskRead
Discover and list open PR statusreferences/discovery.md
Prioritize which PRs to fix firstreferences/triage.md
Execute fixes on PR branchesreferences/fix-workflow.md
Understand project CI pipelinereferences/ci-pipeline.md
Common fix patterns and recipesreferences/fix-recipes.md

Git safety rules

  • Never force-push to a PR branch unless explicitly asked.
  • Never amend commits that are already pushed.
  • Always stash before switching branches.
  • Always verify build + test locally before pushing.
  • One commit per fix session — keep the diff reviewable.

Commit conventions

Follow the project's conventional-changelog format:

fix(<scope>): 🔧 <english description>

Where <scope> is the affected module (e.g., cloudrun, security, code-quality, test).

Minimum self-check

  • Did you fetch the latest remote state before analyzing?
  • Did you reproduce the failure locally before attempting a fix?
  • Did you verify build + test pass after applying the fix?
  • Did you switch back to the original branch after each fix?
  • Did you present a clear summary of what was fixed and what remains?

相似的 Skill

xlsx
anthropics/skills180k

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

数据库与数据

deprecation-and-migration
addyosmani/agent-skills103k

deprecation-and-migration

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

数据库与数据

host-observer
thedotmack/claude-mem98k

host-observer

Use this when fulfilling claude-mem observer jobs on Grok Bot: reply only skip_summary or one full observation XML, never prose.

数据库与数据

babysit
thedotmack/claude-mem98k

babysit

Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.

数据库与数据

mem-search
thedotmack/claude-mem98k

mem-search

Search claude-mem's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", or needs work from previous sessions.

数据库与数据

Agent Cost Report
thedotmack/claude-mem98k

Agent Cost Report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.

数据库与数据