Skip to content

dgesteves/onsystem

v0.12.1MIT

Keeps coding agents on your design system: catches palette colors, native elements and APIs your system lacks, at every edit and pull request, with the fix. Set it up once in your design-system package; every app in your monorepo gets it.

onsystem as an Agent Plugin

The Agent Plugins 1.0 package of onsystem, for VS Code and any other client of the standard. It keeps your agent on your React design system: it reads the project's real components, props, cva variants and design tokens, gives them to the agent before it writes UI, and checks what it writes against them.

What it adds

  • An MCP server, onsystem (mcp.json), with five read-only tools: list_components, get_component, search_components, get_tokens and check_ui.
  • A skill (skills/onsystem) that tells the agent to look components and tokens up before writing UI and to fix every check_ui finding.

There is no hook: the format has none. The Claude Code plugin, which Codex CLI installs too, checks each edit as it happens; with other agents, add the CI check.

What it runs

npx -y onsystem@<version>, the npm package pinned to this plugin's version. The format starts the server in the plugin's folder, not your project, so the server finds the project through the workspace roots the client reports. If your client reports none, add the server with the MCP config for your client instead.

What data it touches

Everything runs on your machine. The server reads the project's component files, stylesheets, token files, docs, package.json, tsconfig and config file, and writes only its cache. It makes no network requests and no model calls, needs no API key, and sends nothing anywhere. npx does: each time it starts the server, it asks the npm registry about the package, and downloads it the first time and on each new version. Offline, it starts the server from npm's cache only after npm gives up on the registry, over a minute later.

Install

VS Code: add a clone's plugins/onsystem-agent folder to the chat.pluginLocations setting.

GitHub Copilot CLI: install onsystem from the marketplace, which gives it the Claude Code plugin's MCP server and skill, the same as this package's. Copilot CLI has deprecated installing a plugin straight from a repository.

copilot plugin marketplace add dgesteves/onsystem
copilot plugin install onsystem@dgesteves

Other clients: Set up your agent.

The skill here is a copy of the Claude Code plugin's, made by scripts/sync-plugins.mjs: edit that one.