Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Web Extension

ASecurity

Design, build, port, debug, test, or prepare browser extensions for Chromium, Firefox, and Safari using the WebExtensions model. Use when work involves manifest.json, Manifest V3, extension service workers or background scripts, content scripts, extension messaging, browser permissions, toolbar actions, options pages, sidebars, cross-browser extension compatibility, store-ready packages, Chrome Web Store, Firefox Add-ons, or Safari Web Extensions. Also use when migrating an existing extension...

3 stars
0 votes
0 copies
0 views
Added 9/23/2026
ai-agentsrailstestingdebuggingapisecuritydocumentation

Works with

api

Security Analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned 9/23/2026

$npx -y skills add Firzus/agent-skills --skill web-extension --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Extension?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Web Extension
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/firzus-web-extension/badge)](https://www.skillsdirectory.com/skills/firzus-web-extension)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: web-extension
description: >-
  Design, build, port, debug, test, or prepare browser extensions for Chromium,
  Firefox, and Safari using the WebExtensions model. Use when work involves
  manifest.json, Manifest V3, extension service workers or background scripts,
  content scripts, extension messaging, browser permissions, toolbar actions,
  options pages, sidebars, cross-browser extension compatibility, store-ready
  packages, Chrome Web Store, Firefox Add-ons, or Safari Web Extensions. Also use
  when migrating an existing extension between browsers.
---

# Web Extension

Build extension behavior around explicit browser targets, execution contexts,
permissions, and lifecycle constraints. Treat WebExtensions as a shared model
with vendor-specific seams, not as one perfectly uniform platform.

This skill covers WebExtensions and migrations to that model. Ordinary websites,
browser automation, userscripts, bookmarklets, legacy Chrome Apps, and legacy
Safari App Extensions remain outside its scope.

## Workflow

1. Discover the target before choosing architecture or syntax. Inspect the repo,
   then establish browsers and minimum versions, features, UI surfaces, host/data
   access, distribution channels, native companion needs, and existing tooling.
   Use [discovery and compatibility](./discovery-and-compatibility.md).
2. Create a compatibility matrix. For every required capability, classify it as
   common, syntax-different, API-different, or unavailable. Verify uncertain or
   version-sensitive support in current vendor documentation before coding.
3. Map execution contexts and message boundaries before implementation. Assign
   work to content scripts, background/event code, extension pages, page code, or
   a native companion. Define small validated request/response messages. Use
   [architecture and implementation](./architecture-and-implementation.md).
4. Map every permission, host pattern, and data flow to a user-visible purpose.
   Prefer narrow, optional, and user-initiated access. Use
   [permissions, privacy, and security](./permissions-privacy-and-security.md).
5. Implement shared domain logic behind narrow browser adapters. Preserve the
   existing stack. Keep browser namespace, manifests, background declarations,
   and browser-only UI out of shared feature logic.
6. Make background work restart-safe: register listeners at startup, persist
   durable state, make event handlers idempotent, and never depend on globals
   surviving suspension.
7. Test source behavior and the packaged artifact in every declared browser.
   Include denial, revocation, restart, upgrade, restricted-page, and failure
   paths. Use [testing and debugging](./testing-and-debugging.md).
8. Run a separate release gate for each target store. Re-open the current official
   policy and submission checklist before packaging, signing, or publishing. Use
   [packaging and release](./packaging-and-release.md).

## Explicit branches

- **Existing project:** follow its namespace, manifest-generation, bundling, and
  test conventions unless they conflict with a target-browser requirement.
- **New single-browser extension:** optimize for that browser, but isolate platform
  calls where doing so costs little. Do not claim cross-browser support.
- **New multi-browser extension:** use one shared core plus explicit adapters and
  target manifests. Do not scatter browser checks through feature logic.
- **Chromium:** use the target's documented Manifest V3 service-worker syntax and
  lifecycle. Test forced worker termination.
- **Firefox:** verify each API and manifest key; choose the documented background
  declaration and account for Mozilla signing.
- **Safari:** plan the containing Apple-platform app, Xcode workflow, website-access
  states, platform testing, signing, and distribution from the start.
- **Unsupported capability:** feature-detect or provide a target-specific fallback.
  If neither preserves the requested behavior, report the limitation instead of
  silently widening permissions or weakening security.

## Guardrails

- Do not solve injection failures by defaulting to `<all_urls>`.
- Do not download executable code at runtime, use dynamic evaluation, or weaken
  the extension Content Security Policy as a default fix.
- Do not assume a popup can access the current page DOM; cross contexts explicitly.
- Do not treat a namespace polyfill as proof that an API exists on every target.
- Do not encode volatile store fees, review times, asset dimensions, or compatibility
  tables. Consult current official documentation when those facts affect the task.
- Do not impose a framework. If recommending one, research its current primary
  documentation and explain why it fits the discovered constraints.

## Done when

- The requested feature works in every declared browser and minimum version.
- Each capability has an explicit compatibility outcome and vendor seam.
- Context ownership and all cross-context messages are documented and validated.
- Every permission and data flow has a necessary, user-visible purpose; denial and
  revocation behave safely.
- Background behavior survives suspension, restart, duplication, and partial work.
- Automated checks pass where present, and the manual matrix covers install,
  upgrade, primary workflows, failures, and every extension UI surface.
- The exact release artifact loads and passes smoke tests on every target.
- Per-store permissions, privacy disclosures, package contents, signing, and current
  submission requirements have been checked before release.

Attribution

FirzusFirzus
View sourceSee grades on GitHubMore from Firzus →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →