{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-evidence-insight-funding-trend-forecaster-fb2fe4721631","title":"Funding Trend Forecaster","summary":"Analyzes funding abstracts and project metadata to identify topic shifts and forecast near-term grant priorities. Delivers structured results with assumptions, deliverables, risks, and unresolved items.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-funding-trend-forecaster-fb2fe4721631","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-funding-trend-forecaster-fb2fe4721631","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-funding-trend-forecaster-fb2fe4721631.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-funding-trend-forecaster-fb2fe4721631\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure the input path, output path, scope filters, thresholds, and domain-specific constraints are clarified before execution. The script requires a valid `CONFIG` block or documented parameters to be edited if the script uses fixed settings.","instructions":"---\nname: funding-trend-forecaster\ndescription: Analyze funding abstracts and project metadata to identify topic shifts and forecast near-term grant priorities.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Skill: Funding Trend Forecaster\n\n**ID:** 200  \n**Version:** 1.0.0  \n**Author:** OpenClaw Agent  \n**License:** MIT\n\n---\n\n## When to Use\n\n- Use this skill when the task is to Analyze funding abstracts and project metadata to identify topic shifts and forecast near-term grant priorities.\n- Use this skill for evidence insight tasks that require explicit assumptions, bounded scope, and a reproducible output format.\n- Use this skill when the response must stay inside the documented task boundary instead of expanding into adjacent work.\n\n## Key Features\n\nSee `## Features` above for related details.\n\n- Scope-focused workflow aligned to: Analyze funding abstracts and project metadata to identify topic shifts and forecast near-term grant priorities.\n- Packaged executable path(s): `scripts\/main.py`.\n- Reference material available in `references\/` for task-specific guidance.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\n```\nrequests>=2.28.0\nbeautifulsoup4>=4.11.0\npandas>=1.5.0\nnumpy>=1.23.0\nscikit-learn>=1.1.0\ntextblob>=0.17.1\nnltk>=3.7\nmatplotlib>=3.6.0\nseaborn>=0.12.0\nwordcloud>=1.8.0\npython-dateutil>=2.8.0\n```\n\n## Example Usage\n\nSee `## Usage` above for related details.\n\n```bash\ncd \"20260318\/scientific-skills\/Evidence Insight\/funding-trend-forecaster\"\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/main.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/main.py`.\n- Reference guidance: `references\/` contains supporting rules, prompts, or checklists.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Quick Check\n\nUse this command to verify that the packaged script entry point can be parsed before deeper execution.\n\n```bash\npython -m py_compile scripts\/main.py\n```\n\n## Audit-Ready Commands\n\nUse these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\npython scripts\/main.py --source nih --months 3\npython scripts\/main.py --forecast --years 3\n```\n\n## Workflow\n\n1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.\n2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.\n3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\n4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n## Overview\n\nFunding Trend Forecaster is an intelligent analysis tool that uses Natural Language Processing (NLP) technology to analyze awarded project abstracts from major global research funding agencies (NIH, NSF, Horizon Europe) and predict funding preference shift trends for the next 3-5 years.\n\n## Features\n\n- **Multi-source Data Collection**: Automatically fetches awarded project data from NIH, NSF, Horizon Europe\n- **NLP Deep Analysis**: Uses advanced text mining techniques to extract topics, keywords, and research trends\n- **Trend Prediction Model**: Predicts funding direction changes based on time series analysis and topic modeling\n- **Visualized Reports**: Generates charts and trend reports for intuitive display of analysis results\n- **Field Segmentation**: Categorized analysis by medicine, engineering, natural sciences, and other fields\n\n## Installation\n\n```text\n\n# Enter skill directory\ncd skills\/funding-trend-forecaster\n\n# Install dependencies\npip install -r requirements.txt\n\n# Download NLTK data\npython -c \"import nltk; nltk.download('punkt'); nltk.download('stopwords'); nltk.download('wordnet')\"\n```\n\n## Usage\n\n### Command Line Interface\n\n```text\n\n# Run full analysis workflow\npython scripts\/main.py --analyze-all --output report.json\n\n# Analyze specific agency only\npython scripts\/main.py --source nih --months 6\n\n# Generate visualization report\npython scripts\/main.py --visualize --input data.json --output charts\/\n\n# View trend forecast\npython scripts\/main.py --forecast --years 5 --output forecast.json\n```\n\n### API Call\n\n```python\nfrom scripts.main import FundingTrendForecaster\n\n# Initialize forecaster\nforecaster = FundingTrendForecaster()\n\n# Collect data\nforecaster.collect_data(sources=['nih', 'nsf', 'horizon_europe'], months=6)\n\n# Execute analysis\nresults = forecaster.analyze_trends()\n\n# Generate forecast\nforecast = forecaster.predict_trends(years=5)\n\n# Export report\nforecaster.export_report(output_path='report.pdf', format='pdf')\n```\n\n## Parameters\n\n| Parameter | Type | Default | Required | Description |\n|-----------|------|---------|----------|-------------|\n| `--analyze-all` | flag | false | No | Run full analysis workflow on all sources |\n| `--source` | string | - | No | Specific agency to analyze (nih, nsf, horizon_europe) |\n| `--months` | int | 6 | No | Number of months of historical data to analyze |\n| `--years` | int | 5 | No | Years ahead for trend prediction |\n| `--visualize` | flag | false | No | Generate visualization charts |\n| `--forecast` | flag | false | No | Generate trend forecast |\n| `--input`, `-i` | string | - | No | Input data file path (for visualization\/forecast) |\n| `--output`, `-o` | string | - | No | Output file path |\n| `--config` | string | config.json | No | Path to configuration file |\n\n## Data Sources\n\n| Agency | Data Source URL | Update Frequency |\n|------|-----------|---------|\n| NIH | https:\/\/reporter.nih.gov\/ | Daily |\n| NSF | https:\/\/www.nsf.gov\/awardsearch\/ | Daily |\n| Horizon Europe | https:\/\/ec.europa.eu\/info\/funding-tenders\/opportunities\/ | Weekly |\n\n## Configuration\n\nCreate `config.json` file to customize analysis parameters:\n\n```json\n{\n  \"sources\": {\n    \"nih\": {\n      \"enabled\": true,\n      \"base_url\": \"https:\/\/reporter.nih.gov\/\",\n      \"max_results\": 1000\n    },\n    \"nsf\": {\n      \"enabled\": true,\n      \"base_url\": \"https:\/\/www.nsf.gov\/awardsearch\/\",\n      \"max_results\": 1000\n    },\n    \"horizon_europe\": {\n      \"enabled\": true,\n      \"base_url\": \"https:\/\/ec.europa.eu\/info\/funding-tenders\/\",\n      \"max_results\": 500\n    }\n  },\n  \"nlp\": {\n    \"language\": \"en\",\n    \"min_word_length\": 3,\n    \"max_topics\": 20,\n    \"stop_words\": [\"research\", \"study\", \"project\"]\n  },\n  \"forecast\": {\n    \"method\": \"lda_trend\",\n    \"confidence_level\": 0.95,\n    \"years_ahead\": 5\n  }\n}\n```\n\n## Output Format\n\n### JSON Report Structure\n\n```json\n{\n  \"metadata\": {\n    \"generated_at\": \"2024-01-15T10:30:00Z\",\n    \"data_period\": \"2023-07-01 to 2024-01-01\",\n    \"sources\": [\"nih\", \"nsf\", \"horizon_europe\"],\n    \"total_projects\": 15420\n  },\n  \"trend_analysis\": {\n    \"top_keywords\": [\n      {\"term\": \"artificial intelligence\", \"frequency\": 342, \"growth\": 0.45},\n      {\"term\": \"climate change\", \"frequency\": 298, \"growth\": 0.32}\n    ],\n    \"emerging_topics\": [\n      {\"topic\": \"Large Language Models\", \"projects\": 89, \"trend\": \"rising\"},\n      {\"topic\": \"Carbon Capture\", \"projects\": 156, \"trend\": \"stable\"}\n    ],\n    \"funding_shifts\": {\n      \"increasing\": [\"AI\/ML\", \"Climate Tech\", \"Quantum Computing\"],\n      \"decreasing\": [\"Traditional Materials\", \"Fossil Fuels Research\"]\n    }\n  },\n  \"forecast\": {\n    \"2025\": {\n      \"predicted_hot_topics\": [\"Generative AI\", \"Gene Editing\", \"Fusion Energy\"],\n      \"confidence\": 0.87\n    },\n    \"2026-2029\": {\n      \"long_term_trends\": [\"AGI Safety\", \"Personalized Medicine\", \"Space Mining\"],\n      \"confidence\": 0.72\n    }\n  }\n}\n```\n\n## Architecture\n\n```\nfunding-trend-forecaster\/\n\u251c\u2500\u2500 scripts\/\n\u2502   \u251c\u2500\u2500 main.py              # Main entry\n\u2502   \u251c\u2500\u2500 collectors\/          # Data collection module\n\u2502   \u2502   \u251c\u2500\u2500 __init__.py\n\u2502   \u2502   \u251c\u2500\u2500 nih_collector.py\n\u2502   \u2502   \u251c\u2500\u2500 nsf_collector.py\n\u2502   \u2502   \u2514\u2500\u2500 horizon_collector.py\n\u2502   \u251c\u2500\u2500 analyzers\/           # NLP analysis module\n\u2502   \u2502   \u251c\u2500\u2500 __init__.py\n\u2502   \u2502   \u251c\u2500\u2500 text_processor.py\n\u2502   \u2502   \u251c\u2500\u2500 topic_modeler.py\n\u2502   \u2502   \u2514\u2500\u2500 trend_detector.py\n\u2502   \u251c\u2500\u2500 predictors\/          # Prediction module\n\u2502   \u2502   \u251c\u2500\u2500 __init__.py\n\u2502   \u2502   \u2514\u2500\u2500 trend_forecaster.py\n\u2502   \u2514\u2500\u2500 utils\/               # Utility module\n\u2502       \u251c\u2500\u2500 __init__.py\n\u2502       \u251c\u2500\u2500 config.py\n\u2502       \u2514\u2500\u2500 visualizer.py\n\u251c\u2500\u2500 data\/                    # Data storage\n\u2502   \u251c\u2500\u2500 raw\/\n\u2502   \u2514\u2500\u2500 processed\/\n\u251c\u2500\u2500 output\/                  # Output directory\n\u251c\u2500\u2500 config.json              # Configuration file\n\u251c\u2500\u2500 requirements.txt         # Python dependencies\n\u2514\u2500\u2500 SKILL.md                 # This document\n```\n\n## Roadmap\n\n- [x] Basic architecture design\n- [x] Core analysis module\n- [ ] More data source support (Wellcome Trust, JSPS, etc.)\n- [ ] Real-time data stream processing\n- [ ] Interactive web interface\n- [ ] Machine learning model optimization\n\n## License\n\nMIT License - See LICENSE file in project root directory\n\n---\n\n*Generated by OpenClaw Agent | Skill ID: 200*\n\n## Output Requirements\n\nEvery final response should make these items explicit when they are relevant:\n\n- Objective or requested deliverable\n- Inputs used and assumptions introduced\n- Workflow or decision path\n- Core result, recommendation, or artifact\n- Constraints, risks, caveats, or validation needs\n- Unresolved items and next-step checks\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If `scripts\/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `funding-trend-forecaster` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `funding-trend-forecaster` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## References\n\n- [references\/audit-reference.md](references\/audit-reference.md) - Supported scope, audit commands, and fallback boundaries\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\n","use_cases":["Identify emerging research topics in medical funding","Forecast grant allocation trends for the next 3-5 years","Analyze NIH, NSF, and Horizon Europe funding patterns"],"limitations":[],"compatibility":[],"setup_tip":"```text\n\n# Enter skill directory\ncd skills\/funding-trend-forecaster\n\n# Install dependencies\npip install -r requirements.txt\n\n# Download NLTK data\npython -c \"import nltk; nltk.download('punkt'); nltk.download('stopwords'); nltk.download('wordnet')\"\n```","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Evidence%20Insight\/funding-trend-forecaster\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T12:37:36.000000Z","updated_at":"2026-11-26T09:24:51.000000Z","seo_title":"Funding Trend Forecaster for Grant Priorities","seo_description":"Use Funding Trend Forecaster to analyze funding abstracts and predict grant priorities with NLP and data analysis.","seo_keywords":["grant priority forecasting","funding trend analysis","research grant prediction","NIH funding trends","NSF grant analysis"]}}