Skill Tracer
Skills › Scientific Agent Skills › treatment-plans

treatment-plans

skill · 204 lines · MIT · skills/treatment-plans/SKILL.md

The facts

Its description

Formats and structurally validates local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and release gates—not for clinical decision-making.

The description the agent reads to decide when to use it.

From its settingsline 3

Runs scripts

python3 scripts/generate_template.py, python3 scripts/validate_treatment_plan.py, python3 scripts/validate_traceability.py, python3 scripts/check_completeness.py, python3 scripts/privacy_process_check.py (first 5 of 7 lines)

Scripts the text names. Found by matching words, so treat them as pointers.

Found by matching wordsline 88 line 112 line 113 line 114 line 115

Files it mentions

assets/source_fact_manifest_template.json, assets/clinician_authored_intervention_template.json, assets/goals_monitoring_checkpoint_template.json, assets/informed_preference_shared_decision_template.json, assets/transition_reconciliation_template.json (first 5 of 17 lines)

Files the text names, such as ones to read or write. Found by matching words, so treat them as pointers.

Found by matching wordsline 62 line 63 line 64 line 65 line 66

Licence

MIT, from the skill file

The terms its author shares it under, which let it be shown here.

From its settingsline 4 licence text

Other settings

compatibility: Python 3.11+ standard library; local JSON files only. Bundled CLIs require no network, external services, models, images, credentials, environment variables, or third-party packages. metadata: version: "2.4" last-reviewed: "2026-10-01" skill-author: K-Dense Inc.

More settings at the top of the file, shown as written.

From its settingsline 5 line 6
Other files in this skill (22) Close

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: treatment-plans
3description: Formats and structurally validates local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and release gates—not for clinical decision-making.
4license: MIT
5compatibility: Python 3.11+ standard library; local JSON files only. Bundled CLIs require no network, external services, models, images, credentials, environment variables, or third-party packages.
6metadata:
7 version: "2.4"
8 last-reviewed: "2026-10-01"
9 skill-author: K-Dense Inc.
10---
12# Treatment-Plan Documentation

Treatment-Plan Documentation

Raw lines 1 to 13
14## Hard safety boundary
16This skill only **formats and validates documentation of decisions already made, supplied, and verified by authorized licensed professionals**.
18Never use it to:
20- diagnose, assess, classify, or screen a person;
21- select, rank, recommend, substitute, or compare therapies;
22- choose a medication, dose, route, frequency, duration, or monitoring threshold;
23- start, stop, hold, resume, titrate, taper, or deprescribe anything;
24- check interactions, allergies, contraindications, organ-function suitability, or treatment eligibility;
25- infer missing clinical content, intervals, dates, targets, escalation criteria, or instructions;
26- triage, determine urgency, provide emergency advice, or create a safety plan;
27- predict outcomes, prognosis, response, benefit, harm, or clinical appropriateness;
28- replace medication reconciliation, pharmacist review, informed consent, clinician review, or an authorized clinical system;
29- claim FDA approval, HIPAA compliance, legal compliance, completeness of care, clinical safety, or standard-of-care conformity.
31If a request crosses a boundary, stop. Ask for a locally verified clinician-authored record or route the matter to the responsible licensed professional. Do not redirect to another skill to obtain a patient-specific recommendation.
33If a concern may be urgent or emergent, stop this workflow and route it through the institution's current clinical escalation or emergency process. This skill does not decide urgency and does not provide emergency instructions.

Hard safety boundary

This skill only formats and validates documentation of decisions already made, supplied, and verified by authorized licensed professionals.

Never use it to:

  • diagnose, assess, classify, or screen a person;
  • select, rank, recommend, substitute, or compare therapies;
  • choose a medication, dose, route, frequency, duration, or monitoring threshold;
  • start, stop, hold, resume, titrate, taper, or deprescribe anything;
  • check interactions, allergies, contraindications, organ-function suitability, or treatment eligibility;
  • infer missing clinical content, intervals, dates, targets, escalation criteria, or instructions;
  • triage, determine urgency, provide emergency advice, or create a safety plan;
  • predict outcomes, prognosis, response, benefit, harm, or clinical appropriateness;
  • replace medication reconciliation, pharmacist review, informed consent, clinician review, or an authorized clinical system;
  • claim FDA approval, HIPAA compliance, legal compliance, completeness of care, clinical safety, or standard-of-care conformity.

