chrome-webhook-extension CLAUDE.md

chrome-webhook-extension CLAUDE.md is an instructions file for coding agents from clawfire/chrome-webhook-extension. It costs 1,326 tokens per session, scanned A, original, MIT.

Project instructions for a Chrome browser extension that stores webhook endpoints and sends webpage information to them from context menus.

In plain words
What is it for?
Use them when working on webhook registration, popup management, context-menu actions, page or link data extraction, Chrome storage, or local extension setup.
Why use it?
They explain the extension's Manifest V3 structure and existing components so development changes preserve how menus, storage, and requests work.

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/clawfire/chrome-webhook-extension/claude-md
Clone the repo
git clone --depth 1 https://github.com/clawfire/chrome-webhook-extension

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 chrome-webhook-extension CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/clawfire/chrome-webhook-extension/claude-md.svg)](https://agentmods.dev/instructions/clawfire/chrome-webhook-extension/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/clawfire/chrome-webhook-extension/claude-md"><img src="https://agentmods.dev/badge/instructions/clawfire/chrome-webhook-extension/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,326 This file is loaded in full into every session.
When invoked 1,326 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.01326 $0.01326
Opus 5 $0.00663 $0.00663
Sonnet 5 $0.00265 $0.00265
Haiku 4.5 $0.00133 $0.00133

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

Security

Grade A, and why

chrome-webhook-extension 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 · 153 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

This is a Chrome extension (Manifest V3) that allows users to manage webhooks and send webpage URLs to registered webhook endpoints via context menus. The extension is designed to integrate with automation workflows like N8N.

Architecture

Core Components

  • manifest.json: Chrome extension manifest defining permissions, background scripts, and UI components
  • background.js: Service worker handling context menu creation, webhook management, and HTTP requests
  • popup.html/popup.js: Extension popup UI for webhook registration and management
  • Chrome Storage: Local storage for webhook persistence

Key Features

  • Context menu integration for pages, links, and images
  • Dynamic webhook menu generation based on stored webhooks
  • Data extraction (page titles, link titles, image alt text) before sending to webhooks
  • Two-click deletion confirmation for webhook management

Development

Installation for Development

  1. Load extension in Chrome: chrome://extensions/ → "Load unpacked" → select project directory
  2. Enable "Developer mode" in Chrome extensions page

Testing

  • No automated test framework is configured
  • Test manually by:
    1. Loading extension in Chrome
    2. Adding webhooks via popup
    3. Right-clicking on pages/links/images to test context menu functionality
    4. Verifying webhook payloads are sent correctly

Key Files to Modify

  • background.js:1-43: Queue initialization and management
  • background.js:45-115: Queue processing with rate limiting
  • background.js:184-291: Data extraction and webhook sending
  • background.js:303-355: Queue notifications system
  • popup.js:51-118: Webhook card creation and rendering
  • popup.js:324-358: Form toggle functionality
  • popup.js:405-413: Form submission and settings handling
  • popup.html:31-420: Modern CSS design system and layout
  • manifest.json:6-14: Permissions and host permissions

Read the full file on GitHub · 153 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 · 153 lines · 1,326 tokens per session scan A acc627affc1b

Subscribe to this mod's changes

chrome-webhook-extension CLAUDE.md is an instructions file published in the GitHub repository clawfire/chrome-webhook-extension (10 stars, last pushed 2mo ago), licensed MIT. It adds 1,326 tokens to every session, about $0.0066 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