frontend

frontend is a command for Claude Code from ccivlcid/VibeHarness. It costs 0 tokens per session (643 once invoked), scanned A, original, MIT.

A Next.js and Tailwind CSS setup for building web apps with TypeScript and reusable interface components.

In plain words
What is it for?
It helps create web MVPs with routing, server components, forms, dialogs, notifications, cards, and other interface components.
Why use it?
It gives non-developers a consistent structure for pages, features, styling, and common interface elements.

Command for Claude Code

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 commands/ccivlcid/vibeharness/frontend
Clone the repo
git clone --depth 1 https://github.com/ccivlcid/VibeHarness

Made for: Claude Code.

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 frontend

README.md
[![agentmods](https://agentmods.dev/badge/commands/ccivlcid/vibeharness/frontend.svg)](https://agentmods.dev/commands/ccivlcid/vibeharness/frontend)
Your own site
<a href="https://agentmods.dev/commands/ccivlcid/vibeharness/frontend"><img src="https://agentmods.dev/badge/commands/ccivlcid/vibeharness/frontend.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 643 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.00643
Opus 5 $0.00000 $0.00321
Sonnet 5 $0.00000 $0.00129
Haiku 4.5 $0.00000 $0.00064

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

Security

Grade A, and why

frontend 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 5d 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.

.claude/commands/frontend.md · 88 lines

How it starts

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

Frontend — Next.js + Tailwind + shadcn/ui

This command is part of the VibeHarness framework. Verify stack matches PROJECT_RULES.md. Record architecture decisions in docs/ai-dev/.

Frontend stack for building non-developer MVPs fast and clean. Web app projects only.

Tech Stack

  • Next.js 14+ (App Router): Page routing, server components
  • TypeScript: Type safety
  • Tailwind CSS: Utility-first styling
  • shadcn/ui: Copy-paste UI components (lightweight dependencies)

Initial Setup

npx create-next-app@latest my-app --typescript --tailwind --eslint --app --src-dir
cd my-app
npx shadcn@latest init

Add shadcn/ui components:

npx shadcn@latest add button card input dialog toast

Directory Structure

src/
├── app/
│   ├── layout.tsx          # Root layout
│   ├── page.tsx            # Home page
│   ├── globals.css         # Tailwind + custom styles
│   └── {feature}/
│       └── page.tsx        # Feature pages
├── components/
│   ├── ui/                 # shadcn/ui components (auto-generated)
│   └── {feature}/          # Feature-specific custom components
├── lib/
│   └── utils.ts            # Utilities (cn function, etc.)
└── types/
    └── index.ts            # Shared types

Component Principles

  • One component = one role. Split if over 150 lines
  • Check shadcn/ui first, build custom only if needed
  • Define props with TypeScript interfaces
  • State management: useState/useReducer first, Zustand if complex
  • HTTP requests: use built-in fetch only. Do NOT install Axios

Tailwind Patterns

Responsive:

<div className="px-4 md:px-8 lg:px-16">
  <h1 className="text-2xl md:text-4xl font-bold">Title</h1>
</div>

Dark mode:

<div className="bg-white dark:bg-gray-900 text-black dark:text-white">

Card grid:

<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
  {items.map(item => <Card key={item.id}>...</Card>)}
</div>

Building Pages

  1. Create src/app/{path}/page.tsx
  2. Install needed shadcn/ui components
  3. Build in order: layout → components → data connection
  4. Mobile first, expand with md: lg: prefixes

Read the full file on GitHub · 88 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. 5d ago First seen · 88 lines · 0 tokens per session scan A 078e7c5d6daf

Subscribe to this mod's changes

frontend is a command published in the GitHub repository ccivlcid/VibeHarness (5 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 643 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-31.