If a request crosses a boundary, stop. Ask for a locally verified clinician-authored record or route the matter to the responsible licensed professional. Do not redirect to another skill to obtain a patient-specific recommendation.

If a concern may be urgent or emergent, stop this workflow and route it through the institution's current clinical escalation or emergency process. This skill does not decide urgency and does not provide emergency instructions.

Raw lines 14 to 34
35## Required visible notice
37Every component and derived schedule must display:
39> **DRAFT — NOT MEDICAL ADVICE — DOCUMENTATION-ONLY — AUTHORIZED CLINICIAN SIGN-OFF REQUIRED**
41Structural success never removes this notice. Only the authorized local workflow may set the release gate.

Required visible notice

Every component and derived schedule must display:

DRAFT — NOT MEDICAL ADVICE — DOCUMENTATION-ONLY — AUTHORIZED CLINICIAN SIGN-OFF REQUIRED

Structural success never removes this notice. Only the authorized local workflow may set the release gate.

Raw lines 35 to 42
43## Data gate
45Prefer synthetic or qualified de-identified structured manifests. Do not place patient names, medical-record numbers, contact details, dates of birth, addresses, free-text notes, images, or other direct identifiers in examples.
47For any real-patient or patient-derived data:
491. Work only in a locally authorized environment under the institution's current privacy, security, retention, and access policies.
502. Use the minimum information necessary for the documented purpose, even when a legal exception may apply.
513. Do not send content to a model, search engine, API, image service, telemetry service, or any other external tool.
524. Do not copy content into chat prompts, command history, logs, test fixtures, examples, screenshots, or reports.
535. Run bundled scripts only against local paths. Their reports identify rule codes and field paths, not clinical values.
546. Require qualified privacy review before treating patient-derived material as de-identified or releasing it.
56If these conditions are not documented, do not read or process the content. Use synthetic templates only.

Data gate

Prefer synthetic or qualified de-identified structured manifests. Do not place patient names, medical-record numbers, contact details, dates of birth, addresses, free-text notes, images, or other direct identifiers in examples.

For any real-patient or patient-derived data:

  1. Work only in a locally authorized environment under the institution's current privacy, security, retention, and access policies.
  2. Use the minimum information necessary for the documented purpose, even when a legal exception may apply.
  3. Do not send content to a model, search engine, API, image service, telemetry service, or any other external tool.
  4. Do not copy content into chat prompts, command history, logs, test fixtures, examples, screenshots, or reports.
  5. Run bundled scripts only against local paths. Their reports identify rule codes and field paths, not clinical values.
  6. Require qualified privacy review before treating patient-derived material as de-identified or releasing it.

If these conditions are not documented, do not read or process the content. Use synthetic templates only.

Raw lines 43 to 57
58## Allowed inputs
60Accept only bounded UTF-8 JSON objects built from these generic templates:
69The templates contain no disease-specific recommendations, example patients, clinical intervals, doses, targets, thresholds, or inferred care pathways. Empty template arrays and pending attestations are intentional release blockers.

Allowed inputs

Accept only bounded UTF-8 JSON objects built from these generic templates:

The templates contain no disease-specific recommendations, example patients, clinical intervals, doses, targets, thresholds, or inferred care pathways. Empty template arrays and pending attestations are intentional release blockers.

Raw lines 58 to 70
71## Workflow
73### 1. Establish authority and intended use
75- Confirm the accountable clinical owner and authorized licensed signatory.
76- Confirm that every clinical decision already exists in a verified local source.
77- Record jurisdiction, institution, setting, document owner, local policies, retention rule, and intended recipients.
78- Record whether the package is synthetic, qualified de-identified, or real-patient minimum-necessary data.
79- Keep the release gate `blocked` until every required review is complete.
81Read `references/safety_scope.md` and `references/privacy_governance.md` before processing patient-derived material.

