← 返回 Skills 市场
161
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install date-calculator
功能描述
Calculates gestational age and follow-up date windows.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install date-calculator - 安装完成后,直接呼叫该 Skill 的名称或使用
/date-calculator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Date Calculator 是什么?
Calculates gestational age and follow-up date windows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 161 次。
如何安装 Date Calculator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install date-calculator」即可一键安装,无需额外配置。
Date Calculator 是免费的吗?
是的,Date Calculator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Date Calculator 支持哪些平台?
Date Calculator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Date Calculator?
由 AIpoch(@aipoch-ai)开发并维护,当前版本 v0.1.0。
推荐 Skills