timer-to-skill
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 "timer-to-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-482c4dacc4b1a78794447b27fec4437ff67af0af428ea494605df6272797456d. Verify the upstream source and version against https://skillhub.cn/skills/user_b22a52ba/timer-to-skill 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
Converts timer tasks into reusable AgentSkills.
Introduction source: third_party · user_b22a52ba · 2.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: timer-to-skill
description: '将定时任务(timer task)转化为可复用的 AgentSkill。 核心能力:(1) 列出所有定时任务,(2) 分析定时任务的 prompt
提取核心逻辑, (3) 自动创建 skill 目录与 SKILL.md,(4) 安装注册为新 skill。 触发关键词:把这个定时任务做成 skill、把定时任务变成
skill、 把这个定时任务封装成技能、把这个每天执行的任务做成 skill、 把这个提醒做成技能等。 也适用于用户希望将某个已有的定时任务逻辑固化为 skill,
供其他 agent 或团队成员复用。
'
version: 2.0.0
tags:
- skill-management
- timer-task
- conversion
- automation
slug: timer-to-skill
displayName: Timer To Skill
summary: 将定时任务(timer task)转化为可复用的 AgentSkillTimer To Skill — 定时任务转技能
将定时任务(timer task)一键转化为标准化的 AgentSkill,实现从"定时执行"到"按需调用"的平滑迁移。
使用前提
- 当前环境已安装
skill工具(用于安装注册新 skill) - 至少存在一个已创建的定时任务
核心工作流
用户要求"把这个定时任务做成 skill"
→ 列出所有定时任务供用户选择
→ 分析任务 prompt 提取核心逻辑
→ 创建 skill 目录结构
→ 编写符合规范的 SKILL.md
→ 安装注册为新 skill
→ 告知用户新 skill 已就绪
执行步骤
第 1 步:列出定时任务
调用 timer_task(action="list") 获取所有定时任务列表。返回结果包含每个任务的 task_id、title、schedule、prompt 和 enabled 状态。
向用户展示任务列表,让用户选择要转换哪一个。
第 2 步:分析任务,提取核心逻辑
分析选中任务的 prompt 和 schedule,提炼以下信息:
| 分析维度 | 说明 |
|---|---|
| 任务目的 | 这个定时任务在做什么(如"查询天气"、"生成日报"、"监控竞品") |
| 核心能力 | 任务依赖哪些工具和操作(如搜索、浏览器、Python、文件操作) |
| 输入参数 | 任务是否需要用户提供参数(如城市名、关键词) |
| 输出产物 | 任务生成什么(报告、文件、通知等) |
| 频率特征 | 原定时任务的执行频率,可转化为 skill 的触发关键词 |
第 3 步:创建 skill 目录
新建技能目录,使用标准结构:
<skill-name>/
├── SKILL.md # 必需 - 核心文件
├── scripts/ # 可选 - 可执行脚本
├── references/ # 可选 - 参考文档
└── assets/ # 可选 - 静态资源
命名规范:
- 使用小写连字符格式(kebab-case),如
daily-weather-report - 长度不超过 64 字符
- 优先使用动词导向短语
第 4 步:编写 SKILL.md
根据第 2 步的分析结果编写 SKILL.md,严格遵循 SkillHub 规范:
YAML Frontmatter:
---
name: <skill-name>
description: >
一句话说明技能核心能力。
详细描述技能做什么,以及何时触发。
列出所有可能的触发关键词。
version: 1.0.0
tags:
- <category-tag-1>
- <category-tag-2>
---
正文结构:
| 章节 | 内容 |
|---|---|
| # 标题 | 技能名称 + 一句话副标题 |
| ## 概述 | 技能核心能力和适用场景 |
| ## 使用前提 | 前置条件、环境要求 |
| ## 核心工作流 | 分步骤执行流程 |
| ## API/配置信息 | 如有 API 调用,列出端点、参数等 |
| ## 使用示例 | 贴近用户真实请求的示例 |
| ## 注意事项 | 限制、安全提示、最佳实践 |
第 5 步:安装注册
调用 skill(action="install", path="<skill-dir-path>") 将新技能安装注册。
安装成功后告知用户:
- 新技能的名称和功能
- 触发方式(用户可以说哪些话触发这个技能)
- 如果原定时任务不再需要,可以询问是否删除
脚本说明
scripts/analyze_timer_prompt.py
分析定时任务 prompt,提取核心逻辑并生成 skill 内容建议。当需要从 prompt 中系统性地提取结构化信息时使用。
用法:在 Python 中直接调用 analyze_prompt(prompt, schedule, title) 函数,返回结构化分析结果。
参考资料
references/skill_template.md
当需要参考标准 skill 结构模板时读取此文件。包含完整的 SKILL.md 示例模板,以及不同类型任务的 skill 编写最佳实践。
最佳实践
- 命名规范:技能名使用小写连字符,长度不超过 64 字符,优先使用动词导向短语
- description 完整:必须包含"何时使用"信息,列出所有可能的触发关键词
- 保留原 prompt 精华:原定时任务的 prompt 经过了迭代优化,应完整保留其核心逻辑
- 去定时化:新 skill 的 prompt 不应包含"每天"、"定时"、"提醒"等定时相关词汇,改为"当用户要求时"
- 渐进式披露:SKILL.md 控制在 500 行以内,复杂逻辑拆分到 references/ 中
- 测试验证:安装后可通过触发新 skill 来验证是否正常工作
- 版本管理:为每个 skill 添加 version 字段,便于后续迭代追踪
- 标签分类:使用 tags 字段进行多维分类,提升 skill 的可发现性
注意事项
- 本技能不自动删除原定时任务,转换后需询问用户是否保留
- 新技能的 SKILL.md 中禁止包含"每天"、"定时"、"提醒"等定时相关词汇
- 确保新技能的 description 包含完整的触发关键词,以便 agent 正确匹配
- 转换完成后建议测试验证新技能是否正常工作
Current listing version
2.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供定时任务到 AgentSkill 的完整转换流程,解决用户从定时执行到按需调用的实际需求
- 具有明确的实用价值和广泛适用性,适用于多种定时任务场景
Highlights
- 触发关键词覆盖全面,包含多个变体表达,边界清晰
- description 明确列出了用户可能使用的多种触发方式
Areas to improve
-
description 内容略显冗长 Reported severity: Minor
frontmatter 中的 description 字段内容较长,建议精简为更简洁的核心描述
Recommendation: 将 description 精简为1-2句核心功能描述,详细内容可在 skill_body 中展开
Highlights
- 结构完整,包含使用前提、核心工作流、执行步骤、脚本说明、参考资料等必要章节
- 有清晰的步骤划分和端到端示例,frontmatter 完整规范
Highlights
- 工具调用明确(timer_task、skill install),参数正确
- 覆盖了主要异常处理,不可逆操作有确认机制,执行流程可靠
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.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.