cron-translator

Translate cron expressions into plain Chinese descriptions and compute the next N actual execution times. Runs purely locally with zero dependencies, no network, and no API key.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cron-translator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c83b3608b814d59fb0eb02f85a3f93d8a4fca533fcecf02255ae6eb746563393. Verify the upstream source and version against https://skillhub.cn/skills/user_1f46f626/cron-translator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Translate cron expressions into plain Chinese descriptions and compute the next N actual execution times. Runs purely locally with zero dependencies, no network, and no API key.

0 Downloads

Introduction source: third_party · user_1f46f626 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
python3 scripts/cron_tool.py explain "0 0 1 * *" --json ```
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: cron-translator
slug: cron-translator
displayName: Cron 表达式翻译官
version: 1.0.0
summary: 把 cron 表达式翻译成中文人话,并算出未来 N 次实际执行时间。纯本地运行,零依赖、零联网、零 API key。
description: 当用户看到一条 cron 定时表达式(如 "*/15 9-18 * * 1-5")看不懂、想确认它到底在什么时候执行、或想核对自己写的定时任务对不对时使用。把 cron 表达式翻译成中文说明,并推算未来若干次真实执行时间点(含星期)。触发词:「这个 cron 什么意思」「cron 表达式解释」「这个定时任务什么时候跑」「看不懂 crontab」「cron 下次执行时间」。纯 Python 标准库,本地运行,不联网、不需要任何 API key。
author: 横峰县云智信息技术工作室
license: MIT
tags: [cron, crontab, 定时任务, 开发工具, 时间]

Cron 表达式翻译官

把晦涩的 cron 定时表达式翻译成中文人话,并实际推算出未来若干次执行时间点,帮你快速确认一条定时任务到底在什么时候跑。

什么时候用

  • 用户贴出一条 cron / crontab 表达式,问"这是什么意思"
  • 用户写了个定时任务,想核对"它下次什么时候执行 / 会不会在我预期的时间跑"
  • 用户在配置服务器 crontab、CI 定时、K8s CronJob、各类调度器时看不懂表达式

能力

  1. 语义翻译:把 5 字段 cron(分 时 日 月 周)翻译成中文描述。
  2. 执行时间推算:真实按分钟遍历,算出未来 N 次实际触发时间(带星期),不是凭规则猜。
  3. 合法性校验:字段数不对、超出范围会明确报错。

支持语法:* , - /,? 等价 *,星期 0 或 7 均表示周日。

使用方法

# 解释表达式 + 默认列出未来 5 次执行
python3 scripts/cron_tool.py explain "*/15 9-18 * * 1-5"

# 指定未来次数
python3 scripts/cron_tool.py explain "0 9 * * *" --count 3

# JSON 输出(供程序消费)
python3 scripts/cron_tool.py explain "0 0 1 * *" --json

工作流

  1. 从用户消息里提取 cron 表达式(5 个字段)。
  2. 运行 python3 scripts/cron_tool.py explain "<表达式>" --count 5。
  3. 把「中文含义」和「未来执行时间」一并回给用户;若报错(字段数/范围),指出问题字段并给出修正建议。

输出示例

表达式:*/15 9-18 * * 1-5
含义:在 周一、周二、周三、周四、周五 9点…18点的每 15 分钟 执行
未来 3 次执行:
  - 2026-07-20 17:00 Mon
  - 2026-07-20 17:15 Mon
  - 2026-07-20 17:30 Mon

注意事项

  • 仅支持标准 5 字段 cron;不支持 Quartz 的 6/7 字段(含秒、年)与 L/W/# 特殊符号。
  • 执行时间基于运行机器的本地时区计算。
  • 当「日」和「星期」都被限制时,按 cron 惯例取或关系(任一满足即触发)。
  • 纯本地计算,不联网、不采集任何数据。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决开发者配置定时任务时的常见痛点,功能实用且受众明确
  • 支持语义翻译与真实执行时间推算,提升调试效率
Trigger Precision85/100

Highlights

  • 触发词覆盖全面,包括多种用户常见表达方式
Structure and Standards70/100

Areas to improve

  • 缺少 Phase 划分与门控条件 Reported severity: Minor

    文档未明确划分执行阶段(如输入解析、合法性校验、时间推算、结果输出),也未说明各阶段的出口条件与错误处理流程。

    Recommendation: 建议补充 Phase 划分,明确各步骤的输入输出与异常处理逻辑。

Highlights

  • 文档结构清晰,包含能力、用法、示例、注意事项等完整模块
Execution Reliability75/100

Areas to improve

  • 异常处理细节未充分说明 Reported severity: Minor

    未详细说明对非法 cron 表达式(如字段数错误、范围越界)的具体处理方式,以及时区处理的配置选项。

    Recommendation: 建议在文档或脚本中补充异常处理逻辑说明,明确时区处理机制。

Highlights

  • 纯本地运行,零依赖、零联网,可靠性高
  • 基于 Python 标准库,无需 API key
Evidence Verifiability (mean of the first four)77/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 6, 7

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.