技能详情(站内镜像,无评论)
作者:AIpoch @AIPOCH-AI
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v0.1.0
统计:⭐ 0 · 30 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :良性
Package:aipoch-ai/date-calculator
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill's code and instructions match its stated purpose (medical date calculations); it has no network access or secret requirements, but the script will write an arbitrary output path if provided so run it with care (sandbox / restrict output paths).
目的
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.
说明范围
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 …
安装机制
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.
证书
No environment variables, credentials, or config paths are requested. The requested surface is proportional to the stated functionality.
持久
always is false and the skill does not request persistent/system-level privileges or modify other skills. Autonomous invocation defaults are unchanged.
综合结论
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…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Date Calculator」。简介:Calculates gestational age and follow-up date windows.。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/aipoch-ai/date-calculator/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: date-calculator
description: Calculates gestational age and follow-up date windows.
version: 1.0.0
category: Utility
tags:
- dates
- pregnancy
- follow-up
- calculator
author: AIPOCH
license: MIT
status: Draft
risk_level: Medium
skill_type: Tool/Script
owner: AIPOCH
reviewer: ''
last_updated: '2026-02-06'
---
# 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
```bash
# 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:**
```json
{
"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:**
```json
{
"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
1. **Basic Functionality**: Standard input → Expected output
2. **Edge Case**: Invalid input → Graceful error handling
3. **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