medharness: Skill for Claude Code

.claude/skills/audit-snapshot-micro/SKILL.md

audit-snapshot-micro is a skill for Claude Code from charliehzm/medharness. It costs 120 tokens per session (700 once invoked), scanned A, original, Apache-2.0.

A small audit record for a minor code change. It stores the change's file hash, test result, developer, and a receipt from the audit log.

In plain words
What is it for?
Use it after a small change to create MICRO_AUDIT.json, calculate a SHA-256 hash of the Git diff, record simplified test output, and append an event to the audit log.
Why use it?
It provides a lightweight record without creating the much larger archive used for major changes. It helps verify later that the recorded diff and test result match the actual change.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is charliehzm/medharness's own configuration. It tells Claude Code how to work on medharness itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything medharness configures →

Reuse

Borrowing it

Nothing to install: this file belongs to charliehzm/medharness. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/charliehzm/medharness/main/.claude/skills/audit-snapshot-micro/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/charliehzm/medharness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-snapshot-micro

README.md
[![agentmods](https://agentmods.dev/badge/skills/charliehzm/medharness/audit-snapshot-micro/github.svg)](https://agentmods.dev/skills/charliehzm/medharness/audit-snapshot-micro)
Your own site
<a href="https://agentmods.dev/skills/charliehzm/medharness/audit-snapshot-micro"><img src="https://agentmods.dev/badge/skills/charliehzm/medharness/audit-snapshot-micro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-snapshot-micro

Your own site · 80×15
<a href="https://agentmods.dev/skills/charliehzm/medharness/audit-snapshot-micro"><img src="https://agentmods.dev/badge/skills/charliehzm/medharness/audit-snapshot-micro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00120 $0.00700
Opus 5 $0.00060 $0.00350
Sonnet 5 $0.00024 $0.00140
Haiku 4.5 $0.00012 $0.00070

Measured 12d ago against content hash d85a677abab2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

audit-snapshot-micro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/audit-snapshot-micro/SKILL.md · 76 lines

What it actually says

Audit Snapshot · Micro 版

输出

MICRO_AUDIT.json(路径:紧靠 micro-change 的相关 PR 或 micro 目录):

{
  "schema_version": "1.0",
  "type": "micro_change",
  "change_name": "...",
  "files_changed": ["..."],
  "diff_sha256": "sha256:...",
  "test_result": "PASS|FAIL",
  "test_summary": {"unit": N, "passed": N},
  "developer": "...",
  "parent_change": "openspec/changes/<...>",  // optional
  "archived_at": "ISO-8601",
  "mcp_audit_log_receipt": {
    "row_id": "...",
    "self_hash": "sha256:..."
  }
}

流程

  1. 计算 diff 的 sha256(git diff --no-color)
  2. 收集 test 输出(pytest / npm test 简化输出)
  3. mcp-audit-log append (event_type: micro_change_seal
  4. 写 MICRO_AUDIT.json 到 PR 关联位置

与完整版的差别

audit-snapshot (12 步) audit-snapshot-micro
Bundle tar.gz(含 prompts/changes/lineage/...) 单 JSON
大小 平均 87MB < 5KB
Hash 链 内部哈希链 + ROOT_SHA256 单 diff_sha256
WORM seal_bundle 端点 append 普通 event
重放 4 小时可重放 不要求完整重放
保留 6 年 6 年(同)

不允许

  • 用 micro 包装大型变更(先 sop_router 校验)
  • 跳过 mcp-audit-log
  • 自定义 schema 字段(必须按上表)

抽查

Compliance Officer 月度抽 10%:

  • diff_sha256 与 git 实际 diff 比对
  • test_result 与 CI 历史核对
  • 发现伪声明 → 涉事开发者培训 + 通道使用资格暂停 1 月
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 76 lines · 120 tokens per session scan A d85a677abab2

Subscribe to this mod's changes

audit-snapshot-micro is a skill published in the GitHub repository charliehzm/medharness (86 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 120 tokens to every session and 700 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hipaa-review

Performs a HIPAA Security Rule compliance review against all Administrative, Physical, and Technical Safeguards defined in 45 CFR Part 164, Subpart C. Auto-invoked when discussing healthcare data security, ePHI protection, HIPAA audit readiness, or business associate compliance. Evaluates required and addressable…

UnitOneAI/SecuritySkills · 86 tokens

HIPAA Compliance Testing

Testing HIPAA compliance for healthcare applications including PHI handling, audit logging, access controls, and data encryption verification.

PramodDutta/qaskills · 28 tokens

Healthcare Compliance

HIPAA compliance, healthcare regulations, privacy and security standards for medical organizations and providers.

jmsktm/claude-settings · 19 tokens

compliance

Use when scoping which regulatory frameworks bind a business — SOC 2, ISO 27001, HIPAA, PCI DSS, EU AI Act, DORA, NIS2 — building a control register with owners and evidence, or standing up the cadence that keeps it audit-ready. NOT drafting privacy-policy/ROPA/DPA or ToS text (that is gdpr-privacy, terms-conditions)…

ericrisco/rsc-harness · 96 tokens

healthcare-expert

Expert-level healthcare systems, medical informatics, HIPAA compliance, and health data standards. Use when the user mentions medical, HIPAA, HL7, FHIR, or EHR, or when the task involves Healthcare IT, Standards and Protocols, Regulatory Compliance, or Security and Compliance.

personamanagmentlayer/pcl · 64 tokens

performing-soc2-type2-audit-preparation

Automates SOC 2 Type II audit preparation including gap assessment against AICPA Trust Services Criteria (CC1-CC9), evidence collection from cloud providers and identity systems, control testing validation, remediation tracking, and continuous compliance monitoring. Covers all five TSC categories (Security…

adriannoes/awesome-agentic-ai · 112 tokens