note-context
Skill101 starsChanged 16 days agoMITView on GitHub
Reads a signed encounter note into structured, cited clinical facts as the entry hop of the clinical-documentation-companion chain; if the note is unsigned or still a draft it halts and escalates to the clinician instead. Use when the user says \"pull the facts out of today's note\", \"structure this visit note\", \"what did the note actually document?\", \"start the documentation run for this encounter\" or \"set up the encounter context\". Do NOT use for drafting letters or summaries - use document-derive instead; do NOT use for measure status - use quality-gap-check instead; do NOT use to check whether the note supports a claim code - use coding-rationale instead; do NOT use to write a clinician handoff or sign-out - use handoff-draft instead.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- slashnote-app/claude-code-plugintheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- slashnote-app/claude-code-plugin★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository294 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- accessibility-passSkill
- accounting-root-skillSkill
- budget-and-forecastSkill
- financial-presentationsSkill
- financial-statementsSkill
- journal-entrySkill
- reconciliationSkill
- tax-preparationSkill
- acroform-writerSkill
- action-items-todoSkill
- agent-evaluation-designerSkill
- agent-harness-explorerSkill
- agent-performance-triageSkill
- agent-rai-impact-assessmentSkill
- agent-red-teamSkill
- ai-demo-assistantSkill
- ai-first-process-redesignSkill
- ai-usecase-assessmentSkill
- anonymised-case-study-writerSkill
- answer-researchSkill
- b2b-outreach-suiteSkill
- blog-content-auditorSkill
- blog-post-structure-passSkill
- booth-loop-videoSkill
- brand-template-enforcerSkill
- brand-voice-passSkill
- breathing-roomSkill
- browser-uat-analystSkill
- business-case-composerSkill
- business-osSkill
- call-for-speakers-digestSkill
- campaign-deck-builderSkill
- cim-teardownSkill
- company-profile-packSkill
- comps-analysisSkill
- coverage-meeting-prep-debriefSkill
- dd-checklistSkill
- document-diligenceSkill
- earnings-noteSkill
- ic-memoSkill
- merger-modelSkill
- pitch-deck-skeletonSkill
- case-preparation-briefSkill
- case-triageSkill
- chart-builderSkill
- classic-text-adventureSkill
- coding-rationaleSkill
- document-deriveSkill
- handoff-draftSkill
- quality-gap-checkSkill
- clipchamp-videoSkill
- clt-hr-assistantSkill
- commenting-contentSkill
- competitive-battlecard-builderSkill
- competitive-strategySkill
- conditional-chat-reminderSkill
- conference-session-abstract-packSkill
- content-quality-auditorSkill
- copilot-agent-advisorSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Start of every run - triggered by "pull the facts out of today's note", "structure this visit note", "what did the note actually …
- Very specific: line 27
If it fails, stop here: write only the halt record (Output Format) and escalate - no encounter, no note_facts (the contract does not …
- Very specific: line 41
When the note is silent on a key, record value: false with locator: "full note reviewed" and text stating the absence - absence is a …
- Distinctive: line 43
If the note's date is not the date the user called "today", say so in one line and use the note's date.
- Very specific: line 44
Write encounter, note_signature and note_facts to the contract (carry contract_version and claim through unchanged) and hand off to …
- Very specific: line 64
Every note_facts entry carries a citation naming the signed-note document and the line it came from, with the verbatim text quoted.
- Distinctive: line 70
Only run against a signed note.
- Distinctive: line 71
Never infer a fact not explicitly documented in the note, however clinically likely it seems.
- Distinctive: line 72
Never write a note_fact without a citation to satisfy a downstream skill or a requester.
- Distinctive: line 73
Never restate a requester's assertion ("the doctor probably looked") as a documented fact.
- Distinctive: line 74
Never write to the patient record - this skill only populates the contract.
- Very specific: line 76
If the note text is missing or unreadable, write halt{halted: "missing_input"} and ask for the note - never work from memory or from a …
- Very specific: line 78
If config/quality-measures.json cannot be read, stop and report it.
- Distinctive: line 79
If a line number cannot be determined, cite the section and quote the sentence.
- Very specific: line 81
If the note is unsigned, halt and escalate to routees.unsigned_note in config/escalation-policy.json.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Note Context
Purpose
Establish the documented, cited facts every downstream artefact and the quality-gap check depend on - or, for an unsigned note, stop the whole run and route it back to the clinician.
When to use
Start of every run - triggered by "pull the facts out of today's note", "structure this visit note", "what did the note actually document?", "start the documentation run". Also use it when the note turns out to be unsigned or a draft: this skill owns the halt-and-escalate for rule #5, so it must run so that the halt happens.
When NOT to Use
- Drafting a referral, after-visit summary or care plan - use document-derive instead.
- Explaining whether the note supports a code on the claim - use coding-rationale instead.
- Computing quality-measure status - use quality-gap-check instead.
- Writing a clinician handoff or sign-out note - use handoff-draft instead.
- Summarising a document that is not a clinical encounter note - use the built-in docx skill instead.
Inputs
Encounter note text with its signature line; problem and medication lists; orders and results; the claim block (if any); config/quality-measures.json; base/contracts/hls.clinical-documentation-companion.v1.json.
Steps
- Confirm the note is signed: an electronic-signature line naming the signer and time, or
note_signature.signed == trueon a supplied contract. A "draft", "pended" or unsigned note fails this check. If it fails, stop here: write only the halt record (Output Format) and escalate - no encounter, no note_facts (the contract does not requireencounterin an unsigned-note halt record). - Extract
encounter= {patient_id, visit_type, date} from the note header. - Build the fact-key list - do not guess key names:
a.
required_fact_keyof every measure in config/quality-measures.json; b.supported_byof everyclaim.elements[]entry; c. the document-derive facts:referral_indicated,active_medications,patient_instructions,follow_up_plan(one entry each; use the note's own wording incitation.text). - For each key write
"<fact_key>": {"value": <bool>, "citation": {"source": "<DocumentReference/...>", "locator": "<section, line N>", "text": "<verbatim sentence>"}}. For a single-finding key, quote the sentence that supports the fact, not the whole line. For the document-derive facts in 3c, also writestatements[]with one{text, citation}entry for every relevant sentence the note documents - every medication, every instruction, every follow-up item, the referral and its reason - so nothing a downstream draft needs is lost;citationthen repeats the first statement's citation. Never paraphrase a finding into existence. - When the note is silent on a key, record
value: falsewithlocator: "full note reviewed"and text stating the absence - absence is a documented absence, not an omission. - If the note's date is not the date the user called "today", say so in one line and use the note's date.
- Write
encounter,note_signatureandnote_factsto the contract (carrycontract_versionandclaimthrough unchanged) and hand off to document-derive, coding-rationale and quality-gap-check.
Output Format
Contract JSON only, sections: encounter{}, note_signature{}, note_facts{<key>: {value, citation{source,
locator, text}, statements[]?}}. On halt, instead: note_signature{signed: false, document_id}, halt{halted: "unsigned_note",
reason, skill: "note-context", routee} and one escalations[] string. No prose narrative, no clinical opinion.
Action level L0 - reads and structures only; nothing is written to the record.
Example
"foot_exam_documented": {"value": true, "citation": {"source": "DocumentReference/NOTE-91004-20260911",
"locator": "Objective, line 4", "text": "Diabetic foot exam performed today, monofilament testing intact bilaterally."}}
"active_medications": {"value": true, "citation": {"source": "DocumentReference/NOTE-91004-20260911",
"locator": "Plan, line 7", "text": "Continue metformin 1000 mg twice daily."},
"statements": [
{"text": "Continue metformin 1000 mg twice daily.", "citation": {"source": "DocumentReference/NOTE-91004-20260911",
"locator": "Plan, line 7", "text": "Continue metformin 1000 mg twice daily."}},
{"text": "Continue lisinopril 10 mg daily.", "citation": {"source": "DocumentReference/NOTE-91004-20260911",
"locator": "Plan, line 8", "text": "Continue lisinopril 10 mg daily."}}]}Grounding requirements
Every note_facts entry carries a citation naming the signed-note document and the line it came from, with the
verbatim text quoted; each statements[] entry carries its own citation the same way. Do not fabricate, infer, complete or "helpfully" normalise a finding: if it is not written in
the signed note it does not exist, and an uncited fact is not documented and can never make a measure met
(clinical-doc-rules.md #1). If you cannot cite it, do not write it.
Guardrails
Guardrails - all are hard stops:
- Only run against a signed note; never a draft, unsigned or verbal note - halt and escalate instead.
- Never infer a fact not explicitly documented in the note, however clinically likely it seems.
- Never write a note_fact without a citation to satisfy a downstream skill or a requester.
- Never restate a requester's assertion ("the doctor probably looked") as a documented fact.
- Never write to the patient record - this skill only populates the contract; a request to write back is refused.
Error Handling
- If the note text is missing or unreadable, write
halt{halted: "missing_input"}and ask for the note - never work from memory or from a previous encounter. - If config/quality-measures.json cannot be read, stop and report it; do not invent fact keys.
- If a line number cannot be determined, cite the section and quote the sentence; never cite a line you did not see.
Escalation / uncertainty
If the note is unsigned, halt and escalate to routees.unsigned_note in config/escalation-policy.json. If a needed finding is ambiguous or missing, record it as not documented and say so - never resolve the ambiguity yourself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

