← 返回 Skills 市场
cindy8753

deepevidence循证医学AI助手

作者 deepevidence · GitHub ↗ · v1.0.10 · MIT-0
cross-platform ⚠ suspicious
376
总下载
1
收藏
0
当前安装
11
版本数
在 OpenClaw 中安装
/install deepevidence
功能描述
循证医学临床助手,采用 DeepEvidence 兼容 OpenAI 的 API(可追溯引用)。 用于解答复杂的临床问题、药物安全性证据、指南解读等。
使用说明 (SKILL.md)

DeepEvidence API Skill (Evidence-Based Medicine)

This skill calls DeepEvidence's OpenAI-compatible API to produce traceable, source-grounded evidence summaries for clinical use cases (drug safety, guideline interpretation, trial evidence synthesis). All outputs should be clinically verified before use.

Bundled repository files required: the default workflow references local scripts/ and references/ files. If your hosting/distribution does not ship them, use the direct HTTP API method below.


🛠️ Repository Structure

  • 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.

Normative language

To avoid ambiguity, treat requirement levels as:

  • MUST: mandatory
  • SHOULD: default requirement unless there's a clear reason not to
  • RECOMMENDED: preferred best practice
  • OPTIONAL: use as needed

When to use / triggers

  • Use cases: complex clinical questions; drug safety evidence (dose/contraindications/interactions); guideline interpretation; comparative options; trial evidence synthesis
  • High-intent triggers (to reduce accidental activation): DeepEvidence, evidence-based medicine, guideline interpretation, drug safety evidence, clinical trial evidence

Prerequisites

Ask the user to set an API key via environment variable:

  • Env var: DEEPEVIDENCE_API_KEY (企业用户请在此申请: \x3Chttps://app.medsci.cn/platform/api-keys>)
  • MUST NOT commit keys to source control
  • MUST NOT print API keys, full request bodies, or full response bodies in logs/errors (may contain sensitive clinical information)

Emergency / urgent-care boundary (MUST)

This skill is not for emergency triage or first-aid instructions. If the user describes or asks about (including but not limited to):

  • Chest pain/pressure, suspected stroke/MI, trouble breathing, altered consciousness
  • Poisoning/overdose, severe allergic reaction, uncontrolled bleeding
  • Infant/child seizures, severe dehydration, high fever with mental status changes

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.

Quickstart (CLI)

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"

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_.

Response format (MUST)

When you present DeepEvidence output to the user, you MUST produce a structured Markdown report and follow:

  1. Clear sections: use meaningful headings (e.g., "Key takeaways", "Evidence & guidelines", "Dosing / recommendations", "Risks & monitoring", "Uncertainty / evidence gaps")
  2. Traceable citations: preserve inline citation markers exactly as returned (e.g. [1], [2]) and preserve their mapping; do not alter/remove markers
  3. Table trigger rule (threshold): if the response contains ≥3 parallel items of any of the following, you MUST use a Markdown table:
    • drug/strategy comparisons
    • dosing/adjustment comparisons (e.g., by eGFR strata or population)
    • study/trial outcome comparisons
  4. References display (verbatim): if the source response includes a references list, add ## 📚 References and display it verbatim.
    • preserve the original numbering (e.g. [3], [5], [13]); do not renumber or reorder for "continuity"
    • include only bibliographic fields explicitly present in the source response
    • MUST NOT invent DOI/URL/journal names or any citation metadata
    • if references are missing/incomplete, explicitly state "References not returned / incomplete" and do not fill in
  5. Clinical disclaimer (MUST): include a clear clinical-use disclaimer at the end (you may briefly restate key points from "Clinical limitations")
  6. Attribution (conditional MUST): only if you successfully retrieved evidence content from DeepEvidence, the final line MUST be:
    • > Source: DeepEvidence

Integration (OpenAI SDK)

If the user asks to integrate DeepEvidence into an app, use standard OpenAI SDKs with:

  • Base URLhttps://deepevid.medsci.cn/
  • Modeldeepevidence-agent-v1 (fixed value; do not invent other model names)
  • API key: read from DEEPEVIDENCE_API_KEY
  • Logging/observability: log only minimal metadata (latency, status, token usage); avoid logging patient-identifiable or sensitive content

Example (Python):

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["DEEPEVIDENCE_API_KEY"],
    base_url="https://deepevid.medsci.cn/", # Fixed endpoint
)

resp = client.chat.completions.create(
    model="deepevidence-agent-v1",
    messages=[{"role": "user", "content": "Clinical question"}],
)
print(resp.choices[0].message.content)

Failure handling (MUST)

When DeepEvidence cannot be called or returns insufficient information, you MUST be transparent and MUST NOT pretend you have evidence-backed conclusions:

  • Missing DEEPEVIDENCE_API_KEY: 告知用户该环境变量未配置,引导其前往 https://app.medsci.cn/platform/api-keys 申请 API Key 后再重试;在 Key 完成配置前不得继续进行循证查询
  • Empty / timeout / network error: use bounded retries with reasonable timeouts (avoid infinite retry loops); if still failing, explicitly say: "Temporarily unable to retrieve evidence-based results. Please try again later or consult a licensed clinician." Do not interpret empty responses as "no risk/no evidence"
  • Insufficient direct evidence: explicitly state "No high-quality direct evidence found / conclusion uncertain" and do not overstate certainty
  • Incomplete citation metadata: MUST NOT invent DOI/journal/year/authors/links; present only what was returned and label as "metadata incomplete"

