一键导入
copilot-pr-review-loop
Mandatory loop after each push/PR. Require Copilot review request, CI green, comment resolution, and repeat until convergence.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mandatory loop after each push/PR. Require Copilot review request, CI green, comment resolution, and repeat until convergence.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when implementing the backend of a complex Laravel admin page (filters, KPI, lists, exports). Guides Request/DTO/service/controller/route layout, output contract design, and the minimum tests required. Trigger on tasks like "build admin index", "add filtered admin page", "write backend for admin dashboard".
Use BEFORE creating or refactoring any admin interface to audit existing UI components, services, and helpers and decide REUSE / EXTEND / CREATE-DOMAIN / CREATE-GLOBAL for each piece. Trigger when starting a new admin page, when asked to "check existing components first", or before any "create-admin-interface" run.
Use when implementing the JS/CSS frontend of a complex Laravel admin page (entrypoint, API client, filters, table, KPI/charts, modals, empty/loading/error states). Trigger on tasks like "wire admin page JS", "build admin filters", "render admin table", or anything touching frontend modules of an admin view.
Orchestrator skill for creating or refactoring a complex Laravel admin page (filters, KPIs, tables, exports, charts, modals). Drives the full sequence — component audit, contract definition, backend, frontend, hardening — and chains the related admin-interface-* skills. Trigger on requests like "create admin page", "build dashboard for X", or "refactor admin index for Y".
Use when adding or refactoring a Laravel 13 HTTP API endpoint. Drives the route → thin controller → FormRequest → DTO → service/action → JsonResource → feature test pipeline, with stable response shape and consistent status codes. Trigger on tasks like "add API endpoint", "expose X via API", or "create REST route".
Use when adding or refactoring a Laravel 13 controller (web, API, or admin). Drives thin-controller patterns — FormRequest validation, DTO/command objects, delegation to service/action, coherent view/resource/redirect responses, plus the minimum feature test. Trigger on tasks like "add controller for X", "refactor controller", "expose admin action".
| name | copilot-pr-review-loop |
| description | Mandatory loop after each push/PR. Require Copilot review request, CI green, comment resolution, and repeat until convergence. |
Do not stop after a single push. A PR is complete only when:
gh pr edit <PR> --add-reviewer @copilot
When primary command fails before requesting reviewer (for example missing read:project token scope), use:
pr_node_id="$(gh pr view <PR> --json id --jq .id)"
query='
mutation RequestReviewsByLogin($pullRequestId: ID!, $botLogins: [String!], $union: Boolean!) {
requestReviewsByLogin(input: {pullRequestId: $pullRequestId, botLogins: $botLogins, union: $union}) {
clientMutationId
}
}
'
gh api graphql \
-f query="$query" \
-F pullRequestId="$pr_node_id" \
-F botLogins[]='copilot-pull-request-reviewer[bot]' \
-F union=true
gh api repos/<owner>/<repo>/pulls/<PR>/requested_reviewers
The reviewers[]=copilot REST fallback is not sufficient by itself.