Agent Skillspydantic/pydantic-ai › pre-push-review

pre-push-review

GitHub

在推送代码前执行本地高质量代码审查,模拟 CI 流程但独立运行。支持无 PR 和有 PR 场景,基于 rubric 和上下文提供可操作的修复建议,旨在早期发现并低成本修复问题。

.claude/skills/pre-push-review/SKILL.md pydantic/pydantic-ai

Trigger Scenarios

准备首次推送分支前 PR 迭代后再次推送前

Install

npx skills add pydantic/pydantic-ai --skill pre-push-review -g -y
More Options

Non-standard path

npx skills add https://github.com/pydantic/pydantic-ai/tree/main/.claude/skills/pre-push-review -g -y

Use without installing

npx skills use pydantic/pydantic-ai@pre-push-review

指定 Agent (Claude Code)

npx skills add pydantic/pydantic-ai --skill pre-push-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add pydantic/pydantic-ai --all -g -y

预览 repo 内 skill

npx skills add pydantic/pydantic-ai --list

SKILL.md

Frontmatter
{
    "name": "pre-push-review",
    "description": "Run a high-judgment local review of the current branch before pushing, both before a PR exists and between PR iterations",
    "allowed-tools": [
        "Read",
        "Glob",
        "Grep",
        "Bash(gh issue view:*)",
        "Bash(gh pr view:*)",
        "Bash(git diff:*)",
        "Bash(git log:*)",
        "Bash(git merge-base:*)",
        "Bash(git status:*)",
        "Bash(git rev-parse:*)",
        "WebSearch",
        "WebFetch"
    ]
}

Pre-push Review

Use the strongest locally available reviewer to catch problems while they are still cheap to fix. Run this before the first push and again before every later push to an existing PR.

This is the local counterpart to douwebot: a high-judgment standards review paid for by the developer's model subscription. It is independent of the automatic CI Review, which runs on GitHub after CI passes.

Read the review rubric

Read the prompt: of the douwebot review job in .github/workflows/bots.yml. It is the source of truth for what to look for, how to prioritise concerns, and what makes feedback useful. Apply its review judgment and comment-quality rules, but ignore its hosted workflow mechanics: triggers, checkout, model selection, pre-gathered file paths, and GitHub comment tools.

Read the root AGENTS.md, agent_docs/index.md and its relevant topic guides, plus every directory-specific AGENTS.md governing a changed file.

Gather local and PR context

First run gh pr view for the current branch.

  • If a PR exists, read its title, body, base branch, linked issue, comments and reviews. Review the entire branch diff against that base, not just the latest commit. Use the existing discussion to avoid duplicate findings and to detect concerns that remain unresolved after an iteration.
  • If no PR exists, use main as the base and review against the task context available locally. Skip only PR metadata that does not exist; scope and readiness are still valid review concerns.

Gather the corresponding local state:

git status --short
git merge-base <base> HEAD
git diff <base>...HEAD --stat
git diff <base>...HEAD -W
git diff HEAD

The last command includes staged and unstaged work that has not reached HEAD. Read a large diff in chunks, core implementation before tests, and skip generated files (uv.lock, cassettes).

Return the review locally

Do not post comments, submit a GitHub review, or modify the branch. Return only actionable findings as text: file:line, the problem, and the concrete fix. Put higher-level concerns before lower-level ones, following the ordering in the douwebot rubric. Say plainly when there are no findings.

Version History

  • 43f982f Current 2026-08-19 23:48

    增强对现有 PR 的支持:增加 gh pr view 获取 PR 元数据,避免重复反馈;区分有/无 PR 的基线处理逻辑。

  • 20cdf45 2026-07-25 05:33

Same Skill Collection

.agents/skills/add-new-model/SKILL.md
.agents/skills/adding-a-provider-api-feature/SKILL.md
.agents/skills/complete-partial-pr/SKILL.md
.agents/skills/i-have-adhd/SKILL.md
.agents/skills/pushing-commits-to-the-repo/SKILL.md
.claude/skills/address-feedback/SKILL.md
.claude/skills/testing-skill/SKILL.md
pydantic_ai_slim/pydantic_ai/.agents/skills/building-pydantic-ai-agents/SKILL.md
.agents/skills/poweruser-feature-audit/SKILL.md

Metadata

Files
0
Version
43f982f
Hash
6da2a439
Indexed
2026-07-25 05:33

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 04:01
浙ICP备14020137号-1 $Гость$