Security (MUST)

  • Secrets: read keys from env vars only; do not leak via outputs/logs/screenshots/stack traces
  • Sensitive data: treat clinical content as sensitive by default; avoid logging full conversations or full responses; prefer redacted summaries for debugging
  • Minimal retention: if you store conversations/logs, provide retention controls and deletion mechanisms
  • Destructive operations: deletion/clearing MUST be user-initiated and double-confirmed

Clinical limitations (MUST)

  • This skill does not replace clinical judgment, local/regional guidelines, or prescribing information; outputs are for reference only and must be clinically verified
  • Decisions must consider patient-specific factors (age, renal function, comorbidities, pregnancy/lactation, allergies), local guidelines, and drug labels
  • For urgent symptoms, advise immediate medical care (see "Emergency boundary")
  • Evidence quality depends on retrieval scope and knowledge-base updates; may be time-sensitive

Advanced features (multi-tenant & conversations)

  • API spec: see references/api_reference.md (user mapping via fully anonymized request tags)

Versioning & updates

  • Skill version: see frontmatter version
  • API behavior/fields: treat references/api_reference.md as source of truth; update failure paths and citation rules first when behavior changes

Test cases (RECOMMENDED)

Minimal Q&A set to validate: structured report output, citation markers, references block (when present), and stable failure messages.

  1. Dose adjustment by strata: "In T2D with CKD, how should metformin dose be adjusted by eGFR?"
  2. Drug interaction / contraindication: "Warfarin + common antibiotics: bleeding risk and monitoring recommendations?"
  3. Guideline interpretation: "HFrEF first-line medication pillars—what do guidelines recommend and what is the supporting evidence?"
  4. Insufficient evidence path: "For a rare disease, what high-quality RCT evidence exists for a new therapy X?" (should explicitly state uncertainty if not found)
  5. Timeout/empty response path: simulate network failure/timeout (should print the stable "temporarily unable..." message)

Troubleshooting

  • 401 authentication_error: missing/invalid DEEPEVIDENCE_API_KEY
  • 429 rate_limit_error: throttled or quota exceeded; reduce frequency or contact admin
  • 400 invalid_request_error: request body mismatch; check references/api_reference.md

Portability (avoid dangling dependencies)

This 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:

  • Strategy A (RECOMMENDED): bundle scripts/ and references/, ensure Python dependencies are available
  • Strategy B: call the HTTP API directly (OpenAI-compatible)

Minimal HTTP API example (curl):

curl https://deepevid.medsci.cn/v1/chat/completions \
  -H "Authorization: Bearer $DEEPEVIDENCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepevidence-agent-v1",
    "messages": [{"role": "user", "content": "Clinical question"}]
  }'

Note: do not leak API keys in shell history/logs. Do not write full sensitive responses to logs.

