Logo

Article Pipeline

From rough notes to a draft on note and Medium, written by AI agents with separate roles.

  • Claude Code
  • Multi-Agent
  • Browser Automation
  • Figma
  • Python

Overview

I write between work, so I rarely have a solid block of time to finish an article. I built a setup on Claude Code where I only provide the notes and the decisions, and AI handles the structure, the draft and the review.

Instead of one AI doing everything, there is one role that drafts and five roles that review. Each role has its own written instructions, and my voice and the handoffs between tasks live in shared notes (Markdown files). The roles do not talk to each other; they hand off only through what is written down.

On note, Japanese and English alternate paragraph by paragraph. For Medium, an English version is made from the same draft. For every article, I am the only one who presses publish.

How it works

Six steps for every article. Each role has written instructions, so the next article starts from the same place.

  1. 01Intent
  2. 02Draft
  3. 03Review
  4. 04Format check
  5. 05Draft on note
  6. 06Look back
  1. 01

    Fix the intent first

    The AI reads my notes and returns four lines: the purpose, the core claim, what the article will not do, and how long it should stay relevant. Drafting does not start until I confirm them. If the core cannot be found in the notes, it asks instead of guessing.

  2. 02

    Draft from my own words

    The drafting role builds the article in the format of each platform. It does not write from scratch; it works from the experiences and words in my notes. Every time, it reads a note that describes my voice, taken from articles I wrote myself.

  3. 03

    Five separate reviews

    Five roles each check one thing: style, depth, my voice, whether it will still hold up later, and phrasing that sounds like AI. Anything that needs fixing goes back to the drafting role. If it still fails after two rounds, it comes to me.

  4. 04

    Check the format with a script

    Fixed format rules, such as the table of contents, the blank line above headings, URLs that are not links, and image captions and alt text, are checked by a Python script. These are not left to the AI’s judgment; the next step waits until there are zero errors.

  5. 05

    Enter it into the editor

    Through browser automation, it enters the text, images, captions and links into the note editor, and fills in the publishing settings. The thumbnail is made from a template and rules I set up in Figma (see the example below). It stops right before the publish button, which I press myself.

  6. 06

    Collect what I changed

    After publishing, it fetches the live article and records the difference from the AI’s draft. What I changed just before publishing becomes material for the next rules. Whether a change becomes a rule is my decision.

Example: a thumbnail

Using a thumbnail as an example, here is what I hand over, what the AI does, and what I finish myself. The template is a component in Figma, and the AI fits the article into it.

AWhat I hand over

Only the article. I add a word only when I want a specific category or image.

BThe AI fills in the template

The template in Figma. The canvas is 1280×670, and the position and size of the four slots and the type sizes are fixed.
  1. 1

    Category

    Pick one or two of nine, based on the topic

    In this article: DESIGN

  2. 2

    Title

    The article title, with line breaks placed by hand

    In this article: 家紋と紋章は、似ているのか (Do kamon and heraldry look alike?)

  3. 3

    Subtitle

    Quote the strongest sentence from the body as it is. No summarizing

    In this article: 別々に、似た働きの答えを生んだのかもしれない。 (They may have arrived at answers that work alike, separately.)

  4. 4

    Image

    Find images that may be reused, and record the source and license

    In this article: A Japanese family crest and a 12th-century enamel plaque

CWhat I finish myself

The finished thumbnail: the DESIGN category, a Japanese title and subtitle on the left, and a family crest beside a medieval coat of arms on the right.
The finished thumbnail, used as the cover of a note article published in November 2026.Images: Sagarifuji crest, Hakko-daiodo, CC BY-SA 4.0, via Wikimedia Commons / Enamel effigy of Geoffrey Plantagenet, public domain, via Wikimedia Commons
  • Swap the title and subtitle to Yu Gothic. The AI’s environment does not have that typeface, so it places a stand-in
  • Decide the color of the image frame, usually a light color taken from the image
  • Publish the article. Afterwards, the AI moves the thumbnail to the published list and marks it with a red frame

Who decides what

AI

  • Structure and drafting
  • The five reviews and the fixes
  • Format checks
  • Entering it into note, the thumbnail and the publishing settings
  • Recording the changes after publishing

Me

  • The notes, and the core of the article
  • Checking names and facts
  • The thumbnail’s typeface and frame color
  • Publishing (the button itself)
  • Whether a change becomes a rule

What I learned

  • The AI’s expanded drafts were not used

    For one article, I compared the published version with two drafts. It shared 26% of its words with the draft the AI had reshaped into an essay, and 45% with the draft that only lightly edited my notes. When publishing, I had thrown away the AI’s structure entirely. Since then, the lightly edited version comes first.

  • Rules said in conversation do not last

    The roles that draft and review do not read the memory of my conversations. So a new rule does not count as decided until it is written into the instructions or the check script.

  • A successful edit can still be wrong

    In the browser, an edit could look successful and still overwrite a different part of the article. Now every edit is followed by counting the links, paragraphs and figures, to catch anything it touched by mistake.

Read the articles

Article Pipeline — Iori Kawano