スキル一覧に戻る
Lbstrydom

award-extractor

by Lbstrydom

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: award-extractor description: Extracts wine awards from PDF documents. Use when importing competition results, processing wine ratings, or when user mentions "extract awards", "parse awards PDF", "import competition results", or "process wine ratings booklet". allowed-tools: Read, Bash(node:), Bash(sqlite3:), mcp__pdf-reader__, mcp__sqlite__

Wine Award Extraction Skill

Overview

Extracts structured wine award data from PDF competition booklets, rating guides, and certification documents for import into the wine cellar app's awards database.

When to Use

  • Importing awards from competition PDFs (IWSC, Decanter World Wine Awards, etc.)
  • Processing wine rating booklets (Wine Spectator, Wine Enthusiast)
  • Batch-importing multiple award documents
  • User says: "extract awards", "import competition results", "process this awards PDF"

Database Schema

Awards are stored in data/awards.db with this structure:

CREATE TABLE awards (
  id INTEGER PRIMARY KEY,
  wine_name TEXT NOT NULL,
  producer TEXT,
  vintage INTEGER,
  country TEXT,
  region TEXT,
  grape_variety TEXT,
  award_name TEXT NOT NULL,        -- e.g., "IWSC 2024"
  medal TEXT,                       -- Gold, Silver, Bronze, Trophy
  score INTEGER,                    -- Points (if applicable)
  category TEXT,                    -- Competition category
  source_file TEXT,                 -- Original PDF filename
  extracted_at TEXT DEFAULT CURRENT_TIMESTAMP
);

Extraction Process

Step 1: Read the PDF

Use the PDF Reader MCP to extract text content:

Use mcp__pdf-reader__read_pdf tool with the PDF file path

Step 2: Identify Document Structure

Look for common patterns in wine competition PDFs:

  • Table format: Rows with Wine | Producer | Medal | Score columns
  • Category sections: Headers like "CABERNET SAUVIGNON", "SOUTH AFRICAN REDS"
  • Award indicators: Gold/Silver/Bronze, Trophy, points (90-100 scale)
  • Vintage patterns: 4-digit years (2018, 2019, 2020, etc.)

Step 3: Extract Award Data

For each wine entry, extract:

FieldDescriptionExamples
wine_nameFull wine name"Kanonkop Paul Sauer"
producerWinery/producer"Kanonkop"
vintageYear of wine2019
countryCountry of origin"South Africa"
regionWine region"Stellenbosch"
grape_varietyGrape(s)"Cabernet Sauvignon Blend"
award_nameCompetition + year"IWSC 2024"
medalMedal type"Gold", "Silver", "Bronze", "Trophy"
scorePoints if given95
categoryCompetition category"Red Bordeaux Blends over $20"

Step 4: Validate and Match

Before importing:

  1. Check for duplicate entries in awards.db
  2. Cross-reference producer names with existing cellar entries
  3. Normalize medal names (GOLD -> Gold, G -> Gold)
  4. Verify vintage years are reasonable (1950-current year)

Step 5: Import to Database

Use the SQLite MCP to insert awards:

INSERT INTO awards (wine_name, producer, vintage, country, region,
                    grape_variety, award_name, medal, score, category, source_file)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);

Output Format

Return extracted awards as JSON array:

[
  {
    "wine_name": "Kanonkop Paul Sauer",
    "producer": "Kanonkop",
    "vintage": 2019,
    "country": "South Africa",
    "region": "Stellenbosch",
    "grape_variety": "Cabernet Sauvignon Blend",
    "award_name": "Decanter World Wine Awards 2024",
    "medal": "Gold",
    "score": 95,
    "category": "Red Bordeaux Blends - South Africa"
  }
]

Common Competition Formats

IWSC (International Wine & Spirit Competition)

  • Categories by grape variety and country
  • Medals: Trophy, Gold Outstanding, Gold, Silver, Bronze
  • No numeric scores

Decanter World Wine Awards

  • Regional categories
  • Medals: Best in Show, Platinum, Gold, Silver, Bronze
  • Points: 95-100 (Platinum), 90-94 (Gold), etc.

Tim Atkin South Africa Report

  • Wines rated on 100-point scale
  • Categories by region and style
  • First Growths, Wines of Origin designations

Platter's South African Wine Guide

  • 5-star rating system
  • Wines organized by producer
  • Includes drinking windows

Tips for Accuracy

  1. Table extraction: Look for consistent column spacing or delimiters
  2. Multi-page handling: Track category headers across page breaks
  3. OCR artifacts: Handle common OCR errors (0 vs O, l vs 1)
  4. Partial data: Flag entries missing critical fields for review
  5. Duplicate detection: Use wine_name + vintage + award_name as unique key

Example Usage

User: "Extract awards from this IWSC 2024 booklet"

Claude will:

  1. Use pdf-reader MCP to extract text from the PDF
  2. Parse the table structure to identify wine entries
  3. Extract medal, producer, wine name, vintage for each entry
  4. Validate data and check for duplicates
  5. Insert into awards.db using sqlite MCP
  6. Report summary: "Extracted 147 awards, 3 duplicates skipped"

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です