AgentSkillsCN

aide-pr-ready

为基于 AIDE 的仓库标记 PR 已就绪,并发布验证总结。当用户输入 `/pr-ready` 或请求将 PR 从草稿状态转为已就绪状态时使用。先根据 `AGENTS.md` 中的占位符执行质量门禁,随后发表 PR 评论,再通过 gh 命令将 PR 标记为“已就绪”。

SKILL.md
--- frontmatter
name: aide-pr-ready
description: Mark a PR as ready and post a validation summary for AIDE-based repos. Use when the user types /pr-ready or asks to flip a PR from draft to ready. Runs quality gates from AGENTS.md placeholders, posts a PR comment, then marks the PR ready via gh.

AIDE PR Ready

Overview

Standardize the "PR Ready" step: run validation, post a summary, and flip a PR from draft to ready.

Workflow

Inputs

  • PR number or PR URL (required)
  • Optional repo override (owner/repo)
  • Optional -DryRun to print actions only
  • Optional -Fast to run lint + unit tests only

Actions

  1. Locate repo root (walk up until AGENTS.md).
  2. Read AGENTS.md and extract quality commands:
    • {{LINT_COMMAND}}
    • {{RUN_UNIT_TESTS_COMMAND}}
    • {{RUN_ALL_TESTS_COMMAND}}
    • {{SMOKE_TEST_COMMAND}} (optional)
  3. Run validation:
    • Default: lint + all tests (+ smoke if defined)
    • -Fast: lint + unit tests
  4. Post a PR comment with the validation summary.
  5. Mark the PR ready: gh pr ready <pr>.

Output

  • A short log of what ran and whether it passed.

Notes

  • If any gate fails, do not mark the PR ready; post a failing summary instead.