healthcare-ai-agent-vault

作者 h1papc11

ai agent healthcare vault for family that combines Obsidian templates, AI prompt workflows, and a TypeScript preprocessing pipeline for Apple Health exports

135
Stars
1,112
Forks
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/h1papc11/healthcare-ai-agent-vault

快速入门

使用 healthcare-ai-agent-vault 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

AI Health Vault

A local-first family health archive that combines Obsidian templates, AI prompt workflows, and a TypeScript preprocessing pipeline for Apple Health exports.

Your health data stays on your machine. AI assists with structuring and analysis — you control what leaves your device.


Table of Contents


Overview

AI Health Vault is designed for families who want structured health records without surrendering privacy to commercial apps. Clone the repository, open the Obsidian vault, and use included prompts or Claude Code skills to transform photos, PDFs, and wearable exports into organized Markdown and CSV files.

Version 2 adds a production TypeScript runtime with strict typing, optional Redis-backed export job caching, structured logging, and a full build/lint/test pipeline.


Features

CapabilityDescription
Obsidian vault templatesHub pages, member archives, tracking CSVs, and field standards
Eight AI workflowsCheckup extraction, medication recognition, trend analysis, visit prep, Apple Watch analysis, family-friendly summaries, follow-up calendar, daily health plan
Claude Code skillsAuto-loaded skill definitions mirroring the prompt library
Apple Health preprocessorStreaming XML/ZIP parser that splits large exports into typed CSV files
Optional Redis cachePersists export job metadata for repeated preprocessing runs
Strict TypeScriptTyped services, validated configuration, and comprehensive unit tests

Architecture

flowchart TB
    subgraph Inputs
        A[Photos / PDFs]
        B[Apple Health Export]
        C[Manual Notes]
    end

    subgraph Processing
        D[AI Prompts & Skills]
        E[Apple Health CLI]
        F[(Redis Cache)]
    end

    subgraph Storage
        G[Obsidian Vault]
        H[CSV Tracking Files]
    end

    A --> D
    B --> E
    C --> G
    D --> G
    E --> H
    E -. optional .-> F
    G --> H

Component Layers

flowchart LR
    subgraph Application
        CLI[CLI Entry Point]
        SVC[Apple Health Service]
        CFG[Config Module]
        LOG[Structured Logger]
    end

    subgraph Persistence
        REDIS[Connection Manager]
        CACHE[Export Job Cache]
    end

    CLI --> CFG
    CLI --> SVC
    CLI --> REDIS
    SVC --> LOG
    REDIS --> CACHE
    SVC --> CACHE

Workflows

New user setup

flowchart TD
    A[Clone repository] --> B[Open vault/ in Obsidian]
    B --> C[Add family members to hub page]
    C --> D[Capture health document]
    D --> E[Send to AI with prompt or skill]
    E --> F[Paste structured output into vault]
    F --> G{More records?}
    G -->|Yes| D
    G -->|No| H[Review trends in tracking CSVs]

Apple Health import

sequenceDiagram
    participant User
    participant CLI as Preprocessor CLI
    participant Parser as SAX Parser
    participant Redis as Redis Cache
    participant Vault as Obsidian Vault

    User->>CLI: export.zip + output directory
    CLI->>Redis: Check cached job (optional)
    alt Cache hit
        Redis-->>CLI: Completed job metadata
    else Cache miss
        CLI->>Parser: Stream XML records
        Parser-->>CLI: Typed CSV files
        CLI->>Redis: Store job result (optional)
    end
    User->>Vault: Attach CSV summaries to member archive

Project Structure

ai-health-vault/
├── src/
│   ├── cli/                  # Command-line entry points
│   ├── config/               # Environment configuration (Zod-validated)
│   ├── errors/               # Typed application errors
│   ├── logging/              # Structured JSON logger
│   ├── redis/                # Connection manager and export job cache
│   └── services/
│       └── apple-health/     # Streaming preprocessor implementation
├── tests/
│   ├── fixtures/             # Sample Apple Health XML
│   └── unit/                 # Vitest unit tests
├── vault/                    # Obsidian vault template
├── prompts/                  # Portable AI prompt library
├── .claude/skills/           # Claude Code skill definitions
├── guides/                   # Setup guides and FAQ
└── docs/internal/            # Engineering audit notes

Design decisions

  • src/services/ holds domain logic; infrastructure lives in src/redis/, src/config/, and src/logging/.
  • Content assets (vault/, prompts/, .claude/) remain separate from application code.
  • Tests mirror the src/ layout under tests/unit/.

