medharness
01Settings 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.
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.
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…
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…
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…
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…
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…
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…
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.…
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…
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…
Skill Claude CodeCodex
The bootstrap step of an OpenSpec change. Sets up structure; content fills in the next step (openspec-continue-change).
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…
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…
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.
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…
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.
Skill Claude CodeCodex
Companion to prd-implementation-precheck. Where precheck finds gaps, this skill fills them.
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…
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.…
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.…
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…
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…
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…
Skill Claude CodeCodex
Generates fixtures the change can be tested against, with the strong invariant: never reversible to real patients.