typescript-and-ui

typescript-and-ui is an agent for coding agents from icoretech/airbroke. It costs 0 tokens per session (333 once invoked), scanned A, original, MIT.

A set of TypeScript and user-interface coding rules for the Airbroke project. TypeScript is JavaScript with type checks, and the rules explain how its React components, server code, shared UI pieces, and imports should be organized.

In plain words
What is it for?
Use it when building or reviewing Airbroke pages and components, handling database mutations, choosing server or browser code, and reusing the project's UI primitives.
Why use it?
It reduces mistakes caused by putting browser-only code in server code, using the wrong component type, or bypassing shared project conventions.

Agent

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.

agentmods
npx agentmods add agents/icoretech/airbroke/typescript-and-ui
Clone the repo
git clone --depth 1 https://github.com/icoretech/airbroke

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 typescript-and-ui

README.md
[![agentmods](https://agentmods.dev/badge/agents/icoretech/airbroke/typescript-and-ui.svg)](https://agentmods.dev/agents/icoretech/airbroke/typescript-and-ui)
Your own site
<a href="https://agentmods.dev/agents/icoretech/airbroke/typescript-and-ui"><img src="https://agentmods.dev/badge/agents/icoretech/airbroke/typescript-and-ui.svg" alt="Measured on agentmods" 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 333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00333
Opus 5 $0.00000 $0.00167
Sonnet 5 $0.00000 $0.00067
Haiku 4.5 $0.00000 $0.00033

Measured 4d ago against content hash 0f1059c6ed1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

typescript-and-ui 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 4d ago.

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.

docs/agents/typescript-and-ui.md · 37 lines

What it actually says

TypeScript and UI

TypeScript Baseline

  • TypeScript runs in strict mode
  • Use the @/ alias for project imports
  • Keep type-only imports separate when possible because Biome warns on mixed import style
  • components/ui/** is excluded from the TypeScript project, so changes there need extra manual attention

Component Boundaries

  • Default to server components and server helpers unless the code needs browser APIs, client-side interactivity, or React hooks
  • Mark interactive files with "use client" explicitly
  • Keep mutations in server actions and feed the result back through refresh, revalidation, or redirect flows instead of duplicating server state locally
  • Do not import server-only helpers such as lib/db.ts or auth internals into client components

UI Stack

  • Shared primitives live under components/ui/
  • The project is configured for shadcn components with the base-nova preset, Base UI primitives, CSS variables, Lucide icons, and app/globals.css
  • components/ai-elements/** is also skipped by Biome, so treat it like a vendor-style surface: edit sparingly and verify the consumer manually

Practical Rules

  • Prefer existing primitives and wrappers before adding a new UI abstraction
  • Keep route-specific charts, filters, and dialogs close to the feature they serve, then extract only when they become shared
  • When a UI file must stay client-side, keep data fetching and secret-bearing work on the server and pass only the minimum data down
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. 4d ago First seen · 37 lines · 0 tokens per session scan A 0f1059c6ed1e

Subscribe to this mod's changes

typescript-and-ui is an agent published in the GitHub repository icoretech/airbroke (222 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 333 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-08-30.

Related

Other agents, from other repositories

merge-conflict-resolver

Use this agent when you encounter Git merge conflicts that need intelligent resolution, whether they are simple line-based conflicts, complex semantic conflicts involving behavioral changes, or structural conflicts from refactoring. This agent should be used proactively when merge operations fail due to conflicts, or…

module-federation/core · 0 tokens

git-conflict-resolver

Use this agent when you need to resolve git merge conflicts, merge branches, or handle complex git operations involving branch integration. This includes resolving conflicts in files, choosing between conflicting changes, merging feature branches into main/master, rebasing branches, or cleaning up merge-related…

module-federation/core · 0 tokens

trigger-dev-expert

Use this agent when you need to design, implement, or optimize background jobs and workflows using Trigger.dev framework. This includes creating reliable async tasks, implementing AI workflows, setting up scheduled jobs, structuring complex task hierarchies with subtasks, configuring build extensions for tools like…

hackerai-tech/hackerai · 0 tokens

form

FORM — Design. Visual system, UI architecture, motion, accessibility, design PRDs. Use when a human will see the work, when a landing page or product UI is requested, or when Forge is about to invent a look. Use proactively for any user-facing surface.

jmenzies722/shua-labs · 57 tokens

axis

AXIS — Architecture. System design, ADRs, irreversible calls, architectural review. Use when the shape of the system is unset, when a shortcut would lock us in, or before Forge writes a feature that spans boundaries. Use proactively for any new product or service.

jmenzies722/shua-labs · 56 tokens

forge

FORGE — Software engineering. Production code, tests, refactors, bug fixes after the cause is known. Use when the design and architecture are set and the job is to make it real. Use proactively for implementation once Axis/Form have spoken.

jmenzies722/shua-labs · 51 tokens