Skip to content

Instantly share code, notes, and snippets.

View thibaudcolas's full-sized avatar
😀

Thibaud Colas thibaudcolas

😀
View GitHub Profile
@thibaudcolas
thibaudcolas / plan.md
Created August 6, 2026 03:08
Markdown importer implementation plan (superpowers, excluded from repo)

Markdown Importer 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: Add a dependency-free Markdown-to-ContentState importer to draftjs_exporter, with a two-phase parse-then-filter architecture.

Architecture: MarkdownImporter wires together MarkdownParser (CommonMark core → valid ContentState) and ContentStateFilter (declarative rules → filtered ContentState). Entity creation for links/images goes through configurable resolver chains; a shipped scheme_resolver helper handles internal-URL syntaxes like wagtail://image?id=10. A configurable inline_html_styles whitelist maps paired HTML tags (<sup>) to inline styles. Spec: docs/superpowers/specs/2025-07-21-markdown-importer-design.md.

Tech Stack: Python 3.10+ stdlib only (re, urllib.parse), pytest + unittest-style test classes,

@thibaudcolas
thibaudcolas / spec.md
Created August 6, 2026 03:08
Markdown importer design spec (superpowers, excluded from repo)

Markdown Importer — Design Spec

Overview

Add a Markdown-to-ContentState importer to draftjs_exporter, complementing the existing ContentState-to-HTML/Markdown exporter. The design follows a two-phase architecture: parsing (Markdown text → valid ContentState) then filtering (ContentState → ContentState with content policy applied). A public MarkdownImporter class wires them together with a config shape that mirrors the exporter's pattern.

@thibaudcolas
thibaudcolas / analysis.md
Last active July 17, 2026 06:47
competitors analysis

Overview template

Category

Community Open Source / Commercial Open Source / Proprietary / Admin Framework

Website

One-line positioning

@thibaudcolas
thibaudcolas / triage-jpeg-xl-support.md
Created July 7, 2026 09:23
JPEG XL example of Wagtail roadmap triage

Triage: JPEG XL image support

Assessed against selection criteria + product strategy v1.0 on 2026-07-07.

🏔️ JPEG XL image support

Add JPEG XL (JXL) encoding/decoding to Willow, then expose the format in Wagtail core for image uploads and renditions, enabling ~15% smaller file sizes than AVIF, reducing bandwidth and carbon footprint with minimal user effort.

Classification: Pillar work

@thibaudcolas
thibaudcolas / report.md
Created April 7, 2026 15:23
llms.txt report of Django docs

Django Documentation Token Report

Total Documents: 656

Total Tokens: 10,801,338

LLMs.txt Files

File Tokens
@thibaudcolas
thibaudcolas / milestone_recap.py
Created April 2, 2026 16:10
Recap local GH issues by milestone
#!/usr/bin/env -S uv run
# /// script
# dependencies = [
# "python-frontmatter>=1.0",
# ]
# ///
"""
Generate a recap of issues assigned to specific milestones from the .issues/closed directory.
This script parses Markdown files with YAML frontmatter and generates a formatted
@thibaudcolas
thibaudcolas / eval.md
Created March 25, 2026 21:36
LLM Markdown support eval

Evaluating Markdown support in LLMs

With explicit prompting for Markdown output (best case scenario).

Problem scenarios

Strikethrough

~ vs. ~~, inconsistent between models.

@thibaudcolas
thibaudcolas / README.md
Created March 9, 2026 15:47
Skill session log - upgrading-stylelint, OpenCode Kimi K2.5, django-pattern-library
@thibaudcolas
thibaudcolas / diagram.md
Created March 4, 2026 07:37
Package quadrants diagram

Package quadrants diagram

quadrantChart
    x-axis Low downloads --> High downloads
    y-axis Low stars --> High stars

    quadrant-1 "Popular"
    quadrant-2 "High visibility"
 quadrant-3 "Under the radar"
@thibaudcolas
thibaudcolas / upgrading-wagtail.md
Last active February 4, 2026 18:24
AI skill to upgrade Wagtail projects. Add this to your AI coding harness (instructions: https://agentskills.io/)
name upgrade-wagtail
description Plan and optionally execute an upgrade to a new Wagtail release, including all needed dependency updates.
license MIT

Upgrade Wagtail

Usage: