private-landing: Instructions file for Claude Code

CLAUDE.md

private-landing CLAUDE.md is an instructions file for Claude Code from vhscom/private-landing. It costs 1,808 tokens per session, scanned A, original, Apache-2.0.

Project instructions that explain a private authentication reference application built with Cloudflare Workers. They describe its project structure, technologies, security decisions, and commands for AI assistants.

In plain words
What is it for?
Use them when modifying the authentication app, its Bun workspace monorepo, database and cache services, shared packages, observability tools, or Go command-line tool.
Why use it?
They give coding agents the context needed to understand the codebase and follow its established design choices.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 private-landing CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vhscom/private-landing/claude-md"><img src="https://agentmods.dev/badge/instructions/vhscom/private-landing/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,808 This file is loaded in full into every session.
When invoked 1,808 The same file — it is already loaded in full.
Security scan A 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.01808 $0.01808
Opus 5.5 $0.00723 $0.00723
Sonnet 5.5 $0.00362 $0.00362
Haiku 4.5 $0.00181 $0.00181

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

Security

Grade A, and why

private-landing CLAUDE.md scanned grade A 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 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

The first agent must be provisioned via direct `curl` against `/ops/agents` — `plctl` requires an existing agent key to start.
CLAUDE.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.

CLAUDE.md

This file provides context for AI assistants working with this codebase.

Project Overview

Private Landing is an educational authentication reference implementation for Cloudflare Workers. It demonstrates secure authentication patterns following NIST SP 800-63B/SP 800-132 guidelines and OWASP recommendations.

Stack: Hono, Turso (libSQL), Valkey (optional), TypeScript, Bun, Zod, Go

Architecture

This is a Bun workspace monorepo with an additional Go tool:

apps/cloudflare-workers/    # Hono app deployed to Cloudflare Workers
packages/core/              # Auth services, middleware, crypto utilities
packages/infrastructure/    # Database client, cache client, static file serving
packages/observability/     # Removable plugin: event capture, adaptive challenges, /ops API + WebSocket
packages/schemas/           # Zod validation schemas
packages/types/             # Shared TypeScript types and error classes
tools/cli/                  # plctl — Go TUI for the /ops API (not a Bun workspace)

Key Design Decisions

  • JWT dual-token pattern: Short-lived access tokens (15 min) + long-lived refresh tokens (7 days)
  • Session linkage: Tokens contain session IDs enabling server-side revocation
  • PBKDF2-SHA384: 100,000 iterations with 128-bit salts per NIST SP 800-132
  • Timing-safe comparison: Uses crypto.subtle.verify() for constant-time equality checks
  • No composition rules: Password policy follows NIST guidance (length only, no complexity requirements)
  • Content negotiation: Auth endpoints return JSON when Accept: application/json is sent, redirects otherwise
  • Optional cache-backed sessions: CacheClient abstraction (ADR-003) enables Valkey/Redis for session storage via createCachedSessionService; SQL remains the default when no cache is configured
  • Session dual-write: createMirroredSessionService decorator (ADR-007) wraps cache-backed sessions with best-effort SQL writes so operational queries against the session table stay accurate; cache remains authoritative for auth
  • Password change with full revocation: POST /account/password verifies the current password, updates the hash, and revokes all sessions via endAllSessionsForUser (ADR-004)
  • Semantic URL grouping: Routes organized into /health/* (public probes), /auth/* (authentication lifecycle), /account/* (account management), /ops/* (operational surface) with explicit per-route auth middleware (ADR-005)
  • Rate limiting: Fixed-window counters via CacheClient (ADR-006); IP-based keying for public routes, user-based keying for authenticated routes; degrades to no-op when cache is disabled
  • Observability plugin: packages/observability (ADR-008) provides structured event emission, adaptive proof-of-work challenges on login, agent credentials, and the /ops/* HTTP surface; removable by deleting the package and commenting two lines in app.ts
  • WebSocket gateway: GET /ops/ws (ADR-009) provides persistent operational connections with authenticate-once upgrade, capability negotiation, heartbeat with credential re-validation, and origin blocking for browser-initiated connections
  • Cloaking: /ops/* routes return 404 when AGENT_PROVISIONING_SECRET is absent, making the surface invisible in default deployments

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. 1mo ago First seen · 128 lines · 1,808 tokens per session scan A aa67d648fd9f

Subscribe to this mod's changes

private-landing CLAUDE.md is an instructions file published in the GitHub repository vhscom/private-landing (78 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 1,808 tokens to every session, about $0.0072 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

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,786 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

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens