Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for modern browser extension development (Manifest V3) — Chrome SidePanel API, Background Service Workers, Offscreen Documents, declarativeNetRequest, WebAssembly in MV3, and cross-browser WebExtensions / Panduan ahli pengembangan ekstensi browser modern (Manifest V3).
インストールする前に、エージェントに与えられる指示の中身を確認できます。
<a name="english"></a>
Connects and orchestrates with senior-frontend, tailwind-expert, pwa-offline-first-expert, ai-llm-integration-expert, vercel-ai-sdk-expert, mcp-server-architect, authentication-identity-expert, zero-trust-secret-vault, and anti-slop.
Expert guide for engineering high-performance, secure, and cross-browser extensions using Chrome Manifest V3 (MV3), Firefox WebExtensions MV3, and Safari Web Extensions. Manifest V3 fundamentally modernizes browser extension development by replacing persistent background pages with ephemeral service workers, enforcing strict declarative network rules, mandating modern native side panels, and providing offscreen sandboxes for complex computational workloads.
Ephemeral Background Service Workers:
chrome.storage.session for transient in-memory state and chrome.storage.local for persistent storage.chrome.alarms instead of setInterval / setTimeout for recurring operations.SidePanel API (chrome.sidePanel):
Offscreen Documents API (chrome.offscreen):
window.Declarative Net Request (chrome.declarativeNetRequest):
webRequest API for high-speed, privacy-first network modifications and header manipulation.manifest.json){
"manifest_version": 3,
"name": "Vibes AI Copilot & Analyzer",
"version": "1.0.0",
"description": "Production-grade AI companion extension built with Manifest V3 and React 19.",
"icons": {
"16": "icons/icon-16.png",
"48": "icons/icon-48.png",
"128": "icons/icon-128.png"
},
"action": {
"default_icon": "icons/icon-48.png",
"default_title": "Open Vibes AI Side Panel"
},
"side_panel": {
"default_path": "sidepanel/index.html"
},
"background": {
"service_worker": "background/service-worker.js",
"type": "module"
},
"permissions": [
"sidePanel",
"storage",
"alarms",
"offscreen",
"activeTab",
"scripting"
],
"host_permissions": [
"https://*/*"
],
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["content/content-script.js"],
"run_at": "document_idle"
}
],
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'; worker-src 'self';"
}
}
background/service-worker.ts)export interface ExtensionMessage {
type: 'ANALYZE_CURRENT_PAGE' | 'EXECUTE_WASM_SANDBOX';
payload?: any;
}
export interface ExtensionResponse {
success: boolean;
data?: any;
error?: string;
}
// 1. Enable Side Panel on toolbar icon click
chrome.sidePanel
.setPanelBehavior({ openPanelOnActionClick: true })
.catch((error: Error) => console.error('[SW] Failed to set side panel behavior:', error));
// 2. Life-Cycle & Heartbeat Management
chrome.runtime.onInstalled.addListener(async (details) => {
if (details.reason === chrome.runtime.OnInstalledReason.INSTALL) {
await chrome.storage.local.set({
installedAt: Date.now(),
theme: 'system',
copilotEnabled: true,
});
// Setup recurring background sync alarm (minimum interval 1 minute in MV3)
chrome.alarms.create('telemetry_sync', { periodInMinutes: 15 });
}
});
chrome.alarms.onAlarm.addListener((alarm) => {
if (alarm.name === 'telemetry_sync') {
handlePeriodicSync();
}
});
async function handlePeriodicSync(): Promise<void> {
const data = await chrome.storage.local.get(['telemetry_queue']);
const queue = Array.isArray(data.telemetry_queue) ? data.telemetry_queue : [];
if (queue.length === 0) return;
try {
const response = await fetch('https://api.vibes.dev/v1/telemetry', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ events: queue }),
});
if (response.ok) {
await chrome.storage.local.set({ telemetry_queue: [] });
}
} catch (err) {
console.warn('[SW] Telemetry sync deferred:', err);
}
}
// 3. Offscreen Document Manager (WASM / DOM Sandbox)
let creatingOffscreen: Promise<void> | null = null;
async function ensureOffscreenDocument(path: string): Promise<void> {
const offscreenUrl = chrome.runtime.getURL(path);
const existingContexts = await chrome.runtime.getContexts({
contextTypes: [chrome.runtime.ContextType.OFFSCREEN_DOCUMENT],
documentUrls: [offscreenUrl],
});
if (existingContexts.length > 0) return;
if (creatingOffscreen) {
await creatingOffscreen;
return;
}
creatingOffscreen = chrome.offscreen.createDocument({
url: path,
reasons: [chrome.offscreen.Reason.WORKERS, chrome.offscreen.Reason.CLIPBOARD],
justification: 'WASM bytecode execution and secure clipboard parsing.',
});
await creatingOffscreen;
creatingOffscreen = null;
}
// 4. Type-Safe Unified Message Bus
chrome.runtime.onMessage.addListener(
(message: ExtensionMessage, sender, sendResponse: (response: ExtensionResponse) => void) => {
handleIncomingMessage(message, sender)
.then(sendResponse)
.catch((error: Error) => {
sendResponse({ success: false, error: error.message });
});
return true; // Keep message channel open for asynchronous reply
}
);
async function handleIncomingMessage(
message: ExtensionMessage,
_sender: chrome.runtime.MessageSender
): Promise<ExtensionResponse> {
switch (message.type) {
case 'ANALYZE_CURRENT_PAGE': {
const [activeTab] = await chrome.tabs.query({ active: true, currentWindow: true });
if (!activeTab?.id) {
throw new Error('No active browser tab found.');
}
const [injectionResult] = await chrome.scripting.executeScript({
target: { tabId: activeTab.id },
func: () => ({
title: document.title,
url: window.location.href,
metaDescription: document.querySelector('meta[name="description"]')?.getAttribute('content') ?? '',
headings: Array.from(document.querySelectorAll('h1, h2')).map((h) => h.textContent?.trim() || ''),
}),
});
return { success: true, data: injectionResult.result };
}
case 'EXECUTE_WASM_SANDBOX': {
await ensureOffscreenDocument('offscreen/sandbox.html');
const offscreenResponse = await chrome.runtime.sendMessage({
target: 'offscreen',
type: 'RUN_BYTECODE',
payload: message.payload,
});
return offscreenResponse;
}
default:
return { success: false, error: `Unknown message type: ${(message as ExtensionMessage).type}` };
}
}
offscreen/sandbox.ts)chrome.runtime.onMessage.addListener((message, _sender, sendResponse) => {
if (message.target !== 'offscreen') return;
if (message.type === 'RUN_BYTECODE') {
executeSandboxedBytecode(message.payload)
.then((result) => sendResponse({ success: true, result }))
.catch((err: Error) => sendResponse({ success: false, error: err.message }));
return true;
}
});
async function executeSandboxedBytecode(wasmBase64: string): Promise<number> {
const binaryString = atob(wasmBase64);
const bytes = new Uint8Array(binaryString.length);
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
const wasmModule = await WebAssembly.instantiate(bytes, {
env: {
memory: new WebAssembly.Memory({ initial: 256, maximum: 512 }),
},
});
const runCompute = wasmModule.instance.exports.compute as () => number;
return typeof runCompute === 'function' ? runCompute() : 0;
}
<a name="bahasa-indonesia"></a>
Terhubung dan mengorkestrasikan skill senior-frontend, tailwind-expert, pwa-offline-first-expert, ai-llm-integration-expert, vercel-ai-sdk-expert, mcp-server-architect, authentication-identity-expert, zero-trust-secret-vault, dan anti-slop.
Panduan komprehensif untuk merekayasa ekstensi peramban modern berkinerja tinggi, aman, dan lintas platform (Chrome, Edge, Firefox, Safari) berbasis Manifest V3 (MV3). Standar Manifest V3 menggantikan background page persisten dengan service worker efemeral, menegakkan aturan declarative network yang aman, menyediakan SidePanel API native, serta sandbox dokumen offscreen untuk eksekusi WebAssembly dan pemrosesan audio/clipboard.
Service Worker Efemeral:
chrome.storage.session untuk state in-memory sementara dan chrome.storage.local untuk data persisten.chrome.alarms untuk tugas berulang terjadwal.SidePanel API (chrome.sidePanel):
Dokumen Offscreen (chrome.offscreen):
Declarative Net Request:
eval(), new Function(), atau mengeksekusi skrip dari CDN luar. Seluruh kode wajib dibundel secara lokal.tabular-nums).まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.
日本語の概要は準備中です。原文の説明を表示しています。