Source: https://github.com/aipoch/medical-research-skills
Discussion Section Architect
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 --help
When to Use
- Use this skill when the task needs Structures and writes discussion sections for academic papers and research reports. Use when writing a discussion section, interpreting research results, connecting findings to existing literature, addressing study limitations, synthesizing conclusions, or drafting any part of an academic discussion. Helps researchers organize arguments, contextualize data, and produce clear, publication-ready discussion prose.
- Use this skill for academic writing 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.
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
- Provide your research question, key results, and any prior literature you want to reference.
- Choose a structure (see workflows below).
- Generate a draft discussion section with clearly organized subsections.
- Run the Draft → Revise loop (see below).
Core Capabilities
1. Interpret and Contextualize Results
- State whether results support or contradict the original hypothesis.
- Explain unexpected findings with reasoned interpretations.
- Quantify effect sizes or patterns when relevant.
Example prompt input:
Results: Group A showed a 23% reduction in symptom severity (p=0.003) vs. control.
Hypothesis: Intervention would reduce symptom severity.
Task: Interpret this result for the discussion section.
Example output excerpt:
The 23% reduction in symptom severity (p=0.003) supports the primary hypothesis.
This effect size is clinically meaningful and consistent with the mechanistic
rationale proposed in the introduction...
2. Connect Findings to Existing Literature
- Identify studies that corroborate the findings.
- Highlight where results diverge from prior literature and offer explanations.
- Use hedged academic language appropriate to the field.
Example:
Finding: Effect was stronger in older participants.
Literature: Smith et al. (2019) found age-moderated responses in a similar cohort.
Task: Connect finding to literature.
Output:
The age-moderated effect aligns with Smith et al. (2019), who reported attenuated
responses in younger adults. One possible explanation is differential receptor
sensitivity across age groups, as suggested by...
3. Address Limitations
Draft a limitations subsection that is honest but does not undermine the contribution:
Limitation: [Describe constraint]
Impact: [How it affects interpretation]
Mitigation / Future direction: [How it could be addressed]
4. Synthesize Conclusions
Generate a closing paragraph that:
- Restates the core finding in plain language.
- States the theoretical or practical contribution.
- Ends with a forward-looking statement about implications or next steps.
Recommended Discussion Structure
1. Opening: Restate the research question and summarize the key finding (2–3 sentences).
2. Interpretation: Explain what the results mean mechanistically or theoretically.
3. Comparison to Literature: Agree/contrast with prior studies; explain divergences.
4. Implications: Theoretical contributions and/or practical applications.
5. Limitations: Honest scope boundaries with future directions.
6. Conclusion: Synthesis and forward-looking close.
Draft → Revise Loop
Use this iterative workflow after generating an initial draft:
Step 1 — Draft: Generate the full discussion section using the structure above.
Step 2 — Check: Review against the checklist:
Step 3 — Revise: For each failed checklist item, revise only the affected paragraph(s).
Step 4 — Re-check: Re-run the checklist on revised paragraphs to confirm resolution before finalizing.
References
references/guide.md - Detailed documentation
references/examples/ - Sample inputs and outputs
Skill ID: 950 | 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 discussion-section-architect 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:
discussion-section-architect only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
References
- references/audit-reference.md - Supported scope, audit commands, and fallback boundaries
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.
When Not to Use
- Do not proceed when required input files, identifiers, parameters, or context are missing — ask the user to provide them first.
- Do not assume capabilities beyond this skill's declared scope when the user requests external operations or inferences.
- Do not proceed without user confirmation when overwriting existing results, executing high-cost batch operations, or expanding task scope.
Required Inputs
| Field |
Required |
Format/Source |
Example |
If Missing |
| User task description |
Yes |
Text |
Research question, writing goal, analysis objective |
Stop and ask user to provide |
| Primary input material |
Depends on task |
Text, file path, ID, table, or literature |
PMID, PDF, CSV, DOCX, keywords, etc. |
Specify which material type is missing |
| Output preference |
No |
Text |
Language, format, target journal, template |
Use skill default format |
Output Contract
- Primary output: Structured result or target file aligned with this skill's objective.
- Optional output: Intermediate check notes, issue list, supplementary suggestions, or generated file paths.
- Format requirement: Unless the user specifies otherwise, prefer stable, reviewable Markdown or JSON; if the skill's bundled script requires a fixed format, use that format.
- If partially complete: Must explicitly mark as PARTIAL and state which steps are completed and which remain.
Failure Handling
- Missing critical input: Explicitly state which fields, files, or identifiers are missing and pause.
- Script, template, or resource execution failure: Report the failing step, likely cause, and recovery suggestions — do not silently degrade.
- Partial completion only: Return the verified portion first, then list remaining blockers and suggested next steps.
User Checkpoints
- Before executing batch processing, overwriting files, long-running searches, or multi-stage generation, confirm scope and output format with the user.
- Before proceeding when a key judgment is ambiguous, evidence is insufficient, or the workflow is entering the next stage, confirm with the user.
Quick Validation
- Check that key scripts, templates, or reference file paths this skill depends on exist.
- Check that the final output contains the core fields, sections, or files specified for this task.
- Check that results clearly mark assumptions, limitations, and incomplete items.
1---2name: discussion-section-architect3description: Structures and writes discussion sections for academic papers and research reports. Use when writing a discussion section, interpreting research results, connecting findings to existing literature, addressing study limitations, synthesizing conclusions, or drafting any part of...4license: MIT5---6> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
7
8# Discussion Section Architect
9
10## Quick Check
11
12Use this command to verify that the packaged script entry point can be parsed before deeper execution.
13
14```bash
15python -m py_compile scripts/main.py
16```
17
18## Audit-Ready Commands
19
20Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
21
22```bash
23python -m py_compile scripts/main.py
24python scripts/main.py --help
25```
26
27## When to Use
28
29- Use this skill when the task needs Structures and writes discussion sections for academic papers and research reports. Use when writing a discussion section, interpreting research results, connecting findings to existing literature, addressing study limitations, synthesizing conclusions, or drafting any part of an academic discussion. Helps researchers organize arguments, contextualize data, and produce clear, publication-ready discussion prose.
30- Use this skill for academic writing tasks that require explicit assumptions, bounded scope, and a reproducible output format.
31- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
32
33## Workflow
34
351. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
362. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
373. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
384. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
395. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
40
41## Quick Start
42
431. Provide your **research question**, **key results**, and any **prior literature** you want to reference.
442. Choose a structure (see workflows below).
453. Generate a draft discussion section with clearly organized subsections.
464. Run the **Draft → Revise loop** (see below).
47
48---
49
50## Core Capabilities
51
52### 1. Interpret and Contextualize Results
53
54- State whether results support or contradict the original hypothesis.
55- Explain unexpected findings with reasoned interpretations.
56- Quantify effect sizes or patterns when relevant.
57
58**Example prompt input:**
59```
60Results: Group A showed a 23% reduction in symptom severity (p=0.003) vs. control.
61Hypothesis: Intervention would reduce symptom severity.
62Task: Interpret this result for the discussion section.
63```
64
65**Example output excerpt:**
66```
67The 23% reduction in symptom severity (p=0.003) supports the primary hypothesis.
68This effect size is clinically meaningful and consistent with the mechanistic
69rationale proposed in the introduction...
70```
71
72---
73
74### 2. Connect Findings to Existing Literature
75
76- Identify studies that corroborate the findings.
77- Highlight where results diverge from prior literature and offer explanations.
78- Use hedged academic language appropriate to the field.
79
80**Example:**
81```
82Finding: Effect was stronger in older participants.
83Literature: Smith et al. (2019) found age-moderated responses in a similar cohort.
84Task: Connect finding to literature.
85```
86
87**Output:**
88```
89The age-moderated effect aligns with Smith et al. (2019), who reported attenuated
90responses in younger adults. One possible explanation is differential receptor
91sensitivity across age groups, as suggested by...
92```
93
94---
95
96### 3. Address Limitations
97
98Draft a limitations subsection that is honest but does not undermine the contribution:
99
100```
101Limitation: [Describe constraint]
102Impact: [How it affects interpretation]
103Mitigation / Future direction: [How it could be addressed]
104```
105
106---
107
108### 4. Synthesize Conclusions
109
110Generate a closing paragraph that:
111
112- Restates the core finding in plain language.
113- States the theoretical or practical contribution.
114- Ends with a forward-looking statement about implications or next steps.
115
116---
117
118## Recommended Discussion Structure
119
120```
1211. Opening: Restate the research question and summarize the key finding (2–3 sentences).
1222. Interpretation: Explain what the results mean mechanistically or theoretically.
1233. Comparison to Literature: Agree/contrast with prior studies; explain divergences.
1244. Implications: Theoretical contributions and/or practical applications.
1255. Limitations: Honest scope boundaries with future directions.
1266. Conclusion: Synthesis and forward-looking close.
127```
128
129---
130
131## Draft → Revise Loop
132
133Use this iterative workflow after generating an initial draft:
134
135**Step 1 — Draft**: Generate the full discussion section using the structure above.
136
137**Step 2 — Check**: Review against the checklist:
138- [ ] Each finding from the Results section is explicitly addressed.
139- [ ] Claims are supported by citations or logical reasoning — not stated as facts.
140- [ ] Unexpected or null results are acknowledged and interpreted.
141- [ ] Limitations are stated without dismissing the study's contribution.
142- [ ] No new data or results are introduced in the discussion.
143- [ ] Hedged language used appropriately (e.g., "suggests," "indicates," "may reflect").
144- [ ] Conclusion ties back to the original research question.
145
146**Step 3 — Revise**: For each failed checklist item, revise only the affected paragraph(s).
147
148**Step 4 — Re-check**: Re-run the checklist on revised paragraphs to confirm resolution before finalizing.
149
150---
151
152## References
153
154- `references/guide.md` - Detailed documentation
155- `references/examples/` - Sample inputs and outputs
156
157---
158
159**Skill ID**: 950 | **Version**: 1.0 | **License**: MIT
160
161## Output Requirements
162
163Every final response should make these items explicit when they are relevant:
164
165- Objective or requested deliverable
166- Inputs used and assumptions introduced
167- Workflow or decision path
168- Core result, recommendation, or artifact
169- Constraints, risks, caveats, or validation needs
170- Unresolved items and next-step checks
171
172## Error Handling
173
174- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
175- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
176- If `scripts/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
177- Do not fabricate files, citations, data, search results, or execution outcomes.
178
179## Input Validation
180
181This skill accepts requests that match the documented purpose of `discussion-section-architect` and include enough context to complete the workflow safely.
182
183Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
184
185> `discussion-section-architect` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
186
187
188## References
189
190- [references/audit-reference.md](references/audit-reference.md) - Supported scope, audit commands, and fallback boundaries
191
192## Response Template
193
194Use the following fixed structure for non-trivial requests:
195
1961. Objective
1972. Inputs Received
1983. Assumptions
1994. Workflow
2005. Deliverable
2016. Risks and Limits
2027. Next Checks
203
204If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.
205
206## When Not to Use
207
208- Do not proceed when required input files, identifiers, parameters, or context are missing — ask the user to provide them first.
209- Do not assume capabilities beyond this skill's declared scope when the user requests external operations or inferences.
210- Do not proceed without user confirmation when overwriting existing results, executing high-cost batch operations, or expanding task scope.
211
212## Required Inputs
213
214| Field | Required | Format/Source | Example | If Missing |
215|---|---|---|---|---|
216| User task description | Yes | Text | Research question, writing goal, analysis objective | Stop and ask user to provide |
217| Primary input material | Depends on task | Text, file path, ID, table, or literature | PMID, PDF, CSV, DOCX, keywords, etc. | Specify which material type is missing |
218| Output preference | No | Text | Language, format, target journal, template | Use skill default format |
219
220## Output Contract
221
222- Primary output: Structured result or target file aligned with this skill's objective.
223- Optional output: Intermediate check notes, issue list, supplementary suggestions, or generated file paths.
224- Format requirement: Unless the user specifies otherwise, prefer stable, reviewable Markdown or JSON; if the skill's bundled script requires a fixed format, use that format.
225- If partially complete: Must explicitly mark as PARTIAL and state which steps are completed and which remain.
226
227## Failure Handling
228
229- Missing critical input: Explicitly state which fields, files, or identifiers are missing and pause.
230- Script, template, or resource execution failure: Report the failing step, likely cause, and recovery suggestions — do not silently degrade.
231- Partial completion only: Return the verified portion first, then list remaining blockers and suggested next steps.
232
233## User Checkpoints
234
235- Before executing batch processing, overwriting files, long-running searches, or multi-stage generation, confirm scope and output format with the user.
236- Before proceeding when a key judgment is ambiguous, evidence is insufficient, or the workflow is entering the next stage, confirm with the user.
237
238## Quick Validation
239
240- Check that key scripts, templates, or reference file paths this skill depends on exist.
241- Check that the final output contains the core fields, sections, or files specified for this task.
242- Check that results clearly mark assumptions, limitations, and incomplete items.