charliehzm

26 mods across 1 repository, 85 stars between them.

medharness

01

charliehzm/medharness

Settings file Claude Code

A Claude Code settings file for governing how an organisation's medical-data traffic is handled, including access restrictions and auditing requirements.

85 2mo ago E tokens not measured original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill when scope ambiguity blocks progress in any SOP step (PRD, TDD, design, task decomposition). Produces a tight set of clarifying questions (max 5) that, once answered, unblock the next step. Avoids the failure mode where Agents proceed on assumption and produce wrong work. Chinese trigger examples…

85 2mo ago A 149 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step μ5 of the 5-step micro SOP to produce a lightweight MICROAUDIT.json (vs the full AUDITBUNDLE.tar.gz). Records diff hash, test result, MICROTAG, and writes to mcp-audit-log under eventtype microchangeseal. Chinese trigger examples: "micro 归档", "Step μ5", "轻量审计冻结". Do NOT use for full changes…

85 2mo ago A 120 tokens original Apache-2.0

audit-snapshot

04

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 12 of the v2 SOP, after a change has passed compliance review (Step 10) and any remediation (Step 11), to produce the AUDITBUNDLE.tar.gz that satisfies HIPAA / PIPL / 数据安全法 / 健康医疗数据 安全指南 6-year replayability requirements. Packages prompt history, code diff, compliance artifacts, test data…

85 2mo ago A 235 tokens original Apache-2.0

compliance-precheck

05

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at the very start of every OpenSpec change (Step 0) for a medical-data SaaS / data platform repository. It classifies the data tier (L1-L4) the change will touch, enumerates the minimal required fields, and produces a signed COMPLIANCETAG.md plus a MODELALLOWLIST.json that the mcp-model-router uses as a…

85 2mo ago A 220 tokens original Apache-2.0

compliance-review

06

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 10 of the v2 SOP, executed by the Compliance-Agent (whose backing model must be heterogeneous from the main orchestrator), to produce a COMPLIANCEREPORT.md for a change that has passed functional Verify and code review. Audits PHI handling, prompt-injection surface, model-call conformance to…

85 2mo ago A 205 tokens original Apache-2.0

memory-curate

07

charliehzm/medharness

Skill Claude CodeCodex

Use this skill on a weekly cadence and at every change archive to keep the project's tiered memory (MEMORY.md index + per-topic memory files + workspace artifacts under .memory/) coherent and fresh. Detects stale entries, merges duplicates, prunes superseded facts, refreshes the inference layer from the latest…

85 2mo ago A 207 tokens original Apache-2.0

mocking-stubbing

08

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 9 of the v2 SOP to run the change's tests against the stage-isolated synthetic mock data produced at Step 5. Handles fixture loading, mock service stand-up (DB / external APIs / LLM endpoints), runs the test pyramid (unit + integration + e2e where applicable), and produces a test result report.…

85 2mo ago A 155 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 6 of the v2 SOP to implement one task from the change's tasks/ directory at a time. Each invocation should produce a code diff for exactly one task document, touching ≤ 2 files, with prompts pre-routed through mcp-model-router and any L3/L4 text pre-desensitized via phi-desensitize. Updates the…

85 2mo ago A 179 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 3 (after openspec-new-change) to expand proposal / design / specs into implementation-ready content. Iteratively fills out the technical approach, data model, contract specs, test strategy, and risk table. Stop when the change is "implementation-ready": every spec has acceptance criteria, design…

85 2mo ago A 157 tokens original Apache-2.0

openspec-new-change

11

charliehzm/medharness

Skill Claude CodeCodex

The bootstrap step of an OpenSpec change. Sets up structure; content fills in the next step (openspec-continue-change).

85 2mo ago A 6 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 7 of the v2 SOP to verify that all tasks in the active OpenSpec change are implemented and align with their specs. Cross-checks tasks.md checkboxes against actual code presence, runs per-spec acceptance criteria as smoke tests where possible, and surfaces unimplemented artifacts. Verify is a…

