frontend-conventions

frontend-conventions is a skill for Claude Code from fpindej/netrock. It costs 27 tokens per session (3,187 once invoked), scanned A, original, MIT.

A reference for the project's SvelteKit and Svelte 5 frontend structure and conventions. SvelteKit is a framework for building web applications with Svelte.

In plain words
What is it for?
Adding or changing frontend components, authentication and settings screens, API clients, layouts, configuration files, and shared UI pieces.
Why use it?
It helps frontend changes fit the existing component, authentication, configuration, API, and page organization instead of creating conflicting patterns.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md.

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 skills/fpindej/netrock/frontend-conventions
Any agent
npx skills add fpindej/netrock --skill frontend-conventions
Clone the repo
git clone --depth 1 https://github.com/fpindej/netrock

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fpindej/netrock/frontend-conventions.svg)](https://agentmods.dev/skills/fpindej/netrock/frontend-conventions)
Your own site
<a href="https://agentmods.dev/skills/fpindej/netrock/frontend-conventions"><img src="https://agentmods.dev/badge/skills/fpindej/netrock/frontend-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,187 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.1 $0.00027 $0.03187
Opus 5 $0.00014 $0.01594
Sonnet 5 $0.00005 $0.00637
Haiku 4.5 $0.00003 $0.00319

Measured 6d ago against content hash 04d4244ddff3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

frontend-conventions 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 6d 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-conventions/SKILL.md · 281 lines

How it starts

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

Frontend Conventions (SvelteKit / Svelte 5)

Project Structure

src/
├── lib/
│   ├── api/                       # client.ts, error-handling.ts, mutation.ts, backend-monitor.ts, v1.d.ts (GENERATED)
│   ├── auth/                      # auth.ts (getUser, logout), middleware.ts (token refresh)
│   ├── components/
│   │   ├── ui/                    # shadcn (generated, customizable)
│   │   ├── auth/                  # Login/register/reset flows, 2FA step, Turnstile
│   │   ├── layout/                # Header, sidebar, user nav, theme/language toggles
│   │   ├── profile/               # Profile forms, avatar, account details
│   │   ├── settings/              # Password, account deletion, activity log, 2FA management
│   │   ├── admin/                 # User/role/job management, audit trail
│   │   ├── dashboard/             # Dashboard widgets
│   │   ├── oauth/                 # OAuth provider linking
│   │   └── common/                # Small shared pieces (status indicator, etc.)
│   │   # For the live component inventory, list the barrels: $lib/components/*/index.ts
│   ├── config/                    # i18n.ts (client-safe), server.ts (server-only - never export from barrel)
│   ├── state/                     # .svelte.ts files only (cooldown, health, shake, theme, sidebar, shortcuts)
│   ├── types/index.ts             # Type aliases from API schemas
│   └── utils/                     # ui.ts (cn()), permissions.ts, audit.ts, platform.ts, roles.ts, jobs.ts
├── routes/
│   ├── (app)/                     # Authenticated (redirect guard)
│   │   └── admin/                 # Permission-guarded per page
│   ├── (public)/login/            # Redirect away if logged in
│   └── api/[...path]/             # Catch-all proxy to backend
├── messages/{locale}/*.json        # i18n (per-feature: core, auth, admin, etc.)
└── styles/                        # themes.css, tailwind.css, animations.css, base.css, utilities.css

API Client

Two layers: lib/api/ (auth-agnostic client factory) and lib/auth/ (all auth concerns).

Read the full file on GitHub · 281 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. 6d ago First seen · 281 lines · 27 tokens per session scan A 04d4244ddff3

Subscribe to this mod's changes

frontend-conventions is a skill published in the GitHub repository fpindej/netrock (231 stars, last pushed 5d ago), licensed MIT. It adds 27 tokens to every session and 3,187 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.