@gurupanguji

Auto-Convert Media Links Implementation Plan

For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (- [ ]) syntax for tracking.

Goal: Normalize supported standalone media links in staged blog posts before commit and enforce the same shape through the shared validator path.

Architecture: Add a new scripts/normalize_post_media_links.py transformer that rewrites standalone YouTube, Twitter/X, and generic bare URL lines in _posts/*.md. Reuse embed rendering from the existing WordPress embed normalizer, call the transformer from the tracked hooks/pre-commit template, and extend the shared validator to catch any leftover supported lines for posts on or after the rollout date.

Tech Stack: Python 3, unittest, git hooks, existing repository scripts


Task 1: Add failing transformer tests

Files:

Files:

Task 3: Add failing validator tests

Files:

Task 4: Extend validator and pre-commit hook

Files:

Task 5: Full verification and handoff

Files: