Flashcards Dashboardのロゴ

Flashcards Dashboard

組織
pnp
flashcards-dashboard

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"

概要

公開者pnp
リポジトリsharepoint-skills
スキル名flashcards-dashboard
スター
141
フォーク
60
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    pnpがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Flashcards Dashboard」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/pnp/sharepoint-skills/tree/main/Skills/flashcards-dashboard/flashcards-dashboard
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pnp/sharepoint-skills.git /tmp/sharepoint-skills
mkdir -p .claude/skills
cp -r /tmp/sharepoint-skills/Skills/flashcards-dashboard/flashcards-dashboard .claude/skills/flashcards-dashboard
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFlashcards Dashboardを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にFlashcards Dashboardを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Flashcards Dashboardは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

  1. 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.
  2. 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.
  3. Extract cards using this schema:

json
{
  "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 answer concise; put longer explanation in detail.
  • Do not fabricate source anchors, URLs, slide counts, page numbers, or facts.
  1. 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 like repeat(auto-fill, minmax(280px, 360px)), and justify-content:start. Never use 1fr in 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.
  2. 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:
css
: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: #1E293B to #0F172A subtle gradient.
    • Answer card background: #065F46 to #064E3B subtle gradient.
    • Card border: 1px solid #334155.
    • Primary question/answer text: #F1F5F9.
    • Secondary text, source text, hints, labels: #94A3B8 or #CBD5E1 depending on importance.
    • Source links and active/progress accents: #22D3EE at 80–90% opacity or #67E8F9; accents must not overpower body text.
    • Easy difficulty: #67E8F9.
    • Medium difficulty: #34D399.
    • Hard difficulty: #FBBF24.
  • 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 #67E8F9 or #22D3EE.
    • Labels use #94A3B8 so numbers stay dominant.
  • 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.
  1. Make browser storage safe for SharePoint sandboxed previews.
    • Never access localStorage or sessionStorage directly. SharePoint file preview may run the HTML in a sandbox without allow-same-origin; direct access throws SecurityError and 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:
js
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.
  1. Make source links work with one left-click in SharePoint.
    • Put source links only on the answer side.
    • Use a normal <a> element with href, target="_blank", rel="noopener noreferrer", and data-interception="off".
    • Add pointer/mouse handlers to prevent card flipping from taking the click:
html
<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:
css
.sourceLink { pointer-events:auto; position:relative; z-index:1000; }
  • In the delegated card click handler, ignore .sourceLink before other card click logic:
js
if (e.target.closest('.sourceLink')) return;
  1. Implement Review missed and action buttons correctly.

    • Track cards by stable data-id, never array index alone.
    • Maintain missed as a set of card ids.
    • “Needs review” adds the card id to missed.
    • “Got it” removes the card id from missed and flips the current card back to the front side with card.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.
    • Shuffle must reorder DOM/cards without changing card ids or breaking review tracking.
  2. 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 flipped from 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 localStorage or sessionStorage access outside a try/catch safe-storage wrapper; ideally validate that createSafeStorage exists 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.
  3. Save the dashboard.

  • Create an .html file 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.

Output format

Respond with:

markdown
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:

markdown
I couldn’t create the dashboard because: <reason>.

Quality checklist

  • Real .html file saved in SharePoint/OneDrive.
  • Every card has required fields and stable id.
  • Dashboard works in SharePoint sandboxed preview without localStorage SecurityError.
  • 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.

よくある質問

AIスキル「Flashcards Dashboard」では何ができますか?

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"

TypingMindでFlashcards Dashboardを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Flashcards Dashboardはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFlashcards Dashboardをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/pnp/sharepoint-skills/tree/main/Skills/flashcards-dashboard/flashcards-dashboardを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Flashcards Dashboardを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Flashcards Dashboardで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFlashcards Dashboardを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Flashcards Dashboard」は無料ですか?

はい。pnpがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