task-draw-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 "task-draw-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0104ef8e077f4efaf1ce35b325411701696b8b9392d14bb4edbba6a5aa318ba4. Verify the upstream source and version against https://skillhub.cn/skills/user_b9b423e3/task-draw-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
A pure front-end task lottery page generator — one-click creates a locally runnable HTML draw page, supporting custom task options, participant management, scrolling animation draws, and localStorage history. Suitable for everyday random task assignment, classroom draws, family activity distribution, and similar scenarios.
Introduction source: third_party · user_b9b423e3 · 1.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: task-draw-skill
description: 纯前端任务抽签工具生成器——一键生成可本地运行的 HTML 抽签页面,支持自定义任务选项、抽签人管理、滚动动画抽签和 localStorage 历史记录。适用于日常随机决定任务、课堂抽签、家庭活动分配等场景。
version: 1.0.0
tags: ["前端", "抽签", "工具", "HTML", "localStorage", "动画"]
metadata:
openclaw:
requires:
bins: ["node"]任务抽签工具生成器
使用此技能,可一键生成一个纯前端 HTML+CSS+JS 抽签工具页面,无需后端,浏览器直接打开即可使用。
功能概览
生成的抽签工具包含以下模块:
- 任务选项模块:可新增、删除、编辑抽签任务,默认预设 5 个常见任务
- 抽签人模块:彩色按钮选择执行人,支持增删改名字
- 抽签动画模块:点击抽签后随机滚动定格,带有减速动画效果
- 历史记录模块:自动记录每次抽签(日期、次数、时间、抽签人、任务),localStorage 保存
参数说明
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
tasks |
string[] | ["写英语作业", "跳绳100个", "阅读20分钟", "做家务", "休息10分钟"] | 抽签任务列表 |
drawers |
object[] | [{name:"小明",color:1},{name:"小红",color:2},{name:"小华",color:3}] | 抽签人列表,color 为 1-6 的颜色编号 |
title |
string | "任务抽签" | 页面标题文字 |
subtitle |
string | "随机决定接下来做什么" | 页面副标题 |
rollingDuration |
number | 1800 | 抽签滚动总时长(ms) |
maxHistory |
number | 100 | 历史记录最大保存条数 |
颜色编号对照
| 编号 | 颜色 | CSS 变量 |
|---|---|---|
| 1 | 柔红 | --color-1 |
| 2 | 柔蓝 | --color-2 |
| 3 | 柔绿 | --color-3 |
| 4 | 柔橙 | --color-4 |
| 5 | 柔紫 | --color-5 |
| 6 | 柔青 | --color-6 |
执行步骤
- 读取用户传入的参数,若未指定则使用默认值
- 基于内置模板生成完整的 HTML 文件
- 将参数注入到 HTML 的 JS 初始化区域(DEFAULT_TASKS、DEFAULT_DRAWERS 等)
- 保存为
任务抽签工具.html到当前工作目录 - 告知用户可直接用浏览器打开运行
文件结构
task-draw-skill/
├── SKILL.md ← 技能元数据与说明(本文件)
└── references/
└── template.html ← 完整 HTML 模板(抽签工具源码)
自定义修改指南
- 改颜色:修改 HTML 中
:root下的--color-1~--color-6CSS 变量 - 改默认任务:修改 JS 中
DEFAULT_TASKS数组 - 改默认抽签人:修改 JS 中
DEFAULT_DRAWERS数组 - 改滚动时长:修改 JS 中
totalDuration常量(默认 1800ms) - 改页面配色:修改
:root下所有 CSS 变量(--bg, --primary 等)
注意事项
- 所有数据保存在 localStorage,键名为
draw_tasks、draw_drawers、draw_history - 页面适配手机端,max-width 520px 居中布局
- 纯前端无后端依赖,直接浏览器打开即可
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供纯前端任务抽签工具生成器,功能明确且实用
- 支持自定义任务选项、抽签人管理、滚动动画抽签和 localStorage 历史记录
- 适用于日常随机决定任务、课堂抽签、家庭活动分配等广泛场景
Highlights
- description 清晰描述了 Skill 的核心功能和使用场景
- 触发词完整,边界清晰,用户能准确理解 Skill 的用途
Highlights
- 文档结构清晰,包含功能概览、参数说明、执行步骤、文件结构、自定义修改指南和注意事项
- frontmatter 完整,单文件未超过 500 行,符合规范要求
Highlights
- 基于内置模板生成 HTML 文件,参数注入逻辑清晰
- 未发现明显可靠性问题,执行流程可靠
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.