All writing

Before building a solution, build the tools

A case study of an organization’s website development

Diagram: web pages, newsletters and WeChat posts go through an intake tool that breaks them into typed blocks, which answer questions typed or spoken in any language

Years ago, I was tasked with building a parser and generator for accessible PDF files. In the ancient times of hand-coded software, that meant reading the 1,000+ pages of the file format’s specification and data structures. Among other things, I needed a way to dive into the binary structures of a PDF, which cannot be read in a text editor and are hard to navigate in a hex editor. So I created a tool that loads the data structures of a PDF as files and folders, letting me move through the document the way you move through File Explorer. That tool helped enormously in triaging corrupted PDFs — the files where somewhere, something, somehow doesn’t behave.

There’s an ancient proverb that I think applies to every engineering field, mechanical or software: he who wants his work done well must first sharpen his tools. Today’s coding orchestrators like Codex or Claude follow this principle too: they often write throwaway programs for specific steps in a workflow, such as processing a data file, or auxiliary tools that stand in for real-life configurations. But even that doesn’t compare to the tools a senior developer invents out of vision and creativity. Maybe the AI harnesses will become just as visionary and creative — but not just yet.

A website that had outgrown itself

Recently I helped a large national mental-health organization, the Mental Health Association for Chinese Communities (MHACC), redesign its website and workflow. MHACC runs support groups, a one-on-one warmline phone service, and publishes a steady stream of communication: blog articles, newsletters, and social media posts. The site was built on Wix-style templates that lacked responsiveness and searchability, and its bilingual content lived in two separate sets of pages. The information had little planning or organization, which made it frustrating to navigate. Years of enrichment and maintenance had left the site patched everywhere on an outdated foundation, and a complete revamp had become unavoidable.

Then there was Claude Code. The rise of AI coding created an illusion that all it would take is a few prompts, or one conversation. Some volunteers even demoed the possibility with a mock page made in ChatGPT. But the leadership was keen to see that the core issue was data management, not the facade of a website. We reached a shared conclusion: the infrastructure had to be built in a way that overcame every known limitation.

The first tool: an intake service

I certainly did not want to build two sites for the bilingual content — not to mention that the Chinese version has its own variants, Simplified and Traditional. On searchability, I wanted RAG, so people could search in natural language regardless of language, rather than by keyword alone (though keyword search is supported too). So before anything else, I designed an intake tool to normalize all the articles, newsletters, blog posts, and existing web pages into a vector database.

It is not based on chunking. Far from it: I designed a content block system in which each original communication piece is broken down into a series of semantic blocks — headings, paragraph groups, lists, tables, galleries, figures, footnotes, references, and so on. Each block is then converted into an embedding, with non-textual items such as images and links represented by their alt text. The result is that all information is semantically searchable, event listings included. With that design in place, I used Claude Code to run the intake in batches, producing thousands of blocks that RAG queries very well regardless of language.

The MHA.CC Intake web app: a table of numbered items with type, bilingual title and date, and on the right an item's detail panel with its source page, related items by similar topic, review actions (Accept, Hold, Retract) and an English/Traditional Chinese toggle over the rendered content
The intake service: every item keeps its source, its related items, and a review state before it reaches the site.

The intake step is in fact its own web service. Materials of different types are processed in different ways in Claude Code sessions, with the normalized results stored in a single database and images saved to a designated place. Alt text for images is extracted from the source and then passed through AI processing to describe the content of each image, including OCR where applicable. A web UI lets us review, edit, merge, or delete blocks, or change a block’s type. This design guarantees the quality of the intake, which is fundamental to a reliable RAG workflow.

As the cherry on top, I enabled voice input, so people who only speak Cantonese can ask a question aloud and get an AI-composed answer drawn from the matching results. After all, how many people would read through dozens of records to make sense of all that information? The RAG workflow is now the backbone, and the website is the interface to that workflow — rather than the comprehensive training guide it had essentially become.

The new MHACC site with English, Traditional and Simplified language switch. A natural-language search with a microphone button asks about helping new students going to college; results are filtered by type, and an AI answer drawn only from MHACC's own articles and newsletters cites its sources with numbered footnotes
Ask in any language, by typing or by voice; the answer comes only from MHACC’s own material, with sources.

One home for every communication piece

Beyond modern search, the presentation of the original materials is upgraded too. Previously, blog posts were hosted on the website, newsletters were served from Mailchimp, and periodic publications went out through a WeChat public account. Now that every piece is normalized into blocks in the database, the site presents all of them with a unified look and feel, without sending anyone off-site, and every piece is instantly bilingual.

Another tool played a part in the development: an AI-powered composer. Staff log in to the dashboard to create new stories from text, images, links, and so on. When it’s time for a newsletter, they pick the blocks to include in the next issue, adjust the order, attach a prompt to instruct the LLM, and get back a fully composed and formatted newsletter in HTML, ready to paste into Mailchimp and send as is.

Because of the content block design, staff can edit any block in place while browsing the live page — images’ alt text included. Altogether, the system design and the intake tool laid a solid foundation for the new website, beneath many other features that both elevate the visitor’s experience and improve staff productivity.

The Communication page of the new MHACC site: stories, articles, news, WeChat posts and newsletters in one place, filterable by type and year, with a searchable image library of 2,982 photos, posters and illustrations, shown here as tiles of WeChat posts
Stories, articles, news, WeChat posts and newsletters, all rendered from the same blocks on one page.

A tool for the builder: Swimlane

Another tool that played a significant role wasn’t for the client at all, but for me. As an avid builder, I have dozens of projects, each with its own plans, peculiarities, third-party accounts, and development notes. So I built myself a project management tool called Swimlane: each lane is a project, and the axis is the timeline. Along the timeline I define periods of different types — requirements, system design, scaffolding, security review, and so on. The overview, configuration, and related files belong to the project, while each period records what I did during it, every time I commit and push code.

Swimlane, with project names blurred: a list of twenty projects on the left and a quarterly timeline on the right, one lane per project, with colored work periods by phase (explore, shape, make, validate, operate, maintain), a Today marker, and planned next steps at the end of each lane
Swimlane: one lane per project, periods along the timeline, the next step waiting at the end of each lane.

In fact, I turned it into a skill that Claude loads while I work. It maintains the periods and documents the details of development, decisions, setbacks, and whatever else should be recorded. Swimlane ends up as structured memory for both Claude and me, and a reliable source of truth when I invoice clients.

Claude Code writes high-quality code and knows modern frameworks better than I do; that’s why I co-create with it. But none of this is vibe coding. Everything here is a renewed form of software engineering principles and practices. Coding is being phased out, but in decades of work I never coded for the sake of coding: as an engineer, I have been solving problems in creative ways and making innovative tools along the way. With AI, I just became a better one.

Start with the right foundation

If your organization’s content is scattered across a website, a mailing tool and a social channel, tell us about it, and we’ll show you what it looks like as one searchable, bilingual source.