opyrator
Guide future agents through Opyrator's callable wrapping, FastAPI service, and Streamlit UI workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- opyrator
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guide future agents through Opyrator's callable wrapping, FastAPI service, and Streamlit UI workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/api-reference.md3.6 KB
- 参考文档references/repo-provenance.md1.3 KB
- 参考文档references/repo-routing-metadata.json338 B
- 参考文档references/troubleshooting.md3.3 KB
- 参考文档references/workflows.md2.8 KB
- 脚本scripts/check_install.py5.0 KB
03 SKILL.md 正文
Opyrator
Use this skill when the request mentions Opyrator, the opyrator CLI, launch-api, launch-ui, call, export, deploy, FileContent, or the schema-driven UI and API surface built around Pydantic models.
Start here
- If you need to check whether this skill still matches the repository snapshot, read
references/repo-provenance.mdfirst. - If you only need a quick map of common workflows, read
references/workflows.md. - If install, import, or version pins are failing, read
references/troubleshooting.mdbefore changing the callable itself. - If you need package-level API and CLI facts, read
references/api-reference.md. - For a safe local smoke check, run
scripts/check_install.py.
Install for this snapshot
This repository snapshot is verified on Python 3.8 with the legacy-compatible stack that keeps the CLI, FastAPI service, and Streamlit UI importable.
Recommended install from the repo root:
python -m pip install -e . \
"pydantic<2" \
"fastapi==0.63.0" \
"starlette==0.13.6" \
"typer<0.8" \
"click<8.1" \
"streamlit==0.72.0" \
"protobuf==3.20.3" \
"altair<5" \
"pandas<2" \
"numpy<2" \
"plotly" \
"loguru" \
"uvicorn<0.24"
Use the editable install when you are working from a local checkout. Use a normal install from a built source distribution only if you intentionally do not want editable behavior.
How the skill routes
1. Wrap a Python callable and use the CLI
Route to sub-skills/wrapping-and-cli/SKILL.md when the user wants to:
- build an
Opyratorfrom a function, callable instance, or import string, - validate
input/ return annotations, - call a wrapped function from Python or
opyrator call, - or understand the current WIP behavior of
exportanddeploy.
2. Serve the callable as FastAPI
Route to sub-skills/api-services/SKILL.md when the user wants to:
- launch or inspect the FastAPI service,
- check
/call,/info,/docs,/redoc, or/openapi.json, - or troubleshoot relative docs routing and
patch_fastapibehavior.
3. Launch the Streamlit UI or use FileContent / component renderers
Route to sub-skills/ui-and-components/SKILL.md when the user wants to:
- launch the Streamlit UI,
- understand schema-driven widgets,
- work with
FileContent,ClassificationOutput, or custom render hooks, - or debug widget/schema compatibility problems.
Minimal verification
Use the bundled smoke helper after install:
python scripts/check_install.py --json
Expected result: the script reports status: ok, confirms the package version, checks a tiny Opyrator wrapper, verifies FastAPI app creation, confirms FileContent round-tripping, and checks the CLI help surface without starting any long-running server.
What not to do here
- Do not tell future agents to depend on the original repo checkout for runtime behavior.
- Do not promise ZIP export, Docker export, PEX export, or cloud deployment from
export/deploy; those commands are WIP placeholders in the verified snapshot. - Do not route callable wrapping questions into the API or UI sub-skills just because those workflows also use the same callable contract.
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).