uft20263039
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 "uft20263039" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9384e6249c559b4fb16d44cca744a7651aac01fd545b011cc3dc64fe74bbd891. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/uft20263039 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
Plays distinct fireworks/celebration effects for leaderboard ranks 1, 2, and 3. Delivers three differentiated effects: gold crowning, silver double‑spray, and bronze gentle bloom, for leaderboard celebrations, announcing top three, or list reveal animations.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: uft20263039
slug: uft20263039
displayName: 排行榜烟火
version: 1.0.0
summary: 排行榜冠亚季三种不同烟火庆祝效果,可穿透点击、尊重减动效。
license: MIT
description: 为排行榜第一、第二、第三名播放互不相同的烟火/礼花效果(金色加冕、银色双喷、铜色轻绽)。当用户要排行榜烟火、冠亚季庆祝、一二三名不同礼花、榜单揭晓动效时使用。排行榜烟火(冠 / 亚 / 季不同效果)
排行榜揭晓或「进入前三」时,用 canvas-confetti(或等价粒子)放出三种可区分的烟火:第一名最隆重,第二、第三递减但各自造型不同。只做视觉庆祝,不拦截点击。
何时使用
- 排行榜、积分榜、PK 结果展示前三名
- 「冠军烟花」「一二三名不同礼花」
- 需要比普通成交礼花更有「名次仪式感」
硬约束
- 三种效果必须肉眼可区分(颜色、喷发形状、强度都不能雷同)。
- 礼花层
pointer-events: none,不得挡按钮/列表点击。 - 仅在「展示名次 / 揭晓成功」时触发;失败、空榜不放烟火。
prefers-reduced-motion: reduce时跳过粒子,可用简短 Toast:「恭喜获得第 N 名」。- 动画约 1.5~3.5s 自然结束;不要无限循环吵闹。
- 可与榜单 UI 并存:先高亮名次卡片,再放对应烟火。
名次效果规格(必须落实)
| 名次 | 气质 | 建议实现(canvas-confetti) |
|---|---|---|
| 第一名 | 加冕、最亮 | 金色系 #FFD700/#FFF4C1/#FFA500;顶部中心大爆发 + 左右两侧斜喷;particleCount 高(如 160~220);可二次延迟连放「加冕」小爆 |
| 第二名 | 利落银光 | 银色/冷白 #E8EEF5/#C0C8D4/#9AA8B8;左右双炮对称喷(origin x=0.2 与 0.8);强度中等(90~130) |
| 第三名 | 温暖轻绽 | 铜色/琥珀 #CD7F32/#E8A05A/#F0C090;底部中央单次上喷或小范围 spread 偏小;粒子更少(60~90),短促 |
不要三种都只改 particleCount 而颜色形状相同。
推荐 API
import confetti from 'canvas-confetti'
export type PodiumRank = 1 | 2 | 3
function reduced() {
return window.matchMedia('(prefers-reduced-motion: reduce)').matches
}
function ensureCanvas(): confetti.CreateTypes {
const fire = confetti.create(undefined, { resize: true, useWorker: true })
// 库生成的 canvas 需保证不挡点击(多数版本默认如此;自建时设 pointer-events:none)
return fire
}
export function firePodiumRank(rank: PodiumRank) {
if (reduced()) return { ok: true as const, skipped: true as const }
const fire = ensureCanvas()
if (rank === 1) {
const gold = ['#FFD700', '#FFF4C1', '#FFA500', '#FFE566']
fire({ particleCount: 120, spread: 70, origin: { x: 0.5, y: 0.25 }, colors: gold, startVelocity: 55 })
fire({ particleCount: 70, angle: 60, spread: 55, origin: { x: 0, y: 0.45 }, colors: gold })
fire({ particleCount: 70, angle: 120, spread: 55, origin: { x: 1, y: 0.45 }, colors: gold })
window.setTimeout(() => {
fire({ particleCount: 80, spread: 100, origin: { x: 0.5, y: 0.35 }, colors: gold, ticks: 200 })
}, 280)
return { ok: true as const, rank }
}
if (rank === 2) {
const silver = ['#E8EEF5', '#C0C8D4', '#9AA8B8', '#FFFFFF']
fire({ particleCount: 100, angle: 60, spread: 55, origin: { x: 0.18, y: 0.55 }, colors: silver, startVelocity: 45 })
fire({ particleCount: 100, angle: 120, spread: 55, origin: { x: 0.82, y: 0.55 }, colors: silver, startVelocity: 45 })
return { ok: true as const, rank }
}
// 第三名
const bronze = ['#CD7F32', '#E8A05A', '#F0C090', '#A05A2C']
fire({
particleCount: 75,
spread: 48,
origin: { x: 0.5, y: 0.7 },
colors: bronze,
startVelocity: 35,
gravity: 1.1,
})
return { ok: true as const, rank }
}
/** 同时庆祝前三:错开时间,避免糊成一团 */
export function firePodiumTop3(order: PodiumRank[] = [1, 2, 3]) {
if (reduced()) return
order.forEach((rank, i) => {
window.setTimeout(() => firePodiumRank(rank), i * 450)
})
}
与成交礼花的分工
- 成交礼花:单次成功爆发,无名词仪式。
- 排行榜烟火:按 1/2/3 分支,金色加冕 / 银色双喷 / 铜色轻绽。
Agent 步骤
- 安装
canvas-confetti,封装firePodiumRank/ 可选firePodiumTop3。 - 榜单 UI 在渲染第 N 名高亮后调用对应 API。
- 自测:三种效果颜色与喷法可区分;动画中列表仍可滚动点击;减动效时无粒子。
不要做
- 三种名次共用同一段 confetti 配置。
- 全屏遮罩、强制静音外放音效(若加音效必须可关且默认轻/关)。
- 把四五名及以后也做成同等烟火(可无动效或极弱闪一下)。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 排行榜庆祝是高频刚需场景,三种不同烟火效果能显著提升仪式感与用户体验
- 解决了用户明确的核心任务痛点:为冠亚季提供可区分的视觉庆祝效果
Highlights
- 触发词精准完整,覆盖多种变体(排行榜烟火、冠亚季庆祝、一二三名不同礼花、榜单揭晓动效)
- 边界清晰,不会与其他Skill重叠
Highlights
- Phase/步骤清晰,有明确的出口条件
- 包含端到端示例,frontmatter完整
- 文档结构良好,易于理解和执行
Highlights
- 工具来源明确(canvas-confetti),参数正确
- 覆盖主要异常(prefers-reduced-motion)
- 不可逆操作有确认机制,礼花层不挡点击
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.
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.