Installation

Prerequisites

  • Node.js 20 or later
  • Obsidian (recommended for vault management)
  • Redis 6+ (optional, for export job caching)

Setup

git clone https://github.com/runesleo/ai-health-vault.git
cd ai-health-vault
npm install
cp .env.example .env

Build and verify:

npm run validate

Open the vault:

  1. Launch Obsidian → Open folder as vault
  2. Select the vault/ directory
  3. Edit 健康管理中心.md with your family member names

Configuration

Copy .env.example to .env and adjust values:

VariableDefaultDescription
LOG_LEVELinfoLogging verbosity: debug, info, warn, error
REDIS_ENABLEDfalseEnable Redis-backed export job caching
REDIS_URLRedis connection URL (required when enabled)
REDIS_KEY_PREFIXai-health-vault:Key namespace prefix
REDIS_MAX_RETRIES10Maximum connection retry attempts
REDIS_CONNECT_TIMEOUT_MS10000Connection timeout in milliseconds
REDIS_JOB_TTL_SECONDS86400Export job cache TTL (24 hours)

Apple Health preprocessor

# Development (tsx)
npm run preprocess -- --input /path/to/export.xml --output ./csv-output

# Production build
npm run build
npx apple-health-preprocess --input export.zip --output ./csv-output --types heart_rate,step_count

Supported output types: heart_rate, resting_heart_rate, walking_heart_rate_average, heart_rate_variability_sdnn, oxygen_saturation, vo2max, step_count, sleep_analysis, workouts.


Development

# Type check
npm run typecheck

# Lint
npm run lint
npm run lint:fix

# Format
npm run format:fix

# Run tests in watch mode
npm run test:watch

# Full validation pipeline
npm run validate

Adding a new health workflow

  1. Create a prompt file in prompts/
  2. Add a matching skill in .claude/skills/
  3. Update the vault hub page with workflow instructions
  4. Document field mappings in vault/知识库/推荐字段标准.md

Testing

npm test

Test suites cover:

  • Apple Health type parsing and CSV generation
  • Output directory safety checks
  • Redis export job cache read/write operations
  • Redis connection manager configuration guards

Run the full pipeline before submitting changes:

npm run validate

Troubleshooting

Preprocessor reports "Output directory must be empty"

The CLI refuses to write into a directory that already contains files. Provide a new path or clear the target directory first.

Redis connection failures

  1. Confirm Redis is running: redis-cli ping should return PONG
  2. Verify REDIS_URL matches your instance
  3. Set REDIS_ENABLED=false to run without caching

TypeScript build errors after dependency updates

rm -rf node_modules dist
npm install
npm run validate

AI output does not match vault field standards

Refer to vault/知识库/推荐字段标准.md and include it as context when prompting your AI assistant.

Windows path issues

Use forward slashes or quoted paths:

npm run preprocess -- --input "D:/exports/export.xml" --output "./output"

Contributing

  1. Fork the repository and create a feature branch
  2. Run npm run validate before committing
  3. Keep commits focused and write descriptive messages
  4. Update documentation when changing user-facing behavior
  5. Open a pull request with a clear summary and test plan

See CODE_OF_CONDUCT.md and SECURITY.md for community and security guidelines.


FAQ

Do I need Redis? No. Redis is optional and only caches export job metadata.

Which AI tools work? Any model that accepts text prompts: Claude, ChatGPT, Gemini, or local models via Ollama or LM Studio.

Is my data sent to the cloud? Only if you paste it into a cloud AI service. The vault itself is local Markdown and CSV.

Can I use this without Obsidian? Yes. Prompts, skills, and CSV outputs work with any editor.

Where is the detailed setup guide? See guides/快速开始.md and guides/FAQ.md.


License

MIT — Copyright (c) Leo (@runes_leo)

常见问题

What is healthcare-ai-agent-vault?

healthcare-ai-agent-vault is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by h1papc11. ai agent healthcare vault for family that combines Obsidian templates, AI prompt workflows, and a TypeScript preprocessing pipeline for Apple Health exports. It has 135 GitHub stars.

Is healthcare-ai-agent-vault safe to use?

healthcare-ai-agent-vault failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install healthcare-ai-agent-vault?

Clone the repository with "git clone https://github.com/h1papc11/healthcare-ai-agent-vault" and add it to your Claude Code skills directory (see the Installation section above).

Are there alternatives to healthcare-ai-agent-vault?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh healthcare-ai-agent-vault against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情