PowerShell 日期计算与格式化
使用 PowerShell 根据指定的时间偏移量(如半年前)和日期格式(如 yyyy-MM-dd)生成获取日期的命令。
npx skills add ECNU-ICALK/AutoSkill --skill powershell-日期计算与格式化 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 日期格式化 - 获取当前时间
- Prompt
- Triggers
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.
