当前位置: 首页 > Skill >

All Green

All Green

All Green

将本地更改发布到 GitHub Pull Request,持续处理该 PR,直到审查反馈得到解决并且所有必需的检查通过。使用场景为...

1.0.0 2026.11.25 766
获取Skill文件查看使用说明
作 者:苏言 许可证: 更新时间:2026.11.25
本文目录收起

/all-green

Run an end-to-end PR readiness loop: review the user's intended local changes before publication, show the pre-publish review output to the user for approval, fix only the approved findings, publish the changes, open a PR automatically, inspect review feedback and CI, implement fixes, validate locally, and repeat until the PR has no actionable unresolved feedback and required checks are green.

Core Workflow

  1. Establish scope.
    • If the user provides an existing PR, resolve it and skip publishing unless local changes must be pushed.
    • If the user wants current changes published, inspect git status -sb and the diff, confirm intended files when the worktree is mixed, and identify the exact pre-publish diff to review.
    • Prefer opening PRs (not draft PRs) unless the user explicitly asks for a draft.
  2. Run the pre-publish review gate.
    • Before staging, committing, pushing, or opening a PR, run Codex /review behavior on the intended local diff. If the $commit skill is available, use its Step 1 code-review behavior as the review gate, but do not run its Devin Review or PR-comment loop before a PR exists.
    • Present the review findings to the user before making any fixes. Lead with concrete findings, severity, file/line references, and the recommended action for each item.
    • Pause for the user's decision after showing the review output. The user may approve all findings, approve selected findings, reject findings, ask questions, request more investigation, or choose to continue without pre-publish fixes.
    • Fix only the findings the user approves. Apply those fixes locally in small batches, then rerun the relevant review pass or targeted checks for the approved items.
    • If a finding is ambiguous, scope-expanding, or product-sensitive, explicitly mark it as needing a user decision instead of fixing it automatically.
    • If the user explicitly asks to skip the pre-publish review, record that and continue with publishing.
  3. Publish the reviewed changes.
    • Use $github:yeet semantics: create or keep the branch, stage only intended files, commit, push, and open a PR automatically.
    • If the pre-publish review produced fixes, include those fixes in the intended publish scope and mention them in the commit/PR summary.
  4. Capture the PR target.
    • Record repository, PR number, PR URL, base branch, head branch, and current head SHA.
    • Use GitHub connector tools where available for PR metadata and patch context.
    • Use gh for exact CI status, PR discovery, and thread-aware review state when needed.
  5. Inspect feedback.
    • Apply $github:gh-address-comments behavior for review comments: fetch unresolved review threads with thread-aware GraphQL data, cluster actionable items, ignore resolved/outdated/informational comments, and separate ambiguous comments from direct code requests.
    • Include top-level PR comments only as supporting context unless they are clearly actionable.
  6. Inspect checks.
    • Apply $github:gh-fix-ci behavior for failing GitHub Actions checks: read exact-head status, then fetch only relevant failed jobs/logs.
    • Treat required checks as the readiness bar. Do not wait on ignored/non-required informational jobs unless the user asks.
  7. Fix locally.
    • Implement actionable review and CI fixes in small traceable batches.
    • Preserve unrelated user changes. Do not silently stage mixed worktrees.
    • If a comment needs an explanation instead of code, draft the response for the user unless they explicitly authorize posting.
  8. Validate.
    • Run the most relevant local checks before pushing fixes.
    • For OpenClaw, obey repo instructions: run pnpm docs:list first when working in the repo, use changed gates such as pnpm check:changed for code/runtime/config changes, and use targeted tests when appropriate.
  9. Push and re-check.
    • Push fixes only after the user has authorized the publish/monitor loop or has explicitly asked /all-green to operate autonomously on the PR.
    • Re-read the exact PR head SHA after pushing.
    • Re-check unresolved actionable review threads and required checks.
    • Continue until both are clear, or stop on a blocker that needs user judgment.

Safety Rules

  • Do not merge, mark ready for review, request reviewers, resolve review threads, dismiss reviews, close issues, label, retitle, or post GitHub comments unless the user explicitly asks.
  • Do not open a new PR from local changes until the pre-publish review gate has run and the user has approved the next step, unless the user explicitly skips it.
  • Do not silently fix pre-publish /review findings. Show the review output first and wait for the user's selection or approval before editing.
  • Do not treat a flat PR comment list as complete review-thread state. Use thread-aware reads for unresolved inline review work.
  • Do not repeatedly poll forever. Use bounded polling, summarize pending checks, and continue only while progress is likely.
  • If CI failure requires secrets, paid services, release credentials, or remote-only infrastructure, report the blocker and ask before using elevated or remote workflows.
  • If review requests conflict or would create a regression, pause and present the tradeoff.
  • If the PR belongs to a repo with its own AGENTS.md or scoped instructions, read and follow them before editing.

Completion Criteria

Finish with a concise status containing:

  • PR URL and final head SHA checked.
  • Pre-publish review status: passed, skipped by request, or reviewed by the user with selected fixes applied before publication.
  • Review feedback status: no actionable unresolved threads, or a list of remaining blockers.
  • Required check status: green, pending with reason, or failed with the next actionable error.
  • Local validation run and result.
  • Commits pushed, if any.

相关文章

更多
Git项目协作模式详解:从集中式到Forking工作流

Git的分布式特性支持多种团队协作模式。本文详细解析了集中式工作流、分支工作流、GitFlow工作流及Forking工作流的适用场景、操作流程与优缺点。集中式模式简单但易冲突;分支模式通过Feature隔离提升安全性;GitFlow通过master、develop、release和hotfix分支实现标准化发布流程,适合大型项目;Forking模式则通过独立仓库和Pull Request机制,完美适配开源社区与外部贡献者管理。

2025.02.08 510
Skill 文件

相关 Skill

更多
gy3 gy3 Use when preparing a concise pull request summary, review notes, or change explanation from git diffs, commit logs, or implementation details.
Deterministic security fixes for infrastructure code via Gomboc.ai Community Edition Deterministic security fixes for infrastructure code via Gomboc.ai Community Edition 自动扫描并确定性修复 Terraform、CloudFormation 和 IaC 中的安全问题,提供可合并的 Pull Request 并集成 CI/CD。
Pr Review Pr Review 全面审查Pull Request,关注代码质量、安全、性能和可维护性,适用于任何代码审查任务。
Pr Description Generator Pr Description Generator 自动从 git diff 和提交历史生成 Pull Request 描述,解析常规提交并对变更进行分类(功能、修复、重构等)。
comprehensive-review-pr-enhance comprehensive-review-pr-enhance 你是一名 PR 优化专家,专注于创建便于高效代码审查的高质量 pull request。生成全面的 PR 描述、自动化审查流程,并确保 PR 在清晰度、规模与可