cocktail.glass CLAUDE.md

cocktail.glass CLAUDE.md is an instructions file for coding agents from jdevalk/cocktail.glass. It costs 918 tokens per session, scanned A, original, MIT.

Repository instructions for cocktail.glass, a static cocktail website built with Astro and deployed to Cloudflare Pages. They document the project's HTML, CSS, search, performance, and shared browser/server tool conventions.

In plain words
What is it for?
Use them when editing the site's pages, search interface, responsive layout, styling, scripts, or MCP/WebMCP integrations.
Why use it?
They help an agent make site changes that fit the existing structure and avoid unnecessary markup, styles, or duplicated tool definitions.

Instructions file

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 instructions/jdevalk/cocktail.glass/claude-md
Clone the repo
git clone --depth 1 https://github.com/jdevalk/cocktail.glass

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 cocktail.glass CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jdevalk/cocktail.glass/claude-md.svg)](https://agentmods.dev/instructions/jdevalk/cocktail.glass/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jdevalk/cocktail.glass/claude-md"><img src="https://agentmods.dev/badge/instructions/jdevalk/cocktail.glass/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 918 This file is loaded in full into every session.
When invoked 918 The same file — it is already loaded in full.
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 $0.00918 $0.00918
Opus 5 $0.00459 $0.00459
Sonnet 5 $0.00184 $0.00184
Haiku 4.5 $0.00092 $0.00092

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

Security

Grade A, and why

cocktail.glass CLAUDE.md 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.

CLAUDE.md · 49 lines

How it starts

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

cocktail.glass

Stack

  • Astro 6 static site, deployed to Cloudflare Pages
  • No JS framework — vanilla inline scripts with is:inline. One exception: src/components/WebMcp.astro is a bundled module (no is:inline) because it imports the shared cocktail-tools.mjs tool module, and inline scripts cannot import.
  • Pagefind for search (custom UI, not PagefindUI)
  • cocktail-tools.mjs (repo root) holds the seven MCP tool definitions and matching logic. Both the remote MCP server (functions/mcp.js) and the in-browser WebMCP integration import it — change a tool in one place.

HTML principles

  • Minimize attributes per element. Avoid adding classes when the element can be targeted by its position in the DOM (e.g., .grid > a > h3 instead of .card-name on every card).
  • Don't add data- attributes that duplicate information derivable from the DOM tree (e.g., don't put data-category on every card when the parent section already has it).
  • Use is:global styles instead of Astro's scoped styles for pages with many repeated elements — scoped styles add a data-astro-cid-* attribute to every element, which adds significant weight at scale (saved ~155KB on the homepage with 500 cards).
  • Scope bare element selectors (e.g., header, h1) to a parent class when using is:global to prevent them bleeding into the layout.

CSS principles

  • Prefer cascading selectors over class-per-element. Inside a known structure like .grid > a, target children by element type and position rather than adding classes.
  • When converting from scoped to global styles, remove :global() wrappers — they create broken double-global selectors inside <style is:global>.
  • Use scroll-margin-top on anchor targets to account for the sticky header.

Performance

  • Only the first 4 images in the homepage grid are eager-loaded (loading="eager", fetchpriority="high"). The first image is also preloaded via <link rel="preload">.
  • JSON-LD schema and search overlay JS are in the footer, after visible content.
  • System font stack for body text (--font-sans), custom font only for display headings (Playfair Display). Only the latin subset is loaded.
  • Homepage is ~526KB raw / ~54KB gzipped with 500 cocktail cards.
  • Use content-visibility: auto on category sections for render performance.

Read the full file on GitHub · 49 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 First seen · 49 lines · 918 tokens per session scan A e89a694a9e52

Subscribe to this mod's changes

cocktail.glass CLAUDE.md is an instructions file published in the GitHub repository jdevalk/cocktail.glass (7 stars, last pushed 10d ago), licensed MIT. It adds 918 tokens to every session, about $0.0046 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 instructions, from other repositories