[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M792714R01CNX5A6EQ4FGGKZ":3,"skill-same:01M792714R01CNX5A6EQ4FGGKZ":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M792714R01CNX5A6EQ4FGGKZ","wrapping-and-cli",null,"Wrap Python callables with Opyrator, validate the Pydantic input\u002Foutput contract, call wrapped functions from JSON\u002Fdict or the CLI, and recognize export\u002Fdeploy WIP placeholders.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fopyrator\u002Fsub-skills\u002Fwrapping-and-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: wrapping-and-cli\ndescription: \"Wrap Python callables with Opyrator, validate the Pydantic\n  input\u002Foutput contract, call wrapped functions from JSON\u002Fdict or the CLI, and\n  recognize export\u002Fdeploy WIP placeholders.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Opyrator Wrapping And CLI\n\nUse this sub-skill when the user wants to turn a Python callable into an `Opyrator`, resolve an import string such as `my_module:hello_world`, understand why a callable is rejected, call a wrapped function from Python or the `opyrator call` command, or explain why `export` and `deploy` currently only warn that they are unfinished.\n\nFor repository-level routing, start at `..\u002F..\u002FSKILL.md`. For install\u002Fimport failures, missing CLI entry points, Pydantic\u002Fversion pins, and stale-package checks, use `..\u002F..\u002Freferences\u002Ftroubleshooting.md` first.\n\n## Route Elsewhere\n\n- FastAPI app creation, `launch-api`, `\u002Fcall`, `\u002Finfo`, OpenAPI docs, host\u002Fport API serving, and request schemas belong in `..\u002Fapi-services\u002FSKILL.md`.\n- Streamlit UI serving, `launch-ui`, generated forms, custom component rendering, and component models belong in `..\u002Fui-and-components\u002FSKILL.md`.\n- This sub-skill owns only local wrapping, callable validation, Python\u002FCLI calls, callable-string resolution, and the `export`\u002F`deploy` WIP behavior.\n\n## Core Contract To Apply\n\n- Build an Opyrator with `Opyrator(func_or_path)`, where `func_or_path` is either a callable object or an import string.\n- Prefer import strings in the form `module:callable`; `get_callable()` also falls back to `module.callable` by splitting on the last separator.\n- A compatible callable must expose an annotated parameter named exactly `input` and an annotated return value.\n- The `input` annotation and return annotation must each be a Pydantic `BaseModel` subclass or a list type whose element type is a Pydantic model. For CLI-friendly list outputs, prefer a Pydantic wrapper\u002Froot model so the output object has `.json(...)`.\n- `Opyrator.__call__(input, **kwargs)` accepts a model instance, a `dict`, or a JSON string and converts dict\u002FJSON inputs with Pydantic before calling the wrapped function.\n- Function names and callable-class names are converted with `name_to_title()`, for example `hello_world` becomes `Hello World`; descriptions come from function docstrings or callable\u002Fclass docstrings.\n- Passing an uninitialized class is rejected. To wrap a callable class, instantiate it and expose the instance if the CLI needs to import it.\n\n## Fast Path Examples\n\nMinimal function:\n\n```python\nfrom pydantic import BaseModel\n\nclass Input(BaseModel):\n    message: str\n\nclass Output(BaseModel):\n    message: str\n\ndef hello_world(input: Input) -> Output:\n    \"\"\"Returns the `message` of the input data.\"\"\"\n    return Output(message=input.message)\n```\n\nPython call:\n\n```python\nfrom opyrator import Opyrator\n\nwrapped = Opyrator(hello_world)\nassert wrapped.name == \"Hello World\"\nassert wrapped({\"message\": \"hello\"}).message == \"hello\"\nassert wrapped('{\"message\": \"hello\"}').json(indent=4)\n```\n\nCLI call from the directory where `my_opyrator.py` is importable:\n\n```bash\nopyrator call my_opyrator:hello_world '{\"message\": \"hello\"}'\n```\n\nExpected stdout for the hello-world example:\n\n```json\n{\n    \"message\": \"hello\"\n}\n```\n\n## Export And Deploy Are Placeholders\n\nThe installed CLI exposes `call`, `deploy`, `export`, `launch-api`, and `launch-ui`. In the verified 0.0.12 behavior, this sub-skill treats only `call` as an executable local function call workflow. `export` and `deploy` are command stubs that print `[WIP] This feature is not finalized yet...`; do not promise a zip file, Docker image, PEX file, or cloud deployment from those commands.\n\nSafe checks:\n\n```bash\nopyrator call --help\nopyrator export --help\nopyrator deploy --help\nopyrator export my_opyrator:hello_world my-opyrator.zip\nopyrator deploy my_opyrator:hello_world\n```\n\n## References And Helper\n\n- Wrapping and call workflows: `references\u002Fworkflows.md`\n- Command forms and expected CLI output: `references\u002Fcli-reference.md`\n- Failure-mode map and exact validation messages: `references\u002Ftroubleshooting.md`\n- Safe local smoke helper: `scripts\u002Fsmoke_call.py`\n\nRun the helper when an environment already has Opyrator importable:\n\n```bash\npython sub-skills\u002Fwrapping-and-cli\u002Fscripts\u002Fsmoke_call.py\n```\n\nThe helper creates a temporary module, invokes the same Typer CLI commands in-process, verifies callable-class wrapping through the Python API, and checks that `export`\u002F`deploy` report WIP without starting services or contacting the network.\n","# Opyrator Wrapping And CLI\n\nUse this sub-skill when the user wants to turn a Python callable into an `Opyrator`, resolve an import string such as `my_module:hello_world`, understand why a callable is rejected, call a wrapped function from Python or the `opyrator call` command, or explain why `export` and `deploy` currently only warn that they are unfinished.\n\nFor repository-level routing, start at `..\u002F..\u002FSKILL.md`. For install\u002Fimport failures, missing CLI entry points, Pydantic\u002Fversion pins, and stale-package checks, use `..\u002F..\u002Freferences\u002Ftroubleshooting.md` first.\n\n## Route Elsewhere\n\n- FastAPI app creation, `launch-api`, `\u002Fcall`, `\u002Finfo`, OpenAPI docs, host\u002Fport API serving, and request schemas belong in `..\u002Fapi-services\u002FSKILL.md`.\n- Streamlit UI serving, `launch-ui`, generated forms, custom component rendering, and component models belong in `..\u002Fui-and-components\u002FSKILL.md`.\n- This sub-skill owns only local wrapping, callable validation, Python\u002FCLI calls, callable-string resolution, and the `export`\u002F`deploy` WIP behavior.\n\n## Core Contract To Apply\n\n- Build an Opyrator with `Opyrator(func_or_path)`, where `func_or_path` is either a callable object or an import string.\n- Prefer import strings in the form `module:callable`; `get_callable()` also falls back to `module.callable` by splitting on the last separator.\n- A compatible callable must expose an annotated parameter named exactly `input` and an annotated return value.\n- The `input` annotation and return annotation must each be a Pydantic `BaseModel` subclass or a list type whose element type is a Pydantic model. For CLI-friendly list outputs, prefer a Pydantic wrapper\u002Froot model so the output object has `.json(...)`.\n- `Opyrator.__call__(input, **kwargs)` accepts a model instance, a `dict`, or a JSON string and converts dict\u002FJSON inputs with Pydantic before calling the wrapped function.\n- Function names and callable-class names are converted with `name_to_title()`, for example `hello_world` becomes `Hello World`; descriptions come from function docstrings or callable\u002Fclass docstrings.\n- Passing an uninitialized class is rejected. To wrap a callable class, instantiate it and expose the instance if the CLI needs to import it.\n\n## Fast Path Examples\n\nMinimal function:\n\n```python\nfrom pydantic import BaseModel\n\nclass Input(BaseModel):\n    message: str\n\nclass Output(BaseModel):\n    message: str\n\ndef hello_world(input: Input) -> Output:\n    \"\"\"Returns the `message` of the input data.\"\"\"\n    return Output(message=input.message)\n```\n\nPython call:\n\n```python\nfrom opyrator import Opyrator\n\nwrapped = Opyrator(hello_world)\nassert wrapped.name == \"Hello World\"\nassert wrapped({\"message\": \"hello\"}).message == \"hello\"\nassert wrapped('{\"message\": \"hello\"}').json(indent=4)\n```\n\nCLI call from the directory where `my_opyrator.py` is importable:\n\n```bash\nopyrator call my_opyrator:hello_world '{\"message\": \"hello\"}'\n```\n\nExpected stdout for the hello-world example:\n\n```json\n{\n    \"message\": \"hello\"\n}\n```\n\n## Export And Deploy Are Placeholders\n\nThe installed CLI exposes `call`, `deploy`, `export`, `launch-api`, and `launch-ui`. In the verified 0.0.12 behavior, this sub-skill treats only `call` as an executable local function call workflow. `export` and `deploy` are command stubs that print `[WIP] This feature is not finalized yet...`; do not promise a zip file, Docker image, PEX file, or cloud deployment from those commands.\n\nSafe checks:\n\n```bash\nopyrator call --help\nopyrator export --help\nopyrator deploy --help\nopyrator export my_opyrator:hello_world my-opyrator.zip\nopyrator deploy my_opyrator:hello_world\n```\n\n## References And Helper\n\n- Wrapping and call workflows: `references\u002Fworkflows.md`\n- Command forms and expected CLI output: `references\u002Fcli-reference.md`\n- Failure-mode map and exact validation messages: `references\u002Ftroubleshooting.md`\n- Safe local smoke helper: `scripts\u002Fsmoke_call.py`\n\nRun the helper when an environment already has Opyrator importable:\n\n```bash\npython sub-skills\u002Fwrapping-and-cli\u002Fscripts\u002Fsmoke_call.py\n```\n\nThe helper creates a temporary module, invokes the same Typer CLI commands in-process, verifies callable-class wrapping through the Python API, and checks that `export`\u002F`deploy` report WIP without starting services or contacting the network.\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fopyrator\u002Fsub-skills\u002Fwrapping-and-cli",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill wrapping-and-cli",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill wrapping-and-cli",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill wrapping-and-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fopyrator\u002Fsub-skills\u002Fwrapping-and-cli\u002FSKILL.md",[46,52,56,60],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fcli-reference.md","REFERENCE","参考文档",3321,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fopyrator\u002Fsub-skills\u002Fwrapping-and-cli\u002Freferences\u002Fcli-reference.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Ftroubleshooting.md",6299,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fopyrator\u002Fsub-skills\u002Fwrapping-and-cli\u002Freferences\u002Ftroubleshooting.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fworkflows.md",4479,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fopyrator\u002Fsub-skills\u002Fwrapping-and-cli\u002Freferences\u002Fworkflows.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fsmoke_call.py","SCRIPT","脚本",9505,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fopyrator\u002Fsub-skills\u002Fwrapping-and-cli\u002Fscripts\u002Fsmoke_call.py",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp 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.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","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()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert 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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":71,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch 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).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]