[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AEVN3DXCNPZP8PYG4ZK0MW":3,"skill-same:01M7AEVN3DXCNPZP8PYG4ZK0MW":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7AEVN3DXCNPZP8PYG4ZK0MW","grants",null,"NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","MHassan0000\u002FSkills","MHassan0000","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F224296448?v=4","01M7A14DTC1EZCRN04582533RD","Muhammad Hassan Yousaf","01M7A14DV10KTW8NHQTJPD08X0",1,"MIT","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: grants\ndescription: \"NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.\"\nlicense: MIT\nmetadata:\n  source_spec: \"megaprompts\u002F08-grants-megaprompt.md\"\n  build_pattern: \"Path B (direct conversion)\"\n  research_pack_convention: \"Agent Integrity Rules verbatim per PR #657 audit\"\n  version: 1.0.0\n---\n\n# Grants — NIH Funding Intelligence\n\n> **Portability:** Requires `bash_tool` (for RePORTER POST via curl), Node.js with `docx` package, and a Consensus MCP connection. Works in Claude Code CLI natively. In Claude.ai with Code Execution + Consensus MCP, the workflow is supported but slower.\n\n> **Scope: NIH-only.** Non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.\n\nFor a clinical researcher with a research idea, produce a strategic NIH funding overview as an editable `.docx`. Output covers research positioning analysis, institute mapping, targeted grant discovery, and strategic recommendations the researcher can edit, copy from, and share with their mentor.\n\n## Agent Integrity Rules (Research-Pack Convention)\n\nInherited; locked verbatim per PR #657 audit.\n\n- **Execution discipline.** A step isn't complete until result is confirmed received. Consensus calls **sequential with 1+ sec pause**. RePORTER calls sequential.\n- **Data sourcing.** Count only what tool calls returned this session. Never supplement with training knowledge. Training knowledge labeled `[Not from Consensus\u002FRePORTER — reference information]` and excluded from counts.\n- **Counts & attribution.** Queries sent \u002F results shown \u002F results cited — three separate numbers, never conflate. Every cited paper has retrievable URL from this session.\n- **Error handling.** On failure → wait 3s → retry once → log. After 3 consecutive failures across tools: stop, alert researcher, explain what's missing. Never silently skip.\n- **Transparency.** Audit Log section in the DOCX. Same standards in chat summary as in document.\n\nSee [`references\u002Freporter_post_patterns.md`](references\u002Freporter_post_patterns.md) for the RePORTER POST canon + plan-tier detection.\n\n## Phase 1: Grill-Me Intake (6 forcing questions, one at a time)\n\n### Q1 (root) — Research idea\n\n> **Describe the research idea in 2–3 sentences. What's the question, what's new, and what's the clinical relevance? Vague answers (\"AI for healthcare\", \"biomarkers for disease X\") will be rejected — push for specificity.**\n>\n> *Why I'm asking:* Five Consensus searches (established \u002F stakes \u002F current approaches \u002F adjacent methods \u002F gaps) depend on a precise research idea. Vague ideas produce vague gap quotes and useless positioning narrative.\n\nRefuse mush. Re-ask once with examples if user is too broad.\n\n### Q2 (depends on Q1) — Career stage\n\n> **Career stage — pick one:**\n>\n> 1. Pre-doctoral (PhD student, T32 trainee)\n> 2. Postdoctoral fellow (F32, K99 candidate)\n> 3. Early career (K-award candidate, first R01)\n> 4. Independent investigator (multiple R01s, established lab)\n> 5. Senior PI (R35, P-series, U01 leadership)\n>\n> *Why I'm asking:* Career stage filters mechanism recommendations. F-series for trainees, K-series for early career, R-series for independent. Picking the wrong stage produces unfundable mechanism suggestions.\n\nForcing choice.\n\n### Q3 (depends on Q2) — Preliminary data status\n\n> **Preliminary data — pick one:**\n>\n> 1. None (de novo project, no pilot data yet)\n> 2. Pilot data (early findings, single-site)\n> 3. Strong preliminary (multi-experiment, ready for R01-scale)\n> 4. Validated and ready (multi-site, publication-ready)\n>\n> *Why I'm asking:* Prelim data status drives mechanism budget. No data → R03 \u002F R21 pilot scope. Strong prelim → R01 \u002F U01 multi-site scale. Mismatch produces uncompetitive applications.\n\n### Q4 (depends on Q2) — Environment\n\n> **Research environment — pick one:**\n>\n> 1. R01-eligible (research-intensive institution with NIH base funding)\n> 2. Mid-tier (regional academic medical center, modest NIH portfolio)\n> 3. Resource-constrained (smaller institution, minimal NIH base)\n> 4. Industry-collaborative (academic + industry partnership)\n>\n> *Why I'm asking:* Environment affects scope realism (multi-site U01 requires R01-eligible) and which mechanism categories are competitive (R15 specifically targets resource-constrained).\n\n### Q5 (depends on Q1) — Submission posture\n\n> **Submission posture — pick one:**\n>\n> 1. New application (first submission, no prior reviews)\n> 2. Resubmission (A1 with reviewer responses needed)\n> 3. Exploring (haven't decided yet whether to submit)\n>\n> *Why I'm asking:* Resubmissions need reviewer-response guidance in the DOCX (Section 7). New applications skip that. Exploring shifts emphasis to landscape over strategy.\n\n### Q6 (depends on Q1) — Known institute targets\n\n> **Are you already considering specific NIH institutes? List names (NCI \u002F NHLBI \u002F NIMH \u002F NINDS \u002F NIDDK \u002F etc.) or say \"no preference — find the right ones\".**\n>\n> *Why I'm asking:* If you have an institute hypothesis, I'll validate it against RePORTER data. If not, I'll surface the top-3 institutes funding adjacent work from the institute-tally.\n\nAccept \"no preference\" as the common case.\n\n**Stop condition:** After Q6, commit and start Phase 2A. Never re-open intake after Phase 2A begins.\n\n## Phase 2A: Research Positioning (5 Consensus searches)\n\nRun sequentially at 1 q\u002Fsec. Each search corresponds to one positioning facet:\n\n1. **Established** — `\"\u003Cresearch idea>\" established evidence` — what's known\n2. **Stakes** — `\"\u003Ctopic>\" mortality OR burden OR cost OR prevalence` — why it matters\n3. **Current Approaches** — `\"\u003Ctopic>\" current treatment OR standard of care OR approach` — state of the art\n4. **Adjacent Methods** — `\"\u003Crelated technique>\" applied to \u003Ctopic>` — methodological possibilities\n5. **Gaps** — `\"\u003Ctopic>\" limitations OR unanswered OR future directions OR challenge` — gap signals\n\nUse `scripts\u002Fcitation_tracker.py --action record_consensus_search` for each. Plan-tier detected from first response.\n\n**Synthesis:** for each facet, extract 2-3 quotable findings (becomes Section 2 gap quotes). Draft Significance\u002FInnovation language using \"the field has established X (refs), but Y remains unanswered (refs)\" pattern.\n\n## Phase 2B: Institute Mapping + Grant Discovery (RePORTER POST)\n\nRePORTER is **POST-only**. Use `bash_tool` + `curl` — never `web_fetch`.\n\n### Dynamic fiscal year window\n\nCompute at runtime via `scripts\u002Ffiscal_year_calculator.py`. Default: current FY + 3 prior. Federal FY starts Oct 1, so:\n\n```bash\npython scripts\u002Ffiscal_year_calculator.py --output json\n# Returns: {\"current_fy\": 2026, \"window\": [2023, 2024, 2025, 2026]}\n```\n\n### Narrow (AND) search — finds direct overlap\n\n```bash\ncurl -X POST 'https:\u002F\u002Fapi.reporter.nih.gov\u002Fv2\u002Fprojects\u002Fsearch' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\n    \"criteria\": {\n      \"fiscal_years\": [2023, 2024, 2025, 2026],\n      \"include_active_projects\": true,\n      \"advanced_text_search\": {\n        \"operator\": \"AND\",\n        \"search_field\": \"all\",\n        \"search_text\": \"\u003Ckey term 1> \u003Ckey term 2>\"\n      }\n    },\n    \"limit\": 50,\n    \"include_fields\": [\"project_num\", \"project_title\", \"agency_ic_admin\", \"study_section\", \"fiscal_year\", \"principal_investigators\", \"abstract_text\"]\n  }'\n```\n\n### Broad (OR) search — finds adjacent work\n\n```bash\ncurl -X POST 'https:\u002F\u002Fapi.reporter.nih.gov\u002Fv2\u002Fprojects\u002Fsearch' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\n    \"criteria\": {\n      \"fiscal_years\": [2023, 2024, 2025, 2026],\n      \"advanced_text_search\": {\n        \"operator\": \"OR\",\n        \"search_field\": \"all\",\n        \"search_text\": \"\u003Cterm> \u003Csynonym> \u003Crelated concept>\"\n      }\n    },\n    \"limit\": 50\n  }'\n```\n\n### Institute tally + study section ranking\n\nAfter RePORTER responses:\n- Tally `agency_ic_admin` (institute code: NCI, NHLBI, NIMH, etc.) → top-3 funding institutes\n- Tally `study_section` → top-2 study sections (where applications go for review)\n\n### NOSI discovery\n\nParse RePORTER responses for `NOT-*` opportunity numbers. For each:\n\n```bash\n# NOSIs live at predictable URLs:\n# https:\u002F\u002Fgrants.nih.gov\u002Fgrants\u002Fguide\u002Fnotice-files\u002FNOT-\u003CINSTITUTE>-\u003CYEAR>-\u003CNUMBER>.html\nweb_fetch \u003Curl>\n```\n\nIf fetch fails: log `[NOSI {number} — fetch failed, not included]`, continue.\n\n## Mechanism Matching (Scope-Aware)\n\nNOT career stage alone. Career stage **+** project scope **+** prelim data drive recommendation.\n\nUse `scripts\u002Fmechanism_matcher.py`:\n\n```bash\npython scripts\u002Fmechanism_matcher.py \\\n  --career-stage \"early_career\" \\\n  --prelim-data \"pilot\" \\\n  --environment \"r01_eligible\" \\\n  --scope \"single_site\" \\\n  --output json\n# Returns mechanism shortlist with rationale\n```\n\nSee [`references\u002Fnih_mechanism_matching.md`](references\u002Fnih_mechanism_matching.md) for the full matrix.\n\n## Phase 3: DOCX Generation\n\n9 sections via Node.js + `docx` library. See [`references\u002Fdocx_9_sections.md`](references\u002Fdocx_9_sections.md) for full spec.\n\n1. **Executive Summary** — title + career stage + environment + 3-4 key findings bullets\n2. **Research Positioning** — 3-5 gap quotes (italicized, inline Consensus citations) + 2-3 paragraph positioning narrative + supporting evidence table\n3. **Target Institutes** — ranking table (institute, project count in window, % match to your idea) + 2-3 sentence interpretation\n4. **Grant Opportunities** — bold NOSI callout if any. Top-3 grants table with hyperlinked FOAs + per-grant scope\u002Fbudget fit paragraph\n5. **Funded Overlap** — top-5 projects table (PI, project_num, IC, year, hyperlinked to RePORTER) + differentiation paragraph\n6. **Study Sections** — ranking table + best-match interpretation\n7. **Strategic Recommendations & Next Steps** — 3-4 numbered recs + **mandatory program officer rec** + submission timeline note + (if resubmission Q5=2) reviewer-response guidance + closing paragraph\n8. **References** — numbered bibliography, hyperlinked to Consensus\n9. **Audit Log** — Consensus searches table, plan-tier note, RePORTER searches table, NOSI fetches table, summary stats, tool constraints note, failed steps\n\n### Styling\n\nArial 12pt body, navy headings (#1a3a5c), light blue table headers (#e8f0f8), amber NOSI callout. `ExternalHyperlink` patterns:\n- Paper citations: `https:\u002F\u002Fconsensus.app\u002Fpapers\u002F...`\n- FOA links: `https:\u002F\u002Fgrants.nih.gov\u002Fgrants\u002Fguide\u002F...`\n- RePORTER projects: `https:\u002F\u002Freporter.nih.gov\u002Fproject-details\u002F\u003Cid>`\n\n## Mandatory Program Officer Recommendation\n\nAlways include in Section 7:\n\n> **Recommended next step: contact program officer at {top institute}.** Find their staff page at https:\u002F\u002Fwww.nih.gov\u002Finstitutes-nih\u002Flist-nih-institutes-centers-offices → {institute} → Program Officers. Prepare: 1-page specific aims + your CV + 3 specific questions about fit. Email subject: \"Pre-application inquiry: \u003Ctopic>\".\n\nThis is the single most valuable advice for any applicant. Never skip.\n\n## Submission Timeline (Embedded in DOCX Section 7)\n\n| Mechanism | Standard receipt dates |\n|---|---|\n| R01, R21, R03 | Feb 5, Jun 5, Oct 5 |\n| K awards (K01, K08, K23, K99) | Feb 12, Jun 12, Oct 12 |\n| R34, R61\u002FR33 | Feb 16, Jun 16, Oct 16 |\n| F31, F32 | Apr 8, Aug 8, Dec 8 |\n\n## Phase 4: Deliver\n\n- Save DOCX to `\u003Coutput-dir>\u002Fgrants_\u003Ctopic-slug>_\u003CYYYY-MM-DD>.docx`\n- Chat summary: file path + audit counts + plan tier + verdict on institute targets\n- Validate: check zip integrity with `python3 -c \"import zipfile,sys; zipfile.ZipFile(sys.argv[1]).testzip()\" \u003Cdocx>` (no output = intact), then confirm the required sections are present\n\n## Tooling\n\n| Script | Role |\n|---|---|\n| `scripts\u002Fcitation_tracker.py` | Three-count audit (Consensus sent\u002Fshown\u002Fcited + RePORTER projects\u002Fcited) at `~\u002F.grants_sessions\u002F\u003Csession>.json` |\n| `scripts\u002Ffiscal_year_calculator.py` | Current FY + 3-prior window. Computed at runtime, never hardcoded. |\n| `scripts\u002Fmechanism_matcher.py` | Career stage × scope × prelim → mechanism recommendation shortlist |\n\n## References\n\n- [`references\u002Fnih_mechanism_matching.md`](references\u002Fnih_mechanism_matching.md) — career stage × scope × prelim → mechanism canon (7+ sources)\n- [`references\u002Freporter_post_patterns.md`](references\u002Freporter_post_patterns.md) — RePORTER curl POST templates + plan-tier detection (7+ sources)\n- [`references\u002Fdocx_9_sections.md`](references\u002Fdocx_9_sections.md) — 9-section .docx spec + technical requirements (7+ sources)\n\n## Error Handling\n\n| Failure | Behavior |\n|---|---|\n| Consensus rate-limit hit | Wait 3s, retry once, log; if still failing, alert researcher |\n| Consensus returns 0 for a facet | Surface explicitly; never fill with training knowledge |\n| Consensus plan-tier cap detected | Log tier, note in audit, surface to researcher |\n| RePORTER POST returns error | Retry once after 3s; if still failing, log and continue |\n| RePORTER returns \u003C5 on narrow | Document; broad OR should compensate; surface low count |\n| NOSI fetch fails | Log `[NOSI {n} — fetch failed]`, continue |\n| 3 consecutive tool failures | Stop, alert researcher with what's missing |\n| DOCX generation fails | Save raw data as JSON fallback so researcher doesn't lose work |\n\n## Anti-Patterns To Reject\n\n- Parallelizing Consensus calls (will hit rate limit)\n- Using `web_fetch` for RePORTER (POST-only — `web_fetch` is GET)\n- Hardcoded fiscal year values\n- Mechanism recommendations based on career stage alone (must consider scope too)\n- Silently filling thin facet results with training knowledge\n- Skipping the audit log\n- Skipping the program officer recommendation\n- Conflating \"papers found\" with \"papers shown\" with \"papers cited\"\n- Fabricating NOSI details when fetch fails\n\n---\n\n**Version:** 1.0.0\n**Source spec:** [`megaprompts\u002F08-grants-megaprompt.md`](..\u002F..\u002F..\u002F..\u002Fmegaprompts\u002F08-grants-megaprompt.md)\n**Build pattern:** Path B (direct conversion). Research-pack sibling of pulse + litreview.\n","# Grants — NIH Funding Intelligence\n\n> **Portability:** Requires `bash_tool` (for RePORTER POST via curl), Node.js with `docx` package, and a Consensus MCP connection. Works in Claude Code CLI natively. In Claude.ai with Code Execution + Consensus MCP, the workflow is supported but slower.\n\n> **Scope: NIH-only.** Non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.\n\nFor a clinical researcher with a research idea, produce a strategic NIH funding overview as an editable `.docx`. Output covers research positioning analysis, institute mapping, targeted grant discovery, and strategic recommendations the researcher can edit, copy from, and share with their mentor.\n\n## Agent Integrity Rules (Research-Pack Convention)\n\nInherited; locked verbatim per PR #657 audit.\n\n- **Execution discipline.** A step isn't complete until result is confirmed received. Consensus calls **sequential with 1+ sec pause**. RePORTER calls sequential.\n- **Data sourcing.** Count only what tool calls returned this session. Never supplement with training knowledge. Training knowledge labeled `[Not from Consensus\u002FRePORTER — reference information]` and excluded from counts.\n- **Counts & attribution.** Queries sent \u002F results shown \u002F results cited — three separate numbers, never conflate. Every cited paper has retrievable URL from this session.\n- **Error handling.** On failure → wait 3s → retry once → log. After 3 consecutive failures across tools: stop, alert researcher, explain what's missing. Never silently skip.\n- **Transparency.** Audit Log section in the DOCX. Same standards in chat summary as in document.\n\nSee [`references\u002Freporter_post_patterns.md`](references\u002Freporter_post_patterns.md) for the RePORTER POST canon + plan-tier detection.\n\n## Phase 1: Grill-Me Intake (6 forcing questions, one at a time)\n\n### Q1 (root) — Research idea\n\n> **Describe the research idea in 2–3 sentences. What's the question, what's new, and what's the clinical relevance? Vague answers (\"AI for healthcare\", \"biomarkers for disease X\") will be rejected — push for specificity.**\n>\n> *Why I'm asking:* Five Consensus searches (established \u002F stakes \u002F current approaches \u002F adjacent methods \u002F gaps) depend on a precise research idea. Vague ideas produce vague gap quotes and useless positioning narrative.\n\nRefuse mush. Re-ask once with examples if user is too broad.\n\n### Q2 (depends on Q1) — Career stage\n\n> **Career stage — pick one:**\n>\n> 1. Pre-doctoral (PhD student, T32 trainee)\n> 2. Postdoctoral fellow (F32, K99 candidate)\n> 3. Early career (K-award candidate, first R01)\n> 4. Independent investigator (multiple R01s, established lab)\n> 5. Senior PI (R35, P-series, U01 leadership)\n>\n> *Why I'm asking:* Career stage filters mechanism recommendations. F-series for trainees, K-series for early career, R-series for independent. Picking the wrong stage produces unfundable mechanism suggestions.\n\nForcing choice.\n\n### Q3 (depends on Q2) — Preliminary data status\n\n> **Preliminary data — pick one:**\n>\n> 1. None (de novo project, no pilot data yet)\n> 2. Pilot data (early findings, single-site)\n> 3. Strong preliminary (multi-experiment, ready for R01-scale)\n> 4. Validated and ready (multi-site, publication-ready)\n>\n> *Why I'm asking:* Prelim data status drives mechanism budget. No data → R03 \u002F R21 pilot scope. Strong prelim → R01 \u002F U01 multi-site scale. Mismatch produces uncompetitive applications.\n\n### Q4 (depends on Q2) — Environment\n\n> **Research environment — pick one:**\n>\n> 1. R01-eligible (research-intensive institution with NIH base funding)\n> 2. Mid-tier (regional academic medical center, modest NIH portfolio)\n> 3. Resource-constrained (smaller institution, minimal NIH base)\n> 4. Industry-collaborative (academic + industry partnership)\n>\n> *Why I'm asking:* Environment affects scope realism (multi-site U01 requires R01-eligible) and which mechanism categories are competitive (R15 specifically targets resource-constrained).\n\n### Q5 (depends on Q1) — Submission posture\n\n> **Submission posture — pick one:**\n>\n> 1. New application (first submission, no prior reviews)\n> 2. Resubmission (A1 with reviewer responses needed)\n> 3. Exploring (haven't decided yet whether to submit)\n>\n> *Why I'm asking:* Resubmissions need reviewer-response guidance in the DOCX (Section 7). New applications skip that. Exploring shifts emphasis to landscape over strategy.\n\n### Q6 (depends on Q1) — Known institute targets\n\n> **Are you already considering specific NIH institutes? List names (NCI \u002F NHLBI \u002F NIMH \u002F NINDS \u002F NIDDK \u002F etc.) or say \"no preference — find the right ones\".**\n>\n> *Why I'm asking:* If you have an institute hypothesis, I'll validate it against RePORTER data. If not, I'll surface the top-3 institutes funding adjacent work from the institute-tally.\n\nAccept \"no preference\" as the common case.\n\n**Stop condition:** After Q6, commit and start Phase 2A. Never re-open intake after Phase 2A begins.\n\n## Phase 2A: Research Positioning (5 Consensus searches)\n\nRun sequentially at 1 q\u002Fsec. Each search corresponds to one positioning facet:\n\n1. **Established** — `\"\u003Cresearch idea>\" established evidence` — what's known\n2. **Stakes** — `\"\u003Ctopic>\" mortality OR burden OR cost OR prevalence` — why it matters\n3. **Current Approaches** — `\"\u003Ctopic>\" current treatment OR standard of care OR approach` — state of the art\n4. **Adjacent Methods** — `\"\u003Crelated technique>\" applied to \u003Ctopic>` — methodological possibilities\n5. **Gaps** — `\"\u003Ctopic>\" limitations OR unanswered OR future directions OR challenge` — gap signals\n\nUse `scripts\u002Fcitation_tracker.py --action record_consensus_search` for each. Plan-tier detected from first response.\n\n**Synthesis:** for each facet, extract 2-3 quotable findings (becomes Section 2 gap quotes). Draft Significance\u002FInnovation language using \"the field has established X (refs), but Y remains unanswered (refs)\" pattern.\n\n## Phase 2B: Institute Mapping + Grant Discovery (RePORTER POST)\n\nRePORTER is **POST-only**. Use `bash_tool` + `curl` — never `web_fetch`.\n\n### Dynamic fiscal year window\n\nCompute at runtime via `scripts\u002Ffiscal_year_calculator.py`. Default: current FY + 3 prior. Federal FY starts Oct 1, so:\n\n```bash\npython scripts\u002Ffiscal_year_calculator.py --output json\n# Returns: {\"current_fy\": 2026, \"window\": [2023, 2024, 2025, 2026]}\n```\n\n### Narrow (AND) search — finds direct overlap\n\n```bash\ncurl -X POST 'https:\u002F\u002Fapi.reporter.nih.gov\u002Fv2\u002Fprojects\u002Fsearch' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\n    \"criteria\": {\n      \"fiscal_years\": [2023, 2024, 2025, 2026],\n      \"include_active_projects\": true,\n      \"advanced_text_search\": {\n        \"operator\": \"AND\",\n        \"search_field\": \"all\",\n        \"search_text\": \"\u003Ckey term 1> \u003Ckey term 2>\"\n      }\n    },\n    \"limit\": 50,\n    \"include_fields\": [\"project_num\", \"project_title\", \"agency_ic_admin\", \"study_section\", \"fiscal_year\", \"principal_investigators\", \"abstract_text\"]\n  }'\n```\n\n### Broad (OR) search — finds adjacent work\n\n```bash\ncurl -X POST 'https:\u002F\u002Fapi.reporter.nih.gov\u002Fv2\u002Fprojects\u002Fsearch' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\n    \"criteria\": {\n      \"fiscal_years\": [2023, 2024, 2025, 2026],\n      \"advanced_text_search\": {\n        \"operator\": \"OR\",\n        \"search_field\": \"all\",\n        \"search_text\": \"\u003Cterm> \u003Csynonym> \u003Crelated concept>\"\n      }\n    },\n    \"limit\": 50\n  }'\n```\n\n### Institute tally + study section ranking\n\nAfter RePORTER responses:\n- Tally `agency_ic_admin` (institute code: NCI, NHLBI, NIMH, etc.) → top-3 funding institutes\n- Tally `study_section` → top-2 study sections (where applications go for review)\n\n### NOSI discovery\n\nParse RePORTER responses for `NOT-*` opportunity numbers. For each:\n\n```bash\n# NOSIs live at predictable URLs:\n# https:\u002F\u002Fgrants.nih.gov\u002Fgrants\u002Fguide\u002Fnotice-files\u002FNOT-\u003CINSTITUTE>-\u003CYEAR>-\u003CNUMBER>.html\nweb_fetch \u003Curl>\n```\n\nIf fetch fails: log `[NOSI {number} — fetch failed, not included]`, continue.\n\n## Mechanism Matching (Scope-Aware)\n\nNOT career stage alone. Career stage **+** project scope **+** prelim data drive recommendation.\n\nUse `scripts\u002Fmechanism_matcher.py`:\n\n```bash\npython scripts\u002Fmechanism_matcher.py \\\n  --career-stage \"early_career\" \\\n  --prelim-data \"pilot\" \\\n  --environment \"r01_eligible\" \\\n  --scope \"single_site\" \\\n  --output json\n# Returns mechanism shortlist with rationale\n```\n\nSee [`references\u002Fnih_mechanism_matching.md`](references\u002Fnih_mechanism_matching.md) for the full matrix.\n\n## Phase 3: DOCX Generation\n\n9 sections via Node.js + `docx` library. See [`references\u002Fdocx_9_sections.md`](references\u002Fdocx_9_sections.md) for full spec.\n\n1. **Executive Summary** — title + career stage + environment + 3-4 key findings bullets\n2. **Research Positioning** — 3-5 gap quotes (italicized, inline Consensus citations) + 2-3 paragraph positioning narrative + supporting evidence table\n3. **Target Institutes** — ranking table (institute, project count in window, % match to your idea) + 2-3 sentence interpretation\n4. **Grant Opportunities** — bold NOSI callout if any. Top-3 grants table with hyperlinked FOAs + per-grant scope\u002Fbudget fit paragraph\n5. **Funded Overlap** — top-5 projects table (PI, project_num, IC, year, hyperlinked to RePORTER) + differentiation paragraph\n6. **Study Sections** — ranking table + best-match interpretation\n7. **Strategic Recommendations & Next Steps** — 3-4 numbered recs + **mandatory program officer rec** + submission timeline note + (if resubmission Q5=2) reviewer-response guidance + closing paragraph\n8. **References** — numbered bibliography, hyperlinked to Consensus\n9. **Audit Log** — Consensus searches table, plan-tier note, RePORTER searches table, NOSI fetches table, summary stats, tool constraints note, failed steps\n\n### Styling\n\nArial 12pt body, navy headings (#1a3a5c), light blue table headers (#e8f0f8), amber NOSI callout. `ExternalHyperlink` patterns:\n- Paper citations: `https:\u002F\u002Fconsensus.app\u002Fpapers\u002F...`\n- FOA links: `https:\u002F\u002Fgrants.nih.gov\u002Fgrants\u002Fguide\u002F...`\n- RePORTER projects: `https:\u002F\u002Freporter.nih.gov\u002Fproject-details\u002F\u003Cid>`\n\n## Mandatory Program Officer Recommendation\n\nAlways include in Section 7:\n\n> **Recommended next step: contact program officer at {top institute}.** Find their staff page at https:\u002F\u002Fwww.nih.gov\u002Finstitutes-nih\u002Flist-nih-institutes-centers-offices → {institute} → Program Officers. Prepare: 1-page specific aims + your CV + 3 specific questions about fit. Email subject: \"Pre-application inquiry: \u003Ctopic>\".\n\nThis is the single most valuable advice for any applicant. Never skip.\n\n## Submission Timeline (Embedded in DOCX Section 7)\n\n| Mechanism | Standard receipt dates |\n|---|---|\n| R01, R21, R03 | Feb 5, Jun 5, Oct 5 |\n| K awards (K01, K08, K23, K99) | Feb 12, Jun 12, Oct 12 |\n| R34, R61\u002FR33 | Feb 16, Jun 16, Oct 16 |\n| F31, F32 | Apr 8, Aug 8, Dec 8 |\n\n## Phase 4: Deliver\n\n- Save DOCX to `\u003Coutput-dir>\u002Fgrants_\u003Ctopic-slug>_\u003CYYYY-MM-DD>.docx`\n- Chat summary: file path + audit counts + plan tier + verdict on institute targets\n- Validate: check zip integrity with `python3 -c \"import zipfile,sys; zipfile.ZipFile(sys.argv[1]).testzip()\" \u003Cdocx>` (no output = intact), then confirm the required sections are present\n\n## Tooling\n\n| Script | Role |\n|---|---|\n| `scripts\u002Fcitation_tracker.py` | Three-count audit (Consensus sent\u002Fshown\u002Fcited + RePORTER projects\u002Fcited) at `~\u002F.grants_sessions\u002F\u003Csession>.json` |\n| `scripts\u002Ffiscal_year_calculator.py` | Current FY + 3-prior window. Computed at runtime, never hardcoded. |\n| `scripts\u002Fmechanism_matcher.py` | Career stage × scope × prelim → mechanism recommendation shortlist |\n\n## References\n\n- [`references\u002Fnih_mechanism_matching.md`](references\u002Fnih_mechanism_matching.md) — career stage × scope × prelim → mechanism canon (7+ sources)\n- [`references\u002Freporter_post_patterns.md`](references\u002Freporter_post_patterns.md) — RePORTER curl POST templates + plan-tier detection (7+ sources)\n- [`references\u002Fdocx_9_sections.md`](references\u002Fdocx_9_sections.md) — 9-section .docx spec + technical requirements (7+ sources)\n\n## Error Handling\n\n| Failure | Behavior |\n|---|---|\n| Consensus rate-limit hit | Wait 3s, retry once, log; if still failing, alert researcher |\n| Consensus returns 0 for a facet | Surface explicitly; never fill with training knowledge |\n| Consensus plan-tier cap detected | Log tier, note in audit, surface to researcher |\n| RePORTER POST returns error | Retry once after 3s; if still failing, log and continue |\n| RePORTER returns \u003C5 on narrow | Document; broad OR should compensate; surface low count |\n| NOSI fetch fails | Log `[NOSI {n} — fetch failed]`, continue |\n| 3 consecutive tool failures | Stop, alert researcher with what's missing |\n| DOCX generation fails | Save raw data as JSON fallback so researcher doesn't lose work |\n\n## Anti-Patterns To Reject\n\n- Parallelizing Consensus calls (will hit rate limit)\n- Using `web_fetch` for RePORTER (POST-only — `web_fetch` is GET)\n- Hardcoded fiscal year values\n- Mechanism recommendations based on career stage alone (must consider scope too)\n- Silently filling thin facet results with training knowledge\n- Skipping the audit log\n- Skipping the program officer recommendation\n- Conflating \"papers found\" with \"papers shown\" with \"papers cited\"\n- Fabricating NOSI details when fetch fails\n\n---\n\n**Version:** 1.0.0\n**Source spec:** [`megaprompts\u002F08-grants-megaprompt.md`](..\u002F..\u002F..\u002F..\u002Fmegaprompts\u002F08-grants-megaprompt.md)\n**Build pattern:** Path B (direct conversion). Research-pack sibling of pulse + litreview.\n",{"name":5,"license":15,"metadata":24,"description":7},{"version":25,"source_spec":26,"build_pattern":27,"research_pack_convention":28},"1.0.0","megaprompts\u002F08-grants-megaprompt.md","Path B (direct conversion)","Agent Integrity Rules verbatim per PR #657 audit","main","a4404a75dc81d6b7e58c5906b6aaffbcb5e84747","Claude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants",0,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills","https:\u002F\u002Fgithub.com\u002FMHassan0000","https:\u002F\u002Fhassanyousaf.vercel.app","Full Stack Developer building web apps, SaaS, AI systems, and automations. Passionate about clean code, UI\u002FUX, backend systems, and turning ideas into products.","2026-08-07 20:42:05",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add MHassan0000\u002FSkills --skill grants",{"tool":44,"command":45},"bunx","bunx skills add MHassan0000\u002FSkills --skill grants",{"tool":47,"command":48},"pnpm","pnpm dlx skills add MHassan0000\u002FSkills --skill grants","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",true,[52,58,62,66,72,76],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fdocx_9_sections.md","REFERENCE","参考文档",10958,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002Freferences\u002Fdocx_9_sections.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fnih_mechanism_matching.md",8507,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002Freferences\u002Fnih_mechanism_matching.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Freporter_post_patterns.md",7652,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002Freferences\u002Freporter_post_patterns.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fcitation_tracker.py","SCRIPT","脚本",12072,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002Fscripts\u002Fcitation_tracker.py",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Ffiscal_year_calculator.py",3514,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002Fscripts\u002Ffiscal_year_calculator.py",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fmechanism_matcher.py",12079,"https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fclaude-skills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002Fscripts\u002Fmechanism_matcher.py",[81,88,95,102,111,119],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7AGBX58S04DX8DKKME8N311","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7AGBREE890608Z7YDMAKH27","stop-slop","Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells and produce more human-like writing.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Fstop-slop\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7AGAS972A2AN7Q5EW8HEAXK","ogilvy-copywriting","Apply David Ogilvy's advertising principles when writing or reviewing copy, headlines, product descriptions, landing pages, ads, emails, or any persuasive text. Use when the goal is copy that sells, not copy that wins awards. Covers positioning, headlines, promises, brand voice, long-form copy, and visual logic. Source: How to Create Advertising That Sells (1972) + Ogilvy on Advertising.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Fogilvy\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7AGAF12803G5JPVMK79AYJB","frontend-design","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fskills boraztunc github\u002Ffrontend-design\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7AG88WWVWCGJY9WA9CH7EY4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M7AG7ZTNV7XQCWDQ9674FBYB","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMHassan0000\u002FSkills\u002Fblob\u002Fmain\u002FClaude\u002Fobra superpower skills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[]]