Source: https://github.com/aipoch/medical-research-skills
Grant Proposal Assistant
A comprehensive tool for writing competitive grant proposals targeting NIH (R01/R21), NSF, and other major funding agencies.
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
python scripts/main.py --section project_summary
python scripts/main.py --section project_summary --agency NIH
When to Use
- Use this skill when the task needs Grant proposal writing assistant for NIH (R01/R21), NSF and other mainstream.
- Use this skill for protocol design 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.
Capabilities
- Section Templates: Standard templates for all major grant sections
- Specific Aims Generator: Structured approach to crafting compelling Specific Aims pages
- Budget Justification Helper: Equipment, personnel, and other cost justifications
- Review & Critique: Self-assessment checklists for proposal quality
Usage
Command Line
# Generate Specific Aims template
python3 scripts/main.py --section aims --output my_aims.md
# Generate full proposal template
python3 scripts/main.py --section full --agency NIH --type R01 --output proposal.md
# Budget justification helper
python3 scripts/main.py --section budget --category personnel --output budget.md
# Review existing proposal
python3 scripts/main.py --review --input my_proposal.md
As Library
from scripts.main import GrantProposalAssistant
assistant = GrantProposalAssistant(agency="NIH", grant_type="R01")
template = assistant.generate_section("specific_aims")
budget = assistant.generate_budget_justification(category="equipment", items=[...])
Parameters
| Parameter |
Description |
Options |
--section |
Section to generate |
aims, significance, approach, budget, full |
--agency |
Funding agency |
NIH, NSF, DOD, VA |
--type |
Grant mechanism |
R01, R21, R03, SBIR, STTR |
--category |
Budget category |
personnel, equipment, supplies, travel, other |
--input |
Input file for review |
Path to existing proposal |
--output |
Output file path |
Path for generated content |
Technical Difficulty
Medium - Requires understanding of grant structure, funding agency requirements, and scientific writing best practices.
References
references/NIH_R01_template.md - NIH R01 full proposal template
references/NSF_template.md - NSF standard grant template
references/budget_templates.xlsx - Budget templates by category
references/review_checklist.md - Proposal quality checklist
references/specific_aims_examples.md - Example Specific Aims pages
Best Practices
- Start with Specific Aims: This 1-page summary drives the entire proposal
- Follow Page Limits: NIH R01 Research Strategy = 12 pages, Specific Aims = 1 page
- Use Significance-Innovation-Approach Structure: Standard for NIH applications
- Justify Everything: Every budget item needs a clear justification
- Review with Checklist: Use the built-in review tool before submission
Agency-Specific Notes
NIH R01/R21
- Page limits strictly enforced
- Significance, Innovation, Approach structure required
- Vertebrate animals and human subjects sections if applicable
- Resubmission strategy for A1 applications
NSF
- Project Summary (1 page) and Project Description (15 pages)
- Broader impacts criterion weighted equally with intellectual merit
- Data management plan required
- Facilities and resources section
Version
1.0.0 - Initial release with NIH and NSF support
Risk Assessment
| Risk Indicator |
Assessment |
Level |
| Code Execution |
Python/R scripts executed locally |
Medium |
| Network Access |
No external API calls |
Low |
| File System Access |
Read input files, write output files |
Medium |
| Instruction Tampering |
Standard prompt guidelines |
Low |
| Data Exposure |
Output files saved to workspace |
Low |
Security Checklist
Prerequisites
No additional Python packages required.
Evaluation Criteria
Success Metrics
Test Cases
- Basic Functionality: Standard input → Expected output
- Edge Case: Invalid input → Graceful error handling
- Performance: Large dataset → Acceptable processing time
Lifecycle Status
- Current Stage: Draft
- Next Review Date: 2026-03-06
- Known Issues: None
- Planned Improvements:
- Performance optimization
- Additional feature support
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 grant-proposal-assistant 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:
grant-proposal-assistant 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.
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: grant-proposal-assistant3description: Assist with biomedical grant proposal drafting, structure, and revision; use when preparing fundable proposal sections, aligning aims and methods, or improving reviewer-facing clarity.4license: MIT5---6> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
7
8# Grant Proposal Assistant
9
10A comprehensive tool for writing competitive grant proposals targeting NIH (R01/R21), NSF, and other major funding agencies.
11
12## Quick Check
13
14Use this command to verify that the packaged script entry point can be parsed before deeper execution.
15
16```bash
17python -m py_compile scripts/main.py
18```
19
20## Audit-Ready Commands
21
22Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.
23
24```bash
25python -m py_compile scripts/main.py
26python scripts/main.py --help
27python scripts/main.py --section project_summary
28python scripts/main.py --section project_summary --agency NIH
29```
30
31## When to Use
32
33- Use this skill when the task needs Grant proposal writing assistant for NIH (R01/R21), NSF and other mainstream.
34- Use this skill for protocol design tasks that require explicit assumptions, bounded scope, and a reproducible output format.
35- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
36
37## Workflow
38
391. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
402. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
413. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
424. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
435. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
44
45## Capabilities
46
471. **Section Templates**: Standard templates for all major grant sections
482. **Specific Aims Generator**: Structured approach to crafting compelling Specific Aims pages
493. **Budget Justification Helper**: Equipment, personnel, and other cost justifications
504. **Review & Critique**: Self-assessment checklists for proposal quality
51
52## Usage
53
54### Command Line
55
56```text
57# Generate Specific Aims template
58python3 scripts/main.py --section aims --output my_aims.md
59
60# Generate full proposal template
61python3 scripts/main.py --section full --agency NIH --type R01 --output proposal.md
62
63# Budget justification helper
64python3 scripts/main.py --section budget --category personnel --output budget.md
65
66# Review existing proposal
67python3 scripts/main.py --review --input my_proposal.md
68```
69
70### As Library
71
72```python
73from scripts.main import GrantProposalAssistant
74
75assistant = GrantProposalAssistant(agency="NIH", grant_type="R01")
76template = assistant.generate_section("specific_aims")
77budget = assistant.generate_budget_justification(category="equipment", items=[...])
78```
79
80## Parameters
81
82| Parameter | Description | Options |
83|-----------|-------------|---------|
84| `--section` | Section to generate | `aims`, `significance`, `approach`, `budget`, `full` |
85| `--agency` | Funding agency | `NIH`, `NSF`, `DOD`, `VA` |
86| `--type` | Grant mechanism | `R01`, `R21`, `R03`, `SBIR`, `STTR` |
87| `--category` | Budget category | `personnel`, `equipment`, `supplies`, `travel`, `other` |
88| `--input` | Input file for review | Path to existing proposal |
89| `--output` | Output file path | Path for generated content |
90
91## Technical Difficulty
92
93**Medium** - Requires understanding of grant structure, funding agency requirements, and scientific writing best practices.
94
95## References
96
97- `references/NIH_R01_template.md` - NIH R01 full proposal template
98- `references/NSF_template.md` - NSF standard grant template
99- `references/budget_templates.xlsx` - Budget templates by category
100- `references/review_checklist.md` - Proposal quality checklist
101- `references/specific_aims_examples.md` - Example Specific Aims pages
102
103## Best Practices
104
1051. **Start with Specific Aims**: This 1-page summary drives the entire proposal
1062. **Follow Page Limits**: NIH R01 Research Strategy = 12 pages, Specific Aims = 1 page
1073. **Use Significance-Innovation-Approach Structure**: Standard for NIH applications
1084. **Justify Everything**: Every budget item needs a clear justification
1095. **Review with Checklist**: Use the built-in review tool before submission
110
111## Agency-Specific Notes
112
113### NIH R01/R21
114- Page limits strictly enforced
115- Significance, Innovation, Approach structure required
116- Vertebrate animals and human subjects sections if applicable
117- Resubmission strategy for A1 applications
118
119### NSF
120- Project Summary (1 page) and Project Description (15 pages)
121- Broader impacts criterion weighted equally with intellectual merit
122- Data management plan required
123- Facilities and resources section
124
125## Version
126
1271.0.0 - Initial release with NIH and NSF support
128
129## Risk Assessment
130
131| Risk Indicator | Assessment | Level |
132|----------------|------------|-------|
133| Code Execution | Python/R scripts executed locally | Medium |
134| Network Access | No external API calls | Low |
135| File System Access | Read input files, write output files | Medium |
136| Instruction Tampering | Standard prompt guidelines | Low |
137| Data Exposure | Output files saved to workspace | Low |
138
139## Security Checklist
140
141- [ ] No hardcoded credentials or API keys
142- [ ] No unauthorized file system access (../)
143- [ ] Output does not expose sensitive information
144- [ ] Prompt injection protections in place
145- [ ] Input file paths validated (no ../ traversal)
146- [ ] Output directory restricted to workspace
147- [ ] Script execution in sandboxed environment
148- [ ] Error messages sanitized (no stack traces exposed)
149- [ ] Dependencies audited
150
151## Prerequisites
152
153No additional Python packages required.
154
155## Evaluation Criteria
156
157### Success Metrics
158- [ ] Successfully executes main functionality
159- [ ] Output meets quality standards
160- [ ] Handles edge cases gracefully
161- [ ] Performance is acceptable
162
163### Test Cases
1641. **Basic Functionality**: Standard input → Expected output
1652. **Edge Case**: Invalid input → Graceful error handling
1663. **Performance**: Large dataset → Acceptable processing time
167
168## Lifecycle Status
169
170- **Current Stage**: Draft
171- **Next Review Date**: 2026-03-06
172- **Known Issues**: None
173- **Planned Improvements**:
174 - Performance optimization
175 - Additional feature support
176
177## Output Requirements
178
179Every final response should make these items explicit when they are relevant:
180
181- Objective or requested deliverable
182- Inputs used and assumptions introduced
183- Workflow or decision path
184- Core result, recommendation, or artifact
185- Constraints, risks, caveats, or validation needs
186- Unresolved items and next-step checks
187
188## Error Handling
189
190- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
191- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
192- If `scripts/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
193- Do not fabricate files, citations, data, search results, or execution outcomes.
194
195## Input Validation
196
197This skill accepts requests that match the documented purpose of `grant-proposal-assistant` and include enough context to complete the workflow safely.
198
199Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
200
201> `grant-proposal-assistant` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
202
203## Response Template
204
205Use the following fixed structure for non-trivial requests:
206
2071. Objective
2082. Inputs Received
2093. Assumptions
2104. Workflow
2115. Deliverable
2126. Risks and Limits
2137. Next Checks
214
215If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.
216
217## When Not to Use
218
219- Do not proceed when required input files, identifiers, parameters, or context are missing — ask the user to provide them first.
220- Do not assume capabilities beyond this skill's declared scope when the user requests external operations or inferences.
221- Do not proceed without user confirmation when overwriting existing results, executing high-cost batch operations, or expanding task scope.
222
223## Required Inputs
224
225| Field | Required | Format/Source | Example | If Missing |
226|---|---|---|---|---|
227| User task description | Yes | Text | Research question, writing goal, analysis objective | Stop and ask user to provide |
228| 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 |
229| Output preference | No | Text | Language, format, target journal, template | Use skill default format |
230
231## Output Contract
232
233- Primary output: Structured result or target file aligned with this skill's objective.
234- Optional output: Intermediate check notes, issue list, supplementary suggestions, or generated file paths.
235- 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.
236- If partially complete: Must explicitly mark as PARTIAL and state which steps are completed and which remain.
237
238## Failure Handling
239
240- Missing critical input: Explicitly state which fields, files, or identifiers are missing and pause.
241- Script, template, or resource execution failure: Report the failing step, likely cause, and recovery suggestions — do not silently degrade.
242- Partial completion only: Return the verified portion first, then list remaining blockers and suggested next steps.
243
244## User Checkpoints
245
246- Before executing batch processing, overwriting files, long-running searches, or multi-stage generation, confirm scope and output format with the user.
247- Before proceeding when a key judgment is ambiguous, evidence is insufficient, or the workflow is entering the next stage, confirm with the user.
248
249## Quick Validation
250
251- Check that key scripts, templates, or reference file paths this skill depends on exist.
252- Check that the final output contains the core fields, sections, or files specified for this task.
253- Check that results clearly mark assumptions, limitations, and incomplete items.