web-worker-patterns: Instructions file for Claude Code

CLAUDE.md

web-worker-patterns CLAUDE.md is an instructions file for Claude Code from damiansire/web-worker-patterns. It costs 1,000 tokens per session, scanned A, original, MIT.

A project guide describing the development phases and coding conventions for an Angular application. Angular is a framework for building web applications; the guide also explains how to add examples in small, testable steps.

In plain words
What is it for?
Use it when adding or changing examples, Workers, services, tests, translations, or theme-specific screens in this repository. It covers commit naming, modern Angular conventions, and the order for delivering a change.
Why use it?
It makes changes easier to review and reduces the risk of large, hard-to-check rewrites. It requires tests for domain code and lists the checks to pass before showing a completed milestone.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 web-worker-patterns CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/damiansire/web-worker-patterns/claude-md"><img src="https://agentmods.dev/badge/instructions/damiansire/web-worker-patterns/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,000 This file is loaded in full into every session.
When invoked 1,000 The same file — it is already loaded in full.
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.01000 $0.01000
Opus 5.5 $0.00400 $0.00400
Sonnet 5.5 $0.00200 $0.00200
Haiku 4.5 $0.00100 $0.00100

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

Security

Grade A, and why

web-worker-patterns 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 23d 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 · 66 lines

How it starts

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

CLAUDE.md

Cómo trabajar en este repo: fases y convenciones de código. El diseño vive en ARQUITECTURA-multi-theme.md; los gates, el tooling y el loop de design-review viven en docs/AI-PROCESS.md. Este archivo era referenciado por AGENTS.md/docs/AI-PROCESS.md como fuente de verdad pero no existía: se creó el 2026-07-10.

Fases

  • Cambios chicos y acotados, que se lean como diff: no reescrituras masivas.
  • Un ejemplo nuevo = un commit por paso lógico (worker + logic.ts con test → registro en examples.registry.ts → i18n → wiring por theme), no todo junto.
  • Parar a mostrar al terminar un hito: gates verdes (npm run format:check, npm run build, npm test, npm run lint:boundaries), sin warnings nuevos.
  • Tests antes que UI: la lógica pura (*.logic.ts) se valida con un test unitario sin TestBed antes de cablear la pantalla que la consume.
  • Si tocás core/domain/, dejá un test que lo cubra.

Convenciones de código

  • Commits: Conventional Commits en español (feat(scope): …, fix(scope): …, chore(scope): …). Sin atribución a IA ni Co-Authored-By.
  • Angular moderno únicamente: standalone components, signals (signal/computed/effect/input/output), inject(), ChangeDetectionStrategy.OnPush en todo componente (la app es zoneless). Nada de NgModule ni inyección por constructor.
  • La regla de oro (ver AGENTS.md): core/ nunca importa de themes/. La lógica de Web Workers vive en core/domain/workers/, nunca en un theme.
  • Nombres por dominio: un servicio/signal se nombra por lo que significa para el ejemplo (workerPoolStatus, threadLane), no por su mecanismo interno (state, data, handler).
  • Override del compilador de ESLint (overrides en package.json): @angular-eslint/bundled-angular-compiler apunta a @angular/compiler real porque angular-eslint 22.5 embebe el compilador 22.1, que no parsea @boundary. Al subir Angular, subí también la versión de ese override (tiene que ser la misma que @angular/compiler). Sacalo cuando angular-eslint embeba un compilador >= 22.2.
  • @boundary + viewChild (Angular 22.2): al descartar la vista rota, los viewChild declarados dentro del bloque tiran un NG0600 que pisa a $error. Por eso el fallback del example-layout no muestra $error; el error original llega primero al ErrorHandler.
  • No agregues abstracciones para un caso de uso único; no diseñes para requisitos hipotéticos.

Read the full file on GitHub · 66 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. 23d ago Changed · -1 lines · -36 tokens per session e68387742303
  2. 1mo ago Changed · -1 tokens per session a3781ad53a24
  3. 1mo ago Changed · +10 lines · +189 tokens per session bddc4a91b39a
  4. 2mo ago First seen · 57 lines · 848 tokens per session scan A 5dfa2bac0dcb

Subscribe to this mod's changes

web-worker-patterns CLAUDE.md is an instructions file published in the GitHub repository damiansire/web-worker-patterns (173 stars, last pushed 11d ago), licensed MIT. It adds 1,000 tokens to every session, about $0.0040 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-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,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,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens