Dev diary mdx

From MillenniumDawn/Millennium-Dawn · View interactive version

Dev diary mdx is an AI agent skill from the GitHub repository MillenniumDawn/Millennium-Dawn. Convert a Millennium Dawn dev diary .docx into a publish-ready .mdx for the docs site: frontmatter, headers, and images placed in reading order, with the author's voice preserved. Use when given a dev-diary .docx to format or publish, or "dev diary 057"-style numbering.

How to use this skill

Skill file

Dev Diary to MDX

The job is structure, not editing. Scaffold the MDX and place the images. Leave the

author's prose as written.

Preserve the author's voice

author's own hyphenation. Keep stylistic ellipses (…., ....) exactly.

boundary so an image can sit beside the passage it illustrates.

1. Get the `.docx`

Use the path in $ARGUMENTS or the attached file. Otherwise ask for it before doing

anything else. A Google Doc exports with Download, Microsoft Word (.docx). Reject other

formats.

2. Number

Take the highest NNN- prefix in docs/src/content/devDiaries/*.mdx, add 1, and

zero-pad to 3 digits. Warn if docs/src/assets/images/dev-diaries/<NNN>/ exists.

3. Extract

python .claude/skills/dev-diary-mdx/extract_docx.py \
  --docx "<path to .docx>" \
  --image-dir docs/src/assets/images/dev-diaries/<NNN>

It copies every embedded image, in document order, to picture-1.png, picture-2.png,

and so on, and prints JSON with title, blocks (heading, para, and image

entries in source order), and images.

4. Frontmatter

Ask for what cannot be derived, offering defaults:

unpadded.

The slug is the kebab-cased title without the "Dev Diary #NN:" prefix. The permalink is

/dev-diaries/<N>-<slug>/ with the unpadded number. The filename is <NNN>-<slug>.mdx.

5. Assemble

Write docs/src/content/devDiaries/<NNN>-<slug>.mdx, UTF-8 without BOM:

---
title: "Dev Diary #58: Greenland"
description: <one line>
permalink: /dev-diaries/58-greenland-holiday-paradise/
author: Luigi
date: 2026-06-12
version: "v2.0"
tags:
  - dev diary
---

_By Luigi – 12 June 2026_

<body>

shifts. Honor the docx's heading styles. For flat prose, add headers in the diary's

own wording.

that introduces it, following the prose cues ("the first picture shows", "the next

pictures in order are"). Word often dumps all screenshots at the top, so prefer the

cues over block position.

passage.

![picture1](/assets/images/dev-diaries/<NNN>/picture-1.png).

6. Report

prettier --write on the new file, and bun run check.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.