安全使用建议
This skill appears to be a legitimate DeepEvidence client, but verify a few things before installing: (1) the SKILL.md and scripts require DEEPEVIDENCE_API_KEY — the registry metadata incorrectly lists no required env vars, so do not assume no secrets are needed; (2) only provide non-PII values for optional user/contact fields (the code will send them to the service); (3) review the code yourself or test with non-sensitive queries to confirm the base URL (https://deepevid.medsci.cn/) is the intended endpoint; (4) ensure the API key you supply is from a trusted administrator and avoid committing it to source control; (5) remember this tool is not for emergency care — follow the emergency boundary instructions. If you need higher assurance, ask the publisher to fix the registry metadata and provide an audited release.
功能分析
Type: OpenClaw Skill Name: deepevidence Version: 1.0.10 The DeepEvidence skill is a legitimate clinical assistant tool designed to interface with a medical evidence API. The Python script (scripts/chat.py) uses the standard OpenAI SDK to communicate with a specific, hardcoded endpoint (deepevid.medsci.cn) and includes robust error handling and safety checks. The instructions in SKILL.md emphasize clinical safety, emergency boundaries, and data privacy, explicitly forbidding the logging of sensitive information or the use of the tool for emergency triage.
能力评估
Purpose & Capability
The skill's stated purpose (evidence-based clinical Q&A) matches the code and SKILL.md: it calls a DeepEvidence OpenAI-compatible API at the documented base URL and requires an API key. However, the registry metadata claims 'Required env vars: none' while SKILL.md and scripts/chat.py clearly require DEEPEVIDENCE_API_KEY (and optionally use DEEPEVIDENCE_USER_ID). This metadata mismatch is unexpected and should be resolved.
Instruction Scope
SKILL.md defines tight, clinical-focused instructions (response formatting, emergency boundary, do-not-log rules) and the bundled script implements the core chat workflow against the specified base_url. The instructions do not direct the agent to read unrelated system files or other credentials. Caveat: some policy items (e.g., 'must not log PII') are normative and rely on operator discipline; the code accepts optional user-provided metadata (user/contact_id/display_label) which could include PII if callers supply it.
Install Mechanism
No install spec or remote downloads are present (instruction-only distribution with a local Python script). The script depends on the standard 'openai' Python package; there are no obscure URLs, archives, or extract operations. Risk from install mechanism is low.
Credentials
Requesting DEEPEVIDENCE_API_KEY is proportionate to the stated purpose. The concern is the inconsistency: the top-level registry metadata lists no required env vars while SKILL.md and the script require an API key. The script also accepts optional DEEPEVIDENCE_USER_ID and arbitrary metadata fields (contact_id/display_label) that could carry PII if misused. Confirming the registry metadata and being careful with what you pass as user/contact identifiers is recommended.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It prints responses and some metadata but does not persist credentials or install background services. Autonomous invocation is allowed by default (normal) and not combined here with other high-risk patterns.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install deepevidence
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /deepevidence 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.10
- No file changes detected; this is a metadata-only release. - No user-facing feature, functionality, or documentation updates. - All existing behavior, requirements, and integration details remain unchanged.
v1.0.9
deepevidence 1.0.9 - Updated SKILL.md to clarify API key application URL and strengthen guidance for missing `DEEPEVIDENCE_API_KEY`. - Adjusted error handling language to require explicit user notification and prevent further evidence queries until API key is set. - Minor refinements to prerequisites and failure handling sections for improved user guidance and compliance.
v1.0.8
deepevidence 1.0.8 - No file changes detected in this version. - The skill documentation and configuration remain identical to the previous release. - No new features, fixes, or updates introduced.
v1.0.7
Version 1.0.7 Changelog: - Updated skill metadata format, now clearer and partially localized in Chinese. - Metadata keys changed (e.g., `metadata` → top-level fields, new keys like `homepage` and `license`). - Required environment variables and dependencies are now under new blocks (`env_vars` and `dependencies`). - Description simplified and partially translated to Chinese for improved clarity. - No changes detected in implementation logic or functionality.
v1.0.6
deepevidence v1.0.6 - Updated SKILL.md to clarify and strengthen privacy and environment variable requirements. - Added explicit field names: renamed `metadata` → `privacy_and_security`, `requirements` → `required_dependencies`, and added `required_env_vars`. - Specified that the API Base URL is fixed and redirection is disabled for safety. - No code or logic changes; documentation/metadata update only.
v1.0.5
- Enhanced metadata transparency, consolidated dependencies declaration, and anonymized identifier parameters to meet marketplace compliance.
v1.0.4
- Added explicit env_vars and privacy metadata fields to SKILL.md (with guidance for DEEPEVIDENCE_API_KEY usage). - Updated metadata version to 1.1.1. - Clarified privacy: no automatic PII collection and outputs are always source-grounded with citations. - Introduced a “Repository Structure” section to summarize repo components for users. - No logic or functionality changes to skill operation.
v1.0.3
deepevidence 1.0.3 → 1.1 - Updated API key instructions to include a link for enterprise users to apply for access. - No longer includes the script for managing conversations: scripts/manage_conversations.py has been removed. - Version metadata incremented from "1.0" to "1.1". - Minor documentation updates and clarifications in SKILL.md.
v1.0.2
deepevidence 1.0.2 - Updated OpenAI-compatible API base URL for integration from https://deepevidence.cn/api/v1 to https://deepevid.medsci.cn/. - No other functional or behavioral changes.
v1.0.1
No functional or documentation changes; English SKILL.md now completely replaces Chinese SKILL.md content for unified audience. - Migrated SKILL.md from full Chinese to full English; wording and examples updated to English - All requirements, format rules, security, and limitations remain unchanged in substance - No changes to code, features, or APIs detected - Intended to improve accessibility and consistency for international users
v1.0.0
- Initial release of the DeepEvidence API skill for evidence-based medicine support with traceable citations. - Provides structured, source-cited answers for complex clinical questions, drug safety, guideline interpretation, and new therapy evidence evaluation. - Requires users to configure the DEEPEVIDENCE_API_KEY environment variable—do not embed or log keys. - Strictly outputs structured Markdown reports with traceable references and mandatory clinical disclaimers. - Not for emergency or acute care scenarios; always advise immediate medical attention for such cases. - Includes robust failure handling, security, and integration guidelines; supports advanced features for conversation/session management.
元数据
Slug deepevidence
版本 1.0.10
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 11
常见问题

deepevidence循证医学AI助手 是什么?

循证医学临床助手,采用 DeepEvidence 兼容 OpenAI 的 API(可追溯引用)。 用于解答复杂的临床问题、药物安全性证据、指南解读等。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 376 次。

如何安装 deepevidence循证医学AI助手?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install deepevidence」即可一键安装,无需额外配置。

deepevidence循证医学AI助手 是免费的吗?

是的,deepevidence循证医学AI助手 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

deepevidence循证医学AI助手 支持哪些平台?

deepevidence循证医学AI助手 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 deepevidence循证医学AI助手?

由 deepevidence(@cindy8753)开发并维护,当前版本 v1.0.10。

💬 留言讨论