agentleFS
PydanticKnown publisherpydantic/pydantic-ai/.agents/skills/complete-partial-pr/SKILL.md

complete-partial-pr

Skill20k starsChanged 2 months agoMITView on GitHub

Evaluate and complete an issue or PR where the submitted patch fixes only a narrow symptom of the reported pain point. Use when a contribution may miss adjacent integration surfaces, provider/spec semantics, roundtrip behavior, tests, docs, or historical maintainer decisions.

  • Commits and pushes

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 2 mentionsApr 2026: 29 mentionsMay 2026: 2 mentionsJun 2026: 2 mentionsJul 2026: 3 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the pydantic/pydantic-ai repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about pydantic/pydantic-ai

The biggest 5 of 64 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 64

Talked about on GitHub, Bluesky, Hacker News and the web (64 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 7

2 more on Bluesky

On Hacker News · 5

On the web · 2

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. About 0 are common, 19 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this when a PR or issue patch fixes a small visible failure but may not address the full integration contract.

    line 10
  2. Very specific:

    Do not use this as a replacement for /review-branch when the task is only a general code review.

    line 22
  3. Distinctive:

    Only (3) determines the final shape.

    line 32
  4. Distinctive:

    Use subagents for independent research and review lanes.

    line 36
  5. Distinctive:

    Spec researcher: read the linked issue/PR, provider docs, SDK types, protocol docs, and relevant project docs.

    line 40
  6. Distinctive:

    Read the local context before scoping:

    line 51
  7. Very specific:

    If the investigation spans multiple surfaces or subagents, create a short working note under local-notes/, for example …

    line 60
  8. Very specific:

    Use gh for GitHub context.

    line 64
  9. Distinctive:

    Read linked issues, PR comments, review threads, and CI context.

    line 70
  10. Very specific:

    Never force push. If updating a contributor PR and maintainerCanModify allows it, push to the contributor's PR branch.

    line 79
  11. Distinctive:

    Write a short local working note, even if it only lives in the final report:

    line 83
  12. Distinctive:

    Search for symmetric and adjacent code paths.

    line 105
  13. Distinctive:

    Do not assume a one-line parser fix is sufficient until this map is complete.

    line 119
  14. Distinctive:

    Use local git history and GitHub history around the touched code:

    line 123
  15. Distinctive:

    Read previous PRs or comments that introduced the relevant behavior.

    line 131
  16. Very specific:

    If choosing broader scope or explicitly deferring an adjacent surface, append a concise entry to …

    line 144
  17. Distinctive:

    If the broader fix changes public API, provider semantics, durable behavior, or safety posture in a non-obvious way, ask a maintainer …

    line 146
  18. Distinctive:

    Prefer small changes that fit existing abstractions.

    line 150
  19. Distinctive:

    Prefer integration/adapter-level tests over clusters of helper tests.

    line 155
  20. Distinctive:

    Use VCR only when the real provider interaction is the behavior under test.

    line 157
  21. Distinctive:

    Run targeted checks first, for example:

    line 160
  22. Very specific:

    After code changes, run /review-branch unless the change is documentation-only or the user explicitly asks for a narrower pass.

    line 169
  23. Distinctive:

    Before pushing, verify the remote target:

    line 173
  24. Distinctive:

    If posting a GitHub comment, summarize:

    line 181
  25. Distinctive:

    If the work changes durable project knowledge, update the relevant docs, branch-context, or skill files.

    line 189

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Complete Partial PR

Use this when a PR or issue patch fixes a small visible failure but may not address the full integration contract. The goal is to turn a narrow contribution into a maintainable Pydantic AI change, or to explain precisely why it should stay narrow.

This is not limited to UI or provider integrations. Apply it to any patch that touches one variant of a broader surface: parse/dump, request/response, streaming/non-streaming, static/dynamic, sync/async, native/provider/local tools, metadata, state machines, durable execution, docs, or tests.

When To Use

  • A contributor's PR addresses the immediate error but not the rest of the user's workflow.
  • A fix accepts one shape of data but may not preserve roundtrip semantics.
  • A provider or external protocol has more states, fields, or variants than the PR covers.
  • The user asks "is this enough?", "what did the contributor miss?", "verify this against the spec", or "improve this branch".
  • A reviewer suspects the patch contradicts historical decisions or creates future integration debt.

Do not use this as a replacement for /review-branch when the task is only a general code review. If the PR has no local context yet, run /adopt-pr first.

Operating Principle

Separate three things before implementing:

  1. The contributor's exact patch.
  2. The underlying user pain point.
  3. The integration contract Pydantic AI should support.

Only (3) determines the final shape. The submitted patch is evidence, not the boundary.

Delegation

Use subagents for independent research and review lanes. Keep the critical path local: branch selection, final synthesis, implementation, and push decisions.

Good subagent lanes:

  • Spec researcher: read the linked issue/PR, provider docs, SDK types, protocol docs, and relevant project docs. Return source-backed facts only, with URLs or file paths.
  • Codepath mapper: map affected code and adjacent surfaces: loaders, dumpers, stream handlers, request builders, response parsers, tool/native-tool paths, model profiles, docs, and tests.
  • History researcher: inspect git blame, git log, previous PRs, review comments, and decision logs around the touched code. Return historical decisions with source links.
  • Test-shape reviewer: decide what coverage proves the full contract without bloating tests. Identify where parametrization, snapshots, VCR, or direct adapter tests are appropriate.

Give each subagent a narrow question, known PR/issue number, relevant file paths, and the exact output you need. Do not ask multiple subagents to answer the same question. Claims that answer the task need a source.

Workflow

1. Startup

Read the local context before scoping:

  • CLAUDE.md and CLAUDE.local.md
  • agent_docs/index.md
  • .claude/skills/branch-context/issue-brief.md and .claude/skills/branch-context/pr-decisions.md, if present
  • agent_docs/pydantic-ai-slim.md (Ownership section) and pydantic_ai_slim/pydantic_ai/native_tools/AGENTS.md for the affected feature group
  • pydantic_ai_slim/pydantic_ai/{profiles,providers,models}/AGENTS.md, pydantic_ai_slim/pydantic_ai/AGENTS.md, and the Design Rules section of agent_docs/pydantic-ai-slim.md for layer ownership
  • the root CLAUDE.md / AGENTS.md ethos ("channel your inner Samuel Colvin") and agent_docs/index.md for review tells

If the investigation spans multiple surfaces or subagents, create a short working note under local-notes/, for example local-notes/complete-partial-pr.md. Keep facts, sources, and open questions there. Do not put research prose in issue-brief.md.

2. Resolve The Work Item

Use gh for GitHub context.

gh pr view <PR> --json number,title,url,state,body,author,headRepository,headRepositoryOwner,headRefName,maintainerCanModify,baseRefName,comments,reviews,closingIssuesReferences

Read linked issues, PR comments, review threads, and CI context. If the work item is an issue with no PR, inspect the linked branch or proposed patch if one exists.

For fork PRs, record:

  • headRepository.nameWithOwner
  • headRefName
  • maintainerCanModify
  • whether a plain git push targets the actual PR branch

Never force push. If updating a contributor PR and maintainerCanModify allows it, push to the contributor's PR branch. If not, create a separate branch and report the limitation.

3. Reconstruct The Pain Point

Write a short local working note, even if it only lives in the final report:

  • What user workflow failed?
  • Which exact symptom does the PR fix?
  • Which broader contract might users reasonably expect?
  • Which variants or states are implied by the same contract?
  • What would be a deliberate non-goal?

This note keeps the implementation from being scoped by the first test the contributor happened to write.

4. Verify The Spec

Find authoritative sources before changing code:

  • Provider docs, SDK types, protocol references, or API schemas.
  • Pydantic AI docs and public API contracts.
  • Existing tests and snapshots that encode current behavior.

For external technical specs, use primary sources. If the spec is versioned, note the version used by Pydantic AI and whether the PR targets the same version. Distinguish confirmed spec behavior from inference.

5. Map The Integration Surface

Search for symmetric and adjacent code paths. Typical pairs and variants:

  • load / dump
  • parse / serialize
  • request / response
  • streaming / non-streaming
  • initial / intermediate / final states
  • success / error / denied / unavailable
  • static / dynamic
  • function tools / native tools / provider-executed tools
  • IDs, provider names, metadata, and roundtrip preservation
  • sync / async
  • public API / internal adapter / docs / examples / skills

Do not assume a one-line parser fix is sufficient until this map is complete.

6. Check History

Use local git history and GitHub history around the touched code:

git blame -- <path>
git log --oneline -- <path>
gh pr list --search '<symbol-or-file> repo:pydantic/pydantic-ai' --state all --json number,title,url,state

Read previous PRs or comments that introduced the relevant behavior. Capture any decision that constrains the new change. If the new approach contradicts history, call that out explicitly before implementing.

7. Decide The Correct Scope

Classify missing work:

  • Required: needed for spec compliance, roundtrip correctness, backwards compatibility, or the reported user workflow.
  • Regression test: behavior that should remain deliberately unsupported or should not silently regress.
  • Nice to have: adjacent polish that is not required for this PR.
  • Out of scope: broader feature work that deserves a separate issue or design discussion.

Push back on expanding the PR only when the broader behavior is genuinely a separate product decision. Otherwise, complete the contract.

If choosing broader scope or explicitly deferring an adjacent surface, append a concise entry to .claude/skills/branch-context/pr-decisions.md with the source that justified the decision.

If the broader fix changes public API, provider semantics, durable behavior, or safety posture in a non-obvious way, ask a maintainer before coding or draft a PR comment/proposal instead of silently expanding the branch.

8. Implement Conservatively

Prefer small changes that fit existing abstractions. Preserve backwards compatibility and avoid new public API unless the full contract requires it.

For tests:

  • Cover the behavior at the same level users rely on it.
  • Prefer integration/adapter-level tests over clusters of helper tests.
  • Parametrize related variants and states to reduce bloat.
  • Use VCR only when the real provider interaction is the behavior under test. Local protocol conversion usually belongs in direct tests.
  • Include regression tests for deliberate non-support decisions.

Run targeted checks first, for example:

uv run pytest tests/<target>.py::<test_name>
PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright <changed-file.py>

Escalate to broader checks only when the blast radius warrants it.

After code changes, run /review-branch unless the change is documentation-only or the user explicitly asks for a narrower pass.

9. Communicate And Push

Before pushing, verify the remote target:

git remote -v
git branch -vv
git status --short --branch

If posting a GitHub comment, summarize:

  • What the original PR covered.
  • What additional integration surfaces were checked.
  • What improvements were added.
  • Which spec and historical sources were used.
  • Which tests were run.

If the work changes durable project knowledge, update the relevant docs, branch-context, or skill files.

Output Checklist

End with a concise report containing:

  • Work item and branch updated.
  • Spec sources checked.
  • Historical decisions checked.
  • Integration surfaces covered.
  • Tests added or changed.
  • Commands run.
  • Remaining non-goals or follow-up issues.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.