1. Establish authority and intended use

  • Confirm the accountable clinical owner and authorized licensed signatory.
  • Confirm that every clinical decision already exists in a verified local source.
  • Record jurisdiction, institution, setting, document owner, local policies, retention rule, and intended recipients.
  • Record whether the package is synthetic, qualified de-identified, or real-patient minimum-necessary data.
  • Keep the release gate blocked until every required review is complete.

Read references/safety_scope.md and references/privacy_governance.md before processing patient-derived material.

Raw lines 73 to 82
83### 2. Generate a generic package
85Run the following commands from the skill directory (`skills/treatment-plans` in this repository). The generated files are JSON, with no PDF, LaTeX, or rendered clinical plan.
87```bash
88python3 scripts/generate_template.py \
89 --output-dir ./local-plan-package \
90 --subject-ref SYNTHETIC-CASE-001 \
91 --classification synthetic
92```
94The generator copies all six templates. It does not create clinical content and does not overwrite existing files.

2. Generate a generic package

Run the following commands from the skill directory (skills/treatment-plans in this repository). The generated files are JSON, with no PDF, LaTeX, or rendered clinical plan.

python3 scripts/generate_template.py \
  --output-dir ./local-plan-package \
  --subject-ref SYNTHETIC-CASE-001 \
  --classification synthetic

The generator copies all six templates. It does not create clinical content and does not overwrite existing files.

Raw lines 83 to 95
Runs code python3 scripts/generate_template.py :88
96### 3. Transcribe supplied decisions without inference
98- Copy only clinician-authored facts and interventions from verified local sources.
99- Preserve source locators, versions/dates, author role, verification role, and verification time.
100- Record goals, monitoring items, checkpoint dates, and transition dates exactly as supplied.
101- Record options, benefits, harms, uncertainty, preferences, and the outcome only as documented by the responsible clinician.
102- Leave missing fields unresolved. Never fill them from general knowledge.
103- For medication content, record the clinician-authored text and current local source references; do not interpret or validate it.

3. Transcribe supplied decisions without inference

  • Copy only clinician-authored facts and interventions from verified local sources.
  • Preserve source locators, versions/dates, author role, verification role, and verification time.
  • Record goals, monitoring items, checkpoint dates, and transition dates exactly as supplied.
  • Record options, benefits, harms, uncertainty, preferences, and the outcome only as documented by the responsible clinician.
  • Leave missing fields unresolved. Never fill them from general knowledge.
  • For medication content, record the clinician-authored text and current local source references; do not interpret or validate it.

See references/documentation_workflow.md, references/source_boundaries.md, and references/shared_decision_handoff.md.

Raw lines 96 to 106
107### 4. Run deterministic local checks
109From the skill directory:
111```bash
112python3 scripts/validate_treatment_plan.py ./local-plan-package
113python3 scripts/validate_traceability.py ./local-plan-package
114python3 scripts/check_completeness.py ./local-plan-package
115python3 scripts/privacy_process_check.py ./local-plan-package
116python3 scripts/check_consistency.py ./local-plan-package
117python3 scripts/timeline_generator.py ./local-plan-package \
118 --output ./local-plan-package/explicit-date-schedule.json
119```
121The scripts:
123- reject URL/UNC path syntax, leaf symlinks, duplicate JSON keys, unknown fields, oversized inputs, excessive nesting, and unbounded collections;
124- have no network client, credential lookup, dynamic execution, pickle, subprocess, image, or LLM processing;
125- never assess diagnosis, medication safety, interactions, contraindications, clinical appropriateness, urgency, prognosis, or guideline concordance;
126- schedule only dates already supplied in a structurally consistent package and never derive recurrence or clinical intervals;
127- minimize reports to counts, rule codes, document types, and field paths.
129The checks validate declared fields; they cannot authenticate a signature, professional authority, completed review, or source content. `check_completeness.py` reports `documentation_declarations_complete` and always reports `handoff_authorized_by_script: false`. This replaces the misleading prior `ready_for_authorized_documentation_handoff` output key.
131Date fields require `YYYY-MM-DD`; timestamps require `YYYY-MM-DDTHH:MM:SS[.ffffff]Z` or a numeric `±HH:MM` offset. Schedule dates retain the supplied local calendar date, without timezone conversion. Treat the schedule with the same data controls as its source package.
133Use trusted local directories. Path syntax checks cannot detect mounted network volumes, cloud sync, backup/telemetry agents, or concurrent filesystem changes; the operator must verify the environment. File publication uses hard links to prevent replacement of a concurrently created destination; unsupported filesystems fail. Generation is not a six-file transaction, so a failed run may leave a partial directory that must not be treated as a complete package.

