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

pre-push-review

GitHub

在代码推送前执行本地高判断力审查,捕获低成本修复的问题。独立于CI,基于rubric和PR上下文提供具体修复建议,旨在提升代码质量并减少后续迭代成本。

.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
pydantic_ai_slim/pydantic_ai/.agents/skills/migrating-langchain-to-pydantic-ai/SKILL.md
.agents/skills/poweruser-feature-audit/SKILL.md

Metadata

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

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 02:12
浙ICP备14020137号-1 $bản đồ khách truy cập$