flashcards-dashboard
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "flashcards-dashboard":https://skillpi.com/zh/skills/deepskill-23521c5f160e1c9398940e2ca0e940e2dc0c7a05686af0ca0ea87da91c2320aa。安装前核对上游来源和版本:https://github.com/pnp/sharepoint-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
从源文件创建一个交互式 HTML 学习仪表板:将关键概念提取为经过验证的闪卡,附带源链接、悬停显示详细答案、筛选、复习跟踪、随机排序和进度跟踪。用于响应诸如“从这个文件创建闪卡”“制作一个 HTML 学习仪表板”等请求。
介绍来源: third_party · pnp · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: flashcards-dashboard
description: |-
Creates an interactive HTML learning dashboard from a source file by extracting key concepts into validated flashcards with source links, hover-detail answers, filters, review tracking, shuffle, and progress tracking.
Use when the user says:
- "Create flashcards from this file"
- "make an HTML learning dashboard"
- "turn this deck into flip cards"
- "Create an HTML dashboard with animated Flashcards that flip when clicked"
- "help me learn the content in this file"
- "make a study dashboard from this deck"Flashcard Dashboard from File
When to use
Use this skill when the user wants to learn, revise, or review the content of a SharePoint/OneDrive file through an interactive HTML dashboard with animated flip flashcards.
Use it for PowerPoint decks, PDFs, Word documents, or other readable files where the goal is comprehension, training, revision, onboarding, or knowledge checks.
Inputs
- Source file name, URL, selected file, or file reference.
- Optional preferences: audience/difficulty, number of cards, language, destination, topics to emphasize/exclude.
- Modes to include by default: Study, Shuffle, Review missed. Do not include Quiz mode unless explicitly requested.
- Theme: use the required refined dark theme below unless the user explicitly asks for another theme.
Steps
-
Locate the source file.
- If the user gives a filename, use SharePoint/OneDrive file discovery tools.
- If exact search fails, retry broader keywords and semantic search.
- If outside the current site, use tenant search as fallback.
- If no file is found, say so plainly and ask for a link or selected file.
-
Read or digest the file content.
- Use a file-reading tool when raw content is needed.
- Use file digest only when a summary is enough.
- For PowerPoint files with speaker notes, preserve slide content and presenter-note insights.
- For long files, create cards from section summaries and say the dashboard is summary-based.
-
Extract cards using this schema:
{
"id": "Stable unique card id, e.g. c0",
"category": "Short topic label",
"question": "Question shown on the front",
"answer": "Concise answer shown on the back",
"detail": "Expanded answer for hover/focus detail panel",
"hint": "Short clue or memory hook",
"sourceAnchor": "Slide/page/section/table name, or Source file if unknown",
"sourceUrl": "Clickable source document URL when available",
"difficulty": "Easy | Medium | Hard"
}
- Produce 12–25 cards unless the user requests another count.
- Keep
answerconcise; put longer explanation indetail. - Do not fabricate source anchors, URLs, slide counts, page numbers, or facts.
-
Generate a self-contained HTML dashboard.
- Use sandboxed code and store the full HTML as a data reference before file creation.
- Include flip cards, category filters, difficulty filters, progress tracking, source anchors, source links, hover-detail answers, Study, Shuffle, and Review missed.
- Cards flip on click and keyboard Enter/Space.
- Hover-detail panels must also work on keyboard focus.
- Detail panels must not be clipped: use visible overflow, high z-index on hovered/focused cards, and right-align panels for cards near the right edge.
- Keep card widths consistent even when filters leave only one visible card. Use
max-width:360px, grid columns likerepeat(auto-fill, minmax(280px, 360px)), andjustify-content:start. Never use1frin a way that lets a single card stretch across the dashboard. - Use inline CSS and JS only. No external scripts, stylesheets, fonts, images, or CSS URL dependencies.
-
Apply the required refined dark design system.
- This color system is mandatory unless the user explicitly asks for another theme. Do not fall back to brighter neon cyan/green gradients or pure-white text on near-black backgrounds.
- Define these design tokens in CSS and use them consistently:
:root {
--page-bg: #0B1120;
--page-bg-2: #0F172A;
--card-bg: #1E293B;
--card-bg-2: #0F172A;
--answer-bg: #064E3B;
--answer-bg-2: #065F46;
--border: #334155;
--text: #F1F5F9;
--muted: #94A3B8;
--soft: #CBD5E1;
--accent: #22D3EE;
--accent-soft: #67E8F9;
--easy: #67E8F9;
--medium: #34D399;
--hard: #FBBF24;
}
- Required usage:
- Page background:
#0B1120/#0F172A, preferably a subtle gradient. - Question card background:
#1E293Bto#0F172Asubtle gradient. - Answer card background:
#065F46to#064E3Bsubtle gradient. - Card border:
1px solid #334155. - Primary question/answer text:
#F1F5F9. - Secondary text, source text, hints, labels:
#94A3B8or#CBD5E1depending on importance. - Source links and active/progress accents:
#22D3EEat 80–90% opacity or#67E8F9; accents must not overpower body text. - Easy difficulty:
#67E8F9. - Medium difficulty:
#34D399. - Hard difficulty:
#FBBF24.
- Page background:
- Typography rules:
- Body text minimum 15–16px with line-height 1.55–1.65.
- Question text 22–24px with font-weight 500–650.
- Answer text 16–17px with line-height 1.55–1.65.
- Source text about 13px and muted.
- Avoid pure white on pure black for long sentences.
- Card treatment:
- Border radius 14–20px.
- Visible border plus soft shadow.
- Optional subtle inner top highlight:
inset 0 1px 0 rgba(255,255,255,.04). - Consistent spacing between category, question/answer, details, source, and action buttons.
- Filters and mode buttons:
- Inactive state: subdued dark fill, subtle border, lower opacity but still readable.
- Active state: solid accent fill with soft outer glow.
- Progress area:
- Large numbers use
#67E8F9or#22D3EE. - Labels use
#94A3B8so numbers stay dominant.
- Large numbers use
- Action buttons:
- “Got it” uses a soft green treatment.
- “Needs review” uses a soft amber/warning treatment and must be visually distinct.
- Hierarchy rule:
- Most important: question/answer text.
- Secondary: topic and difficulty badges.
- Tertiary: source links and helper text.
- Status/progress: accented but not brighter than main text.
- Make browser storage safe for SharePoint sandboxed previews.
- Never access
localStorageorsessionStoragedirectly. SharePoint file preview may run the HTML in a sandbox withoutallow-same-origin; direct access throwsSecurityErrorand can stop the dashboard. - If persistence is needed, use a safe wrapper with an in-memory fallback. The dashboard must work even when storage is blocked; only persistence may be disabled.
- Use this pattern or equivalent:
- Never access
function createSafeStorage(namespace){
const memory = {};
let store = null;
try {
const testKey = namespace + ':test';
window.localStorage.setItem(testKey, '1');
window.localStorage.removeItem(testKey);
store = window.localStorage;
} catch (e) {
store = null;
}
return {
get(key, fallback){
try {
const raw = store ? store.getItem(namespace + ':' + key) : memory[key];
return raw == null ? fallback : JSON.parse(raw);
} catch (e) { return fallback; }
},
set(key, value){
try {
const raw = JSON.stringify(value);
if (store) store.setItem(namespace + ':' + key, raw);
else memory[key] = raw;
} catch (e) { memory[key] = JSON.stringify(value); }
},
remove(key){
try {
if (store) store.removeItem(namespace + ':' + key);
delete memory[key];
} catch (e) { delete memory[key]; }
}
};
}
- If no persistence is required, omit storage entirely.
- Make source links work with one left-click in SharePoint.
- Put source links only on the answer side.
- Use a normal
<a>element withhref,target="_blank",rel="noopener noreferrer", anddata-interception="off". - Add pointer/mouse handlers to prevent card flipping from taking the click:
<a class="sourceLink"
href="SOURCE_URL"
target="_blank"
rel="noopener noreferrer"
data-interception="off"
onpointerdown="event.stopPropagation()"
onmousedown="event.stopPropagation()"
onclick="event.preventDefault(); event.stopPropagation(); if(event.stopImmediatePropagation){event.stopImmediatePropagation();} window.open(this.href, '_blank', 'noopener,noreferrer'); return false;">
Open source document
</a>
- Add CSS so the link remains clickable inside transformed cards:
.sourceLink { pointer-events:auto; position:relative; z-index:1000; }
- In the delegated card click handler, ignore
.sourceLinkbefore other card click logic:
if (e.target.closest('.sourceLink')) return;
-
Implement Review missed and action buttons correctly.
- Track cards by stable
data-id, never array index alone. - Maintain
missedas a set of card ids. - “Needs review” adds the card id to
missed. - “Got it” removes the card id from
missedand flips the current card back to the front side withcard.classList.remove('flipped'). - In Study and Shuffle mode, clicking “Got it” should visibly flip the card back to the front side.
- In Review missed mode:
- Show only cards whose ids are in
missed. - Hide “Needs review”; only “Got it” shows.
- Clicking “Got it” removes that card from Review missed immediately and flips it to the front side.
- Show only cards whose ids are in
- Shuffle must reorder DOM/cards without changing card ids or breaking review tracking.
- Track cards by stable
-
Validate before saving.
- Confirm the HTML contains: grid, front/back faces, flip behavior, filters, progress, source anchors, hover/focus details, stable
data-id, Review missed by id, and CSS/JS hiding “Needs review” in Review missed. - Confirm card layout uses fixed max card width and doesn't stretch a single filtered card to full dashboard width.
- Confirm “Got it” removes
flippedfrom the current card. - Confirm refined dark palette values are present in the CSS:
#0B1120,#0F172A,#1E293B,#334155,#F1F5F9,#94A3B8,#22D3EE,#67E8F9,#34D399,#FBBF24,#064E3B, and#065F46. - Confirm storage safety: no direct
localStorageorsessionStorageaccess outside atry/catchsafe-storage wrapper; ideally validate thatcreateSafeStorageexists if persistence is used. - Confirm source links include
data-interception="off",onpointerdown,onmousedown,stopImmediatePropagation,window.open(this.href, '_blank', ...), and.sourceLink { pointer-events:auto; position:relative; z-index:1000; }. - Confirm source links do not trigger card flipping.
- Confirm no external
<script src>, stylesheet links, or remote image/font dependencies. - If validation fails, fix and validate again before file creation.
- Confirm the HTML contains: grid, front/back faces, flip behavior, filters, progress, source anchors, hover/focus details, stable
-
Save the dashboard.
- Create an
.htmlfile in SharePoint/OneDrive. - Prefer saving beside the source file when writable; otherwise use the current site’s primary Documents library.
- If access is denied, retry in the current site’s primary document library or ask for a destination.
- Use a descriptive filename like
<source topic> Flashcard Dashboard.html.
- Create an
Output format
Respond with:
Created the HTML flashcard dashboard:
[File name](file URL)
Includes clickable animated flip cards, category/difficulty filters, source links, hover-detail answers, Review missed, Shuffle, and progress tracking.
If the file couldn’t be created:
I couldn’t create the dashboard because: <reason>.
Quality checklist
- Real
.htmlfile saved in SharePoint/OneDrive. - Every card has required fields and stable id.
- Dashboard works in SharePoint sandboxed preview without
localStorageSecurityError. - Any browser storage is accessed only through a try/catch safe wrapper with memory fallback.
- Source links open in a new browser tab on one left-click in SharePoint.
- Hover-detail panels are visible, not clipped, and keyboard accessible.
- Cards retain original width in filtered views and never stretch full dashboard width.
- “Got it” flips the card back to the front side in Study, Shuffle, and Review missed.
- Required refined dark palette is present and used consistently.
- Softer dark palette, improved hierarchy, card depth, calm accents, and difficulty colors are applied.
- Review missed hides “Needs review”; “Got it” removes the current card from review.
- Shuffle does not break review tracking.
- Quiz mode is not included by default.
- Content is grounded in the source file.
- If tools fail or return empty, say so plainly — don’t invent content.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决用户从文档创建交互式闪卡仪表板的核心需求
- 支持多种文件类型和学习场景(培训、复习、入职)
- 提供完整的学习闭环体验(筛选、复习跟踪、进度监控)
亮点
- 触发词覆盖全面,包含多种表达变体
- 边界清晰,不易与其他技能混淆
亮点
- Phase划分清晰,包含输入、步骤、输出格式
- 提供完整的JSON schema和CSS设计规范
- 包含端到端的质量检查清单
亮点
- 实现了安全的浏览器存储封装,兼容SharePoint沙箱环境
- 源链接点击处理完善,防止卡片翻转干扰
- 包含完整的验证机制和错误处理流程
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。