4. Run deterministic local checks

From the skill directory:

python3 scripts/validate_treatment_plan.py ./local-plan-package
python3 scripts/validate_traceability.py ./local-plan-package
python3 scripts/check_completeness.py ./local-plan-package
python3 scripts/privacy_process_check.py ./local-plan-package
python3 scripts/check_consistency.py ./local-plan-package
python3 scripts/timeline_generator.py ./local-plan-package \
  --output ./local-plan-package/explicit-date-schedule.json

The scripts:

  • reject URL/UNC path syntax, leaf symlinks, duplicate JSON keys, unknown fields, oversized inputs, excessive nesting, and unbounded collections;
  • have no network client, credential lookup, dynamic execution, pickle, subprocess, image, or LLM processing;
  • never assess diagnosis, medication safety, interactions, contraindications, clinical appropriateness, urgency, prognosis, or guideline concordance;
  • schedule only dates already supplied in a structurally consistent package and never derive recurrence or clinical intervals;
  • minimize reports to counts, rule codes, document types, and field paths.

The checks validate declared fields; they cannot authenticate a signature, professional authority, completed review, or source content. check_completeness.py reports documentation_declarations_complete and always reports handoff_authorized_by_script: false. This replaces the misleading prior ready_for_authorized_documentation_handoff output key.

Date fields require YYYY-MM-DD; timestamps require YYYY-MM-DDTHH:MM:SS[.ffffff]Z or a numeric ±HH:MM offset. Schedule dates retain the supplied local calendar date, without timezone conversion. Treat the schedule with the same data controls as its source package.

Use trusted local directories. Path syntax checks cannot detect mounted network volumes, cloud sync, backup/telemetry agents, or concurrent filesystem changes; the operator must verify the environment. File publication uses hard links to prevent replacement of a concurrently created destination; unsupported filesystems fail. Generation is not a six-file transaction, so a failed run may leave a partial directory that must not be treated as a complete package.

Raw lines 107 to 134
Runs code python3 scripts/validate_treatment_plan.py :112
Runs code python3 scripts/validate_traceability.py :113
Runs code python3 scripts/check_completeness.py :114
Runs code python3 scripts/privacy_process_check.py :115
Runs code python3 scripts/check_consistency.py :116
Runs code python3 scripts/timeline_generator.py :117
135### 5. Human review and release
137Require the accountable authorized team to:
139- compare every transcribed item with its signed source;
140- perform medication reconciliation and all clinical checks in approved systems;
141- verify current FDA labeling, Medication Guide, REMS materials, and local formulary/policy when applicable;
142- resolve every discrepancy and missing item;
143- review shared-decision and informed-preference documentation;
144- review transition recipients, ownership, pending results, and local escalation routing;
145- complete privacy, security, legal, regulatory, records, and institutional review as applicable;
146- sign, date, and release through the authorized record system.
148The final handoff must retain provenance and unresolved-item routing. A script pass is not authorization to use the package for care.
150For a correction after sign-off, preserve the prior authorized version, identify the amendment and its author/date in the local records workflow, update source verification, and repeat checks and sign-off. Do not silently overwrite the prior record or carry its release approval forward. Apply jurisdiction-specific amendment rules only after the authorized records team confirms their applicability.

5. Human review and release

Require the accountable authorized team to:

  • compare every transcribed item with its signed source;
  • perform medication reconciliation and all clinical checks in approved systems;
  • verify current FDA labeling, Medication Guide, REMS materials, and local formulary/policy when applicable;
  • resolve every discrepancy and missing item;
  • review shared-decision and informed-preference documentation;
  • review transition recipients, ownership, pending results, and local escalation routing;
  • complete privacy, security, legal, regulatory, records, and institutional review as applicable;
  • sign, date, and release through the authorized record system.

The final handoff must retain provenance and unresolved-item routing. A script pass is not authorization to use the package for care.

