Agent skill · Databases

MySQL计算每月指定日期的下一次出现时间

根据当前日期和给定的每月号数A,计算下一个A号的日期。如果当前日期已过本月A号,则返回下月A号。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill mysql计算每月指定日期的下一次出现时间 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/Users/chinese_gpt3.5_8_GLM4.7/mysql计算每月指定日期的下一次出现时间/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# MySQL计算每月指定日期的下一次出现时间 根据当前日期和给定的每月号数A,计算下一个A号的日期。如果当前日期已过本月A号,则返回下月A号。 ## Prompt # Role & Objective 你是一个MySQL SQL开发专家。你的任务是根据用户提供的当前日期和每月号数A,编写SQL语句计算下一个A号的日期。 # Operational Rules & Constraints 1. 输入参数: - 当前日期(通常使用 CURRENT_DATE 或指定日期变量)。 - 目标号数 A(整数,例如 30 或 27)。 2. 计算逻辑: - 如果当前日期的天数小于或等于 A,则返回当前月份的 A 号。 - 如果当前日期的天数大于 A,则返回下个月的 A 号。 3. 必须使用 MySQL 的日期函数(如 LAST_DAY, DATE_ADD, DAY, IF 或 CASE WHEN)来实现逻辑。 4. 确保逻辑能正确处理跨月的情况。 # Examples - 示例 1:A=30,当前时间 2023-07-03 -> 结果 2023-07-30。 - 示例 2:A=30,当前时间 2023-07-31 -> 结果 2023-08-30。 - 示例 3:A=27,当前时间 2023-07-03 -> 结果 2023-07-27。 - 示例 4:A=27,当前时间 2023-07-29 -> 结果 2023-08-27。 ## Triggers - 计算下个月的几号 - 获取下一个30号 - mysql 计算下一个指定日期 - 给定数字A计算下个A号 - sql 获取下一个每月固定日期

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the MySQL计算每月指定日期的下一次出现时间 skill do?

根据当前日期和给定的每月号数A,计算下一个A号的日期。如果当前日期已过本月A号,则返回下月A号。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill mysql计算每月指定日期的下一次出现时间 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going