ai-viewer: Skill for Claude Code

.agents/skills/project-frontend/SKILL.md

project-frontend is a skill for Claude Code, Codex from netdata/ai-viewer. It costs 40 tokens per session (5,273 once invoked), scanned A, original, MIT.

Coding conventions for the React and TypeScript part of an application, built with tools such as Vite, React Router, D3, and testing tools. It covers file layout, type safety, API types, pages, components, and browser tests.

In plain words
What is it for?
Use it when editing frontend pages, components, API clients, server-sent event handling, data visualizations, or frontend tests.
Why use it?
It keeps frontend code consistent and catches errors that loose types or inconsistent file patterns can hide. It also helps frontend changes match the application's existing structure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is netdata/ai-viewer's own configuration. It tells Claude Code and Codex how to work on ai-viewer 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 ai-viewer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to netdata/ai-viewer. 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/netdata/ai-viewer/master/.agents/skills/project-frontend/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/netdata/ai-viewer

Made for: Claude Code, Codex.

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 project-frontend

README.md
[![agentmods](https://agentmods.dev/badge/skills/netdata/ai-viewer/project-frontend/github.svg)](https://agentmods.dev/skills/netdata/ai-viewer/project-frontend)
Your own site
<a href="https://agentmods.dev/skills/netdata/ai-viewer/project-frontend"><img src="https://agentmods.dev/badge/skills/netdata/ai-viewer/project-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 project-frontend

Your own site · 80×15
<a href="https://agentmods.dev/skills/netdata/ai-viewer/project-frontend"><img src="https://agentmods.dev/badge/skills/netdata/ai-viewer/project-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,273 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.00040 $0.05273
Opus 5.5 $0.00016 $0.02109
Sonnet 5.5 $0.00008 $0.01055
Haiku 4.5 $0.00004 $0.00527

Measured 1mo ago against content hash 959269afcdbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-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 1mo 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/skills/project-frontend/SKILL.md · 184 lines

How it starts

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

Frontend Patterns

Stack Versions

Always the latest stable: React, TypeScript, Vite, TanStack Query, React Router, D3, Vitest, Playwright. Update on a rolling basis; major-version upgrades get a brief SOW.

File Conventions

  • One component per file. File name matches the default export (e.g. SessionRow.tsx exports SessionRow).
  • No default exports outside of pages/* (which React Router prefers default). Components and helpers use named exports.
  • Co-locate Component.tsx + Component.module.css + Component.test.tsx.
  • One folder per page under src/pages/<PageName>/.

TypeScript

  • strict: true.
  • noUncheckedIndexedAccess: true.
  • exactOptionalPropertyTypes: true.
  • No any. Use unknown and narrow.
  • API response types live in src/api/types.ts and mirror the Go types.
  • Prefer interface for plain object shapes in frontend TypeScript. Use type aliases for unions, intersections, mapped/conditional types, and utility-type expressions where an interface cannot express the shape cleanly. Codacy Cloud enforces @typescript-eslint/consistent-type-definitions, so local helper object shapes should follow the same convention even when project-native ESLint does not report it locally.

Hooks Patterns

// data fetching
export function useSession(id: string) {
  return useQuery({
    queryKey: ['session', id],
    queryFn: () => api.getSession(id),
    staleTime: 1000,
  });
}

// URL-synced filters
export function useFilters(): [Filters, (f: Partial<Filters>) => void] {
  const [params, setParams] = useSearchParams();
  const filters = parseFilters(params);
  const update = (patch: Partial<Filters>) => setParams(serializeFilters({ ...filters, ...patch }));
  return [filters, update];
}
  • Custom hooks live next to the page/component that introduces them. Cross-cutting hooks live in src/hooks/.
  • One hook per file.
  • Always return tuples or named-object results, never anonymous arrays beyond two elements.

SSE Handling

Read the full file on GitHub · 184 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. 1mo ago First seen · 184 lines · 40 tokens per session scan A 959269afcdbc

Subscribe to this mod's changes

project-frontend is a skill published in the GitHub repository netdata/ai-viewer (2 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 5,273 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

Other skills, from other repositories

structlog-structured-logging

Modern, powerful structured logging for Python using structlog. Use when adding or improving logging in Python projects, configuring structlog for dev/production, working with contextvars for request-scoped logging, integrating structlog with stdlib logging, or writing tests for logging behavior.

DemboNauta/skill-doc-generator · 61 tokens

client-setup

Create a vanilla tRPC client with createTRPCClient (), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.

trpc/trpc · 63 tokens

adapter-express

Mount tRPC as Express middleware with createExpressMiddleware() from @trpc/server/adapters/express. Access Express req/res in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('/trpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.

trpc/trpc · 67 tokens

trpc-router

Entry point for all tRPC skills. Decision tree routing by task: initTRPC.create(), t.router(), t.procedure, createTRPCClient, adapters, subscriptions, React Query, Next.js, links, middleware, validators, error handling, caching, FormData.

trpc/trpc · 59 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

opentelemetry-net-instrumentation

Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.

Aaronontheweb/dotnet-skills · 56 tokens