← Back to Skills Marketplace
cn-age-calculator
by
freedompixels
· GitHub ↗
· v1.1.0
· MIT-0
52
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install cn-age-calculator
Description
年龄计算器。精确计算年龄(年月日)、生日倒计时、星座生肖判定。支持多种日期格式输入,纯Python标准库,无需API Key。
README (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
Usage Guidance
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.
Capability Analysis
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`.
Capability Tags
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cn-age-calculator - After installation, invoke the skill by name or use
/cn-age-calculator - Provide required inputs per the skill's parameter spec and get structured output
Version History
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+)
Metadata
Frequently Asked Questions
What is cn-age-calculator?
年龄计算器。精确计算年龄(年月日)、生日倒计时、星座生肖判定。支持多种日期格式输入,纯Python标准库,无需API Key。 It is an AI Agent Skill for Claude Code / OpenClaw, with 52 downloads so far.
How do I install cn-age-calculator?
Run "/install cn-age-calculator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is cn-age-calculator free?
Yes, cn-age-calculator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does cn-age-calculator support?
cn-age-calculator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created cn-age-calculator?
It is built and maintained by freedompixels (@freedompixels); the current version is v1.1.0.
More Skills