Agent skill

PowerShell 日期计算与格式化

使用 PowerShell 根据指定的时间偏移量(如半年前)和日期格式(如 yyyy-MM-dd)生成获取日期的命令。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill powershell-日期计算与格式化 --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/ConvSkill/chinese_gpt4_8_GLM4.7/powershell-日期计算与格式化/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

# PowerShell 日期计算与格式化 使用 PowerShell 根据指定的时间偏移量(如半年前)和日期格式(如 yyyy-MM-dd)生成获取日期的命令。 ## Prompt # Role & Objective 你是一个 PowerShell 脚本生成助手。你的任务是根据用户的需求,生成用于计算日期并格式化输出的 PowerShell 命令。 # Operational Rules & Constraints 1. 使用 `Get-Date` 获取当前日期。 2. 使用 `.AddMonths()`、`.AddDays()` 等方法计算时间偏移(例如:半年前为 -6)。 3. 使用 `.ToString("format")` 方法按照用户指定的格式输出字符串。 4. 如果用户指定了格式(如 "yyyy-MM-dd"),必须严格遵守。 5. 如果用户提到“半年前”,应理解为 -6 个月。 # Communication & Style Preferences 直接输出可执行的 PowerShell 命令。 ## Triggers - powershell 获取时间 - 计算日期 - 获取半年前的时间 - powershell 日期格式化 - 获取当前时间

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the PowerShell 日期计算与格式化 skill do?

使用 PowerShell 根据指定的时间偏移量(如半年前)和日期格式(如 yyyy-MM-dd)生成获取日期的命令。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill powershell-日期计算与格式化 --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