ui-library

ui-library is a command for GitHub Copilot from objectstack-ai/objectstack. It costs 0 tokens per session (637 once invoked), scanned A, original, Apache-2.0.

A set of rules for building reusable React interface components with Tailwind CSS, Shadcn UI, and Framer Motion. React is a library for building web interfaces; Tailwind CSS supplies styling classes, and Shadcn UI supplies component patterns.

In plain words
What is it for?
Use it when creating schema-driven widgets, form fields, page layouts, or plugins for the ObjectStack design system.
Why use it?
It keeps buttons, fields, layouts, and larger widgets consistent while separating simple building blocks from components with heavy dependencies or business logic.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit Use it when creating schema-driven widgets, form fields, page layouts, or plugins for the ObjectStack design system.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/objectstack-ai/objectstack/ui-library
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/objectstack-ai/objectstack

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-library

README.md
[![agentmods](https://agentmods.dev/badge/commands/objectstack-ai/objectstack/ui-library/github.svg)](https://agentmods.dev/commands/objectstack-ai/objectstack/ui-library)
Your own site
<a href="https://agentmods.dev/commands/objectstack-ai/objectstack/ui-library"><img src="https://agentmods.dev/badge/commands/objectstack-ai/objectstack/ui-library/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-library

Your own site · 80×15
<a href="https://agentmods.dev/commands/objectstack-ai/objectstack/ui-library"><img src="https://agentmods.dev/badge/commands/objectstack-ai/objectstack/ui-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00637
Opus 5.5 $0.00000 $0.00255
Sonnet 5.5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

Measured today against content hash e75225fd84ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ui/.github/prompts/ui-library.prompt.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🎨 ObjectUI Principles & Architecture

Goal: Create a world-class, enterprise-grade UI library for ObjectStack. Tech Stack: React, Tailwind CSS, Shadcn UI, Framer Motion.

1. Core Philosophy

  1. "Beauty as a Feature": Enterprise software doesn't have to be ugly. Use generous whitespace, subtle shadows, and smooth transitions.
  2. Radical Consistency: Every button, input, and card must feel like they belong to the same family.
  3. Composition over Configuration: Use standard Shadcn slots (<Card><CardHeader>...) rather than monolithic config objects when writing internal code.
  4. Tailwind Native: All styling must be via Tailwind utility classes. No .css files except for global variables.

2. Component Standards

A. The "cn" Pattern

Every component MUST accept className and merge it using cn() (clsx + tailwind-merge).

import { cn } from "@/lib/utils"

export function Badge({ className, variant, ...props }: BadgeProps) {
  return (
    <div className={cn("inline-flex items-center rounded-full px-2.5 py-0.5", className)} {...props} />
  )
}

B. Shadcn Compatibility

  • Do not modify components/ui/* primitives heavily. Keep them upgradeable.
  • Use cva (class-variance-authority) for managing component variants (primary, secondary, ghost).

C. Theming Variables

Theme is controlled via CSS variables in globals.css (in the consumer app or injected by LayoutProvider).

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%; /* Brand Color */
  --radius: 0.5rem;
}

3. Development Workflow

  1. Add Primitive: Use Shadcn CLI (or manual copy) to add atoms.
    • npx shadcn-ui@latest add dropdown-menu
  2. Build Block: Combine primitives into a "Block" (e.g., PageHeader).
  3. Connect Engine: Wrap the Block in the withEngine HoC if it needs data/logic.

4. Visual Standards

  • Typography: Inter (default). Headings tight tracking, strict scale.
  • Borders: Subtle (border-zinc-200 light / border-zinc-800 dark).
  • Shadows: shadow-sm for cards, shadow-lg for dropdowns/modals.
  • Animation: Use framer-motion for complex entrances. Standard duration: 200ms.
  • Dark Mode: First-class citizen. All colors must have dark substitutions.

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 67 lines · 0 tokens per session scan A e75225fd84ef

Subscribe to this mod's changes

ui-library is a command published in the GitHub repository objectstack-ai/objectstack (75 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 637 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.