repoforge: Skill for Claude Code

.claude/skills/frontend/SKILL.md

frontend-layer is a skill for Claude Code from JNZader/repoforge. It costs 47 tokens per session (959 once invoked), scanned A, original, MIT.

A frontend development guide for the RepoForge application’s user interface, including reusable React components and error handling for user interactions. It applies when working in the frontend/ directory.

In plain words
What is it for?
Use it when creating UI components, changing user interactions, adding error boundaries, or starting and building the frontend.
Why use it?
It gives frontend changes a consistent structure and describes how to show errors instead of letting interface failures go unhandled.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is JNZader/repoforge's own configuration. It tells Claude Code how to work on repoforge 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 repoforge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JNZader/repoforge. 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/JNZader/repoforge/main/.claude/skills/frontend/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/JNZader/repoforge

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-layer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnzader/repoforge/frontend"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 959 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.00047 $0.00959
Opus 5.5 $0.00019 $0.00384
Sonnet 5.5 $0.00009 $0.00192
Haiku 4.5 $0.00005 $0.00096

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

Security

Grade A, and why

frontend-layer 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 2mo 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/skills/frontend/SKILL.md · 113 lines

How it starts

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

frontend-layer

Frontend layer for the Gentleman-Skills project. Handles the React/TypeScript UI, including app shell, routing, authentication, generation streaming, and analytics dashboards.

Trigger: When working in frontend/ directory — adding pages, debugging generation streams, or integrating auth flows in the web app.

Quick Reference

Task Pattern
Stream generation useGenerationStream(generationId)
Auth check useAuth()
Start generation useStartGeneration(data)

Critical Patterns (Summary)

  • TypeScript React Components: Functional components with hooks; all UI components are pure functions returning JSX.
  • API Integration: fetchApi, streamGeneration, startGeneration from lib/api.ts; auth via AuthProvider/useAuth with VITE_API_URL env var.

Critical Patterns (Detailed)

Pattern 1: TypeScript React Components

All UI components are functional components returning JSX. State is managed with React hooks (useState, useQuery, useMutation). Components are composed hierarchically: App wraps ErrorBoundary → Suspense → LoadingSpinner, with Layout and ProtectedRoute controlling routing and auth.

// Example: App.tsx entry point
import { HashRouter } from 'react-router-dom';
import { ErrorBoundary } from './components/ErrorBoundary';
import { LoadingSpinner } from './components/LoadingSpinner';
import { Layout } from './components/Layout';

function App() {
  return (
    <HashRouter>
      <ErrorBoundary>
        <Suspense fallback={<LoadingSpinner />}>
          <Layout>
            {/* route children rendered here */}
          </Layout>
        </Suspense>
      </ErrorBoundary>
    </HashRouter>
  );
}
export default App;

Pattern 2: Generation Streaming with useGenerationStream

Generation state is managed via useGenerationStream hook which tracks StreamStatus ('idle' | 'connecting' | 'running' | 'completed' | 'error' | 'cancelled'), StepItem list, and progress. Streaming uses SSE events from /api/generate endpoint. The hook provides events, status, steps, and progress for UI rendering.

Read the full file on GitHub · 113 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · +77 lines · +3 tokens per session 35dd1c9f193f
  2. 2mo ago Changed · -50 lines · +9 tokens per session 9d1b5d9894f9
  3. 3mo ago First seen · 86 lines · 35 tokens per session scan A 786ab6023f9f

Subscribe to this mod's changes

frontend-layer is a skill published in the GitHub repository JNZader/repoforge (4 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 959 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

frontend-layer compared with skills from other repositories

frontend-layer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-layerJNZader/repoforgeSkill42mo agoMITA47Claude Code
datamolsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A67Claude Code, Codex
clinicaltrials-databasesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A47Claude Code, Codex
esmsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A86Claude Code, Codex
openalex-databasesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A76Claude Code, Codex
glycoengineeringsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A75Claude Code, Codex
pysamsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A47Claude Code, Codex