date-calculator
Calculates gestational age and follow-up date windows.
- License 许可
- MIT
- 最近更新
- 2026-06-28
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- date-calculator
- tags
- [ "dates", "pregnancy", "follow-up", "calculator" ]
- owner
- AIPOCH
- author
- AIPOCH
- status
- Draft
- license
- MIT
- version
- 1.0.0
- category
- Utility
- reviewer
- risk_level
- Medium
- skill_type
- Tool/Script
- description
- Calculates gestational age and follow-up date windows.
- last_updated
- 2026-02-06
02 资源文件 1
- 参考文档README.md706 B
03 SKILL.md 正文
Date Calculator
Calculates medical date windows.
Features
- Gestational age
- Follow-up windows
- Visit scheduling
- Date adjustments
Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
--type, -t |
string | - | Yes | Calculation type (gestational or followup) |
--date, -d |
string | - | Yes | Date in YYYY-MM-DD format |
--weeks |
int | 4 | No | Number of weeks for follow-up |
--window-days |
int | 7 | No | Follow-up window size in days |
--output, -o |
string | - | No | Output JSON file path |
Usage
# Calculate gestational age
python scripts/main.py --type gestational --date 2024-01-15
# Calculate 4-week follow-up window
python scripts/main.py --type followup --date 2024-03-01
# Calculate custom follow-up (6 weeks)
python scripts/main.py --type followup --date 2024-03-01 --weeks 6
Output Format
Gestational calculation:
{
"lmp_date": "2024-01-15",
"gestational_age": "12 weeks 3 days",
"gestational_age_days": 87,
"estimated_delivery_date": "2024-10-21",
"calculation_date": "2024-04-12"
}
Follow-up calculation:
{
"start_date": "2024-03-01",
"followup_weeks": 4,
"window_start": "2024-03-29",
"window_end": "2024-04-05",
"window_range": "2024-03-29 to 2024-04-05"
}
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
- [ ] No hardcoded credentials or API keys
- [ ] No unauthorized file system access (../)
- [ ] Output does not expose sensitive information
- [ ] Prompt injection protections in place
- [ ] Input file paths validated (no ../ traversal)
- [ ] Output directory restricted to workspace
- [ ] Script execution in sandboxed environment
- [ ] Error messages sanitized (no stack traces exposed)
- [ ] Dependencies audited
Prerequisites
No additional Python packages required.
Evaluation Criteria
Success Metrics
- [ ] Successfully executes main functionality
- [ ] Output meets quality standards
- [ ] Handles edge cases gracefully
- [ ] Performance is acceptable
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
04 同仓库更多 Skills
rhaios-staging
Interact with the Rhaios staging REST API for yield operations. Discover -> prepare -> setup-if-needed -> sign -> execute flow with pluggable signer backend. Triggers on requests involving DeFi yield, vault deposits, redeems, rebalancing, or Rhaios API.
git-commit-push
Commit and push repository changes safely. Use when user asks to commit, push, or verify and push current changes.
exec-slurm-compile
Compile TensorRT-LLM on a SLURM cluster. Covers submitting a batch job with a container image, monitoring the job, and verifying the build. Use when the user wants to compile TRT-LLM remotely via SLURM rather than on a local compute node.
databases
Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin). Use when designing database schemas, writing queries and aggregations, optimizing indexes for performance, performing database migrations, configuring replication and sharding, implementing backup and restore strategies, managing database users and permissions, analyzing query performance, or administering production databases.
toast
Toast — restaurant POS, orders, menus, employees, revenue centers, and reporting.
k-schoollunch-menu
Use when the user asks for Korean school meal menus (급식 식단) by natural-language education office and school name, via k-skill-proxy NEIS school-search and school-meal routes.