Bricks

Bricks gives coding agents implementation-aware contracts for building interface components that belong in an existing product, codebase, and design system. Before writing code, the agent works out a component's responsibility, context, variants, states, and verification requirements — then builds it with the project's own primitives and verifies it inside the real page.

GitHub
Component LayerMIT

MAINTAINED BY KOSTJA · UPDATED 2026-09 · MIT · catalog/components.json · Navigation · Content · Conversion · Layout · Agent UI · Agnostic — no fixed framework

$npx skills add kostja94/bricks --skill component-builder
01

Why Bricks exists

!

Generated components invent their own reality

A generated Footer may invent routes. A FAQ may hide answers from assistive technology. A Task Input may omit loading, cancellation, invalid input, and result recovery — every state the user actually needs.

!

Demos look convincing and integrate badly

An Agent Workspace can look convincing in a demo while having no workable boundary between conversation, tools, artifacts, and user control — and agents habitually ship an isolated demo or import a second design system instead of a project-native implementation.

!

The hard part is deciding responsibility

Agents can already write component code. The harder problem is deciding what the component is responsible for — its context, variants, content, interaction states, and ownership boundary — and making it fit the product around it.

02

What the contracts provide

Implementation-aware contracts

One maintained reference per component concept, covering responsibility, context, variants, content, interaction states, technical boundary, and verification requirements.

Context-aware variants

The same component changes meaning across surfaces — a marketing Footer organizes destinations while an app Footer may shrink to operational links. Bricks records these decisions without minting a new component name for every combination.

Project-native construction

The agent inspects routes, tokens, dependencies, data model, and conventions first, reuses project primitives, implements required states, and verifies the component inside its actual page — not an isolated preview.

Machine-readable catalog

catalog/components.json spans navigation, content, conversion and trust, layout, and agent-interface components — with stable IDs that Agent tooling can reference.

Library guidance for complex domains

For editors, data grids, charts, calendars, and accessibility primitives, the contract directs the agent to a proven library when the project does not already provide one.

03

Install, then give a bounded task

1.Install the component-builder skill.

$npx skills add kostja94/bricks --skill component-builder

2.A real bounded request: the task plus its integration context (see examples/footer-request.md).

$Use component-builder to build the footer for this bilingual SaaS site. Read the existing routes, components, design tokens, framework, and responsive conventions first. Reuse project primitives, include the real product, resource, company, and legal destinations, and verify keyboard access on mobile and desktop.
04

What it is not

Not a whole-product planner — it builds interface components and bounded composition patterns, not the product plan or site-wide information architecture.

Not a component package or design system — no fixed React/Vue/CSS kit, and no permission to replace the project's own conventions.

Not an audit workflow — and it does not claim performance, accessibility, compliance, or conversion outcomes that were never verified in the target project.

WORKS WITH

Frequently Asked Questions

Is Bricks a component library to copy into every project?
Bricks provides implementation-aware component contracts. The agent defines responsibility, variants, states, and checks, then builds with the existing project’s primitives and design system.
What should I give the agent after installing Bricks?
Give it a bounded component task and the context needed for integration. Verify the component in the real page rather than judging an isolated mockup.

Your Product Deserves to Be Found.

Great AI products don't fail on quality — they fail on being invisible. We turn that around, one compounding system at a time.

Get started

This site uses cookies and similar technologies for analytics, personalized ads (via Google AdSense), and essential functions. By clicking “Accept All”, you consent to our use of cookies. You can reject non-essential cookies by clicking “Reject All”.

Privacy Policy