repo-development
Develop inside the OpenAI Agents Python repository safely, including repo policies, compatibility reviews, tests, docs builds, snapshots, and PR handoff expectations.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- repo-development
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Develop inside the OpenAI Agents Python repository safely, including repo policies, compatibility reviews, tests, docs builds, snapshots, and PR handoff expectations.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/maintainer-workflows.md9.3 KB
- 参考文档references/testing-and-quality.md7.4 KB
- 参考文档references/troubleshooting.md7.9 KB
- 脚本scripts/select_test_targets.py11.2 KB
03 SKILL.md 正文
Repo Development
Use this sub-skill when a task asks to modify this repository, add or update tests, touch RunState serialization, preserve public API compatibility, build docs, update snapshots, adjust Makefile / pyproject.toml, or prepare a PR-ready handoff.
Start Here
- For maintainer workflow, code layout, docs scripts, and PR expectations, read references/maintainer-workflows.md.
- For test selection, quality commands, snapshots, docs builds, and compatibility checks, read references/testing-and-quality.md.
- For common local failures and recovery paths, read references/troubleshooting.md.
- To map changed files to likely focused validation commands without running them, use scripts/select_test_targets.py.
Routing Boundaries
- Stay here for repository policy, implementation planning, runtime-code edits, tests, snapshots, docs build workflow, generated reference docs,
RunStateschema policy, public constructor positional compatibility, and PR summary handoff rules. - Route ordinary SDK runtime usage,
Agent,Runner,RunConfig, streaming, and pause/resume behavior to ../core-runtime/SKILL.md. - Route sandbox API design and safety boundaries to ../sandbox-agents/SKILL.md.
- Route provider/model transport and OpenAI-compatible provider code to ../models-providers/SKILL.md.
Non-Negotiable Repo Rules
- Before changing runtime code, exported APIs, external config, persisted schemas, wire protocols, or user-facing behavior, perform an implementation-strategy pass and call out released compatibility risk early.
- Before marking runtime, test, example, build/test-config, or behavior-impacting docs changes complete, run the repo's code-change verification policy; the mandatory local order is
make format,make lint,make typecheck, thenmake tests. - Before the final handoff for eligible changes, prepare the PR draft summary block required by repository policy; this does not imply creating a branch, commit, push, or PR.
- Preserve public API positional compatibility: append optional dataclass fields/constructor parameters instead of inserting them, or add an explicit compatibility layer and regression tests.
- If serialized
RunStateshape changes, updateCURRENT_SCHEMA_VERSION, keepSCHEMA_VERSION_SUMMARIESchronological and non-empty, and add round-trip/backward-read tests. - Do not edit translated docs under generated language folders unless the task is explicitly about translation maintenance; source English docs and generated reference stubs are the normal edit surfaces.
Quick Command Selection
From the repository root, pass changed paths to the helper:
python skills/openai-agents-python/sub-skills/repo-development/scripts/select_test_targets.py src/agents/run_state.py tests/test_run_state.py
Add --json for machine-readable suggestions. The helper only prints suggestions; it never runs tests, builds docs, mutates snapshots, or invokes networked services.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).