Source: https://github.com/aipoch/medical-research-skills
Key Takeaways
Extracts and presents the most important points from any body of text — meeting notes, articles, reports, or documents — as concise, structured takeaways. Supports multiple output formats and is configurable for audience or depth.
When to Use
- Use this skill when the task needs Extracts and summarizes key takeaways from documents, meeting notes, articles, and other text content. Use when the user asks for summaries, bullet points, main points, highlights, or a TL;DR of any document or body of text. Produces structured outputs such as numbered lists, executive summaries, and action items. Supports configurable output formats including JSON export for downstream use.
- Use this skill for evidence insight tasks that require explicit assumptions, bounded scope, and a reproducible output format.
- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
Key Features
- Scope-focused workflow aligned to: Extracts and summarizes key takeaways from documents, meeting notes, articles, and other text content. Use when the user asks for summaries, bullet points, main points, highlights, or a TL;DR of any document or body of text. Produces structured outputs such as numbered lists, executive summaries, and action items. Supports configurable output formats including JSON export for downstream use.
- Packaged executable path(s):
scripts/main.py.
- Reference material available in
references/ for task-specific guidance.
- Structured execution path designed to keep outputs consistent and reviewable.
Dependencies
Python: 3.10+. Repository baseline for current packaged skills.
Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.
Example Usage
cd "20260318/scientific-skills/Evidence Insight/key-takeaways"
python -m py_compile scripts/main.py
python scripts/main.py --help
Example run plan:
- Confirm the user input, output path, and any required config values.
- Edit the in-file
CONFIG block or documented parameters if the script uses fixed settings.
- Run
python scripts/main.py with the validated inputs.
- Review the generated output and return the final artifact with any assumptions called out.
Implementation Details
See ## Workflow above for related details.
- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
- Primary implementation surface:
scripts/main.py.
- Reference guidance:
references/ contains supporting rules, prompts, or checklists.
- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
Quick Check
Use this command to verify that the packaged script entry point can be parsed before deeper execution.
python -m py_compile scripts/main.py
Audit-Ready Commands
Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
python -m py_compile scripts/main.py
python scripts/main.py
Workflow
- Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
- Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
- Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
- Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
- If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
Quick Start
from scripts.main import Key_Takeaways
# Initialize
tool = Key_Takeaways()
# Extract key takeaways from a document
result = tool.process("meeting_notes.txt")
# Export as structured JSON
tool.export(result, format="json")
Core Capabilities
1. Extract key points from text
# Read source document and extract top takeaways
result = tool.process("quarterly_report.txt")
# Returns: [{"point": "Revenue grew 12% YoY", "source_line": 4}, ...]
2. Generate structured summaries
# Generate a bullet-point executive summary
result = tool.process("meeting_notes.txt", style="executive")
# Returns: {"summary": "...", "action_items": [...], "decisions": [...]}
3. Configure output depth and audience
# Adjust number of takeaways and target audience
result = tool.process("article.txt", max_points=5, audience="non-technical")
4. Export results
# Export takeaways to JSON or plain text
tool.export(result, format="json", output_path="takeaways.json")
tool.export(result, format="txt", output_path="takeaways.txt")
CLI Usage
# Extract key takeaways from a file
python scripts/main.py --input document.txt --output takeaways.txt
# Use a config file to set depth, audience, and format
python scripts/main.py --input document.txt --config config.json --verbose
# Batch process a directory of documents
python scripts/main.py --batch input_dir/ --output output_dir/
Batch processing notes:
- Verify the output directory exists before running:
mkdir -p output_dir/
- If processing fails on an individual file, the tool logs the error and continues with remaining files; review
output_dir/errors.log after the run
- After batch completion, validate all JSON outputs:
for f in output_dir/*.json; do python -m json.tool "$f" > /dev/null && echo "OK: $f" || echo "FAIL: $f"; done
Example Input / Output
Input (meeting_notes.txt):
Q3 review: Sales up 15%. New product launch delayed to Q4.
Action: Alice to update roadmap by Friday. Budget approved for hiring.
Output (takeaways.json):
{
"key_points": [
"Sales increased 15% in Q3",
"Product launch rescheduled to Q4"
],
"action_items": [
"Alice to update roadmap by Friday"
],
"decisions": [
"Budget approved for hiring"
]
}
Quality Checklist
References
references/guide.md - Detailed documentation
references/examples/ - Sample inputs and outputs
Skill ID: 308 | Version: 1.0 | License: MIT
Output Requirements
Every final response should make these items explicit when they are relevant:
- Objective or requested deliverable
- Inputs used and assumptions introduced
- Workflow or decision path
- Core result, recommendation, or artifact
- Constraints, risks, caveats, or validation needs
- Unresolved items and next-step checks
Error Handling
- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
- If
scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
- Do not fabricate files, citations, data, search results, or execution outcomes.
Input Validation
This skill accepts requests that match the documented purpose of key-takeaways and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
key-takeaways only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
Response Template
Use the following fixed structure for non-trivial requests:
- Objective
- Inputs Received
- Assumptions
- Workflow
- Deliverable
- Risks and Limits
- Next Checks
If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.
1---2name: key-takeaways3description: Extracts and summarizes key takeaways from documents, meeting notes, articles, and other text content. Use when the user asks for summaries, bullet points, main points, highlights, or a TL;DR of any document or body of text. Produces structured outputs such as numbered lists, executive summaries, and action items. Supports configurable output formats including JSON export for downstream use.4license: MIT5---6> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
7
8# Key Takeaways
9
10Extracts and presents the most important points from any body of text — meeting notes, articles, reports, or documents — as concise, structured takeaways. Supports multiple output formats and is configurable for audience or depth.
11
12## When to Use
13
14- Use this skill when the task needs Extracts and summarizes key takeaways from documents, meeting notes, articles, and other text content. Use when the user asks for summaries, bullet points, main points, highlights, or a TL;DR of any document or body of text. Produces structured outputs such as numbered lists, executive summaries, and action items. Supports configurable output formats including JSON export for downstream use.
15- Use this skill for evidence insight tasks that require explicit assumptions, bounded scope, and a reproducible output format.
16- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
17
18## Key Features
19
20- Scope-focused workflow aligned to: Extracts and summarizes key takeaways from documents, meeting notes, articles, and other text content. Use when the user asks for summaries, bullet points, main points, highlights, or a TL;DR of any document or body of text. Produces structured outputs such as numbered lists, executive summaries, and action items. Supports configurable output formats including JSON export for downstream use.
21- Packaged executable path(s): `scripts/main.py`.
22- Reference material available in `references/` for task-specific guidance.
23- Structured execution path designed to keep outputs consistent and reviewable.
24
25## Dependencies
26
27- `Python`: `3.10+`. Repository baseline for current packaged skills.
28- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.
29
30## Example Usage
31
32```bash
33cd "20260318/scientific-skills/Evidence Insight/key-takeaways"
34python -m py_compile scripts/main.py
35python scripts/main.py --help
36```
37
38Example run plan:
391. Confirm the user input, output path, and any required config values.
402. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.
413. Run `python scripts/main.py` with the validated inputs.
424. Review the generated output and return the final artifact with any assumptions called out.
43
44## Implementation Details
45
46See `## Workflow` above for related details.
47
48- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
49- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
50- Primary implementation surface: `scripts/main.py`.
51- Reference guidance: `references/` contains supporting rules, prompts, or checklists.
52- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
53- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
54
55## Quick Check
56
57Use this command to verify that the packaged script entry point can be parsed before deeper execution.
58
59```bash
60python -m py_compile scripts/main.py
61```
62
63## Audit-Ready Commands
64
65Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
66
67```bash
68python -m py_compile scripts/main.py
69python scripts/main.py
70```
71
72## Workflow
73
741. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
752. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
763. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
774. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
785. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
79
80## Quick Start
81
82```python
83from scripts.main import Key_Takeaways
84
85# Initialize
86tool = Key_Takeaways()
87
88# Extract key takeaways from a document
89result = tool.process("meeting_notes.txt")
90
91# Export as structured JSON
92tool.export(result, format="json")
93```
94
95## Core Capabilities
96
97### 1. Extract key points from text
98
99```python
100
101# Read source document and extract top takeaways
102result = tool.process("quarterly_report.txt")
103
104# Returns: [{"point": "Revenue grew 12% YoY", "source_line": 4}, ...]
105```
106
107### 2. Generate structured summaries
108
109```python
110
111# Generate a bullet-point executive summary
112result = tool.process("meeting_notes.txt", style="executive")
113
114# Returns: {"summary": "...", "action_items": [...], "decisions": [...]}
115```
116
117### 3. Configure output depth and audience
118
119```python
120
121# Adjust number of takeaways and target audience
122result = tool.process("article.txt", max_points=5, audience="non-technical")
123```
124
125### 4. Export results
126
127```python
128
129# Export takeaways to JSON or plain text
130tool.export(result, format="json", output_path="takeaways.json")
131tool.export(result, format="txt", output_path="takeaways.txt")
132```
133
134## CLI Usage
135
136```text
137
138# Extract key takeaways from a file
139python scripts/main.py --input document.txt --output takeaways.txt
140
141# Use a config file to set depth, audience, and format
142python scripts/main.py --input document.txt --config config.json --verbose
143
144# Batch process a directory of documents
145python scripts/main.py --batch input_dir/ --output output_dir/
146```
147
148**Batch processing notes:**
149- Verify the output directory exists before running: `mkdir -p output_dir/`
150- If processing fails on an individual file, the tool logs the error and continues with remaining files; review `output_dir/errors.log` after the run
151- After batch completion, validate all JSON outputs: `for f in output_dir/*.json; do python -m json.tool "$f" > /dev/null && echo "OK: $f" || echo "FAIL: $f"; done`
152
153## Example Input / Output
154
155**Input** (`meeting_notes.txt`):
156```
157Q3 review: Sales up 15%. New product launch delayed to Q4.
158Action: Alice to update roadmap by Friday. Budget approved for hiring.
159```
160
161**Output** (`takeaways.json`):
162```json
163{
164 "key_points": [
165 "Sales increased 15% in Q3",
166 "Product launch rescheduled to Q4"
167 ],
168 "action_items": [
169 "Alice to update roadmap by Friday"
170 ],
171 "decisions": [
172 "Budget approved for hiring"
173 ]
174}
175```
176
177## Quality Checklist
178
179- [ ] Source text is readable and complete before processing
180- [ ] Output point count matches configured `max_points` setting
181- [ ] Action items and decisions are separated from general observations
182- [ ] Exported file opens and validates correctly (e.g., `python -m json.tool takeaways.json`)
183 - If JSON validation fails, check source file encoding (UTF-8 expected) and re-run; inspect `--verbose` output for parsing errors
184- [ ] Results reviewed against original source for accuracy
185
186## References
187
188- `references/guide.md` - Detailed documentation
189- `references/examples/` - Sample inputs and outputs
190
191---
192
193**Skill ID**: 308 | **Version**: 1.0 | **License**: MIT
194
195## Output Requirements
196
197Every final response should make these items explicit when they are relevant:
198
199- Objective or requested deliverable
200- Inputs used and assumptions introduced
201- Workflow or decision path
202- Core result, recommendation, or artifact
203- Constraints, risks, caveats, or validation needs
204- Unresolved items and next-step checks
205
206## Error Handling
207
208- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
209- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
210- If `scripts/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
211- Do not fabricate files, citations, data, search results, or execution outcomes.
212
213## Input Validation
214
215This skill accepts requests that match the documented purpose of `key-takeaways` and include enough context to complete the workflow safely.
216
217Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
218
219> `key-takeaways` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
220
221## Response Template
222
223Use the following fixed structure for non-trivial requests:
224
2251. Objective
2262. Inputs Received
2273. Assumptions
2284. Workflow
2295. Deliverable
2306. Risks and Limits
2317. Next Checks
232
233If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.