Shadow Frog Viewerのロゴ

Shadow Frog Viewer

組織
microsoft
shadow-frog-viewer

Help users browse and visualize the shadow knowledge base: overview, search for files or symbols or text, view preferences, or see recent discoveries. Invoke when the user wants to see what's in the shadow, get an overview, or find specific knowledge.

概要

公開者microsoft
リポジトリShadowFrog
スキル名shadow-frog-viewer
スター
33
フォーク
9
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

ShadowFrog Viewer

User-facing inspection of .shadow/ content. Prerequisite: .shadow/ exists. Agents navigate the Markdown files/symbols directly; this viewer is not a required retrieval interface.

Primary: Python Helper Script

The companion script shadow-viewer.py lives in the same directory as this SKILL.md file. To find and run it:

bash
# Project install (Copilot CLI):
python3 .github/skills/shadow-frog-viewer/shadow-viewer.py [options]
# Or for Claude Code:
python3 .claude/skills/shadow-frog-viewer/shadow-viewer.py [options]

Available Views

CommandWhat it shows
--summaryOverview: counts, source/status/label breakdown, per-file table, cross-cutting titles (default)
--search QUERYUniversal search — matches file names, symbol names, and discovery text. Includes cross-cutting and preferences
--prefsProject-wide preferences
--recent [N]N most recent discoveries with full content (default: 10)
--labels LABELDiscoveries filtered by label (e.g., bug, security, bug,performance)
--top FILETop actionable discoveries for FILE — concise output (default: 3 entries, ~600 chars) suitable for the preToolUse hook. Includes both per-file shadow entries and any _cross/ discoveries that reference FILE. Verified discoveries rank first.
--check-invariantsAudit structural integrity — bidirectional cross-references, label/source/category enum compliance, heading format, no-orphan-back-pointer. Exits 0 if clean, 1 with one violation per line. Run after dream reconciliation or before commit.

No arguments defaults to --summary.

Discovery views display the visible Markdown citation_score (missing means 0). Search/label/top ordering uses it only after source trust and verification status; refuted claims remain last. Reading, searching, and automatic previews do not increment counts. The agent explicitly records deliberately consulted entries with the core shadow-cite.py helper once per task. --recent is based on shadow file modification time, which includes citation updates, not discovery creation time.

Options

FlagEffect
--shadow-dir DIROverride .shadow/ location (default: auto-detect from CWD)
--top-labels LABELSComma-separated label filter for --top (default: bug,security). Empty string disables label filtering.
--top-limit NMax discoveries to show in --top (default: 3)
--top-max-chars NHard cap on --top total output length (default: 600). Use 0 for no cap.

Examples

bash
# Search file names, symbols, discoveries, cross-cutting entries, and preferences
python3 shadow-viewer.py --search "token expiry"

# Security and performance issues
python3 shadow-viewer.py --labels security,performance

# Broaden the per-file label filter and show up to 5 entries
python3 shadow-viewer.py --top src/auth.py --top-labels bug,security,performance --top-limit 5

Dream Lineage Visualization

The companion script dream-lineage.py generates an interactive HTML visualization of the dream experiment tree. It reads _dreams/_index.md and experiment reports to produce a self-contained HTML file.

bash
# (Claude Code users: replace .github/skills with .claude/skills below)

# Generate dream-lineage.html in the current directory
python3 .github/skills/shadow-frog-viewer/dream-lineage.py

# Custom output path
python3 .github/skills/shadow-frog-viewer/dream-lineage.py -o my-lineage.html

# Explicit shadow directory
python3 .github/skills/shadow-frog-viewer/dream-lineage.py --shadow-dir /path/to/.shadow

The HTML groups compounding chains and fresh experiments, includes a full lineage tree, and supports expanding each experiment's report. Experiment names and test-count metadata render as literal text, not HTML; escaping happens at rendering time without changing the stored metadata.

Pass stderr back to the agent even when generation exits 0. Required directory, index, or output failures emit ERROR and exit 1; malformed optional metadata or omitted rows emit WARNING with the affected path/field and produce a partial view. Repair the indicated input or permissions and rerun the same command. Missing optional artifacts and safely escaped text are not errors. The helper does not invoke a model or retry automatically.

Fallback: Shell One-Liners

If the Python script fails to execute (wrong Python version, missing file, permission error, etc.), fall back to these shell commands:

Summary

Note: shell discovery counts are approximate (may include cross-reference links).

bash
echo "Files: $(find .shadow -name '*.md' -not -path '*/_cross/*' -not -path '*/_meta/*' -not -path '*/_dreams/*' -not -name '_index.md' -not -name '_prefs.md' | wc -l | tr -d ' ')"
echo "Discoveries: $(find .shadow -name '*.md' -not -path '*/_cross/*' -not -path '*/_meta/*' -not -path '*/_dreams/*' -not -name '_index.md' -not -name '_prefs.md' -exec grep -c '^\- ' {} \; 2>/dev/null | awk '{s+=$1} END {print s+0}')"
echo "Cross-cutting: $(ls .shadow/_cross/*.md 2>/dev/null | wc -l | tr -d ' ')"
python3 -c "import json; d=json.load(open('.shadow/_meta/state.json')); print(f'Last update: {d[\"last_update_at\"]} ({d[\"last_update_type\"]})')"

Search

bash
grep -rn "QUERY" .shadow/ --include="*.md"

Preferences

bash
cat .shadow/_prefs.md

Recent

bash
# macOS
find .shadow -name '*.md' -not -path '*/_meta/*' -exec stat -f '%m %N' {} \; | sort -rn | head -10 | while read ts f; do echo "$(date -r "$ts" '+%Y-%m-%d %H:%M') $f"; done

# Linux
find .shadow -name '*.md' -not -path '*/_meta/*' -printf '%T@ %p\n' | sort -rn | head -10 | while read ts f; do echo "$(date -d @"${ts%%.*}" '+%Y-%m-%d %H:%M') $f"; done

Responding to the User

  • Preserve --top output as-is; it is intentionally compact and pre-formatted for the preToolUse hook.
  • If the shadow is empty or has no discoveries, suggest running /shadow-frog-dream to populate it

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Shadow Frog Viewer」では何ができますか?

Help users browse and visualize the shadow knowledge base: overview, search for files or symbols or text, view preferences, or see recent discoveries. Invoke when the user wants to see what's in the shadow, get an overview, or find specific knowledge.

TypingMindでShadow Frog Viewerを使うメリットは何ですか?

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

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

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

Shadow Frog Viewerを使えるAIモデルはどれですか?

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

Shadow Frog Viewerは何個のAIモデルで使えますか?

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

AIスキル「Shadow Frog Viewer」は無料ですか?

はい。microsoftがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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