<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thành Đỗ Long on Medium]]></title>
        <description><![CDATA[Stories by Thành Đỗ Long on Medium]]></description>
        <link>https://medium.com/@thnhdlng?source=rss-49596282d253------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GxT-P0xO_QiwuccS-650YA@2x.jpeg</url>
            <title>Stories by Thành Đỗ Long on Medium</title>
            <link>https://medium.com/@thnhdlng?source=rss-49596282d253------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:01:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thnhdlng/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Broke Things So You Don’t Have To: Lessons from an Agentic Design System (Part 2)]]></title>
            <link>https://medium.com/manychat-engineering/i-broke-things-so-you-dont-have-to-lessons-from-an-agentic-design-system-part-2-549043fac8e2?source=rss-49596282d253------2</link>
            <guid isPermaLink="false">https://medium.com/p/549043fac8e2</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Thành Đỗ Long]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 11:35:05 GMT</pubDate>
            <atom:updated>2026-10-28T11:36:36.062Z</atom:updated>
            <content:encoded><![CDATA[<h4>Six things broke in our design system, and fixing them kept agents from shipping our mistakes.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ARDM_G3qLAldS0GNnpwbFw.gif" /></figure><p>There’s a term going around that I can’t stop thinking about: <strong>slop grenade</strong>. It’s AI-generated work that looks finished, gets handed over, and explodes on someone else’s desk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*04s9YLXj7Q89gZi5xIkbRQ.png" /></figure><p>Researchers <a href="https://hbr.org/2025/09/ai-generated-workslop-is-destroying-productivity">call the same thing “workslop”</a>, and in a 2026 survey, people on the receiving end said they lose <a href="https://www.theguardian.com/technology/2026/apr/14/ai-productivity-workplace-errors">about 3.4 hours a month</a> cleaning up the mess. I felt slightly called out.</p><p>It’s also the best description I’ve found of the problem with agentic design systems. An agent will generate as much code as you ask for, and someone else deals with the fallout.</p><p>In a design system, that someone used to be whoever reviewed your PR. Now it’s just as often another agent, and <strong>agents don’t catch slop grenades. They pass them on.</strong> A human reads a stale doc line, frowns and checks the code. An agent implements it, confidently, on three platforms.</p><p>And it adds up. Every line an agent ships is a line someone maintains, keeps consistent across platforms, and watches the next agent copy as the pattern. A design system is supposed to make the codebase easier to change, not just bigger.</p><p>There’s no shortage of wishlists about agentic design systems. This isn’t one. It’s my notebook from building one with agents, for agents, including the parts that blew up in our faces.</p><p><a href="https://medium.com/manychat-engineering/how-to-build-an-agentic-design-system-people-and-agents-will-actually-use-part-1-1b08abca90bd">Part 1</a> covered the foundations; this part covers the plumbing under our design system for web, mostly iOS and Android. It has six techniques that stop wrong changes before they reach a reviewer. Each comes with what we broke, why it matters and what we do now. The six sections follow a token from Figma into the code an agent writes: how it arrives, how it’s typed, how it stays in sync, what the docs and descriptions say about it, and the decisions around it.</p><h3>1. Nobody hand-carries a token</h3><p><strong>What we broke.</strong> Someone once fixed a color by editing our iOS token file by hand. It looked fine. But a script writes that file, and the next sync from Figma would have quietly wiped the fix.</p><p>That’s the catch with a fast pipeline. Before AI, a token change was a project: weeks to agree on what it should mean, a migration plan, then days (sometimes a week) of fixing it by hand on every platform. Now one Push in Figma, a Figma-to-PR script and an agent keep web, iOS and Android up to date. It’s much faster, and it adds a new way to break things.</p><p><strong>Why it matters.</strong> Hand-carried tokens are the classic slop grenade. If a person can edit the output, sooner or later someone will, human or agent.</p><p><strong>How to fix.</strong> Only the generator writes platform code. Here’s the whole trip:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93riywDVP6IpLK2HGlgqSA.gif" /></figure><ol><li>A designer publishes the Figma library and presses <strong>Push</strong> in an export plugin. Publishing alone triggers nothing.</li><li>Push opens a PR with the new token values. An agent adds a description of what they affect.</li><li>A human reviews and merges it.</li><li>The merge opens one PR per platform, with the CSS, Swift and Kotlin already generated. Every generated file starts with AUTO-GENERATED — do not edit.</li></ol><p>Step 4, the fan-out to every platform, is a few lines of GitHub Actions:</p><pre>on:<br>  push:<br>    branches: [main]<br>    paths: [&quot;tokens/**&quot;]<br><br>jobs:<br>  pr:<br>    strategy:<br>      matrix:<br>        platform: [web, ios, android]<br>    steps:<br>      - run: pnpm --filter @design-system/tokens build<br>      - uses: peter-evans/create-pull-request@v8<br>        with:<br>          branch: sync/${{ matrix.platform }}<br>          title: &quot;chore(tokens): sync from main — ${{ matrix.platform }}</pre><p><em>(simplified)</em></p><p>Four details make it hold.</p><p><strong>Review what the JSON affects, not the JSON.</strong> Every token change lands as a PR full of generated JSON. Nobody reads hundreds of lines of it. Nobody honest, anyway. So a reviewer agent takes the token diff, searches all three codebases and rewrites the PR description: what changed and which components are affected. The prompt has one hard rule: a file goes into the report only if it actually turned up in a search.</p><p><strong>Test the generator, not just the code.</strong> A generator bug can pass every check. A small slip in the clean-up step can rename every token, and everything still compiles: the checks are green but the colors are wrong everywhere. So we test the generator itself:</p><ul><li><strong>Order is locked.</strong> Colors are a list of values in a fixed order. If the order changes, the code still compiles, but every color ends up in the wrong place. A test checks the order.</li><li><strong>Conversions have unit tests.</strong> Units, transparency and screen sizes each get their own.</li></ul><p><strong>Fix the generator, never the output.</strong> Wrong value? Change the rule that generated it, and every platform gets the fix. I’ve left this comment on a hand-edited PR so many times that it’s saved as a macro: “These are generated output, not sources.”</p><p><strong>Run bot PRs under a GitHub App token, not the built-in one.</strong> Our bot opens its PRs with GitHub’s built-in token. PRs it opens don’t start CI automatically. GitHub does this on purpose, so that workflows can’t trigger each other in a loop. The required check appears on the PR but never starts until someone approves the run or pushes again. Nothing unchecked gets merged, since the check is still required. But a check that waits for a human to start it isn’t doing its job.</p><p>Switching to a GitHub App token is next on our list. They don’t have this limit, and <a href="https://docs.github.com/en/actions/concepts/security/github_token">GitHub’s own docs</a> suggest one (or a personal access token) for this case.</p><blockquote><strong><em>Takeaway:</em></strong><em> the bot’s PR is where a token change passes from the pipeline to a human. Every value reaches the code through a generator someone reviewed, with a diff someone else can read.</em></blockquote><p>That keeps tokens out of human hands. It doesn’t stop someone using the right token in the wrong place.</p><h3>2. Make misuse fail to compile</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMr828GNZtedi9Kq1kQHMQ.gif" /><figcaption>Xcode rejects a text color on an icon.</figcaption></figure><p><strong>What we broke.</strong> We had one color family, text-icon, shared by text and icons. The name promised one rule for both, and that wasn&#39;t true. Pink was fine on decorative icons but never on text, and that rule lived only in a description nothing enforced.</p><p>It started for a good reason. A text and an icon that sit side by side, like in a button, took their color from the same place, so they could never drift apart. An older version of our app had exactly that bug. It also matched SwiftUI’s <a href="https://developer.apple.com/documentation/swiftui/label">Label</a>, which treats the two as one unit.</p><p>So we split it into separate text and icon families. That broke source compatibility across the package, and it was worth it: the text family has no pink token, so nobody can pick one by mistake.</p><p><strong>Why it matters.</strong> Token names tell you where a color belongs, but they don’t stop you from using it in the wrong place. A text color on an icon still builds and runs, and a reviewer might not catch it. The compiler catches it every time, and the error shows up in the build log, which is where an agent looks.</p><p><strong>How to fix.</strong> Put the taxonomy in the type system. On iOS, color helpers exist only on the views that own that family:</p><pre>public extension Text {<br>    func foregroundStyle(text path: KeyPath&lt;SemanticColor.Text, SemanticColor.Token&gt;) -&gt; Text {<br>        foregroundStyle(SemanticColor.text[keyPath: path])<br>    }<br>}<br><br>public extension Image {<br>    func foregroundStyle(icon path: KeyPath&lt;SemanticColor.Icon, SemanticColor.Token&gt;) -&gt; some View {<br>        foregroundStyle(SemanticColor.icon[keyPath: path])<br>    }<br>}<br><br>// Call sites read like the Figma panel:<br>Text(&quot;Hello&quot;).foregroundStyle(text: \.primary)<br>Image(systemName: &quot;checkmark&quot;).foregroundStyle(icon: \.secondary)</pre><p><em>(simplified)</em></p><p>A plain <a href="https://developer.apple.com/documentation/swiftui/view">View</a> has no text: helper. It exists only on text views (Text, TextField and the like), and icon: exists only on images. A text color on an icon doesn’t build, so nobody has to leave a review comment about it.</p><p>The Label that started all this still takes a single call. For a label you don’t own, like a button style’s configuration.label, you pass both colors at once, each typed to its own family:</p><pre>configuration.label.foregroundStyle(text: \.inverted, icon: \.inverted)</pre><p>Both colors are chosen in one place, so they can’t drift apart, and neither can come from the wrong family. The old bug stays fixed, and the new one doesn’t compile.</p><h4>Lint what the types can’t say</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oSxo-MPGDckjZ1x1lKPnqg.gif" /><figcaption>A SwiftLint error on a PR diff whose message names the fix.</figcaption></figure><p>Types don’t catch everything. <br><em>.foregroundStyle(SemanticColor.text.primary)</em> is valid Swift on any view, and a raw Color compiles too. Lint covers what’s left. We have a handful of <a href="https://realm.github.io/SwiftLint/#defining-custom-rules">SwiftLint custom rules</a>: no raw colors or fonts in a component’s public API; no palette primitives in component code; text and icon colors only through the typed helpers.</p><pre>custom_rules:<br>  typed_text_icon_color:<br>    regex: &#39;\.foregroundStyle\(\s*SemanticColor\.(text|icon)\.&#39;<br>    message: &gt;<br>      Color text with .foregroundStyle(text:) and glyphs with<br>      .foregroundStyle(icon:). A raw token bypasses the text/icon split.<br>      If this is deliberate: swiftlint:disable:next plus a comment saying why.<br>    severity: error</pre><p><em>(simplified)</em></p><p>Three things keep it useful: the message names the fix, only errors block, and findings show up inline on the diff, where the author is already looking.</p><p>Android does the same with a <a href="https://detekt.dev/docs/introduction/extensions/">custom detekt rule</a>. On web, <a href="https://stylelint.io/">stylelint</a> only warns for now.</p><p>The loop to aim for: build, lint, read the message, fix, all before a human sees the diff. So the grenade never leaves the author’s hands.</p><blockquote><strong><em>Takeaway:</em></strong><em> types make the wrong code impossible to write, and lint flags what types can’t. A rule that lives in the compiler or the linter is a rule nobody has to check in review.</em></blockquote><p>Types guard one platform. The split itself still had to reach the other two.</p><h3>3. One source of truth, and a test that fails when copies disagree</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BiAvttfZMIM-P94HEctQng.gif" /><figcaption>One YAML registry file generates the README table, showcase app, Slack pings and agent manifest.</figcaption></figure><p><strong>What we broke.</strong> When we split text and icon colors, iOS picked them up right away. Android went weeks without them, and nobody noticed: its code generator quietly skipped any color family it didn’t recognize, and no test compared the platforms.</p><p><strong>Why it matters.</strong> The color families were one case of a common problem: the same fact lives in several places, and nothing checks that the copies match. Component status is the everyday version. Is Badge ready on Android? The README, the showcase app and Figma can all say different things. A person asks a colleague. An agent believes whichever it finds first.</p><p><strong>How to fix.</strong> Keep one file per kind of truth and generate everything else from it. For component status, that’s a plain YAML file:</p><pre>Badge:<br>  docs: components/badge.mdx<br>  description: Pill-shaped status indicator.<br>    solid/outline × 5 intents × 2 sizes.<br>  platforms:<br>    web:     { status: beta }<br>    ios:     { status: stable }<br>    android: { status: beta }</pre><p><em>(simplified)</em></p><p>From this file we generate the README status table, the showcase app, a Slack message whenever a status changes, and a manifest for agents with the real props, variants and tokens pulled from source.</p><p>Two rules make this work.</p><p><strong>Platforms are checked against each other.</strong> The Android gap went unnoticed for weeks because nothing compared the platforms. Nobody compares two token lists by hand, and an agent won’t either: it uses whatever tokens it finds. So a small test does the comparison. If a native platform lacks a color family that the export has, the test fails. Every exception must name an owner, and whoever caused the mismatch fixes it in their own PR.</p><p><strong>Drift fails the build.</strong> A stale manifest or a missing showcase demo turns CI red. A copy that nobody checks is just a second opinion.</p><blockquote><strong><em>Takeaway:</em></strong><em> an agent reading the manifest should get the same answer as a human reading the README, because they’re the same answer.</em></blockquote><p>A YAML file can be checked against the code. Prose docs can’t, and agents read those too.</p><h3>4. Fix the skill, not the output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smeg6T7DTy964mZSCzLfvQ.gif" /><figcaption>Patch the output and only one component is fixed; fix the skill and every component after it comes out right.</figcaption></figure><p><strong>What we broke.</strong> An agent building a new iOS component kept reaching for things our package doesn’t have, like a <em>.card(elevation:) </em>modifier. It wasn’t making them up. It was following our docs, and the docs were out of date.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c921bfd9dad6d7469a41bd5d3df7dca6/href">https://medium.com/media/c921bfd9dad6d7469a41bd5d3df7dca6/href</a></iframe><p>Even one word can do it: iOS kept tone after web and Android renamed it intent, so every agent writing an iOS screen learned a retired word.</p><p><strong>Why it matters.</strong> The component is only the result of what the docs say. If you fix just the component, the next one comes out broken in the same way, because the docs haven’t changed.</p><p><strong>How to fix.</strong> When the output is wrong, find the skill, doc or checklist that produced it, fix it there, then regenerate. Two rules keep the instructions accurate.</p><p><strong>Write DO and DON’T examples instead of principles.</strong> An agent can’t tell what “use semantic tokens” means in code, but it can copy a working call:</p><pre>// DO: semantic token, typed to the view<br>Text(title).foregroundStyle(text: \.secondary)<br><br>// DON&#39;T: raw color<br>Text(title).foregroundStyle(Color(hex: &quot;#6B6B6B&quot;))</pre><p><strong>Rules in docs, values in generated files.</strong> Our styling docs once listed token values. Skills copied them, and both went stale. Skills link to docs instead of restating them.</p><blockquote><strong><em>Takeaway:</em></strong><em> patching the output defuses one grenade. Fixing the skill shuts the factory. Next time an agent gets it wrong, ask “which file told it to do that?” before you touch the code.</em></blockquote><p>Docs aren’t the only text agents treat as orders. Tokens carry their own.</p><h3>5. Intent metadata is source code too</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzboIP90hyNUaKK_qztnSA.gif" /><figcaption>One primitive, blue300, doing five jobs; beside it, a token that says what it’s for</figcaption></figure><p><strong>What we broke.</strong> A few of our token descriptions told anyone reading them how to use raw palette colors, the ones nobody should touch directly. The advice belonged on the semantic tokens instead.</p><p>Some background: our tokens come in two layers. Primitives are raw palette values like blue300, and we tell everyone not to use them directly. Semantic tokens, like surface.default.raised, are the ones people should use.</p><p><strong>Why it matters.</strong> Metadata looks like documentation, so nobody reviews it the way they review code. Agents read it as instructions and follow it.</p><p><strong>How to fix.</strong> In Part 1 I showed an $intent block and said it was illustrative. It still is: our token JSON has only a plain description. Here’s the structure I’d recommend, in the <a href="https://www.designtokens.org/TR/2025.10/format/">Design Tokens Community Group format</a>:</p><pre>{<br>  &quot;radius&quot;: {<br>    &quot;r4&quot;: {<br>      &quot;$value&quot;: &quot;16px&quot;,<br>      &quot;$description&quot;: &quot;Primitive. Do not apply directly.&quot;<br>    },<br>    &quot;card&quot;: {<br>      &quot;$value&quot;: &quot;{radius.r4}&quot;,<br>      &quot;$description&quot;: &quot;Default corner for cards, panels and modals.&quot;,<br>      &quot;$extensions&quot;: {<br>        &quot;com.example.intent&quot;: {<br>          &quot;useFor&quot;: [&quot;cards&quot;, &quot;panels&quot;, &quot;modals&quot;],<br>          &quot;doNotUseFor&quot;: [&quot;buttons&quot;, &quot;chips&quot;]<br>        }<br>      }<br>    }<br>  }<br>}</pre><p><em>Example only. The spec requires a vendor-specific key and recommends reverse-domain names, so replace com.example with your own domain.</em></p><p>Some icon descriptions were also word for word the same as the text ones. Much of that text was written with AI help, and generated prose needs the same review as generated code. So three lint rules check it:</p><ul><li>every semantic token has an intent;</li><li>primitives contain no usage words like “use for”;</li><li>identical descriptions within a family are flagged.</li></ul><blockquote><strong><em>Takeaway:</em></strong><em> if an agent reads it to make a decision, it’s source. Review it, lint it, audit it.</em></blockquote><p>Descriptions say what a token is for. Bigger decisions, like how a component behaves, live where agents rarely look.</p><h3>6. Make decisions find the agent</h3><p><strong>What we broke. </strong>At 1.5× text size, our Badge split a word in half: <br><em>accessibilit / y.</em> <br>Not our finest moment. It had a fixed maximum width, and long labels wrapped onto a second line. We fixed it with a decision: the Badge stays on one line at every size, and the parent sets its width. Now the risk is that someone forgets that decision and adds a width back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ryZf4Hx9yf1eE0pyj15o_Q.gif" /><figcaption>Before: a fixed-width Badge breaks ‘accessibility’ in half. Now: one line at every size.</figcaption></figure><p><strong>Why it matters.</strong> That decision lives in an ADR. We write ADRs (<a href="https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions">architecture decision records</a>, Michael Nygard’s format) for anything we’d otherwise argue about twice. Does anyone read them at the moment it matters? No. Agents least of all. Some teams store ADRs where agents can load them (<a href="https://bencane.com/posts/2026-05-28-coding-agent-architectural-context/">Benjamin Cane</a>). We added one more step: the decision is delivered to the agent before it edits the file.</p><p><strong>How to fix.</strong> It takes three steps.</p><ol><li><strong>Tell a machine which files a decision covers.</strong> Every record lists the paths it affects:</li></ol><pre>---<br>status: Accepted<br>component: [Badge]<br>affects:<br>  - &quot;web/Badge/**&quot;<br>  - &quot;ios/Badge/**&quot;<br>---</pre><p>A script builds an index from those lists, and CI fails if it’s out of date. A tiny CLI answers “which decisions affect this file?”</p><p><strong>2. Hook it into editing.</strong> Coding agents such as <a href="https://code.claude.com/docs/en/hooks">Claude Code</a> and <a href="https://developers.openai.com/codex/hooks">Codex</a> support hooks: scripts that run automatically at a set moment, for example right before the agent edits a file. Ours takes the path of the file about to be edited and finds the ADRs whose affects list includes it. Then it adds a short note about them to the agent’s context:</p><pre>const records = index.adrs.filter((a) =&gt;<br>  (a.affects ?? []).some((glob) =&gt; globToRegExp(glob).test(path))<br>);<br>// → &quot;One accepted decision (Badge width) covers this file.<br>//    Read it before changing what it decides, or propose a new one.&quot;</pre><p><em>(simplified)</em></p><p>The choice I’d defend in any review: <strong>the hook never blocks.</strong> If anything fails, it exits silently. A hook that can break editing is worse than no hook.</p><p><strong>3. Measure it.</strong> Agents answer confidently even when they’re wrong, so I tested it like any other change: a fixed set of questions about our decisions, the kind people ask before touching a component: “Which decision covers Badge width?”, “Can I hand-edit a generated token file?”, “Is it tone or intent on iOS?” Each one was asked three times without the index and three times with it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b59477c2f1eee128a43ab782898da9da/href">https://medium.com/media/b59477c2f1eee128a43ab782898da9da/href</a></iframe><p>With the index, the agent opened half as many files and took a quarter fewer steps. Accuracy took some effort. The first round with the index actually scored lower, 91%, and every miss was the same kind of question: “does this old decision still apply?” Reading the answers showed why. Our instructions never said what to do with a decision that had been replaced. We added one sentence (if a decision has changed, mention both the old one and the new one), ran the questions again, and got 100%.</p><p><strong>Try this.</strong> Write down ten questions your team answers from decision records. Ask an agent each question three times with your docs and three times without, and count how many files it opens each time.</p><p>Back to our Badge: now, when an agent is about to add a max-width to it, the hook shows it the Badge width decision before the edit.</p><blockquote><strong><em>Takeaway:</em></strong><em> a decision only protects the code if people see it before they change that code.</em></blockquote><p>Six fixes, and not one of them makes agents write faster.</p><h3>What we learned</h3><p>Agents made writing code fast. Review didn’t get the memo.</p><p>There’s an old rule for this. In 1967, <a href="https://doi.org/10.1145/1465482.1465560">Gene Amdahl showed</a> that speeding up one part of a job only goes so far: the part you didn’t speed up caps the total gain. For us, that part was review. <a href="https://www.faros.ai/blog/ai-software-engineering">Faros looked at telemetry</a> from over 10,000 developers: on teams with high AI adoption, developers merged 98% more PRs, and review time went up 91%.</p><p>Picture a chef who cooks 10x faster and dinner still doesn’t come out 10x faster, because every plate stops at the head chef. Agents are the faster cook. Review is the head chef.</p><p>Everything in this article comes down to two lessons.</p><p><strong>Agents mostly did what we told them, and what we told them was wrong.</strong> A modifier that doesn’t exist, a name we’d retired, a benchmark miss: each one traced back to a doc, a skill or an instruction we wrote. So that’s where we fix it.</p><p><strong>Review moves up to intent.</strong> When 40 PRs are waiting, we all know what “LGTM” means at 6pm. Our fixes don’t make writing faster. They make review cheaper, in four layers, cheapest first: decisions show up before the edit, the compiler rejects what can’t be right, the linter catches what compiles anyway and names the fix, and a human judges the intent.</p><p>Agents skip conventions, but they can’t skip a compiler. So reviewers no longer hunt for mistakes line by line. They ask the one question only a human can answer: is this the change we wanted?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zE59oXynD8CddNJ8vWCekg.gif" /></figure><p>Anthropic landed in the same place in <a href="https://www.anthropic.com/engineering/redesigning-source-control">Redesigning source control</a>: engineers often spend their time telling Claude “no”, and reviewers check the intent of a change instead of every line. Different problem, same lesson.</p><p>Here are seven fixes from this article. Pick one and start on Monday.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zSIkM1ygnvKQxtkiQKuyTw.png" /></figure><ul><li><strong>Still copying values from Figma by hand?</strong> Let a bot open the PR.</li><li><strong>Writing the same review comment again?</strong> Teach it to the compiler. It never gets tired.</li><li><strong>How many places say a component is “ready”?</strong> Keep one. Generate the rest.</li><li><strong>Agent got it wrong?</strong> Check the docs first. It learned that somewhere.</li><li><strong>Does your token say what it’s for?</strong> Write “use for” and “don’t use for” into it. Agents read it as gospel.</li><li><strong>Arguing about the same decision again?</strong> Put it in the repo, not in Slack. The next person, or agent, will see it before they edit.</li><li><strong>Is your agent actually right?</strong> Count it. “Seems fine” isn’t a number.</li></ul><p>Treat your docs like code, because your agents already do.</p><h3>So… are we still engineers?</h3><p>Honestly? I ask myself this during my existential crises.</p><p>The internet has settled on an answer: <a href="https://www.inc.com/jessica-stillman/why-tech-thinkers-say-taste-is-the-ultimate-ai-proof-skill-and-3-ways-to-grow-yours/91356580">“taste”</a>. It caught on so fast that <a href="https://www.businessinsider.com/taste-new-core-skill-ai-debate-memes-2026-2">it was a meme within days</a>. I get why: “taste” sounds like something you pin to a mood board, not something you ship.</p><p>Writing code got cheap. An agent can produce a screen, a component or a whole token set before my matcha cools. So the hard question moved from <em>how do we build this?</em> to <em>what is worth building, keeping and shipping?</em> And when everyone has the same tools, everyone gets the same slop.</p><p>Taste turned out to be three unglamorous habits.</p><ul><li><strong>You train it by breaking things.</strong> Every rule in this article exists because something broke first.</li><li><strong>You use it by saying no.</strong> A type rejects a text color on an icon, a lint message names the fix, and a decision shows up before someone changes the code it covers.</li><li><strong>You keep changing it.</strong> The day our rules stop changing, it isn’t taste anymore. It’s habit.</li></ul><p>That’s what a design system is to me now: taste that doesn’t live in one person’s head.</p><p>So yes, we’re still engineers. Agents write the code. We decide what good looks like. And instead of leaving the same review comment for the tenth time, we make the system say no to everything else, before the PR even exists.</p><p>Because the next person to pick up your work might be a designer, an engineer or an agent. Make sure what they catch is your taste, not a slop grenade.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=549043fac8e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/manychat-engineering/i-broke-things-so-you-dont-have-to-lessons-from-an-agentic-design-system-part-2-549043fac8e2">I Broke Things So You Don’t Have To: Lessons from an Agentic Design System (Part 2)</a> was originally published in <a href="https://medium.com/manychat-engineering">Manychat Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build an Agentic Design System People (and Agents) Will Actually Use (Part 1)]]></title>
            <link>https://medium.com/manychat-engineering/how-to-build-an-agentic-design-system-people-and-agents-will-actually-use-part-1-1b08abca90bd?source=rss-49596282d253------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b08abca90bd</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Thành Đỗ Long]]></dc:creator>
            <pubDate>Wed, 10 Jun 2026 08:35:29 GMT</pubDate>
            <atom:updated>2026-06-12T08:35:45.796Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>On building Manychat’s design system in ten working days, and why those days were even possible.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3n0yKbwZ1Jk2SpfASTG8w.png" /></figure><p>Most design systems don’t fail by being wrong. They fail by multiplying.</p><p>When Manychat shifted mobile-first, we needed a design system that worked across all three platforms. We had one — mature, well-maintained, living on the web. But mobile had never adopted it. So each platform did what made sense locally: iOS added its own semantics, Android added its own, web shipped its own names. We’d been building parallel design systems — none of them quite agreeing on what subtle text or warning yellow actually meant.</p><p>Hello 👋 — my name is <a href="https://www.linkedin.com/in/thanhdolong">Thanh</a>, an iOS Engineer at <a href="https://careers.manychat.com/team/engineering">Manychat</a>. This series is about what we did about it: building our agentic design system which works across all the platforms. Just in 10 working days.</p><p>This is the first chapter focusing on what a solid design system should have in its foundation and how we rebuilt it to be AI-driven. If you finish it and you’re not slightly curious how AI can change the way you build — I failed 😔.</p><h3>A design system is a shared language</h3><p>A design system isn’t a component library, a Figma file, or even tokens in the abstract. It’s an agreement — a shared language between design and engineering for what the product should look like, feel like, and behave like, written in a form both sides can read, write, and hold each other to. Tokens encode the agreement: <em>Link</em>, <em>Danger</em>, <em>Surface</em>, <em>Subtle</em>. Not the same hex, but the same meaning.</p><p>Without that language, a codebase isn’t a system — it’s a collection of coincidences that happen to look like one. Engineers re-derive every spacing decision from scratch. Dark mode becomes a parallel product maintained by guesswork. New engineers spend their first week learning which color belongs where, knowledge that lives in tribal memory rather than documentation. Designers feel it from the other side: they invest in a Figma system and engineering ships something close. Nobody’s fault — there’s just no vocabulary to hold either side accountable.</p><p>Users notice eventually, not as bugs but as wobble — spacing that almost matches, colors that almost pair, a dark mode that almost works.</p><p>The question isn’t whether you need a design system. It’s how you build one that actually fits into the development flow instead of sitting next to it. Here’s what worked for us.</p><h3>Do tokens before components</h3><p>Most design systems start where they can ship: buttons, inputs, cards. That’s how we started too.</p><p>Brad Frost’s <a href="https://atomicdesign.bradfrost.com/">Atomic Design</a> borrows directly from chemistry — atoms (button, input, label) bond into molecules, molecules into organisms, then templates, then pages. Simple, stable things combine into complex, situational ones.</p><p>Frost himself <a href="https://bradfrost.com/blog/post/design-tokens-atomic-design-%E2%9D%A4%EF%B8%8F/">extended the model downward</a>, treating tokens as the <em>sub-atomic</em> layer beneath atoms — the particles, and the rules atoms are made of. We use the same framing.</p><p>Sub-atoms are the raw decisions every atom is built from: color, spacing, radius, shadow, motion, typography. Other teams call them tokens. Either way, users don’t see them. Users see what they make possible.</p><p>Think of it like a food pyramid: what’s at the base supports everything above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*inRSQgwkbs-i34kBmrQOdQ.png" /></figure><p>Skip them, and components rest on quicksand. A “primary button” isn’t a stable concept if “primary” doesn’t resolve to a specific background, a specific radius, a specific spacing rhythm, or a specific shadow language. Without those, every primary button in the codebase is a small re-derivation. The next brand refresh will break every component that never agreed on what “primary” meant.</p><p>Start with components, and you’ll rewrite them. Start with sub-atoms, and you’ll build on something that holds.</p><h3>Name tokens by intent</h3><p>Token names have nouns but no verbs — they describe a value, not an intent. I once found <em>blue300</em> in our iOS codebase used as a text color, a button background, an icon tint, a tab indicator, and a border stroke — all in files written by different people, technically valid against the palette, none of them intentionally chosen against a shared rule. It was even worse: <em>neutral100</em> had more than a hundred uses across the same codebase, working as disabled backgrounds, card surfaces, separators, chip fills, divider lines. <em>One gray, five intentions.</em></p><p>The fix is a semantic layer. We built a three-layer architecture:</p><ul><li><strong>Core</strong> — raw values. Eleven color families, scales from s0 to <em>s900</em>. Platform-agnostic, defined once, and referenced everywhere — with no product opinion baked in</li><li><strong>Semantic</strong> — intent-based tokens, organized into five categories: <em>text</em>, <em>icon</em>, <em>background</em>, <em>border</em>, <em>shimmer</em>. Semantic tokens are named using patterns such as <em>text.brand</em>, <em>background.warningDefault</em>, <em>icon.danger</em>. Each token resolves to different core values depending on context — light mode, dark mode, high contrast, brand variant.</li><li><strong>Component</strong> — names scoped to specific components. <em>button.primaryBackground</em> maps to a semantic background.</li></ul><p>The layers talk in one direction: component → semantic → core. The payoff is change isolation. Need to update a brand color? Adjust core; everything downstream follows. Need a high-contrast accessibility mode? Remap semantics. White-label the product? Swap the semantic resolution. None of it requires touching the components that consume the tokens.</p><p>The categories themselves do enforcement work. If a token lives under text, it can only be used for text. If an engineer reaches for background.brand to color an icon, the name itself signals the mistake — before any linter, review, or designer catches it. Naming by intent turns the taxonomy into a guardrail.</p><h3>Start where it hurts</h3><p>Don’t try to define everything at once. For us, the categories that hurt most were color and spacing — the most visible sources of inconsistency.</p><p>Your starting point might be different — typography, elevation, something product-specific. It doesn’t matter. A small system that works beats a large one that’s half-finished</p><h3>Build with AI in mind, and expect everything to change</h3><p>By the time you read this, half of this is already different.<br>AI changes two things at once: the tools you use to build a design system, and the requirements the system itself has to meet. Structure and semantic clarity — everything we covered above — matter more when AI is in the loop. An AI agent reads your system more literally than a person does. If there are some gaps, a person fills them with intuition; an agent fills them with whatever fits the pattern — including the flawed ones.</p><p>For months we’d been building the first version of the design system the classic way: multi-week negotiations on what subtle text should mean, designer-engineer back-and-forth on dark-mode pairings, reviewed screen by screen. That process gave us the right foundation — semantic layers, tokens, atoms, a shared language. But the structure wasn’t designed for AI to read. So we restarted from scratch to make it AI-driven.</p><p>What we ended up building is close to what the 2026 design-systems community has started calling an <em>agentic design system</em>. Thanks to AI, in just ten days we could structurally encode the foundation we had as machine-readable infrastructure rather than static, human-oriented documentation. The result is <strong>Manyfest Design System</strong>: one Figma file and repository for all platforms — web, iOS, Android — built to be read by both humans and AI agents.</p><p>Just as the classic process taught us how to lay the foundation, the AI-first rebuild taught us what that foundation needs to support.</p><p><strong>One: design intent has to be explicit<br></strong>Designers and engineers bring years of product context to every decision. AI doesn’t — not yet. So the token structure has to carry that context instead. <br>Our schema adopts the <a href="https://www.designtokens.org/">W3C Design Tokens Community Group</a> standard, which has become the industry baseline. The standard provides the what: value, type, and description. We added the <em>intent</em> block to capture the <em>why</em>. This is what the community now calls <strong>token intent metadata</strong> — the structured rules about usage and pairings that transform a token from a simple hex string into something an AI agent can actually reason over.</p><p>So in Manyfest, every token carries metadata about <em>why. </em>It’s a hex string plus the role it plays, the surfaces it’s allowed on, and the contrast guarantees it carries.</p><pre>// illustrative — actual schema is still being formalized<br>{<br>  &quot;color.background.warning&quot;: {<br>    &quot;$value&quot;: &quot;{color.core.yellow.500}&quot;,<br>    &quot;$type&quot;: &quot;color&quot;,<br>    &quot;$description&quot;: &quot;Surface tone for non-blocking warning states&quot;,<br>    &quot;$intent&quot;: {<br>      &quot;useFor&quot;: [&quot;banners&quot;, &quot;inline alerts&quot;, &quot;form-field warnings&quot;],<br>      &quot;doNotUseFor&quot;: [&quot;error states&quot;, &quot;destructive actions&quot;, &quot;icon foregrounds&quot;],<br>      &quot;pairsWith&quot;: [&quot;text.warning&quot;, &quot;icon.warning&quot;, &quot;border.warning&quot;]<br>    }<br>  }<br>}</pre><p>The metadata isn’t decoration. It’s the difference between an AI agent getting the token right by guessing, and getting it right because the token told it.</p><h4>Two: reviews stop being only between humans</h4><p>Designers and engineers used to review each other in PRs and Figma threads. Now there’s a third reader.</p><p>We have a shared skill (<a href="https://gist.github.com/thanhdolong/229d2fa226b45e878571ec0f1e35ba62">figma-component-review</a>) that takes a Figma URL, parses the file, pulls the design variables and the component context, scans the matching package code in the design-system repo, and writes back a categorized list of questions: <em>for the designer</em> (intent ambiguity, missing variants, accessibility gaps) and <em>for the engineer</em> (token mismatch, naming drift, component reuse opportunities). The questions land as comments on the Figma node, where the designer is already working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U3Jk4lcErA2WyMMw0r_eSQ.png" /></figure><p>The point isn’t to replace the design review. It’s to surface the same questions earlier — the ones both sides would otherwise hit three weeks later, in a PR. That’s only possible because the system has structure: semantic tokens, named intent, atomic hierarchy. Give the skill a flat palette and it has nothing to compare against.</p><h4>Three: AI catches mistakes humans miss</h4><p>Not by writing code. By reading it.</p><p>We have AI in the loop on every PR: descriptions auto-written from the diff in the template, Conventional Commit titles normalized, contextual labels applied (accessibility, performance, migration), a split gate that blocks merges over 1,000 lines. It takes a whole category of small mistakes off the team’s plate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLHbJcqe0lKQTp1oCahUOA.png" /><figcaption><em>This is an example of the PR from the template we give AI to fill the PR. The full version you can find </em><a href="https://gist.github.com/thanhdolong/1a532dbc2d8ceaa62bde18f21cd99af8"><em>here</em></a><em>.</em></figcaption></figure><p>The real value shows up in smaller moments. While setting up Manyfest’s iOS skill — the file that tells AI agents how to scaffold a new component — an AI reviewer caught three mistakes:</p><ul><li>a cyclic dependency I’d introduced in a preview helper;</li><li>a scope error that made an internal helper accidentally public;</li><li>three doc references pointing to a file I’d renamed two PRs earlier.</li></ul><p>AI wasn’t writing my code, it was catching my mistakes — and that’s the version of AI-driven engineering I trust.</p><h4>Four: don’t let AI decide, let it accelerate</h4><p>AI isn’t magic, at least not at the moment I’m writing this. It hallucinates with confidence. It invents APIs that don’t exist, writes code that compiles and quietly does another thing. Check the screenshot below: at one point our skill description randomly slipped into another language for no apparent reason. Because why not, I guess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CaTQHtxnYtnUeTuS3I-BCA.png" /></figure><p>Treat it like a senior teammate — sharp, fast, sometimes too confident. Brief it carefully. Read its work. Push back when it’s wrong. It implements faster than you can but it doesn’t decide better than you can. The judgment stays yours.</p><h3>The receipts</h3><p>Ten working days — that’s how long it took to ship the AI-driven version of the design system. The classic version, the one we restarted from, had taken months. But the ten days became possible because we already had these months without AI, finding the right approach.</p><p>The system isn’t done yet. What’s done is the foundation: Manyfest in Figma is the source of truth, and everything defined there translates automatically into the format each platform speaks — twenty-three components, ready to wire in on every change.</p><p>Building a design system that AI can read pays off immediately: a designer can start prototyping by dropping a Figma file into Claude with the <a href="https://help.figma.com/hc/en-us/articles/32132100833559">Figma MCP</a> installed. What used to take a sprint takes a day.</p><p><em>Chapter 2 is coming next with more on building an AI-driven design system and the skills we developed along the way.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b08abca90bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/manychat-engineering/how-to-build-an-agentic-design-system-people-and-agents-will-actually-use-part-1-1b08abca90bd">How to Build an Agentic Design System People (and Agents) Will Actually Use (Part 1)</a> was originally published in <a href="https://medium.com/manychat-engineering">Manychat Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>