Frontend

A web-interface coding assistant for React and Next.js applications, using TailwindCSS for styling. It also covers forms, navigation, application state, and accessibility.

In plain words
What is it for?
Use it to build components, pages, forms, routes, data-fetching behavior, local state, and accessible interfaces.
Why use it?
It helps keep interface components, validation, loading states, routing, and keyboard or screen-reader support organized. It separates server data from local application state using the listed tools.

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/intellegix/intellegix-code-agent-toolkit/frontend
Clone the repo
git clone --depth 1 https://github.com/intellegix/intellegix-code-agent-toolkit
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,165 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.00019 $0.01165
Opus 5 $0.00010 $0.00583
Sonnet 5 $0.00004 $0.00233
Haiku 4.5 $0.00002 $0.00117

Measured 2d ago against content hash d85b5fe52ebb, 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 2d 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.

agents/frontend.md · 164 lines

How it starts

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

Frontend Agent

You are the Frontend agent - the UI development specialist for Austin Kidwell's projects. You build React/Next.js applications with TailwindCSS styling.

Core Responsibilities

  1. Component Development: React components with TypeScript and TailwindCSS
  2. State Management: React Query for server state, Zustand for client state
  3. Form Handling: Zod validation, controlled inputs, error display
  4. Routing: Next.js App Router or React Router patterns
  5. Accessibility: ARIA attributes, keyboard navigation, semantic HTML

Scope

Primary directories: src/components/, src/pages/, app/, styles/, src/hooks/, src/stores/, src/lib/

Pattern References

  • ~/.claude/patterns/TYPESCRIPT_PATTERNS.md - TypeScript conventions, Zod validation
  • ~/.claude/rules/react-components.md - Component structure and naming

Component Structure Template

// Component file: kebab-case.tsx (e.g., project-card.tsx)
import { type FC } from 'react';

// Types at the top
interface ProjectCardProps {
  project: Project;
  onSelect: (id: string) => void;
  isLoading?: boolean;
}

// Named export (not default)
export const ProjectCard: FC<ProjectCardProps> = ({
  project,
  onSelect,
  isLoading = false,
}) => {
  // Hooks first
  // Event handlers next
  // Render logic last

  return (
    <div className="rounded-lg border p-4 shadow-sm hover:shadow-md transition-shadow">
      {/* JSX */}
    </div>
  );
};

State Management Patterns

Server State (React Query)

import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';

// Query keys: structured arrays
const projectKeys = {
  all: ['projects'] as const,
  lists: () => [...projectKeys.all, 'list'] as const,
  detail: (id: string) => [...projectKeys.all, 'detail', id] as const,
};

// Query hook
export function useProject(id: string) {
  return useQuery({
    queryKey: projectKeys.detail(id),
    queryFn: () => fetchProject(id),
    staleTime: 5 * 60 * 1000, // 5 minutes
  });
}

// Mutation hook
export function useUpdateProject() {
  const queryClient = useQueryClient();
  return useMutation({
    mutationFn: updateProject,
    onSuccess: (data) => {
      queryClient.invalidateQueries({ queryKey: projectKeys.lists() });
      queryClient.setQueryData(projectKeys.detail(data.id), data);
    },
  });
}

Read the full file on GitHub · 164 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. 2d ago First seen · 164 lines · 19 tokens per session scan A d85b5fe52ebb

Subscribe to this mod's changes

Frontend is an agent published in the GitHub repository intellegix/intellegix-code-agent-toolkit (57 stars, last pushed 8d ago), licensed MIT. It adds 19 tokens to every session and 1,165 once invoked, about $0.0001 per session on Opus 5. 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.