schedule-after-usage-reset

本条目收录公开技能“schedule-after-usage-reset”,按来源分类归入「应用接入与集成」使用场景、「通用职场」职业。目录标签:ai-lab、定时任务、用量重置、Claude。此页用于按主题发现相关资源;请通过固定原站版本核对实际能力、依赖环境和所需权限。本站仅提供独立目录介绍与原站入口,原始文件和附件依各自许可开放。

仓库
jeremylongshore/tons-of-skills-marketplace

安装方式

先用 Prompt 核对来源,也可切换到安装命令或下载可用的安装包。

安装方式

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "schedule-after-usage-reset":https://skillpi.com/zh/skills/deepskill-fcd909d3c41ab6ae49b015b1efd597e74f0eef7b941c809a5d88b459ede839f9。安装前核对上游来源和版本:https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/6ea46b08dce892944db7c16f28d0b5308d402402/plugins/productivity/schedule-after-usage-reset/skills/schedule-after-usage-reset/SKILL.md。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

此命令从 GitHub 来源仓库获取指定技能。运行前请先查看源文件。

运行工具
npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/6ea46b08dce892944db7c16f28d0b5308d402402/plugins/productivity/schedule-after-usage-reset/skills/schedule-after-usage-reset --skill schedule-after-usage-reset
许可协议: —

来源与配置

查看 GitHub 源码

jeremylongshore/tons-of-skills-marketplace固定提交 6ea46b08dce892944db7c16f28d0b5308d402402

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

本条目收录公开技能“schedule-after-usage-reset”,按来源分类归入「应用接入与集成」使用场景、「通用职场」职业。目录标签:ai-lab、定时任务、用量重置、Claude。此页用于按主题发现相关资源;请通过固定原站版本核对实际能力、依赖环境和所需权限。本站仅提供独立目录介绍与原站入口,原始文件和附件依各自许可开放。

↓ 0 下载 ↗ 0 分享点击

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
---
name: schedule-after-usage-reset
description: "Schedule a task to run after the Claude usage limit resets. Use when the user says things like: schedule this after my usage resets, run this when my tokens refresh, queue this task for after the limit lifts, or any variation of wanting to defer a task until after a Claude usage/token limit reset. Finds the reset time from the Anthropic usage API and calls /schedule with that exact time. Trigger with phrases like \"schedule after my usage resets\" or \"run this when my limit lifts\"."
allowed-tools: Bash(security:*), Bash(curl:*), Bash(python3:*), Bash(date:*)
version: "1.0.0"
author: patricksong1993 (https://github.com/patricksong1993)
license: MIT
compatibility: Designed for Claude Code
tags: [scheduling, rate-limit, automation, claude-code]
---

# Schedule After Usage Reset

Automatically find the usage reset time and call `/schedule` with it. No questions asked.

## Overview

When the user wants to defer a task until after their Claude usage/token limit
resets, this skill removes the manual step of looking up the reset time. It reads
the reset timestamp from the Anthropic usage API, converts it to the user's local
timezone, adds a small buffer, and hands the task off to the `/schedule` skill at
that exact time. The user never has to figure out *when* the limit lifts — they
just say what they want run.

## Prerequisites

- Running inside Claude Code with a valid OAuth credential stored under the
  `Claude Code-credentials` keychain entry (read via `/usr/bin/security`).
- Network access to `https://api.anthropic.com` to query the usage endpoint.
- `python3` available on `PATH` (used to parse the JSON token and API response).
- The `schedule` skill installed — this skill defers the actual scheduling to it.

## Instructions

### 1. Get the reset time

Fetch from the Anthropic usage API:

```bash
token_json=$(/usr/bin/security find-generic-password -s 'Claude Code-credentials' -w 2>/dev/null)
access_token=$(echo "$token_json" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('claudeAiOauth',{}).get('accessToken',''))")
curl -s -H "Authorization: Bearer $access_token" \
     -H "anthropic-beta: oauth-2025-04-20" \
     -H "User-Agent: claude-code/2.1" \
     "https://api.anthropic.com/api/oauth/usage"
```

Parse `five_hour.resets_at` (or `seven_day.resets_at`). Convert UTC → user's local
timezone. Add 5 minutes as buffer.

### 2. Get the task

If not provided as an argument, ask: "What should I run after the reset?"

### 3. Call /schedule

Invoke the `schedule` skill, passing the task and the reset time + 5min buffer:

```
/schedule "<task>" at <HH:MM> <timezone>
```

The `schedule` skill handles everything from there — just like calling it directly.

## Output

- A `/schedule` invocation has been created for the user's task at the reset time
  plus the 5-minute buffer, expressed in the user's local timezone.
- A short confirmation of what was queued and when it will run (for example:
  "Queued `<task>` to run at 14:35 America/New_York, just after your usage resets").
- The `/schedule` skill owns execution from that point — this skill's job ends once
  the handoff has been made.

## Error Handling

- **Rate limited (HTTP 429):** wait 15 seconds and retry the usage request once.
- **Still failing after the retry:** ask the user for the reset time directly and
  proceed with `/schedule` using their answer.
- **Missing or empty access token:** the keychain lookup returned nothing — ask the
  user for the reset time rather than guessing.

## Examples

**Defer a build until the limit lifts**

```
User: schedule a full test run for after my usage resets
→ Read five_hour.resets_at from the usage API (e.g. 19:30 UTC)
→ Convert to local time and add 5 min → 14:35 America/New_York
→ /schedule "run the full test suite" at 14:35 America/New_York
```

**Reset time unavailable**

```
User: queue this report for when my tokens refresh
→ Usage API still 429 after one retry
→ Ask: "What time does your usage reset?" → user says 3:00 PM
→ /schedule "<task>" at 15:05 <timezone>
```

## Resources

- Anthropic usage endpoint: `https://api.anthropic.com/api/oauth/usage`
  (`five_hour.resets_at` / `seven_day.resets_at` carry the reset timestamps).
- The `schedule` skill — this skill is a thin front-end that resolves the reset
  time and then defers all scheduling to it.

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分 100。前四项来自 DeepSkill 收录的质量报告。

场景价值85/100
评分依据

解决用户在 Claude 使用限制重置后安排任务的实际痛点

触发精准90/100
评分依据

提供了多种触发短语示例

结构规范95/100
评分依据

结构清晰,包含完整章节

执行可靠90/100
评分依据

工具来源明确(Anthropic API)

证据可验 (前四项均值)90/100
计算方式

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • api.anthropic.com
  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

risk · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。

来源与使用声明 SkillPi 的部分技能资料来自公开来源或创作者提交。第三方内容的权利归各自权利人所有。安装或运行前,请查看原站的许可、权限要求和使用风险。

来源与使用

请按详情页的作者、原始来源和许可证核对使用条件,运行前检查技能需要的权限。目录收录不等于已验证安装或安全性。