AGENT SKILL

repo-development

Guides maintainers through Pydantic AI repository development, contribution rules, workspace layout, targeted validation, VCR cassettes, docs tests, PR conventions, and generated skill refreshes.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
repo-development
license
MIT
metadata
{ "disco-role": "operating" }
description
Guides maintainers through Pydantic AI repository development, contribution rules, workspace layout, targeted validation, VCR cassettes, docs tests, PR conventions, and generated skill refreshes.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Repo Development

Use this sub-skill when editing, reviewing, testing, documenting, or preparing changes to the Pydantic AI monorepo itself.

Read First

  • Read references/repository-layout.md to map the workspace packages, source roots, tests, docs, scripts, local workflow skills, and generated runtime skills.
  • Read references/contribution-guidelines.md before changing public APIs, behavior, docs, examples, dependencies, generated skills, or maintainer workflows.
  • Read references/testing-and-cassettes.md to choose targeted pytest, pyright, ruff, docs-example, VCR cassette, and snapshot commands.
  • Read references/troubleshooting.md when full validation is slow, provider recordings fail, snapshots drift, optional dependencies skip, docs examples fail, or generated skills become stale.
  • Run scripts/check_repo_context.py for a safe, read-only summary of the checkout, package workspace, test/cassette coverage, cassette pairing candidates, and likely validation targets.

Route Elsewhere

  • Use ../agent-core/ when source changes affect Agent, RunContext, run modes, dependencies, streaming, message history, or deterministic agent tests.
  • Use ../tools-and-toolsets/ when source changes affect function tools, tool schemas, toolsets, approvals, deferred tools, retries, or tool search.
  • Use ../outputs-and-messages/ when source changes affect structured output, message parts, multimodal inputs, history serialization, or UI message contracts.
  • Use ../models-and-providers/ for provider/model/profile/native-tool changes, optional provider extras, provider-specific VCR cassettes, and embedding behavior.
  • Use ../cli-and-apps/ for clai, pai, web UI, custom agent loading, help-output tests, and example-application scaffolds.
  • Use the root pydantic-ai provenance and refresh guidance when repository source, docs, examples, package metadata, or generated skill routing changes.

Operating Rules

  • Start with issue or PR context, maintainer alignment, and the narrowest reproducible problem; do not widen a bug fix based on hunches.
  • Treat public API, docs, abstractions, tests, and generated agent skills as part of the product; prefer strong primitives over one-off flags or narrow batteries.
  • Keep changes backward compatible for V1 unless the target is an explicitly beta surface or a documented major-version cleanup.
  • Use targeted validation while iterating; reserve full make or full test/typecheck runs for final gates or when scope truly demands them.
  • Prefer public-API integration tests with cassettes or snapshots for behavior users experience, and use unit tests only when they prove internal contracts cassettes cannot protect.
  • Never record provider cassettes, run live paid requests, mutate cloud resources, or scrub cassette files without explicit user approval and a clear review plan.
  • Update affected public docs, docstrings, examples, generated skills, and local workflow skills in the same change when mechanics or maintainer workflows change.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351