aipoch/medical-research-skills/date-calculator
Claude Code and agent skill by aipoch/medical-research-skills
- community
Checking that the SKILL.md file is still in the repository.
Calculate medical date windows including gestational age, estimated delivery dates, and follow-up visit scheduling. Produces structured JSON output for clinical research and trial coordination workflows.
Install
npx vskill@latest install aipoch/medical-research-skills/date-calculatorSKILL.md
Date Calculator
Calculate medical date windows for clinical research: gestational age from LMP, estimated delivery dates, and follow-up visit scheduling with configurable window sizes.
Quick Check
When to Use
- Computing gestational age and estimated delivery date from last menstrual period
- Scheduling follow-up visit windows for clinical trials
- Generating date ranges for protocol-defined visit windows
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.
Note on group parameter: If --group is not provided, log-rank test and Cox regression are skipped. Single-arm KM only. An informational note will be included in the output.
Fallback template: If scripts/main.py fails or a required parameter is absent, report: (a) which parameter is missing, (b) what partial calculation is still valid, (c) the manual formula for the requested calculation type.
Parameters
| Parameter | Type | Required | Description | |
|---|---|---|---|---|
--type, -t | string | Yes | Calculation type: gestational or followup | |
--date, -d | string | Yes | Reference date in YYYY-MM-DD format | |
--weeks | int | No | Follow-up interval in weeks (default: 4; must be ≥ 1) | |
--window-days | int | No | Visit window size in days (default: 7) | |
--timezone | string | No | Timezone for calculation (default: UTC) | |
--output, -o | string | No | Output JSON file path (default: stdout) |
Usage
Output Format
Gestational:
Follow-up:
Output Requirements
Every response must make these explicit:
- Objective and deliverable
- Inputs used and assumptions introduced
- Workflow or decision path taken
- Core result: calculated dates and windows
- Constraints, risks, caveats (e.g., timezone assumptions, calendar edge cases)
- Unresolved items and next-step checks
Input Validation
This skill accepts: medical date calculation requests specifying a calculation type (gestational or followup) and a reference date in YYYY-MM-DD format.
If the request does not involve medical date window calculation — for example, asking to schedule general appointments, perform time-zone conversions unrelated to clinical dates, or calculate non-medical intervals — do not proceed. Instead respond:
"date-calculatoris designed to calculate medical date windows for clinical research. Your request appears to be outside this scope. Please provide a calculation type and reference date, or use a more appropriate tool for your task."
Validation rules:
- Date must be in
YYYY-MM-DDformat; invalid formats are rejected with exit code 1. - If LMP date is in the future, a
warningfield is included in the output. --weeksmust be ≥ 1; zero or negative values are rejected with a clear error message.--timezonedefaults to UTC; use pytz timezone names (e.g.,America/New_York).
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.pyfails, 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.
Response Template
- Objective
- Inputs Received
- Assumptions
- Workflow
- Deliverable
- Risks and Limits
- Next Checks
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingscientific-skills/Other/date-calculator/SKILL.md
Popularity
- Repository stars
- 1,557
- Repository forks
- 152
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aipoch/medical-research-skills/date-calculator)