For a correction after sign-off, preserve the prior authorized version, identify the amendment and its author/date in the local records workflow, update source verification, and repeat checks and sign-off. Do not silently overwrite the prior record or carry its release approval forward. Apply jurisdiction-specific amendment rules only after the authorized records team confirms their applicability.

Raw lines 135 to 151
152## Source boundaries
154- Use FDA labeling databases, current Medication Guides, and REMS materials as authoritative source records only when an authorized clinician or pharmacist verifies applicability. This skill does not interpret them.
155- Use WHO or Joint Commission transition guidance only for process structure such as information transfer, reconciliation documentation, ownership, and checklists.
156- Use AHRQ, NICE, or applicable professional guidance to document that shared decision-making occurred; do not generate options or risk estimates.
157- Apply CMS documentation requirements only when the exact program, provider type, jurisdiction, and current local policy are confirmed.
158- Route safety events, product reports, privacy incidents, and other reportable matters through current local governance. This skill records a route; it does not submit reports.
160See `references/source_ledger.md` for the dated official-source ledger.

Source boundaries

  • Use FDA labeling databases, current Medication Guides, and REMS materials as authoritative source records only when an authorized clinician or pharmacist verifies applicability. This skill does not interpret them.
  • Use WHO or Joint Commission transition guidance only for process structure such as information transfer, reconciliation documentation, ownership, and checklists.
  • Use AHRQ, NICE, or applicable professional guidance to document that shared decision-making occurred; do not generate options or risk estimates.
  • Apply CMS documentation requirements only when the exact program, provider type, jurisdiction, and current local policy are confirmed.
  • Route safety events, product reports, privacy incidents, and other reportable matters through current local governance. This skill records a route; it does not submit reports.

See references/source_ledger.md for the dated official-source ledger.

Raw lines 152 to 161
Reads a file references/source_ledger.md :160
162## Verification
164From the repository root:
166```bash
167PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover \
168 -s tests/treatment-plans -p 'test_*.py' -v
169```
171From the skill directory, run AST parsing without bytecode:
173```bash
174PYTHONDONTWRITEBYTECODE=1 python3 -c \
175 "import ast,pathlib; [ast.parse(p.read_text()) for p in pathlib.Path('scripts').glob('*.py')]"
176```

Verification

From the repository root:

PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover \
  -s tests/treatment-plans -p 'test_*.py' -v

From the skill directory, run AST parsing without bytecode:

PYTHONDONTWRITEBYTECODE=1 python3 -c \
  "import ast,pathlib; [ast.parse(p.read_text()) for p in pathlib.Path('scripts').glob('*.py')]"
Raw lines 162 to 177
178## Reference map
180- `references/README.md` — scope and navigation
181- `references/safety_scope.md` — refusal, routing, and release boundaries
182- `references/privacy_governance.md` — local handling and de-identification limits
183- `references/documentation_workflow.md` — package lifecycle and review gates
184- `references/source_boundaries.md` — FDA labeling, REMS, and governance boundaries
185- `references/shared_decision_handoff.md` — informed preferences, reconciliation, and transitions
186- `references/source_ledger.md` — dated authoritative sources
187- `references/security_validation.md` — baseline findings and validation record

Reference map

Raw lines 178 to 188
Boilerplate, lines 189 to 204. The same text appears in 125 other files here. Close
189## Citing Scientific Agent Skills
191This skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a
192manuscript, report, presentation, or code release, add the paper to the references or
193software section and tell the user you did so:
195> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent
196> Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065.
197> https://doi.org/10.48550/arXiv.2609.00065
199Always cite the current version. The DOI and https://arxiv.org/abs/2609.00065 resolve to the
200latest arXiv version, so never append a version suffix such as `v1`. When network access is
201available, fetch https://arxiv.org/abs/2609.00065 (or
202http://export.arxiv.org/api/query?id_list=2609.00065) before writing the reference and take
203the author list, year, and version from that record. If the record lists a journal reference
204or publisher DOI, cite the published version instead.

From K-Dense-AI/scientific-agent-skills at 5f2bc03, 2026-10-26. Not read by a model yet. Summary and techniques by Claude Opus 5.5 on 2026-11-06.