85 2mo ago A 162 tokens original Apache-2.0

phi-desensitize

13

charliehzm/medharness

Skill Claude CodeCodex

Use this skill before any prompt, log message, error trace, test fixture, or external API call that may include patient health information (PHI) or personal identifying information (PII) in a medical-data SaaS context. Replaces sensitive tokens with reversible synthetic substitutes, emits a desensitize map…

85 2mo ago A 224 tokens original Apache-2.0

prd-author

14

charliehzm/medharness

Skill Claude CodeCodex

An older name for the prd skill, kept so existing workflows that refer to it still work. The prd skill is the replacement it points to.

85 2mo ago A 36 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 1 (PRD pre-check) and Step 2 (TDD alignment) of the v2 12-step SOP to find blockers and warnings in PRD / TDD before any implementation work begins. Produces a structured gap list pointing to missing scope boundaries, undefined acceptance criteria, unresolved cross-team dependencies, vague…

85 2mo ago A 192 tokens original Apache-2.0

prd-precheck

16

charliehzm/medharness

Skill Claude CodeCodex

An old name for a pre-implementation check skill; it now points users to prd-implementation-precheck. A PRD is a product requirements document describing what should be built.

85 2mo ago A 52 tokens original Apache-2.0

prd

17

charliehzm/medharness

Skill Claude CodeCodex

Companion to prd-implementation-precheck. Where precheck finds gaps, this skill fills them.

85 2mo ago A 3 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill (typically inside Reviewer-Agent or Compliance-Agent) to scan RAG retrieval results, external document content, tool call outputs, and user-provided text for prompt-injection patterns before they reach the main model context. Outputs a classification report and quarantines suspicious content. Chinese…

85 2mo ago B 142 tokens original Apache-2.0

quick-fix

19

charliehzm/medharness

Skill Claude CodeCodex

Use this skill for micro-changes (bugfix / docs / 小配置) that satisfy: ≤2 files changed, no L3/L4 PHI field touched, no new LLM call, no spec/design modification. This skill routes to the 5-step micro SOP instead of the full 12-step SOP. Auto-checks via scripts/soprouter.py; if any check fails, redirects to full SOP.…

85 2mo ago A 173 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 8 of the v2 SOP after Verify passes, to request and receive a code review from a Reviewer-Agent (or human reviewer). Packages the diff with context (task documents, specs, COMPLIANCETAG, design rationale), invokes the review, and iterates with systematic-debugging until all feedback is closed.…

85 2mo ago A 135 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Use this skill whenever a test fails, a code review surfaces a defect, or a bug is reported, to perform structured root-cause analysis rather than trial-and-error patches. Walks symptom → narrow → reproduce → minimal repro → root cause → fix → regression test. Outputs a debug log entry that feeds into Memory and…

85 2mo ago A 151 tokens original Apache-2.0

task-decomposition

22

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at Step 4 of the v2 SOP to decompose an OpenSpec change's tasks.md into atomic, prioritized, single-document, ≤2-file-change tasks. Enforces strict separation of frontend vs backend tracks, Chinese naming for task documents, and explicit dependency order. Each task gets its own task document under…

85 2mo ago A 159 tokens original Apache-2.0

tdd-alignment

23

charliehzm/medharness

Skill Claude CodeCodex

Use this skill at SOP Step 2 to verify and align a Technical Design Document (TDD) with the final PRD: checks every PRD-stated acceptance criterion has a corresponding test/verification approach, every named stage in PRD has a TDD validation strategy, and every L3/L4 data field has a desensitization / audit step…

85 2mo ago A 190 tokens original Apache-2.0

charliehzm/medharness

Skill Claude CodeCodex

Generates fixtures the change can be tested against, with the strong invariant: never reversible to real patients.

85 2mo ago A 5 tokens original Apache-2.0