← Back to Skills Marketplace
161
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install date-calculator
Description
Calculates gestational age and follow-up date windows.
README (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
Usage Guidance
This skill appears to do what it says: a small local Python calculator with no network calls or secret access. Before installing or running it: (1) run it in a sandbox or non-privileged environment; (2) avoid passing sensitive or system file paths to --output (the script will overwrite whatever path you provide and does not sanitize it); (3) double-check you invoke the correct file path (scripts/main.py vs main.py in examples); (4) if you plan to use it in production workflows, add explicit output-path validation and limit output directory to a workspace to avoid accidental file overwrite. If you need higher assurance, run a quick local review or test with harmless paths first.
Capability Analysis
Type: OpenClaw Skill
Name: date-calculator
Version: 0.1.0
The skill bundle is a straightforward utility for calculating medical dates, such as gestational age and follow-up windows. The Python script (scripts/main.py) uses standard libraries (datetime, argparse) to perform calculations and optionally write results to a local file, with no evidence of network access, data exfiltration, or malicious execution.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, and scripts/main.py are consistent: a small Python tool that computes gestational age and follow-up windows. It does not request unrelated credentials or binaries.
Instruction Scope
Runtime instructions only run the bundled Python script and produce JSON output. However, the code accepts an arbitrary --output path and will open/write that file without sanitization or path traversal checks (the SKILL.md checklist mentions validating paths but the code does not). Also a minor documentation mismatch: usage examples in the script epilog reference python main.py while SKILL.md uses python scripts/main.py. No instructions read environment variables or other unrelated files.
Install Mechanism
No install spec; this is instruction-only with a bundled script. Nothing is downloaded or written to disk by an installer step beyond the included files.
Credentials
No environment variables, credentials, or config paths are requested. The requested surface is proportional to the stated functionality.
Persistence & Privilege
always is false and the skill does not request persistent/system-level privileges or modify other skills. Autonomous invocation defaults are unchanged.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install date-calculator - After installation, invoke the skill by name or use
/date-calculator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of the date-calculator skill.
- Calculates gestational age from last menstrual period (LMP) dates.
- Computes follow-up date windows based on configurable weeks and window sizes.
- Supports date adjustments and visit scheduling.
- Command-line interface with parameters for type, date, weeks, and output file.
- Outputs results in structured JSON format.
- Includes risk assessment and security checklist.
Metadata
Frequently Asked Questions
What is Date Calculator?
Calculates gestational age and follow-up date windows. It is an AI Agent Skill for Claude Code / OpenClaw, with 161 downloads so far.
How do I install Date Calculator?
Run "/install date-calculator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Date Calculator free?
Yes, Date Calculator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Date Calculator support?
Date Calculator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Date Calculator?
It is built and maintained by AIpoch (@aipoch-ai); the current version is v0.1.0.
More Skills