[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7902DPQ7X2YJEN9XPQA0Q42":3,"skill-same:01M7902DPQ7X2YJEN9XPQA0Q42":75},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M7902DPQ7X2YJEN9XPQA0Q42","agent-orchestration",null,"Initialize, configure, and safely exercise the MedRAX LangGraph agent with a selected tool registry, prompt sections, OpenAI-compatible chat model, checkpointed threads, and tool-call logs.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-orchestration\ndescription: \"Initialize, configure, and safely exercise the MedRAX LangGraph\n  agent with a selected tool registry, prompt sections, OpenAI-compatible chat\n  model, checkpointed threads, and tool-call logs.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# MedRAX agent orchestration\n\nUse this skill when a Researcher needs the MedRAX control plane rather than the\nimplementation details of a particular chest-X-ray model. It covers building an\n`Agent`, selecting tools without accidentally loading optional weights, choosing\nan OpenAI-compatible endpoint, loading the medical system prompt, invoking a\ncheckpointed thread, and inspecting tool-call logs.\n\nDo not use this skill to explain a model's input\u002Foutput semantics. Route those\nquestions to `chest-xray-analysis`. Route DICOM and visualization work to\n`image-data-utilities`, UI\u002Fdemo launch to `web-interface`, and benchmark cases\nor metrics to `benchmark-evaluation`.\n\n## Operating contract\n\n- Work from an installed MedRAX package and a caller-owned prompt file. The\n  bundled `resources\u002Fsystem_prompts.txt` is a portable template; do not require\n  a source checkout or hard-coded checkout path.\n- Keep model-weight directories, temporary files, logs, and credentials outside\n  the skill tree. Never put API keys in code or prompt files.\n- Treat medical output as decision support, not a diagnosis. Preserve tool\n  results and uncertainty for the caller to review.\n- Before constructing the real agent, run the bundled safe checker when the\n  environment or dependency set is uncertain:\n  `python scripts\u002Fcheck_medrax_import.py --project-root .`.\n  It parses signatures and performs only lightweight imports; it does not create\n  a `ChatOpenAI`, initialize a tool, download weights, or make a network call.\n\n## Standard initialization\n\n1. Confirm an accessible prompt file containing `[MEDICAL_ASSISTANT]` (or choose\n   another explicit section) and a writable `temp_dir` if a selected utility\n   needs temporary files.\n2. Choose a small `tools_to_use` list. The exact registry in\n   `main.initialize_agent` is documented in [api-reference.md](references\u002Fapi-reference.md).\n   Start with `ImageVisualizerTool` and `DicomProcessorTool` for orchestration\n   smoke tests; add model-backed tools only after their own sibling skill and\n   backend are ready.\n3. Build `openai_kwargs` from the process environment. Pass `api_key` and,\n   when needed, `base_url`; never print either value. A local OpenAI-compatible\n   service commonly uses `OPENAI_BASE_URL=http:\u002F\u002Flocalhost:11434\u002Fv1` and a\n   provider-specific placeholder key. See [workflows.md](references\u002Fworkflows.md).\n4. Call the adapted `scripts\u002Fmedrax_agent_factory.py` function\n   `build_agent(prompt_file, tools_to_use=..., model_dir=..., temp_dir=...,\n   device=..., model=..., temperature=..., top_p=..., openai_kwargs=...)`;\n   it returns `(agent, tools_dict)` and refuses an implicit all-tools selection.\n   When integrating with the original application, the equivalent\n   `main.initialize_agent` signature is recorded in [api-reference.md](references\u002Fapi-reference.md).\n5. Invoke the compiled graph with a message state and a stable configurable\n   thread identifier, for example:\n   `agent.workflow.invoke({\"messages\": [HumanMessage(content=\"...\")]},\n   {\"configurable\": {\"thread_id\": \"smoke-001\"}})`.\n   Keep the same `thread_id` to continue a conversation; use a new one for an\n   isolated run. Exact invocation and fake-model examples are in the workflow\n   reference.\n\n## Safety and selection rules\n\n- `tools_to_use=None` selects every registered tool. In this implementation,\n  an empty list is also replaced by every tool because selection uses\n  `tools_to_use or all_tools.keys()`; use a non-empty explicit list when\n  excluding model-backed tools.\n- Unknown names are silently ignored by `initialize_agent`. Compare\n  `set(requested) - set(tools_dict)` after initialization and fail closed in a\n  wrapper if any were omitted.\n- Do not select `LlavaMedTool`, `XRayPhraseGroundingTool`,\n  `ChestXRayGeneratorTool`, `XRayVQATool`, `ChestXRayReportGeneratorTool`, or\n  other weight-backed tools merely to test graph wiring. Their constructors may\n  download or load large models. The two utility tools are the safe default.\n- `Agent` binds every constructed tool through `model.bind_tools(tools)`. A\n  model that cannot bind LangChain tool schemas is not a compatible backend.\n- Use `MemorySaver()` as the in-memory checkpointer for a process-local test.\n  It is not a durable or multi-process store; do not present it as persistence.\n\n## Agent state machine and logs\n\n`Agent` stores `messages` as an append-only `AgentState` field. The compiled\nLangGraph starts at `process`, invokes the bound model, routes to `execute` if\nthe last response has tool calls, executes each call by registered name, then\nreturns to `process`. An unknown call name yields a `ToolMessage` containing\n`invalid tool, please retry`; it is not executed. A response with no tool calls\nends the graph.\n\nWith `log_tools=True` (the `initialize_agent` default), `log_dir` defaults to\n`logs`; the agent creates that directory and writes timestamped\n`tool_calls_YYYYMMDD_HHMMSS.json` files containing `tool_call_id`, `name`,\n`args`, `content`, and an ISO timestamp. Set `log_tools=False` for a no-log\nsynthetic test. Ensure `log_dir` exists or its parent is writable; avoid\nsensitive arguments in logs and treat log files as sensitive operational data.\n\nFor API details, tool registry entries, prompt parsing, and failure recovery,\nuse the linked references rather than guessing parameter names. For a\nsource-independent construction path, import `build_agent` from\n`scripts\u002Fmedrax_agent_factory.py`; importing that module alone performs no model,\ntool, or network operation. Its command-line default only prints safe help.\n","# MedRAX agent orchestration\n\nUse this skill when a Researcher needs the MedRAX control plane rather than the\nimplementation details of a particular chest-X-ray model. It covers building an\n`Agent`, selecting tools without accidentally loading optional weights, choosing\nan OpenAI-compatible endpoint, loading the medical system prompt, invoking a\ncheckpointed thread, and inspecting tool-call logs.\n\nDo not use this skill to explain a model's input\u002Foutput semantics. Route those\nquestions to `chest-xray-analysis`. Route DICOM and visualization work to\n`image-data-utilities`, UI\u002Fdemo launch to `web-interface`, and benchmark cases\nor metrics to `benchmark-evaluation`.\n\n## Operating contract\n\n- Work from an installed MedRAX package and a caller-owned prompt file. The\n  bundled `resources\u002Fsystem_prompts.txt` is a portable template; do not require\n  a source checkout or hard-coded checkout path.\n- Keep model-weight directories, temporary files, logs, and credentials outside\n  the skill tree. Never put API keys in code or prompt files.\n- Treat medical output as decision support, not a diagnosis. Preserve tool\n  results and uncertainty for the caller to review.\n- Before constructing the real agent, run the bundled safe checker when the\n  environment or dependency set is uncertain:\n  `python scripts\u002Fcheck_medrax_import.py --project-root .`.\n  It parses signatures and performs only lightweight imports; it does not create\n  a `ChatOpenAI`, initialize a tool, download weights, or make a network call.\n\n## Standard initialization\n\n1. Confirm an accessible prompt file containing `[MEDICAL_ASSISTANT]` (or choose\n   another explicit section) and a writable `temp_dir` if a selected utility\n   needs temporary files.\n2. Choose a small `tools_to_use` list. The exact registry in\n   `main.initialize_agent` is documented in [api-reference.md](references\u002Fapi-reference.md).\n   Start with `ImageVisualizerTool` and `DicomProcessorTool` for orchestration\n   smoke tests; add model-backed tools only after their own sibling skill and\n   backend are ready.\n3. Build `openai_kwargs` from the process environment. Pass `api_key` and,\n   when needed, `base_url`; never print either value. A local OpenAI-compatible\n   service commonly uses `OPENAI_BASE_URL=http:\u002F\u002Flocalhost:11434\u002Fv1` and a\n   provider-specific placeholder key. See [workflows.md](references\u002Fworkflows.md).\n4. Call the adapted `scripts\u002Fmedrax_agent_factory.py` function\n   `build_agent(prompt_file, tools_to_use=..., model_dir=..., temp_dir=...,\n   device=..., model=..., temperature=..., top_p=..., openai_kwargs=...)`;\n   it returns `(agent, tools_dict)` and refuses an implicit all-tools selection.\n   When integrating with the original application, the equivalent\n   `main.initialize_agent` signature is recorded in [api-reference.md](references\u002Fapi-reference.md).\n5. Invoke the compiled graph with a message state and a stable configurable\n   thread identifier, for example:\n   `agent.workflow.invoke({\"messages\": [HumanMessage(content=\"...\")]},\n   {\"configurable\": {\"thread_id\": \"smoke-001\"}})`.\n   Keep the same `thread_id` to continue a conversation; use a new one for an\n   isolated run. Exact invocation and fake-model examples are in the workflow\n   reference.\n\n## Safety and selection rules\n\n- `tools_to_use=None` selects every registered tool. In this implementation,\n  an empty list is also replaced by every tool because selection uses\n  `tools_to_use or all_tools.keys()`; use a non-empty explicit list when\n  excluding model-backed tools.\n- Unknown names are silently ignored by `initialize_agent`. Compare\n  `set(requested) - set(tools_dict)` after initialization and fail closed in a\n  wrapper if any were omitted.\n- Do not select `LlavaMedTool`, `XRayPhraseGroundingTool`,\n  `ChestXRayGeneratorTool`, `XRayVQATool`, `ChestXRayReportGeneratorTool`, or\n  other weight-backed tools merely to test graph wiring. Their constructors may\n  download or load large models. The two utility tools are the safe default.\n- `Agent` binds every constructed tool through `model.bind_tools(tools)`. A\n  model that cannot bind LangChain tool schemas is not a compatible backend.\n- Use `MemorySaver()` as the in-memory checkpointer for a process-local test.\n  It is not a durable or multi-process store; do not present it as persistence.\n\n## Agent state machine and logs\n\n`Agent` stores `messages` as an append-only `AgentState` field. The compiled\nLangGraph starts at `process`, invokes the bound model, routes to `execute` if\nthe last response has tool calls, executes each call by registered name, then\nreturns to `process`. An unknown call name yields a `ToolMessage` containing\n`invalid tool, please retry`; it is not executed. A response with no tool calls\nends the graph.\n\nWith `log_tools=True` (the `initialize_agent` default), `log_dir` defaults to\n`logs`; the agent creates that directory and writes timestamped\n`tool_calls_YYYYMMDD_HHMMSS.json` files containing `tool_call_id`, `name`,\n`args`, `content`, and an ISO timestamp. Set `log_tools=False` for a no-log\nsynthetic test. Ensure `log_dir` exists or its parent is writable; avoid\nsensitive arguments in logs and treat log files as sensitive operational data.\n\nFor API details, tool registry entries, prompt parsing, and failure recovery,\nuse the linked references rather than guessing parameter names. For a\nsource-independent construction path, import `build_agent` from\n`scripts\u002Fmedrax_agent_factory.py`; importing that module alone performs no model,\ntool, or network operation. Its command-line default only prints safe help.\n",{"name":5,"license":23,"metadata":24,"description":7,"disable-model-invocation":26},"Apache 2.0",{"disco-role":25},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill agent-orchestration",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill agent-orchestration",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill agent-orchestration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002FSKILL.md",[47,53,57,61,65,71],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fapi-reference.md","REFERENCE","参考文档",6206,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002Freferences\u002Fapi-reference.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Ftroubleshooting.md",5906,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002Freferences\u002Ftroubleshooting.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fworkflows.md",6800,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002Freferences\u002Fworkflows.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"resources\u002Fsystem_prompts.txt",660,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002Fresources\u002Fsystem_prompts.txt",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fcheck_medrax_import.py","SCRIPT","脚本",6088,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002Fscripts\u002Fcheck_medrax_import.py",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fmedrax_agent_factory.py",6365,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedrax\u002Fsub-skills\u002Fagent-orchestration\u002Fscripts\u002Fmedrax_agent_factory.py",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"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",[],[]]