theokit-frontend

theokit-frontend is a skill for Claude Code from usetheokit/theokit. It costs 25 tokens per session (1,120 once invoked), scanned A, original, Apache-2.0.

Frontend guidance for TheoKit applications built with React, where files define page addresses and layouts. It also covers TheoKit's typed methods for calling application interfaces.

In plain words
What is it for?
Building routes such as /about or /tasks/:id, organizing shared layouts, fetching data, and connecting React interfaces to TheoKit agents.
Why use it?
It gives the coding agent the project conventions needed to add pages, handle errors and loading states, and call the right backend routes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Building routes such as /about or /tasks/:id, organizing shared layouts, fetching data, and connecting React interfaces to TheoKit agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/usetheokit/theokit/theokit-frontend
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.

Any agent
npx skills add usetheokit/theokit --skill theokit-frontend
Clone the repo
git clone --depth 1 https://github.com/usetheokit/theokit

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/usetheokit/theokit/theokit-frontend"><img src="https://agentmods.dev/badge/skills/usetheokit/theokit/theokit-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 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.00025 $0.01120
Opus 5 $0.00013 $0.00560
Sonnet 5 $0.00005 $0.00224
Haiku 4.5 $0.00003 $0.00112

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

Security

Grade A, and why

theokit-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 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.

packages/create-theokit/templates/default/dot-claude/skills/theokit-frontend/SKILL.md · 128 lines

How it starts

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

TheoKit Frontend (React + File-Based Routing)

File-Based Routing

File URL Purpose
app/page.tsx / Home page
app/layout.tsx (wrapper) Root layout (wraps all pages)
app/error.tsx (error) Error boundary
app/loading.tsx (loading) Suspense fallback
app/not-found.tsx (404) Not found page
app/about/page.tsx /about Nested route
app/tasks/[id]/page.tsx /tasks/:id Dynamic route

Typed API Client (theoFetch)

import { theoFetch } from 'theokit/client'

// The URL is used literally — build it yourself for a dynamic route.
const tasks = await theoFetch('/api/tasks')
const task = await theoFetch(`/api/tasks/${id}`)

// POST with body. `method` is REQUIRED when the route declares one.
const created = await theoFetch('/api/tasks', {
  method: 'POST',
  body: { title: 'New task' },
})

theoFetch has no params option. Its options are RequestInit minus body/method, plus a conditional query and body — nothing interpolates a :id segment for you. Reach for the generated client below when you want that; it is the half that knows your route tree.

App Client (proxy-based)

import { createAppClient } from 'theokit/client'

const client = createAppClient()

const tasks = await client.tasks.get()
const task = await client.tasks.id.get({ params: { id: '42' } }) // → GET /api/tasks/42
const created = await client.tasks.post({ body: { title: 'New' } })

Three details the generator decides for you, and each is easy to guess wrong:

  • methods are lowercaseget, post; the export in your route file stays GET
  • a dynamic segment loses its colonapp/tasks/[id] is reached as client.tasks.id, not client.tasks[':id']
  • params values are strings{ id: '42' }; a URL segment has no other type

Read the full file on GitHub · 128 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. 4d ago Changed 0ad4b5f8cce1
  2. 9d ago First seen · 128 lines · 25 tokens per session scan A c0f7507a56dc

Subscribe to this mod's changes

theokit-frontend is a skill published in the GitHub repository usetheokit/theokit (5 stars, last pushed today), licensed Apache-2.0. It adds 25 tokens to every session and 1,120 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-31.

Related

Other skills, from other repositories

senior-dev

Activates the SeniorDev agent for full-stack software engineering. Use this skill when you need production-ready code: Next.js 14 frontends, FastAPI backends, TypeScript strict-mode components, PostgreSQL schemas, Redis caching, authentication flows, or complete REST/GraphQL APIs. SeniorDev always outputs complete…

vignesh2027/Claude-Agentic-Skills2.0-version · 86 tokens

openforms-mui

Author, render, preview and debug OpenForms FormSchemaJSON form definitions as idiomatic, themed, accessible MUI (React). Use when the user wants to design an OpenForms form, render an OpenForms schema with Material UI, convert an OpenForms JSON schema into a React MUI form, preview a form schema, or debug…

BlackBeltTechnology/pi-agent-dashboard · 131 tokens

canvas-webapp

Render a React/Vite (or any bundled) web app on the pi-dashboard canvas, which loads loopback URLs in a sandboxed opaque-origin iframe. Use when a canvas(target:{kind:"url"|"server"}) target shows up blank white, an empty surface, or a /live/ 500 ECONNREFUSED. Covers why Vite dev servers and non-CORS static servers…

BlackBeltTechnology/pi-agent-dashboard · 99 tokens

remotion

Render a short (10s) video on any topic with Remotion - the agent writes a storyboard JSON, a bundled React/Remotion project renders it to an MP4, and the clip is committed to the repo and delivered by URL. No editor, no external generative API.

aeonfun/aeon · 61 tokens

software-frontend

Builds frontend applications across major web stacks. Use when implementing UI, fixing hydration or SSR issues, or setting up modern frontend architecture.

vasilyu1983/AI-Agents-public · 31 tokens

software-localisation

Implements production-grade i18n/l10n for React, Vue, Angular, and Next.js with ICU format and RTL support. Use when setting up or debugging localisation.

vasilyu1983/AI-Agents-public · 39 tokens