Color, spacing, and type
Editable color, spacing, and type decisions connected to the components that use them.
For product teams building with coding agents
Build and maintain your design system with your coding agent. DS Loop helps it find what exists, improve the shared code, and leave examples and decisions your next contributor can use.Build shared components with your coding agent. Use them in your screens and keep examples and decisions with the code.
npm install -D ds-loop@latestOpen source · MIT · Node.js 22.6+
How it works · Choose a step
Your agent reads your code, tokens, components, and docs first. Every finding points to its source.
Local source checks and a skill for your coding agent. Build shared components, put them into product screens, and document how to use them.
Decisions, examples, and checks stay with your code, ready for the next change.
Your app has a shared input, but the billing form builds its own. The settings screen hardcodes a color that already has a token. As people and agents ship changes, the code drifts from the system you agreed on.
An agent can repeat the same mistake when it cannot find your library. DS Loop helps it find the right component, use a checked example, and save the decision for the next change.
<button className="billing-action">Pay</button>Illustrative UI and code.
DS Loop helps your coding agent build shared components, connect existing screens to them, and keep usage guidance up to date. Your team chooses the work; your agent implements and checks it.
“Our screens need a shared foundation.”
Your agent builds tokens and shared components for the screens you choose, with examples your team can follow.“We have components. Our screens bypass them.”
Find which screens bypass your library. Your agent connects them to the shared components and checks the affected behavior.“Our agent keeps rebuilding components we already have.”
Make real components, APIs, and decisions easy to find. Check the setup with a fresh agent completing a real task.“We know what to do. We need hands.”
Your agent takes on migrations, documentation, and maintenance using your team’s existing conventions.Under the hood
Local checks provide evidence from your code. Your coding agent investigates it, proposes a plan, and carries out the work you approve. Updated checks and project notes feed the next round.
Your agent runs the checks. Hooks and CI need setup.
Findings with sources and an ordered plan. Each step says what it changes and how you’ll know it worked. This example follows a theme fix from the findings through implementation, browser checks, and handoff notes.
Read the example reportThis example includes the fix, browser checks, and handoff notes.
Shared components used in your product, editable tokens, working examples, and documented decisions. The code and guidance stay in your project so developers and coding agents can use them for the next change.
Editable color, spacing, and type decisions connected to the components that use them.
Shared buttons, inputs, and tables used in your product.
Which product differences to keep, where they apply, and why.
Correct import paths, supported props, working examples, and decisions your agent can find. Keep the guidance with the code and explain how to update it.
Shared inputs, actions, and layout patterns give the next screen code to reuse.
Open source · Checks run locally
Node 22.6 or later · Alpha · review changes before shipping
Run npm install -D ds-loop@latest in your project to add the package and bundled skill.
Choose your host: claude, codex, or cursor. For Codex, run npx ds-loop install --agent codex. Replace codex with your host’s name. Agent setup instructions.
Ask your coding agent to read node_modules/ds-loop/skill/SKILL.md and investigate your project. Review the proposed plan and approve the work before it makes changes.
Can a fresh agent find the right component, use its actual API, and check the result without you supplying every detail? DS Loop helps you connect the components, examples, and project decisions it needs, then try a representative task. That task shows what works and what still needs attention.
Keep your DESIGN.md. DS Loop helps your agent turn that guidance into shared components, checked changes, and updated documentation.
No. Your agent can help you start one. If you already use a component library, it should look at what you have before suggesting a replacement.
The engine reads CSS custom properties and selected rule properties, Tailwind values in JavaScript and TypeScript strings, DTCG and Style Dictionary token JSON, and SCSS/Sass. Rendered layouts, interactions, accessibility, and design quality need separate review. Read the exact coverage.
The optional Claude Code hook reports findings after edits; it does not block them. You can also configure CI to fail on selected findings or coverage gaps. Installing the package does not schedule checks or start ongoing maintenance.
You can keep shadcn/ui or another suitable library. Storybook is optional; component examples and a usage guide may be enough to start.
The package and skill are open source under MIT. The engine runs locally without model calls, API keys, or network access. Your coding agent’s costs and data handling depend on its provider and your settings.