hipaa-validate
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hipaa-validate":https://skillpi.com/zh/skills/deepskill-36c5e7dfcf14f2f47892ea911439faf5a5bce3e49968368ca91f374c17d47162。安装前核对上游来源和版本:https://github.com/softspark/ai-toolkit。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
HIPAA 验证器,检查 PHI 暴露、审计日志记录、加密、访问控制和 BAA 相关问题。触发条件包括提到 HIPAA、PHI、医疗合规、审计日志或 BAA。
介绍来源: third_party · softspark · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 减记
- 实测状态
- 未测试
文件浏览
Frontmatter
name: hipaa-validate
description: "HIPAA validator: PHI exposure, audit logging, encryption, access control, BAA refs. Triggers: HIPAA, PHI, healthcare compliance, audit log, BAA."
user-invocable: true
effort: medium
disable-model-invocation: true
context: fork
agent: security-auditor
argument-hint: "[path] [--mode developer|compliance] [--severity high|warn] [--keywords term1,term2] [--output json]"
allowed-tools: Read, Grep, Glob, Bash/hipaa-validate - HIPAA Compliance Scanner
$ARGUMENTS
Scan a codebase for HIPAA compliance issues using pattern-matching heuristics. Detects PHI exposure in logs, missing audit trails, unencrypted transmission/storage, hardcoded patient data, access control gaps, and missing Business Associate Agreement references. Read-only — never modifies files.
Regulation basis: 45 CFR Parts 160, 162, 164 (HIPAA Administrative Simplification, as amended through March 26, 2013). Covers Security Rule (§164.302-318), Privacy Rule (§164.500-534), Breach Notification Rule (§164.400-414), and enforcement penalties (§160.400-426).
Usage
/hipaa-validate # Scan full project (developer mode — definitives only)
/hipaa-validate src/ # Scan specific path
/hipaa-validate --mode compliance # Full audit sweep including heuristic categories
/hipaa-validate --severity high # Filter to HIGH findings only
/hipaa-validate --keywords member,enrollee # Extend healthcare keyword list
/hipaa-validate --output json # Structured JSON output for CI integration
Modes:
developer(default): Categories 1, 3, 4, 7, 8 — definitive regex matches only, low false-positive rate, suited for daily usecompliance: All 8 categories — includes heuristic checks (Cat 2, 5, 6) for audit sweep coverage, suited for pre-audit sweeps
Severity filtering: --severity high shows only HIGH findings, --severity warn shows HIGH + WARN. Default shows all.
What This Command Does
- Run scanner script — execute
scripts/hipaa_scan.pywith passed arguments - Interpret results — analyze findings, add context, suggest specific fixes
- Report — present findings with file paths, line numbers, severity, confidence, and HIPAA rule citations
Steps
Step 1: Run the Scanner Script
Execute the Python scanner with the user's arguments:
python3 ${CLAUDE_SKILL_DIR}/scripts/hipaa_scan.py [path] [--mode developer|compliance] [--severity high|warn] [--keywords term1,term2] [--output json]
The script handles all scanning logic deterministically:
- Context gate — identifies PHI-adjacent files via healthcare keyword matching
- Language detection — detects project languages from manifest files
- 8 check categories — runs regex patterns and co-occurrence heuristics
- Deduplication — removes duplicate findings (same file+line+category)
.hipaaignoresupport — honors exclusion patterns from project root.hipaa-configsupport — readscovered_vendorsfor BAA checks
If the script reports "No healthcare context detected", relay the message and suggest the --keywords flag with alternative terminology.
If --output json is used, the script outputs structured JSON suitable for CI pipelines. The exit code is 1 if any HIGH findings exist, 0 otherwise.
Step 2: Interpret and Enrich Results
Read reference/scanner-categories.md once before starting — you cannot judge a heuristic finding without the pattern that produced it.
For each finding from the script output:
- Read the flagged file and line to understand the actual code context
- Add a specific fix suggestion — not generic advice, but concrete code changes based on what you see
- For heuristic findings (confidence: "heuristic"), check if the concern is actually addressed elsewhere in the codebase (e.g., auth middleware at router level, audit logging in a shared module)
- Mark confirmed false positives and suggest adding them to
.hipaaignore
Scanner Reference
The eight scan categories are implemented in scripts/hipaa_scan.py. The pattern
tables, severities, per-language coverage and rule citations live in
reference/scanner-categories.md.
Read that file once, in full, before enriching findings in Step 2 — it is what lets you explain why a line matched and judge whether a heuristic hit is a false positive. The scan itself does not need it; the script already holds the patterns.
| # | Category | Scope | Mode |
|---|---|---|---|
| 1 | PHI in logs / console output (+ minimum-necessary violations) | full project | developer |
| 2 | Missing audit logging | full project | compliance only, heuristic |
| 3 | Unencrypted transmission | PHI-adjacent | developer |
| 4 | Hardcoded PHI test data | PHI-adjacent | developer |
| 5 | Access control gaps | PHI-adjacent | compliance only, heuristic |
| 6 | Missing BAA references | PHI-adjacent | compliance only, heuristic |
| 7 | Encryption at rest | PHI-adjacent | developer |
| 8 | PHI temp file exposure | PHI-adjacent | developer |
Categories 1 and 2 scan the full project; categories 3–8 scan only PHI-adjacent files. Compliance mode adds the heuristic categories 2, 5 and 6 to the developer set.
Step 3: Compile and Report
Present the scanner output to the user. Sort by severity (HIGH first), then by file path.
Output Format
## HIPAA Validation Report
### Summary
| Metric | Value |
|--------|-------|
| Mode | developer / compliance |
| PHI-adjacent files | N |
| Files scanned | N |
| Categories run | 1,3,4,7,8 (developer) / 1,2,3,4,5,6,7,8 (compliance) |
| Severity HIGH | N |
| Severity WARN | N |
### Findings
#### [HIGH] src/api/patients.ts:42
Category: PHI in Logs
Confidence: definitive (regex match)
Pattern: `console.log(patient.name)`
HIPAA Rule: §164.502(b) — Minimum Necessary Standard
Fix: Replace with `safeLog()` or remove PHI from log output
#### [HIGH] src/routes/patient-api.ts:15
Category: Missing Audit Logging
Confidence: heuristic (co-occurrence check — may be false positive)
Pattern: PHI route file without audit keywords
HIPAA Rule: §164.312(b) — Audit Controls
Fix: Verify audit logging exists in call chain; add AuditEvent creation if missing
#### [WARN] src/services/patient-sync.ts:88
Category: Unencrypted PHI Transmission
Confidence: definitive (regex match)
Pattern: `http://external-api.example.com/patients`
HIPAA Rule: §164.312(e)(1) — Transmission Security
Fix: Use HTTPS for all PHI transmission
Confidence values:
definitive— Categories 1, 3, 4, 7, 8: regex matched actual codeheuristic— Categories 2, 5, 6: co-occurrence/absence check, may be false positive
This distinction helps compliance officers prioritize immediate remediation (definitive) vs. investigation (heuristic).
Rules
- MUST remain read-only — never modify any file. This skill reports findings only.
- MUST cite a specific HIPAA rule section (§ number) for every finding — uncited findings are not actionable
- MUST run the healthcare keyword context gate before applying PHI identifier regex (Category 4) — without it, false-positive rate is ~90%
- NEVER label a heuristic finding as "definitive" — clearly mark
POTENTIALandconfidence: heuristic - NEVER scan binary files, lock files (
*.lock,package-lock.json,yarn.lock,pnpm-lock.yaml), or vendored dirs (node_modules/,vendor/,.git/,dist/,build/,out/,.next/) — noise and zero signal - CRITICAL: respect
.hipaaignoreexclusion patterns — teams use it to mark known-safe data fixtures - MANDATORY: flag PHI-adjacent config files without
.envor secret-manager references as a WARN category, even when no PHI pattern matches - NEVER auto-fix in this version. Auto-fixing requires project-specific knowledge of logging and audit infrastructure that regex alone cannot provide.
Gotchas
-
Check
language_detectionin the summary before trusting a zero. Category 1, 3, 4 and 7 patterns are language-tagged and only fire for a detected language. Manifests decide first (pyproject.toml,package.json,go.mod, …); without one the scanner falls back to file extensions. If it reportslanguages: ["any"]withlanguage_detection: "none", the language rules never ran andHIGH: 0means unscanned, not compliant — the scanner prints that warning to stderr, so a run whose stderr is discarded loses it. -
Scanning a monorepo package or a subdirectory can put you below the manifest. The extension fallback covers the common case, but a directory of
.sql,.yamlor templates resolves to no language at all — scan from the level that holds the manifest. -
Test fixtures and seed data often contain synthetic PHI that looks real (SSN-shaped IDs, formatted phone numbers, sample email addresses). Flag them but lower severity — production code handling the same patterns is the actual risk.
-
HIPAA §164.312(b) requires audit logging but does not specify a format. "Logs exist" is not evidence of compliance — the logs must capture WHO (authenticated user), WHAT (action), WHEN (timestamp), WHERE (resource), and they must be immutable (append-only or write-once storage).
-
Encryption-at-rest varies silently by storage layer. RDS auto-encrypts new volumes since 2017, but older DB snapshots may not be; S3 bucket policies can override instance-level encryption. Treat "encryption enabled" as a claim to verify with the cloud provider, not a state to trust.
-
PHI identifiers 1-18 differ from HIPAA's "limited data set" rules — date of service and city are permitted in a limited dataset but not in full PHI. Do not auto-flag any date as PHI without context; check for surrounding patient-name or diagnosis proximity.
-
PHI detection via regex misses data encoded in BLOBs, base64-embedded JSON, or encrypted-at-application-layer columns. A clean regex scan does not prove absence of PHI — document this explicitly in the report.
-
Healthcare keyword context gate has dialect drift: "patient" in a veterinary codebase is a dog, not a person under HIPAA. Review context before escalating findings from multi-tenant or vertical-adjacent codebases.
When NOT to Use
- For generic security patterns (XSS, SQLi, CSRF) — use
/security-patterns - For dependency vulnerabilities — use
/cve-scan - For non-healthcare compliance regimes (PCI-DSS, SOC2, GDPR) — this skill is HIPAA-specific
- For legal interpretation of compliance — this skill flags technical controls; only a QSA or attorney interprets compliance status
- For PII/GDPR outside the HIPAA scope — overlapping but distinct; HIPAA covers PHI specifically
Reference Documents
- reference/hipaa-rules.md — HIPAA Security Rule, Privacy Rule, and Breach Notification Rule mapped to technical controls
- reference/phi-identifiers.md — The 18 HIPAA identifiers with detection patterns and detectability status
版本历史
-
v6.2.0
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/softspark/ai-toolkit/compare/v6.1.0...v6.2.0
-
v6.1.0
GitHub ↗
原版更新说明
**Full Changelog**: https://github.com/softspark/ai-toolkit/compare/v6.0.0...v6.1.0
-
v6.0.0
GitHub ↗
原版更新说明
## What's Changed * chore: bump softprops/action-gh-release from 3.0.3 to 3.0.4 by @dependabot[bot] in https://github.com/softspark/ai-toolkit/pull/45 * fix: handle Windows status output and clarify Antigravity workflow support by @softspark in https://github.com/softspark/ai-toolkit/pull/46 **Full Changelog**: https://github.com/softspark/ai-toolkit/compare/v5.5.0...v6.0.0
-
v5.5.0
GitHub ↗
原版更新说明
### Ecosystem - **OpenCode V2 and V1 compatibility:** `scripts/generate_opencode_plugin.py` emits the documented `id/setup/server` contract for V2 and V1 **1.18.29+**. Upgrade older V1 clients before using this plugin, then run `ai-toolkit update` to regenerate managed copies. `doctor` warns about obsolete V1-only exports. Scoped global/project IDs avoid native collisions; advisory work has one owner per location, while safety guards execute in every registered layer. The current V2 package is `@opencode/cli`; `opencode-ai` still publishes V1. - **Claude guard failure policy:** destructive-command, home-path and configuration guards use `onFailure: block` on Claude Code **2.1.295+**. Legacy entries migrate without duplication; hooks owned by other plugins survive. Older clients do not have this infrastructure-failure guarantee. - **Codex, Gemini and Devin:** Codex refresh accepts the two diagnostic model-request events. Gemini advisory hooks return native JSON and save native completion responses; Devin prompt/edit hooks emit event-labelled context. - **All 13 integrations reviewed:** refresh release metadata and the ecosystem snapshot, distinguish stable/preview channels, and pin Auggie's stable v0 references. User model, effort and approval selections remain unchanged. ### Fixed - **One Claude Stop checker:** remove the duplicate advisory handler from the global and app manifests. `quality-gate.sh` keeps PHPStan advisory through `quality-check.sh --php-only`, preserving checker precedence and Makefile settings. PHPStan now runs synchronously on Stop and TaskCompleted (#43). - **OpenCode guard execution:** replace the unsupported Bun stdin path with real subprocess execution in both APIs. Denial, missing guards, crashes and timeouts block tools. Transactional generation refuses user-owned collisions and symlinked destinations; lifecycle cleanup releases advisory ownership. - **Isolated release smoke:** `scripts/release.sh` installs the packed artifact in a disposable, network-disabled container with no mounts and the OS user's default home. Host settings are not used as a smoke sandbox. ### Changed - Hook entries: 29 to 28 across the same 14 Claude events. Skills remain 116 and agents remain 44. Bats coverage grows from 2012 to 2037 tests. - Refresh compatibility documentation and remove stale inventory counts from the backward-compatibility policy. All protected public surfaces remain. - Skill body budget is unchanged: the largest body remains `design-engineering` at 17,197 bytes, less than 2,000 bytes below the 18,000-byte warning threshold, so the release ratchet does not apply. **Included pull request:** [#43: run the project checker once on Claude Code Stop](https://github.com/softspark/ai-toolkit/pull/43), contributed by @jacekprzybyl. **Full changelog:** https://github.com/softspark/ai-toolkit/compare/v5.4.2...v5.5.0
-
v5.4.2
GitHub ↗
原版更新说明
## What's Changed * fix(install): read state.json on native Windows by @jacekprzybyl in https://github.com/softspark/ai-toolkit/pull/39 * test: isolate USERPROFILE together with HOME on Windows by @jacekprzybyl in https://github.com/softspark/ai-toolkit/pull/41 **Full Changelog**: https://github.com/softspark/ai-toolkit/compare/v5.4.1...v5.4.2
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对医疗行业HIPAA合规需求,解决PHI暴露、审计日志、加密等具体问题
- 提供开发者模式和合规模式两种扫描策略,适应不同使用场景
- 支持多种输出格式和过滤选项,便于CI集成和日常使用
亮点
- 触发词精准完整,覆盖HIPAA、PHI、医疗合规、审计日志、BAA等核心术语
- 边界清晰,不易与其他安全工具混淆
亮点
- Phase/步骤清晰,分为运行扫描脚本、解释结果、编译报告三个阶段
- 包含详细的用法示例和输出格式说明
- frontmatter完整,包含所有必要元数据
待提升项
-
引用文件缺失 原报告严重程度:重大
SKILL.md引用了reference/scanner-categories.md、reference/hipaa-rules.md、reference/phi-identifiers.md等文件,但这些文件未传入
改进建议:请确保所有被引用的参考文档都包含在Skill包中,或移除对这些文件的引用
亮点
- 工具来源明确,使用scripts/hipaa_scan.py作为核心扫描引擎
- 覆盖主要异常情况,如无医疗上下文检测、语言检测警告等
- 只读模式确保不会意外修改文件,安全性高
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- external-api.example.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。