Skills drugflow-skills
Multi-flow API workflow skill for this DrugFlow Django repository. Use when an agent needs executable end-to-end API procedures such as login/register, workspace and balance retrieval, job listing, virtual screening, docking, ADMET, rescoring, structure extraction, and molecular factory.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ashipiling/drugflow-api" ~/.claude/skills/clawdbot-skills-drugflow-skills && rm -rf "$T"
manifest:
skills/ashipiling/drugflow-api/SKILL.mdsource content
DrugFlow Skills
Route requests to the correct DrugFlow API flow and execute with minimal ambiguity.
Flow Selection
- Read references/index.md first.
- Match user intent to one flow.
- Load only that flow's reference files.
- Prefer script execution from
when available.scripts/<flow>/
Current Flows
- Common APIs: reusable auth/workspace/balance/jobs APIs available.
- Virtual screening: complete flow available.
- Docking: complete flow available.
- ADMET: complete flow available.
- Rescoring: complete flow available.
- Structure extract: complete flow available (
backend type).img2mol - Molecular factory: complete flow available (with atom-selection helpers).
Common APIs Workflow
- Read references/flows/common-apis/call-flow.md.
- Read references/flows/common-apis/payloads.md.
- Reuse
for:scripts/common/drugflow_api.py
signinsignup
/list_workspaces
/create_workspaceensure_workspaceget_balancelist_jobs
- Use
for direct smoke tests.scripts/common/test_common_apis.py
Virtual Screening Workflow
- Read references/flows/virtual-screening/call-flow.md.
- Read references/flows/virtual-screening/payloads.md.
- Use
for end-to-end execution.scripts/virtual-screening/run_vs_flow.py - Always include
forws_id
list/detail./api/jobs - For
create, pass/api/jobs
,name
,type
(JSON string),args
; in non-private mode includews_id
andexpect_tokens
.avail_tokens
Docking Workflow
- Read references/flows/docking/call-flow.md.
- Read references/flows/docking/payloads.md.
- Use
for end-to-end execution.scripts/docking/run_docking_flow.py - Create docking jobs through
with multipart fieldsPOST /api/jobs
,pdb
,ligands
, andpdb_content
.args - Site-driven docking box note: when
is provided but--site
are omitted, the script auto-derives the docking box from that site in local PDB.center/size/radius - Always include
on job list/detail requests and passws_id
/expect_tokens
in non-private mode.avail_tokens
ADMET Workflow
- Read references/flows/admet/call-flow.md.
- Read references/flows/admet/payloads.md.
- Use
for end-to-end execution.scripts/admet/run_admet_flow.py - ADMET job type is fixed to
.admet-dl - Support two input modes:
- direct
listsmiles - dataset mode via
dataset_id + smiles_col
- For
create, pass/api/jobs
,name
,type=admet-dl
,args
, and in non-private modews_id
/expect_tokens
.avail_tokens
Rescoring Workflow
- Read references/flows/rescoring/call-flow.md.
- Read references/flows/rescoring/payloads.md.
- Use
for end-to-end execution.scripts/rescoring/run_rescoring_flow.py - Create rescoring jobs through
with:POST /api/jobs
type=rescoring- form fields
,pdb
,ligandssmiles_col
andargs.mode=semiargs.rescoring_functions
- Script enforces input files:
must be--pdb-file
,.pdb
must be--ligands-file
..sdf - Always include
; in non-private mode includews_id
andexpect_tokens
.avail_tokens
Structure Extract Workflow
- Read references/flows/structure-extract/call-flow.md.
- Read references/flows/structure-extract/payloads.md.
- Use
for end-to-end execution.scripts/structure-extract/run_structure_extract_flow.py - User-facing "结构提取" maps to backend job
.type=img2mol - For create, pass
,name
,type=img2mol
(args
,dataset_id
),page_list
, and in non-private modews_id
/expect_tokens
.avail_tokens
must be img2mol-compatible and includedataset_id
.extras.osskey
Molecular Factory Workflow
- Read references/flows/molecular-factory/call-flow.md.
- Read references/flows/molecular-factory/payloads.md.
- Use
:scripts/molecular-factory/run_molecular_factory_flow.py
atom-infoextract-partialdraw-atom-indexcreate-job
- Default to non-docking molecular factory unless user explicitly asks for docking:
args.need_docking=falseargs.pdb_use.*=false
- Default generation models:
args.molgen_algos=["Frag-GPT","REINVENT"]
- Use helper APIs first to confirm
, then submitselected_atoms/start_atoms
job.molecular_factory - Always pass
; in non-private mode includews_id
andexpect_tokens
.avail_tokens
Output Contract
- Return method + endpoint + required parameters for each step.
- Return key ids and state:
,ws_id
,job_id
, resultstate
.count - When running scripts, return command + important outputs.
Expansion Rules
- Add new flow docs under
withreferences/flows/<flow>/
andcall-flow.md
.payloads.md - Add runnable scripts under
.scripts/<flow>/ - Update references/index.md and this file's
section.Current Flows
References
- references/index.md
- references/flows/common-apis/call-flow.md
- references/flows/common-apis/payloads.md
- references/flows/virtual-screening/call-flow.md
- references/flows/virtual-screening/payloads.md
- references/flows/docking/call-flow.md
- references/flows/docking/payloads.md
- references/flows/admet/call-flow.md
- references/flows/admet/payloads.md
- references/flows/molecular-factory/call-flow.md
- references/flows/molecular-factory/payloads.md
- references/flows/rescoring/call-flow.md
- references/flows/rescoring/payloads.md
- references/flows/structure-extract/call-flow.md
- references/flows/structure-extract/payloads.md