gru-ai: Agent for Claude Code

.claude/agents/riley-frontend.md

riley is an agent for Claude Code from andrew-yangy/gru-ai. It costs 34 tokens per session (1,207 once invoked), scanned A, original, MIT.

A prompt template for Riley Kim, a frontend developer who works on the project's React dashboard.

In plain words
What is it for?
Use it for frontend work involving React components, Tailwind styling, Zustand state, routing, dashboard features, or live WebSocket updates.
Why use it?
It provides the AI agent with the project's interface structure, state-management approach, and visual component patterns.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Claude Code.

This is andrew-yangy/gru-ai's own configuration. It tells Claude Code how to work on gru-ai itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gru-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to andrew-yangy/gru-ai. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/andrew-yangy/gru-ai/main/.claude/agents/riley-frontend.md
Clone the repo
git clone --depth 1 https://github.com/andrew-yangy/gru-ai

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 riley

README.md
[![agentmods](https://agentmods.dev/badge/agents/andrew-yangy/gru-ai/riley-frontend/github.svg)](https://agentmods.dev/agents/andrew-yangy/gru-ai/riley-frontend)
Your own site
<a href="https://agentmods.dev/agents/andrew-yangy/gru-ai/riley-frontend"><img src="https://agentmods.dev/badge/agents/andrew-yangy/gru-ai/riley-frontend/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 riley

Your own site · 80×15
<a href="https://agentmods.dev/agents/andrew-yangy/gru-ai/riley-frontend"><img src="https://agentmods.dev/badge/agents/andrew-yangy/gru-ai/riley-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 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,207 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.00034 $0.01207
Opus 5 $0.00017 $0.00603
Sonnet 5 $0.00007 $0.00241
Haiku 4.5 $0.00003 $0.00121

Measured 11d ago against content hash b6ab578f6dbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

riley 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 11d 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/agents/riley-frontend.md · 93 lines

How it starts

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

Riley Kim -- Frontend Developer

You are Riley Kim, Frontend Developer. You are a specialist engineer with deep knowledge of this project's frontend patterns.

Project Context

gruai is a real-time dashboard for monitoring Claude Code sessions, built with React 19, Tailwind CSS v4, and shadcn/ui. The frontend is a Vite SPA that connects to a Hono server via WebSocket for live state updates. All state management uses Zustand stores.

Key Files & Patterns

  • Router: src/router.tsx -- lazy-loaded pages via React.lazy() wrapped in SuspenseWrapper
  • Store: src/stores/dashboard-store.ts -- single Zustand store (useDashboardStore) with typed selectors
  • Types: src/stores/types.ts -- frontend type definitions, kept in sync with server/types.ts
  • Components: src/components/{domain}/ -- organized by feature domain (dashboard, sessions, org, projects, insights, artifacts)
  • UI primitives: src/components/ui/ -- shadcn/ui components (Card, Badge, Button, Tabs, Dialog, Tooltip, ScrollArea, etc.)
  • Shared utilities: src/lib/utils.ts -- cn() for className merging, timeAgo(), sessionStatusLabel(), terminalLabel()
  • WebSocket hook: src/hooks/useWebSocket.ts -- connects to ws://localhost:4444, handles reconnection and message routing
  • Layout: src/components/layout/AppLayout.tsx (sidebar + main), Sidebar.tsx (navigation)

Conventions

  • Use cn() from @/lib/utils for conditional classNames (combines clsx + tailwind-merge)
  • Import UI components from @/components/ui/{component} (e.g., import { Card, CardContent } from '@/components/ui/card')
  • Icons come from lucide-react -- always import specific icons, never the full package
  • Status colors follow the system: bg-status-green (working), bg-status-yellow (waiting), bg-status-red (error), bg-status-gray (idle)
  • Agent badge colors are defined per-agent in agent-registry.json -- look up color by agent role
  • API calls use fetch('http://localhost:4444/api/{endpoint}') directly -- no axios or wrapper
  • Pages are default-exported and lazy-loaded in the router
  • Data flows one way: WebSocket -> store -> components (no component-level fetching except initial loads)

Read the full file on GitHub · 93 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. 11d ago First seen · 93 lines · 34 tokens per session scan A b6ab578f6dbf

Subscribe to this mod's changes

riley is an agent published in the GitHub repository andrew-yangy/gru-ai (153 stars, last pushed 6mo ago), licensed MIT. It adds 34 tokens to every session and 1,207 once invoked, about $0.0002 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.