wigolo-extract
できること
このスキルは、プレーンテキストではなく、Web ページから構造化された情報を取り出す方法を説明します。HTML の表、定義リスト、埋め込みデータ、ブランドのロゴなどのページの詳細を読み取れます。
使う場面
- ✓ユーザーが、Web ページから価格表や機能の比較表を取りたいとき。
- ✓ユーザーが、ページから構造化データや表を抽出するよう求めるとき。
- ✓ユーザーが、Web サイトのブランドの色、ロゴ、フォントを知りたいとき。
スキルのリンク
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-extract/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このページの価格表を構造化データとして抽出してください。スプレッドシートに貼り付けられる形にしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはページを読み込み、HTML の表や埋め込みの構造化データなど、構造を持つ部分を読みます。フィールドをスキーマに合わせるか、一つの CSS セレクターを読み、結果を返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
wigolo extract
Structured data extraction beyond simple markdown.
Quick Reference
// Full structured extraction (ALWAYS prefer this)
{ "url": "https://bun.sh", "mode": "structured" }
// JSON Schema extraction — heuristic field matching
{ "url": "https://example.com/pricing", "mode": "schema", "schema": { "type": "object", "properties": { "name": { "type": "string" }, "price": { "type": "string" }, "sku": { "type": "string" } } } }
// CSS selector extraction
{ "url": "https://example.com", "mode": "selector", "css_selector": ".product-card", "multiple": true }
// Metadata only (matches fetch metadata shape)
{ "url": "https://example.com", "mode": "metadata" }
// From raw HTML
{ "html": "<table>...</table>", "mode": "tables" }
Modes
| Mode | What it extracts | When to use |
|---|---|---|
structured |
Tables + definition lists + JSON-LD + chart hints + key-value pairs | Default choice — use this |
tables |
HTML tables only | When you specifically need only tables |
schema |
Fields matching a JSON Schema (LLM-sourced fields verified against source; hallucinated values returned as null) | When you know the exact fields you want |
brand |
Logo, favicon, colors, fonts, social_links (with provenance; favicons never promote to logo_url) | Brand kit / identity extraction |
metadata |
OpenGraph, meta tags, JSON-LD, canonical_url, og_image | For page metadata only |
selector |
CSS selector matches | When you know the exact CSS selector |
Always use mode: "structured" instead of mode: "tables". Structured captures everything tables does, plus definitions, key-value pairs, JSON-LD, and chart descriptions.
Chart Hints
When a page has visual charts (SVG, Canvas), chart_hints contains text descriptions extracted from aria-labels, SVG <title>, and figcaptions. Use these to describe visual data even when the underlying data is JavaScript-rendered.
Schema Mode
mode: "schema" matches your JSON Schema field names against page content via CSS classes, ARIA labels, microdata, and JSON-LD. When a language model is available it sources fields and verifies each value against the source — hallucinated values are returned as null rather than guessed. Pass { properties: { field: { type: "string" } } }.
Named Schemas
Instead of hand-writing a schema, pass named_schema for a strict, heuristic-only extraction (no LLM required) into a known shape:
{ "url": "https://blog.example.com/post", "named_schema": "Article" }
Available: Article, Recipe, Product, CodeSnippet, Paper, EventListing. Mutually exclusive with schema.
Brand Mode
mode: "brand" pulls a page's identity assets — logo, favicon, colors, fonts, and social_links — each with provenance. Favicons never get promoted to logo_url.
Token Budget
max_tokens_out (cl100k-base) caps extracted output; trailing table rows or heavy keys are dropped first to fit.
Anti-Patterns
- DON'T use
mode: "tables"— usemode: "structured"instead. - DON'T pass a schema without
propertieskey — handler rejects it. - DON'T extract for a whole page when you need markdown — use
fetchinstead.
When NOT to use wigolo-extract
- Multi-page autonomous structured extraction — use wigolo's
agenttool instead. - Page requires login / click / form-fill before the data appears — handle authentication with
use_author interact with the page before extracting.
See Also
- wigolo-fetch — for markdown content
- wigolo-agent — for multi-page schema-driven gathering
よくある質問
スキーマを渡せますか?
はい。JSON スキーマでフィールドを定めると、このスキルがページから一致させます。
生の HTML からも動きますか?
はい。URL だけでなく、生の HTML も入力として受け付けます。
ブランドモードは何を返しますか?
ロゴ、ファビコン、色、フォント、ソーシャルリンクを、それぞれの出所とともに返します。
詳細
作者による元の説明
Local-first structured extraction from any webpage — tables, definition lists, key-value pairs, JSON-LD, microdata, chart hints (SVG titles / aria-labels / figcaptions), brand assets, and metadata. Use when the user wants structured data, pricing tables, feature comparisons, or says "extract the table", "get structured data", "pull the pricing", "extract as JSON". For autonomous navigation across many pages, use wigolo's `agent` tool instead.
repo: KnockOutEZ/wigolo
人気
- GitHubのスター
- 5.5k
- ランキング
- #14819
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
wigolo
5.5kエージェントが、ローカルのツールサーバー経由で Web を検索、取得、クロール、調査し、結果をコンピューターにキャッシュできるよう支援します。APIキーは不要です。
wigolo-agent
5.5kエージェントが、一つの作業の中で、時間制限の範囲内で複数の Web の情報源からデータを集め、スキーマで定めた固定の構造で返せるよう支援します。
wigolo-cache
5.5kエージェントが、すでに取得、クロール、検索したページをまず検索し、Web に戻る前にローカルで探せるよう支援します。同じ調べ物が即座に、無料で済みます。
wigolo-crawl
5.5kエージェントが、ドキュメントサイトや Web サイトの一部を、サイトマップやリンクをたどって設定された上限の中でクロールし、ページをローカルのキャッシュに保存できるよう支援します。
似ているスキル
tavily
394kTavilyでウェブを検索し、特定のWebページから本文を取り出すようエージェントを支援します。深さ、ドメイン、日付のオプションも使えます。
blogwatcher
394kブログやRSS・Atomフィードを追跡し、新しい記事を確認して、読んだ記事に印を付けるようエージェントを支援します。
data-scraper-agent
280kエージェントが公開されているさまざまな情報源からデータを自動で収集できるよう支援します。スケジュール実行、情報の補強、結果の保存が可能です。オンラインデータの監視や追跡に役立ちます。