Not loaded · from ai-dev-team
Builds, reviews, debugs, and ships Chrome/Edge Manifest V3 and Firefox WebExtensions. Covers service-worker lifecycle, scripting injection, permissions model, tabs, storage, and store review.
Claude Code won't load this skill
It ships in ai-dev-team at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Command: /ext · Category: Development · Aliases: /chrome
Consult the workflow-engine skill first.
ARCH_APPROVED + SECURITY_OK trigger. Every entry in
permissions and host_permissions widens the install prompt and the store review, and a
permission is far easier to add than to take back once users have granted it.SECURITY_OK trigger — a content
script sees the user's authenticated session, including pages the extension's author never
anticipated.Four facts explain most MV3 bugs. Internalise them and the rest of the platform is ordinary JavaScript.
window, and no memory between wakes. Any
variable you set in it is gone the next time it runs. Never put a long-running job there.chrome.tabs.onRemoved.addListener
at module scope wakes the worker when a tab closes. The same call made inside a message handler
dies with the worker and silently never fires again. Everything the worker must remember between
wakes belongs in chrome.storage.session.window.close() in the same breath is dropped if the worker was cold. Anything that takes longer
than an instant belongs on a surface that outlives the click.window properties, not the page's own libraries. It also runs with the user's
authenticated session, which is exactly why it is the security-sensitive part.| Surface | Lives as long as | Use it for | Do not use it for |
|---|---|---|---|
| Popup | The click. Closes on blur. | Picking options, arming an in-page interaction, starting work elsewhere. | Anything that takes seconds. |
| Options page | Its own tab. | Settings, credentials, permission requests that need a real page. | Per-task UI. |
| Extension page (own tab) | Until the user closes it. | Owning a long run — it is the job, and it has full DOM + APIs. | Anything the user should not have to keep open. |
| Side panel | The window. Survives tab switches. | An assistant-style companion to whatever tab is active. | State that must survive a window closing; it is per-window. |
| In-page overlay (injected) | The page. | Picking an element, highlighting, a toast in context. | Anything needing extension APIs directly. |
| Tab group | Its member tabs. | Making a multi-tab job one visible object, with a live title. | Load-bearing state — the user can dissolve it at any moment. |
| Offscreen document | Explicitly closed. | DOM APIs the worker lacks (parsing, clipboard, audio). | A general escape hatch from worker eviction. |
The rule that follows: the surface that OWNS a job must outlive the job. In practice that means an extension page for anything long, and a popup that does nothing but start it.
(() => {…})(), whose
completion value is undefined, so executeScript({files}) hands back undefined no matter what
the source returns. Publish to a well-known global and poll for it — which also removes any
deadline on the script. See references/injection-and-extraction.md.activeTab covers one tab and is revoked on navigation. It is granted when the user invokes
the extension, for that tab, until it navigates or closes. It does not cover a background tab
you opened, and it does not survive the tab navigating. A background tab needs a real host
permission.chrome.permissions.request needs a user gesture — call it inside the click handler, not
after an await. And not from a popup that the prompt will dismiss; use a real page.chrome.tabs.group moves tabs to make the group contiguous. Create tabs adjacent to where the
group will be, or the user watches their tab strip rearrange.fetch from an extension context sends cookies by default. Against your own API that means the
browser's session beats the API key you attached. Use credentials: 'omit' when the key is the
identity.atob, a
Blob, or an API call. sender.tab and sender.id are the only things you did not get from the
sender.storage.sync has small per-item and total quotas and write-rate limits; storage.local is
not encrypted; storage.session is cleared on browser restart and is the right home for
short-lived cross-wake state. Pick deliberately.tab.status === 'complete' fires when the
shell loads. Poll the page for real content and accept a short body only once it has stopped
growing, or you will silently store empty shells.references/mv3-architecture.md — worker lifecycle and eviction, what may live there, the storage
tiers and their quotas, the popup/worker message race, alarms, offscreen documents, MV2→MV3
migration.references/surfaces-and-ui.md — choosing and building each surface, real size constraints,
theming without a toggle, and the accessibility rules that matter for a page that updates several
times a second.references/tabs-and-groups.md — chrome.tabs / chrome.tabGroups / chrome.windows recipes:
grouping, contiguity, drag-time refusals, debounced group titles, never stealing focus, and
reaping tabs your extension orphaned.references/injection-and-extraction.md — chrome.scripting, the publish-and-poll contract,
isolated worlds, waiting for an SPA to render, extracting page content, inlining assets, and size
budgets.references/permissions-and-security.md — the permissions model end to end, activeTab semantics,
optional host permissions, CSP, validating messages, handling credentials, and what store review
actually rejects.references/long-running-work.md — who owns a long job, modelling its phases, pacing and rate
limits, cancellation that actually cancels, honest progress and estimates, and keeping a long list
rendering smoothly.references/build-and-test.md — bundling ES modules and IIFE content scripts together, build
postconditions for properties unit tests cannot see, testing without a chrome stub, and CI.optional_host_permissions requested at the moment of need over broad grants at install.eval, no new Function, no javascript: URLs, no innerHTML
built from page data. Lint for it; the store rejects for it.chrome.* call that can be refused is caught. Tab-strip mutations, permission requests,
and messages to a tab that has navigated all fail routinely and none of them should end a job.chrome.* calls you use
so tests substitute a recorder; never monkeypatch a global chrome.| Anti-pattern | Why it bites | Do instead |
|---|---|---|
| Long job in the service worker | Evicted mid-job, no error, no state | Own the job on an extension page |
| State in worker module scope | Gone on the next wake | chrome.storage.session |
| Listener registered inside a handler | Dies with the worker, never fires again | Register at top level |
| Popup does the work | Dies when the user clicks away | Popup starts, another surface runs |
window.close() right after sendMessage | Cold worker never receives it | await the send, or do the work in the popup's own context |
executeScript({files}) and reading the return | Always undefined after bundling | Publish to a global, poll for it |
| Requesting all-hosts at install | Scary prompt, slower review, more to defend | optional_host_permissions, asked in context |
innerHTML with page-derived text | Injection into your own privileged page | textContent, or a sanitiser you control |
| Trusting a runtime message | Any page can send one | Validate every field before use |
| Retrying a whole job because one item failed | One bad page loses two hundred good ones | Isolate per-item failures, report them, continue |
| Making a background tab active | Steals the browser from the user mid-task | active: false, always |
| A progress bar with no honest denominator | A guessed percentage that jumps backwards costs all trust | Show what you can count; say "elapsed of budget" when that is what it is |
chrome://extensions → Errors collects what the worker threw while nobody was watching; check
it after every manual pass.references/build-and-test.md (opens in a new tab)references/injection-and-extraction.md (opens in a new tab)references/long-running-work.md (opens in a new tab)references/mv3-architecture.md (opens in a new tab)references/permissions-and-security.md (opens in a new tab)references/surfaces-and-ui.md (opens in a new tab)references/tabs-and-groups.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub olehsvyrydov/ai-development-team --plugin ai-dev-team43 skills in this plugin
/accountantSenior Accountant & Strategic CFO with 20+ years experience in tech sector. Use for tax planning, VAT/sales tax compliance, financial forecasting, contractor assessments, or accounting app logic design. Auto-triggers tax warnings and savings opportunities. Adapts to the user's jurisdiction by loading the matching reference (e.g. UK tax, persona Inga) from references/./ai-dev-teamThe AI Dev Team contract — how work is run in any project using this framework: proportional process, TDD, behaviour-only tickets, which process skills exist and when to reach for them, and the git conventions. Load this at the START of any development task, when picking an agent or handing off between roles, and whenever you are about to commit, open a PR, or call work done./ai-engineerAI/LLM Application Engineer (/ai) — builds LLM-powered product features: RAG, agentic workflows, prompt engineering, tool use, structured output, evals, and guardrails. Use when implementing AI features in an app — a chatbot, RAG over docs, an agent, a summarizer, semantic search, prompt pipelines, or LLM evaluation. Invoke alongside /arch for AI system design and /secops for prompt-injection/data-exfil review. NOT for ML model training or serving infrastructure (that's the mlops-engineer), and NOT for generic backend CRUD (that's /be)./answer-auditAdversarially audit a RAG answer against the corpus it claims to cite. Use when asked to review, critique, sanity-check, or "give skeptical feedback on" an answer produced by a retrieval-grounded (RAG) system — especially when the answer looks good. Assumes the answer is wrong until each claim is proven verbatim against a source passage./apexApex - Senior Product Marketing Manager & CSO specializing in B2B/B2C IT Products & SaaS. Use for Go-To-Market strategies, product positioning, growth funnels, IT product copywriting, SEO content strategy, or marketing analytics. Primary command: /mkt. Alias: /apex./backend-developerBackend Developer (/be, alias: James, /james) - Senior Backend Developer with 10+ years experience. Covers Java/Spring Boot (default), Kotlin, Python/FastAPI, PHP/Laravel, Quarkus, and Kafka/messaging - detects the project's stack and loads the matching reference. Use when implementing server features, REST APIs, business logic, persistence, messaging, or unit/integration tests in any of these stacks.Other plugins' skills for the same job