vite-flare-starter: Instructions file for Claude Code

CLAUDE.md

vite-flare-starter CLAUDE.md is an instructions file for Claude Code from jezweb/vite-flare-starter. It costs 1,513 tokens per session, scanned C, original, MIT.

A set of Claude Code instructions for Vite Flare Starter, a reusable project template for Cloudflare Workers. Its modules show implementation patterns for features such as chat, files, and activity.

In plain words
What is it for?
Use it when adding features, finding the relevant module, configuring feature flags, or following the project's development approach.
Why use it?
It helps an agent understand the project's intended patterns and where to make changes when building a fork.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to jezweb/vite-flare-starter. 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/jezweb/vite-flare-starter/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/jezweb/vite-flare-starter

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 vite-flare-starter CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jezweb/vite-flare-starter/claude-md/github.svg)](https://agentmods.dev/instructions/jezweb/vite-flare-starter/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jezweb/vite-flare-starter/claude-md"><img src="https://agentmods.dev/badge/instructions/jezweb/vite-flare-starter/claude-md/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 vite-flare-starter CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jezweb/vite-flare-starter/claude-md"><img src="https://agentmods.dev/badge/instructions/jezweb/vite-flare-starter/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,513 This file is loaded in full into every session.
When invoked 1,513 The same file — it is already loaded in full.
Security scan C 1 finding. 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.01513 $0.01513
Opus 5.5 $0.00605 $0.00605
Sonnet 5.5 $0.00303 $0.00303
Haiku 4.5 $0.00151 $0.00151

Measured 22d ago against content hash 58538a071a3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

vite-flare-starter CLAUDE.md scanned grade C with 1 finding 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 22d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Fork, don't clone: a real GitHub fork keeps `upstream` wired, so `git pull upstream main` brings bug fixes and security patches; clone and `rm -rf .git` only when the user explicitly asks for a detached snapshot. Guide
CLAUDE.md · 64 lines

How it starts

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

Vite Flare Starter: AI developer context

Pattern library and production-ready starter kit for Cloudflare Workers (version in package.json). This file loads every session, so it holds the rules; docs/REFERENCE.md is the deep reference (module map, stack, UI kit, agents, AI, skills, auth, deploy) and its "Where to find things" table routes every other topic.

Pattern library, not a demo

  • The modules are reference implementations: before building a feature in a fork, read the closest existing module (table "What each module demonstrates" in docs/REFERENCE.md).
  • Don't delete modules you don't need: hide them with VITE_FEATURE_* flags in .dev.vars (src/shared/config/features.ts), so the code stays a readable reference.

Forking

  • Fork, don't clone: a real GitHub fork keeps upstream wired, so git pull upstream main brings bug fixes and security patches; clone and rm -rf .git only when the user explicitly asks for a detached snapshot. Guides: FORKING.md, UPGRADING.md (releases), PATCHES.md (divergence).
  • After forking: nav items in src/shared/config/nav.ts, unneeded modules off in src/shared/config/features.ts, rebrand in src/shared/config/app.ts, first module per docs/PATTERNS.md.
  • Rebrand before production: VITE_APP_NAME, VITE_TOKEN_PREFIX + TOKEN_PREFIX, index.html title, favicon in public/; VITE_GITHUB_URL="" hides GitHub links.
  • No product surface until DESIGN_BRIEF.md is filled from real material; with no material, design deliberately, never inherit the placeholder (FORKING.md Part 0).
  • Friction the starter hasn't solved: issues and PRs upstream are welcome, shaped per CONTRIBUTING.md.

Building

  • Navigation: edit src/shared/config/nav.ts, not the layout component; features.ts flags control visibility.
  • Pages over modals: modals only for confirmations and quick decisions. A new page: module component, Route in src/client/App.tsx, nav item, feature flag if optional.
  • Layouts: compose AppShell (src/components/ui/app-shell.tsx) differently; don't fork a whole layout file.
  • List pages: pick the shape from what the user does, not what the data looks like (picker table and scaffolds in docs/REFERENCE.md). A new layout primitive needs 3+ surfaces or a firm plan for several, stays single-purpose, and gets a row in that table.
  • Charts: Kumo ECharts with echarts and useChartTheme (canvas can't read CSS vars) from @/client/lib/echarts, imported inside route-lazy pages.
  • Agents: use the Cloudflare agents SDK base; don't extend a raw DurableObject (decision table in docs/REFERENCE.md, detail in docs/AGENTS.md).
  • "Watch X periodically and surface findings" is a Routine, not an AutonomousAgent subclass (docs/ROUTINES.md). Before designing a config DSL or rules engine, ask whether channels-as-tools plus a markdown skill covers it.
  • Every primitive a user picks from a list (agent, tool, skill, channel) self-describes with displayName + description; render enum values through src/shared/format/agent.ts.
  • Every multi-page feature passes the first-time-user test: sign in and complete the task without reading source. Anywhere you'd say "click Skip" is a UX bug.
  • AI SDK stays on v6: the Cloudflare agents line pins ai ^6.
  • Internal AI calls pick a model by role (resolveModelRole in server/lib/ai/roles.ts), not a hardcoded id, and pass thinkingOffProviderOptions(role) or thinkingOffRunOptions(role). Models live in src/shared/config/models.ts; Cloudflare retires Workers AI models without notice, so run pnpm doctor:models after any Workers AI release.
  • Tenancy: use scopeUser(table.userId, userId) (src/server/lib/tenancy.ts) anywhere you'd write eq(table.userId, userId), in reads and write guards; it returns undefined in shared mode, so filter and(...) arrays with isCondition.

Read the full file on GitHub · 64 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. 22d ago Changed · -762 lines · -12,950 tokens per session 58538a071a3b
  2. 1mo ago First seen · 826 lines · 14,463 tokens per session scan C 03e058819543

Subscribe to this mod's changes

vite-flare-starter CLAUDE.md is an instructions file published in the GitHub repository jezweb/vite-flare-starter (49 stars, last pushed 22d ago), licensed MIT. It adds 1,513 tokens to every session, about $0.0061 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

plan-forge naming.instructions.md

Azure naming conventions — Microsoft CAF abbreviations, constraints, uniqueness, tagging.

srnichols/plan-forge · 1,453 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens