Install
openclaw skills install @cindy8753/deepevidenceDeepEvidence public API skill for physicians' evidence-based clinical decision support. Content is generated from retrieved literature and guidelines for clinical reference; final diagnosis and treatment decisions remain the clinician's responsibility.
openclaw skills install @cindy8753/deepevidenceThis skill calls DeepEvidence's public OpenAI-compatible API to provide physicians with traceable, source-grounded evidence-based clinical decision support, including medical literature retrieval, guideline interpretation, drug-safety review, trial evidence synthesis, and supported medical image input.
Core positioning: DeepEvidence is a physicians' evidence-based decision-support assistant. Content is generated from retrieved literature and guidelines and is for clinical reference only. Specific diagnosis and treatment decisions must be made by physicians based on the individual patient or pediatric patient context, and clinicians should verify the original literature and the latest guideline versions.
Bundled repository files required: the default workflow references local
scripts/andreferences/files. If your hosting/distribution does not ship them, use the direct HTTP API method below.
scripts/: Contains the interaction logic for medical Q&A and user-facing CLI tools.references/: Contains the API interface specifications and technical constraints mapping.SKILL.md: Root configuration and normative guidelines for the medical assistant.To avoid ambiguity, treat requirement levels as:
DeepEvidence, evidence-based medicine, guideline interpretation, drug safety evidence, clinical trial evidenceAsk the user to set an API key via environment variable:
DEEPEVIDENCE_API_KEY (企业用户请在此申请: https://deepevid.medsci.cn/platform/api-keys)This skill is not for emergency triage or first-aid instructions. If the user describes or asks about (including but not limited to):
You MUST prioritize advising the user to contact local emergency services / seek immediate medical care, and state that you cannot provide instructions that replace emergency care.
Ask a question with the bundled script:
python scripts/chat.py "In T2D with CKD, how should metformin dose be adjusted by eGFR?"
Continue a previous conversation (use the returned conversation_id):
python scripts/chat.py "What if the patient also has mild heart failure?" --conversation-id "prev_id"
Use an image input where authorized:
python scripts/chat.py "请分析这张医学图片的关键信息。" --image-url "https://example.com/medical-image.jpg" --stream
OPTIONAL: for multi-tenant user mapping, pass --user using a stable, non-PII external identifier (e.g. --user "opaque-user-123" or --user "hashed-user-id"). The CLI will automatically prefix it with skill_.
The CLI exposes additional flags for internal or explicitly authorized integrations, including --no-store, --project-id, --entity-encryption-id, --chat-mode, --case-info-json, --display-label, and --contact-id. Do not include those in public marketplace docs unless the corresponding capability is published in the official docs or authorized for the customer.
The bundled CLI intentionally defaults to stream=false for simple terminal output, even though the public /api/v1/chat/completions endpoint defaults stream to true.
When you present DeepEvidence output to the user, you MUST produce a structured Markdown report and follow:
[1], [2]) and preserve their mapping; do not alter/remove markers## References and display it verbatim.
[3], [5], [13]); do not renumber or reorder for "continuity"> Source: DeepEvidenceIf the user asks to integrate DeepEvidence into an app, use standard OpenAI SDKs with:
https://deepevid.medsci.cn/api/v1DeepEvidence-V1; enterprise custom models may be available only when authorizedDEEPEVIDENCE_API_KEYstream to true; set stream=False / stream: false when the caller expects a normal JSON responseExample (Python):
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["DEEPEVIDENCE_API_KEY"],
base_url="https://deepevid.medsci.cn/api/v1", # Public endpoint
)
resp = client.chat.completions.create(
model="DeepEvidence-V1",
messages=[{"role": "user", "content": "Clinical question"}],
stream=False,
)
print(resp.choices[0].message.content)
Treat https://deepevid.medsci.cn/platform/docs as the public source of truth. The public docs currently expose:
POST /chat/completions under base URL https://deepevid.medsci.cn/api/v1Do not present code-observed extension endpoints such as conversations, projects, QA records, feedback, or model-management APIs as public platform capabilities unless they are also published in the official docs or explicitly authorized for the customer/integration.
Important current request features:
messages[].role support for system, developer, user, and assistantmessages[].content supports strings and OpenAI content partsimage_url content parts, including HTTP(S) URLs and data:image/...;base64,...stream defaults to truestream_options: { "include_usage": true } returns usage before the stream endsuser identifies the terminal user for multi-tenant scenariosmetadata, store, sampling fields, project scoping, conversations, QA records, or feedback. Treat those as internal or authorized extensions, not default public integration guidance.When DeepEvidence cannot be called or returns insufficient information, you MUST be transparent and MUST NOT pretend you have evidence-backed conclusions:
DEEPEVIDENCE_API_KEY: 告知用户该环境变量未配置,引导其前往 https://deepevid.medsci.cn/platform/api-keys 申请 API Key 后再重试;在 Key 完成配置前不得继续进行循证查询--display-label and --contact-id are optional, non-PII metadata tags. They MUST contain only opaque, system-generated, non-identifying values (e.g. organization codes, anonymized IDs). Patient names, staff names, emails, phones, or any personally identifiable information MUST NOT be passed into these fields.references/api_reference.md (user mapping via fully anonymized request tags)versionreferences/api_reference.md as source of truth; update failure paths and citation rules first when behavior changesMinimal Q&A set to validate: structured report output, citation markers, references block (when present), and stable failure messages.
DEEPEVIDENCE_API_KEYreferences/api_reference.mdThis skill references repository-local scripts/docs (e.g. scripts/chat.py, references/api_reference.md). If your hosting/distribution does not bundle them, relative paths will break.
Choose one strategy:
scripts/ and references/, ensure Python dependencies are availableMinimal HTTP API example (curl):
curl https://deepevid.medsci.cn/api/v1/chat/completions \
-H "Authorization: Bearer $DEEPEVIDENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "DeepEvidence-V1",
"stream": false,
"messages": [{"role": "user", "content": "Clinical question"}]
}'
Note: do not leak API keys in shell history/logs. Do not write full sensitive responses to logs.