web-worker-patterns CLAUDE.md

web-worker-patterns CLAUDE.md is an instructions file for coding agents from damiansire/web-worker-patterns. It costs 848 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

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/damiansire/web-worker-patterns/claude-md
Clone the repo
git clone --depth 1 https://github.com/damiansire/web-worker-patterns

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 848 This file is loaded in full into every session.
When invoked 848 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.00848 $0.00848
Opus 5 $0.00424 $0.00424
Sonnet 5 $0.00170 $0.00170
Haiku 4.5 $0.00085 $0.00085

Measured 4d ago against content hash 5dfa2bac0dcb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 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 — creado por /fragua adoptar 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).
  • No agregues abstracciones para un caso de uso único; no diseñes para requisitos hipotéticos.

Estándar nivel mundial

Piso transversal de /fragua (fellow-standard.md del corpus, ~/.claude/tools/_audit-tools/refs/), más lo que este repo ya cumple por construcción (boundaries auto-verificados, CI multi-harness, gate de tests con auto-verificación en guard-tests.mjs — ver el comentario ahí sobre el falso-verde de dependency-cruiser 16, el mismo principio que motivó este archivo):

Read the full file on GitHub · 57 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 · 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 (175 stars, last pushed 18d ago), licensed MIT. It adds 848 tokens to every session, about $0.0042 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.