Skip to content
GitHub (opens in a new tab)

Get started

Set up nistha in three steps: install the package, give your agent the rules, connect the MCP server. Then ask for a screen. The package is agentic-ds-kit.

  1. Step 1: Install the package

    Components, tokens and contracts ship in one package. Tokens load with the first import.

    Terminal
    bash
    npm install agentic-ds-kit@latest
    app/page.tsx
    tsx
    import { Button, Scoreboard } from "agentic-ds-kit";
  2. Step 2: Give your agent the rules

    Copy these two files from the package into your app root. Claude Code and Cursor load them on every run.

    • AGENTS.mdKit rules for any agent
    • CLAUDE.mdPoints Claude Code at AGENTS.md
    Terminal
    bash
    cp node_modules/agentic-ds-kit/AGENTS.md ./AGENTS.md
    cp node_modules/agentic-ds-kit/CLAUDE.md ./CLAUDE.md
  3. Step 3: Connect the MCP server

    A read-only server that answers from the version you installed: contracts, tokens and patterns.

    Clients with Skills over MCP, such as Claude Code, also get the prototype-from-kit skill from the server, so you don't need to copy it.

    bash
    claude mcp add agentic-ds-kit -- npx -y agentic-ds-kit mcp

    Tools and what they return: MCP server.

  4. Step 4: Ask for a screen

    “Build a billing settings page with the kit. Use the settings pattern and stop if a part is missing.”

    Next.js setup, fonts, patterns and upgrades: installation details.

Installation details

Current version is 0.31.0. The package is ESM-only, needs React 19 and supports Next.js 15 or later. You do not clone this repo and you do not need transpilePackages. DocsNav uses next/link, so Next is an optional peer for that component only.

Check the install

Render a primary Button. It should look like the kit primary, not a default browser control. Importing from the package loads tokens and pattern layout classes.

app/page.tsx
tsx
import { Button } from "agentic-ds-kit";

export default function Page() {
  return <Button appearance="solid" mode="primary">Save</Button>;
}

The package exports components only. Read contracts/index.json in the package, then import the matching component. Compose them into any layout: top bar only, side nav only, both, or neither. Keep page content in a main landmark and the nav reachable on small screens.

Fonts

The kit sets the body font but ships no font files. A kit import sets body font-family to var(--font-sans), with zero specificity so your own body rule wins. Without Geist loaded it falls back to system-ui. Load the variable Geist (no weight list, so headings get a true 550) with next/font and the variables the tokens read, or override --font-sans in :root.

app/layout.tsx
tsx
import { Geist, Geist_Mono } from "next/font/google";

const geistSans = Geist({ subsets: ["latin"], variable: "--font-geist-sans" });
const geistMono = Geist_Mono({ subsets: ["latin"], variable: "--font-geist-mono" });

// <html className={`${geistSans.variable} ${geistMono.variable}`}>

Tokens in your CSS

Only needed if your own stylesheets use kit variables before any kit component is imported. Importing tokens twice is harmless.

app/layout.tsx
tsx
import "agentic-ds-kit/tokens.css";

Dark mode and brand color: Theming.

Translate built-in labels

Close buttons, pager arrows and picker panels name themselves for screen readers, in English by default. Pass only the keys you want to change; the rest stay English.

app/providers.tsx
tsx
import { KitLabelsProvider } from "agentic-ds-kit";

<KitLabelsProvider labels={{ close: "Schließen", remove: (name) => `${name} entfernen` }}>
  <App />
</KitLabelsProvider>

The full list is the KitLabels type and DEFAULT_KIT_LABELS. A component's own ariaLabel prop still wins. Breadcrumb and Field take ariaLabel and helpLabel props instead, so they stay server-rendered.

Copy a pattern into your app

Patterns are examples, not package exports. Copy one in to start from it, then own its layout, sections, copy and data.

Terminal
bash
npx agentic-ds-kit add --list
npx agentic-ds-kit add dashboard

This writes components/patterns/dashboard/ (src/components/patterns/ when the app uses src/): the pattern files, dashboard-data.ts with the demo data to replace, and dashboard.contract.json. Kit imports point at agentic-ds-kit, so the copy compiles with no edits.

app/page.tsx
tsx
import { DashboardPattern } from "@/components/patterns/dashboard";

Use --dir to pick another folder and --force to overwrite. Keep the contract JSON next to the files: agents follow its must lines and treat its defaults as suggestions. If the copy renders unstyled, import agentic-ds-kit/tokens.css and agentic-ds-kit/layout.css in the root layout. Upgrading the kit does not change copied files. add app-header and add side-nav copy the ShellHeader and ShellNav chrome recipes to components/chrome/; add app-shell copies the layout that can host them.

Start from an empty folder

The kit is not an app. Scaffold Next first.

Terminal
bash
mkdir my-app
cd my-app
npx create-next-app@latest . --yes
npm install agentic-ds-kit@latest

Agent skill

Optional. Copy the prototype-from-kit skill next to the rules files. For Cursor rules, add .cursor/rules/kit.mdc with the same lines as AGENTS.md.

Terminal
bash
mkdir -p .cursor/skills/prototype-from-kit .claude/skills/prototype-from-kit
cp node_modules/agentic-ds-kit/skills/prototype-from-kit/SKILL.md .cursor/skills/prototype-from-kit/
cp node_modules/agentic-ds-kit/skills/prototype-from-kit/SKILL.md .claude/skills/prototype-from-kit/

Upgrade from 0.1.0

Run the install command again. Do not recreate the Next app, and skip 0.2.0 (it shipped CSS filenames Next re-scopes). Remove transpilePackages for this kit if you added it, and re-copy the agent files from node_modules if they changed.