← 返回 Skills 市场
erinyu

Health Git

作者 Erinyu · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
280
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install health-git
功能描述
Implements Git-like workflow for health tracking, allowing users to log data, submit intervention plans for expert review, and audit health events.
使用说明 (SKILL.md)

health-git

把 Git 工作流语义(Issue → Branch → Commit → PR → Review → Merge)搬到健康干预场景的 AI 助手技能。

用户每次打卡/录入数据 = care_commit,健康管理师/医生 Review 后 merge 进下一周计划,所有事件可审计。

使用场景

  • 患者/消费者:记录每日饮食、运动、用药打卡,提交 PR,等待审核
  • 健康管理师/医生:查看待审 PR,运行安全检查,approve/reject 干预计划
  • 数据分析:查看依从率、merge 率等指标,作为 reward model 训练信号

前置条件

服务默认运行在 http://localhost:8090,可通过环境变量覆盖:

export HEALTH_GIT_BASE_URL=http://localhost:8090
# 如开启鉴权:
export AUTH_ENABLED=true
export CONSUMER_API_KEY=consumer-key
export REVIEWER_API_KEY=reviewer-key

启动服务:

cd \x3C项目目录>
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8090

初始化示例数据:

curl -X POST http://localhost:8090/api/seed

API 速查

操作 方法 路径
健康检查 GET /api/health
初始化数据 POST /api/seed
查看全局看板 GET /api/dashboard
提交打卡(care commit) POST /api/commits
开启干预 PR POST /api/prs
审核 PR POST /api/prs/{pr_id}/review
记录结果指标 POST /api/outcomes
查看指标 GET /api/metrics
查看事件日志 GET /api/events
查看检查规则 GET /api/rules
更新检查规则 PATCH /api/rules/{rule_id}

对话示例

用户:帮我记录今天的打卡:步行8000步,依从度80分

助手操作

curl -s -X POST http://localhost:8090/api/commits \
  -H "Content-Type: application/json" \
  -d '{"branch_id":1,"user_id":1,"task_type":"exercise","evidence_text":"步行8000步","metric_value":8000,"adherence_score":80}'

用户:帮我提交本周干预计划的 PR,低风险

助手操作

curl -s -X POST http://localhost:8090/api/prs \
  -H "Content-Type: application/json" \
  -d '{"branch_id":1,"requested_by":1,"summary":"本周饮食控制+步行计划","risk_level":"low"}'

用户:审核一下 PR #1,批准通过

助手操作

curl -s -X POST http://localhost:8090/api/prs/1/review \
  -H "Content-Type: application/json" \
  -H "x-api-key: reviewer-key" \
  -d '{"reviewer_id":2,"action":"approve","review_note":"依从良好,计划合理"}'

用户:把药物变更检查的关键词加上"adjust dose"

助手操作

# 先获取当前规则
curl -s http://localhost:8090/api/rules | python3 -m json.tool

# 更新关键词
curl -s -X PATCH http://localhost:8090/api/rules/MEDICATION_CHANGE_REVIEW \
  -H "Content-Type: application/json" \
  -d '{"config_json":{"keywords":["increase medication","new drug","double dose","insulin","adjust dose"]}}'

用户:看一下当前指标怎么样

助手操作

curl -s http://localhost:8090/api/metrics | python3 -m json.tool

返回字段:commit_rate(总打卡数)、merge_rate(审核通过率)、blocked_rate(被拦截率)、avg_adherence(平均依从分)

检查规则说明

系统内置两条可配置规则:

  • MEDICATION_CHANGE_REVIEW:PR summary 含药物变更关键词时自动拦截,需人工 review
  • ADHERENCE_GATE:最近一次打卡依从分低于阈值(默认50)时拦截

规则均可通过 PATCH /api/rules/{rule_id} 动态调整,无需重启服务。

注意事项

  • merge = 用户+专家双重认可的正强化事件,适合作为 RL reward 信号
  • 所有操作写入 events 表,可用 GET /api/events?event_type=merge_completed 过滤
  • 鉴权默认关闭;生产环境请设置 AUTH_ENABLED=true 并配置 API key
安全使用建议
This skill is an instructions document for running and using a local 'health-git' service — it does not include code in the package, so you must provide or obtain the actual project code before the commands will work. Before running: 1) Verify the service source (there's no homepage/source link provided). 2) Only run the server on localhost or behind proper network controls; do not expose it publicly. 3) Enable authentication (AUTH_ENABLED=true) and configure strong, unique API keys for CONSUMER_API_KEY and REVIEWER_API_KEY before putting any real patient data into the system. 4) Review and audit any rule changes (e.g., MEDICATION_CHANGE_REVIEW keywords) because they affect clinical workflow and safety. 5) Treat any stored data as potentially protected health information — use appropriate encryption, access controls, and comply with relevant regulations. 6) If you will run third-party code (pip install / uvicorn), inspect that code or run it in an isolated/test environment first.
功能分析
Type: OpenClaw Skill Name: health-git Version: 1.0.0 The health-git skill bundle provides a workflow for managing health data using Git-like semantics (commits, PRs, and reviews). The instructions in SKILL.md guide the agent to interact with a local API service (defaulting to localhost:8090) using standard curl commands, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The SKILL.md describes a local 'health-git' service (Git-like workflow for health logs) and all instructions (start uvicorn, seed data, curl the API) are consistent with that purpose. Minor mismatch: the registry lists no required env vars but the docs show optional ENV vars (HEALTH_GIT_BASE_URL, AUTH_ENABLED, CONSUMER_API_KEY, REVIEWER_API_KEY). That's reasonable for an example but should be noted.
Instruction Scope
Instructions are limited to starting a local web service and calling its REST endpoints on http://localhost:8090. They do not instruct reading unrelated system files or exfiltrating data to external hosts. Example curl requests include x-api-key headers and rule updates; these are appropriate for the described functionality.
Install Mechanism
No install spec and no code files are bundled; SKILL.md tells the user how to install dependencies and run a project they must provide. This is low-risk from the skill package perspective (nothing is written by the platform).
Credentials
The skill itself does not declare required credentials, but the runtime examples show optional API keys and an AUTH_ENABLED flag. Requesting API keys for consumer/reviewer roles is proportionate to the service's auth model. Important: the default instructions indicate authentication is off by default—this is a security/privacy risk if run in non-local or network-exposed environments.
Persistence & Privilege
The skill does not request persistent privileges (always:false) and does not modify other skills or global agent settings. Autonomous invocation is allowed by platform defaults but the skill's instructions are limited to local API interactions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install health-git
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /health-git 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
初始发布:把 Git 工作流语义搬到健康干预场景的 AI 助手技能
元数据
Slug health-git
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Health Git 是什么?

Implements Git-like workflow for health tracking, allowing users to log data, submit intervention plans for expert review, and audit health events. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 280 次。

如何安装 Health Git?

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

Health Git 是免费的吗?

是的,Health Git 完全免费(开源免费),可自由下载、安装和使用。

Health Git 支持哪些平台?

Health Git 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Health Git?

由 Erinyu(@erinyu)开发并维护,当前版本 v1.0.0。

💬 留言讨论