setup-openmed
它能做什么
这项技能教智能体如何记录去标识化项目的隐私选择。它会问几个固定问题,并把答案保存在一个必须由人批准的政策文件中。
适用场景
- ✓当项目必须先确定去除个人数据的规则,并需要先将其记录下来的时候。
- ✓当团队需要一份书面政策,说明适用的司法管辖区、召回率目标和审计位置的时候。
- ✓当管理人员要求在处理任何临床数据之前,先有一份可供审阅的隐私设置文件的时候。
技能链接
https://github.com/maziyarpanahi/openmed/blob/master/skills/setup-openmed/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们接触任何患者数据之前,请帮我为医院项目设置一份去标识化政策文件。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会每次就一个固定选项提问,例如司法管辖区和召回率下限,然后把答案写入一个 markdown 文件。这项技能不读取任何患者数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Set up an OpenMed de-identification policy
Use this skill before a de-identification pipeline when the privacy decisions are not already recorded. It creates a small policy document; it does not inspect, transform, upload, or retain clinical data. The setup is local-first, deterministic, and has no mandatory network call.
The output is a draft configuration contract, not a compliance certification, legal opinion, or guarantee of de-identification. A human must review and approve the draft before it controls a run.
When to use this skill
Use it when a project needs to turn implicit privacy choices into a reviewable
DEID-POLICY.md file. Use the focused de-identification skills afterward to
apply or audit the selected policy.
Do not use this skill to collect a note, dataset row, identifier, model output, secret, credential, or any other source payload. The setup questions accept policy choices only. Keep logs, exceptions, reports, and fixtures free of raw sensitive values.
Bounded decision contract
Collect these five decisions, one at a time. Do not invent a sixth field or silently choose a value. The value written to the artifact must be the lowercase canonical value in the right-hand column.
| Decision | Bounded choices (canonical value) |
|---|---|
| Jurisdiction or operating context | us, eu, canada, research, organization-defined |
| Recall floor | 0.90, 0.95, 0.99 |
| Surrogate strategy | mask, remove, replace, hash |
| Model policy | local-preinstalled, local-user-supplied, rules-only |
| Audit location | separate-local-directory, controlled-artifact-store, no-retention |
The jurisdiction choices are context labels, not findings that a law applies.
For example, us may be used for a US/HIPAA-context workflow and eu for an
EU/GDPR-context workflow, but the generated document must not claim that the
workflow is compliant. research and organization-defined require the
project's own governance review.
The recall floor is a release target, not an observed score. Do not write a
metric, benchmark result, dataset name, or model claim into this artifact.
replace must use deterministic, synthetic surrogates when it is later
implemented; any re-identification mapping remains a separately protected
secret. hash is one-way for this policy document, but hashes can still be
sensitive linkage material.
Setup workflow
Follow this order exactly:
Explain that the result is a draft configuration and that human approval is required. Ask only for the five decisions in the table.
Normalize each answer for comparison by trimming surrounding whitespace, folding case, and treating spaces or underscores as hyphens. Match the normalized answer against the bounded choices exactly. Do not accept a free-form value, and do not infer a jurisdiction from prose.
If an answer is missing or invalid, stop before writing the artifact. Report only the field name and the allowed canonical choices; never echo the answer, a source value, or exception text.
Read the local DEID-POLICY.template.md and replace only its five decision placeholders:
{{ jurisdiction }}{{ recall_floor }}{{ surrogate_strategy }}{{ model_policy }}{{ audit_location }}
Before substitution, require
Template version: 1.0,Policy schema: 1, and exactly one occurrence of each listed placeholder with no other placeholder. If that contract differs, stop before writing and report only that the template contract is invalid. Preserve the template version, section order, checkboxes, and line endings. Do not add a timestamp, random identifier, machine path, user identity, source text, detected span, model output, or free-form rationale.Resolve the user-requested project directory and require it to be an existing local directory. The output target is exactly its direct child
DEID-POLICY.md; do not accept a different filename or derive one from an answer. Refuse a symlink or any existing non-regular target. If a regular file already exists, ask for explicit permission before replacing it; never overwrite it implicitly or write through a symlink. Render to a uniquely created sibling temporary file, flush and sync its bytes, recheck the resolved parent and target immediately before replacement, and atomically replace the target. If the target appeared after th
常见问题
这项技能会检查我的数据吗?
不会。这项技能说明它只收集政策选择,不检查、上传或保存临床数据。
政策文件是法律批准吗?
不是。这项技能说明草稿并非合规认证,必须由人工批准。
它会询问哪些决定?
它会询问司法管辖区、召回率下限、替代值策略、模型政策和审计位置。
详情
作者的原始描述
Collect a bounded set of de-identification policy decisions and write a deterministic, reviewable DEID-POLICY.md from the versioned local template. Use when a project needs explicit jurisdiction, recall floor, surrogate strategy, model policy, audit location, and human approval before privacy work begins.
repo: maziyarpanahi/openmed
热度
- GitHub 星标
- 5.8k
- 排名
- #14734
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
annotating-variants
5.8k帮你的智能体预测基因变异的作用,把 HGVS 名称转换为基因组位置,并使用免费的公共注释工具添加人群频率。
ask-openmed
5.8k帮你的智能体为临床文本请求选择合适的 OpenMed 工作流程,并在可能涉及患者数据时,先进行隐私检查。
assembling-fhir-bundles
5.8k把多份 FHIR 健康记录打包成一个事务 Bundle,可直接发送给 EHR 系统,并正确链接其中的内部引用。
auditing-deid-leakage
5.8k扫描已去标识化的临床文本,查找残留的标识符,例如社会安全号、银行卡号、电子邮件地址和日期,若仍有残留则阻止发布。