スキル一覧に戻る
rusmirbecirovic

generate-dataset-synth

by rusmirbecirovic

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

SKILL.md


name: generate-dataset-synth description: Instructions for generating synthetic airline data with Synth CLI and loading it into SQLite.

Synth Data Generation

When the user wants to generate synthetic data, do not run raw synth commands. Use the included Python script which handles generation, JSON processing, and database loading automatically.

Prerequisites

  1. Synth CLI must be installed: Run synth version to verify.

    • If not installed, use @install-synth agent or run:
      python3 .github/skills/install-synth/install_synth.py
      
  2. Database must be initialized: Run make db-init if tables don't exist.

Standard Generation Procedure

Run the following commands in order:

  1. Navigate to Project Root:

    cd airline-discount-ml
    
  2. Run the Generation Script: This script generates data using Synth, processes the JSON, and loads it into SQLite.

    python3 ../.github/skills/generate-dataset-synth/run_synth.py
    

    With custom record count (default is 100 per table):

    python3 ../.github/skills/generate-dataset-synth/run_synth.py --count 500
    

    Generate only (no database load):

    python3 ../.github/skills/generate-dataset-synth/run_synth.py --no-load
    
  3. Verify Data:

    sqlite3 data/airline_discount.db "SELECT COUNT(*) FROM passengers;"
    sqlite3 data/airline_discount.db "SELECT COUNT(*) FROM routes;"
    sqlite3 data/airline_discount.db "SELECT COUNT(*) FROM discounts;"
    

Synth Models Location

The Synth schema files are located in:

airline-discount-ml/synth_models/airline_data/
├── passengers.json    # Passenger profiles with travel history
├── routes.json        # Flight routes with origin/destination/distance
└── discounts.json     # Discount records linking passengers to routes

Generated Data Schema

passengers

ColumnTypeDescription
idINTEGERPrimary key
nameTEXTFaker-generated name
travel_historyTEXTJSON with trips count and total_spend

routes

ColumnTypeDescription
idINTEGERPrimary key
originTEXT3-letter airport code
destinationTEXT3-letter airport code
distanceREALDistance in miles

discounts

ColumnTypeDescription
idINTEGERPrimary key
passenger_idINTEGERFK to passengers
route_idINTEGERFK to routes
discount_valueREALDiscount percentage

Troubleshooting

synth: command not found

  • Run @install-synth or install manually per SKILL.md in install-synth.

"no such table" error

  • Run make db-init to create tables first.

JSON parse errors

  • Ensure Synth version is 0.6.9 (synth version).
  • Check that synth_models/*.json files are valid JSON.

スコア

総合スコア

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

レビュー

💬

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