← 返回 Skills 市场
freedompixels

cn-age-calculator

作者 freedompixels · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
52
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cn-age-calculator
功能描述
年龄计算器。精确计算年龄(年月日)、生日倒计时、星座生肖判定。支持多种日期格式输入,纯Python标准库,无需API Key。
使用说明 (SKILL.md)

cn-age-calculator

年龄计算器。精确计算年龄、生日倒计时、星座生肖。

功能

  • 精确年龄:年/月/日精确计算
  • 生日倒计时:距离下次生日还有多少天
  • 星座判定:12星座自动识别
  • 生肖判定:12生肖自动识别
  • 多格式输入:YYYY-MM-DD / YYYY年MM月DD日 / MM-DD

安装要求

  • Python 3.6+
  • 无外部依赖

使用方法

# 计算全部信息
python3 scripts/age_calculator.py "1990-05-15"

# 指定计算类型
python3 scripts/age_calculator.py "1990-05-15" --action age
python3 scripts/age_calculator.py "1990-05-15" --action countdown
python3 scripts/age_calculator.py "1990-05-15" --action zodiac

示例

输入:1990-05-15 输出:

年龄: 35岁11个月12天
星座: 金牛座
生肖: 马
距离下次生日: 23天

分类

生活工具

关键词

年龄, 生日, 星座, 生肖, 倒计时, age, birthday, zodiac

安全使用建议
This skill appears coherent and safe to run: it only executes a small local Python script and does not request secrets or network access. Before installing/using: (1) review the tiny script yourself (it's short and readable) if you want extra assurance; (2) be aware of a correctness bug that can cause the program to crash for some dates around January — consider testing with representative dates or patching the days-in-previous-month logic; (3) because it runs a local python command, run it in a contained environment if you want to be conservative. No other security red flags detected.
功能分析
Type: OpenClaw Skill Name: cn-age-calculator Version: 1.1.0 The skill is a straightforward age and zodiac calculator that uses only the Python standard library. The script `scripts/age_calculator.py` implements safe date parsing using `datetime.strptime` and handles command-line arguments via `argparse`, which prevents internal logic vulnerabilities. There is no evidence of data exfiltration, network activity, or malicious prompt injection in `SKILL.md`.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description (age, birthday, zodiac) align with the provided script and SKILL.md. No unrelated env vars, binaries, or network access are requested; included code implements the declared features.
Instruction Scope
SKILL.md instructs only to run the shipped Python script with a date argument; the script does not read environment vars, contact external endpoints, or access other system files. Note: there is a bug in days-in-previous-month calculation (logic can attempt date(..., month=13, ...) when ref_date.month == 1), which may raise an exception for some January reference dates — this is a correctness/reliability issue, not a security one.
Install Mechanism
No install spec and no downloads; this is an instruction-only skill with one local Python script that uses only the standard library.
Credentials
No environment variables, credentials, or config paths are requested or used. The script runs entirely locally and does not attempt to read secrets or external configuration.
Persistence & Privilege
always is false and the skill does not request persistent system-wide privileges or modify other skills/configs. Normal user-invocable and autonomous-invocation defaults are used.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cn-age-calculator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cn-age-calculator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
- Added structured frontmatter with name, description, scope, install, entry, and handler sections for better integration and clarity. - Expanded and reorganized usage instructions, including specific command-line action options. - Enhanced feature descriptions and example sections for clearer functionality overview. - Updated keywords and classification for improved search and discovery.
v1.0.0
Initial release of cn-age-calculator: - Calculates precise age in years, months, and days - Provides birthday countdown - Determines zodiac sign and Chinese zodiac animal - Supports multiple date input formats - All processing is local, no API required - No external dependencies required (Python 3.6+)
元数据
Slug cn-age-calculator
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

cn-age-calculator 是什么?

年龄计算器。精确计算年龄(年月日)、生日倒计时、星座生肖判定。支持多种日期格式输入,纯Python标准库,无需API Key。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 52 次。

如何安装 cn-age-calculator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cn-age-calculator」即可一键安装,无需额外配置。

cn-age-calculator 是免费的吗?

是的,cn-age-calculator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cn-age-calculator 支持哪些平台?

cn-age-calculator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cn-age-calculator?

由 freedompixels(@freedompixels)开发并维护,当前版本 v1.1.0。

💬 留言讨论