s-creating-a-theater-sync-command

Scaffold Django theater sync commands comparing website data with seed JSON and database records.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/gyarra/cine_medallo_2 --skill s-creating-a-theater-sync-command
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: s-creating-a-theater-sync-command
Source: https://github.com/gyarra/cine_medallo_2/tree/main/.claude/skills/s-creating-a-theater-sync-command
Command: npx skills add https://github.com/gyarra/cine_medallo_2 --skill s-creating-a-theater-sync-command

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates maintainable theater synchronization logic to align website theater data with seed JSON and database, enabling automated updates rather than manual reconciliation.

Core Features & Use Cases

  • Command structure scaffolding for theater syncs (WebsiteTheater, TheatersJsonManager, ComparisonResult).
  • Deterministic dry-run / apply pattern to preview changes before applying them.
  • Examples of two implementation approaches: embedded data via window.initialData or HTML scraping.

Quick Start

Create a new theater_sync_<chain>.py following the command structure and run it in dry-run mode to verify changes before applying.

Frequently Asked Questions about s-creating-a-theater-sync-command

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Django command to sync theater data with a database?

Build a Django theater sync command by scaffolding a management command that compares live website theater data against seed JSON and database records. This automates data alignment and replaces manual reconciliation.

How does the dry-run pattern work for theater data synchronization?

The dry-run pattern previews theater data changes before applying them. Running the command without the --apply flag outputs a ComparisonResult showing discrepancies, while including --apply commits the updates to the database.

What is a theater sync command and when do I need one?

A theater sync command aligns live website theater listings with seed JSON and database records. You need one to automate updates across multiple theater chains and prevent manual data reconciliation errors.

Can I scrape HTML to extract theater data instead of using embedded JSON?

Yes, theater data extraction supports both approaches. The command can parse embedded data via window.initialData or use HTML scraping methods within the ChainTheaterExtractor to gather live website theater information.

What data structures are required to implement theater sync logic in Django?

Implementing theater sync logic requires a WebsiteTheater dataclass, a ChainTheaterExtractor, a TheatersJsonManager, and a ComparisonResult. These components structure the extraction and comparison workflow.

What's the best way to automate updates for multiple theater chains in Django?

Automate multi-chain theater updates by creating a theater_sync_<chain>.py command for each chain. This modular approach isolates extraction logic while sharing the deterministic dry-run and apply workflow.