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 deterministic prompt prefix engineering, KV-cache locking for Gemini 4 Pro / Claude 5.5 / GPT Astra 6, canonical tool sorting, and achieving 90%+ prompt cache hit rates / Panduan ahli rekayasa prefix prompt deterministik, penguncian KV-cache untuk Gemini 4 Pro / Claude 5.5 / GPT Astra 6, pengurutan kanonikal tool, dan pencapaian 90%+ cache hit rate.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
<a name="english"></a>
Connects and orchestrates with brainstorming, zero-to-prod-orchestrator, frontier-ai-models-expert, llm-finops-router, gemini-agent-booster, and vercel-ai-sdk-expert to structure multi-turn prompts for maximum KV-cache reuse, slashing token billing by up to 80% and reducing Time-to-First-Token (TTFT) by up to 10x.
Production guide for engineering deterministic prompt prefixes, stabilizing KV-cache boundaries, and optimizing context reuse across frontier models (Google Gemini 4 Pro / 3.x context caching, Anthropic Claude 5.5 prompt caching, and OpenAI prefix caching). Delivers architectures that guarantee 90%+ cache hit rates through canonical tool definition sorting, stable JSON serialization, and dynamic context partitioning.
Activate this skill when:
cache_control: { type: 'ephemeral' } or Gemini explicit cache tokens).Modern frontier models utilize prefix-matching algorithms. Even a single changed byte (such as a timestamp, random ID, or altered tool order) invalidates all subsequent cached tokens:
[STATIC PREFIX: CACHE PINNED (90%+ HIT RATE)]
├── System Directives & Behavioral Guardrails (Immutable)
├── 140-Skill Ecosystem Registry (Canonical Alphabetical Order)
├── Tool Definitions (Strictly Sorted Keys & Parameters)
└── Workspace Schema & Architecture Map (Immutable per Session)
------------------------ [CACHE BOUNDARY PIN] ------------------------
[DYNAMIC SUFFIX: VOLATILE PER TURN]
├── Ephemeral Turn Timestamp & User Message
└── Real-Time Tool Execution Results
export interface ToolDefinition {
name: string;
description: string;
parameters: Record<string, unknown>;
}
export function serializeCanonicalJson(obj: unknown): string {
if (obj === null || typeof obj !== 'object') {
return JSON.stringify(obj);
}
if (Array.isArray(obj)) {
return `[${obj.map((item) => serializeCanonicalJson(item)).join(',')}]`;
}
const sortedKeys = Object.keys(obj as Record<string, unknown>).sort();
const entries = sortedKeys.map(
(key) => `${JSON.stringify(key)}:${serializeCanonicalJson((obj as Record<string, unknown>)[key])}`
);
return `{${entries.join(',')}}`;
}
export function sortToolsCanonically(tools: ToolDefinition[]): ToolDefinition[] {
return [...tools].sort((a, b) => a.name.localeCompare(b.name));
}
export interface PromptPayload {
systemPrompt: string;
cachedContextBlock: {
type: 'text';
text: string;
cache_control: { type: 'ephemeral' };
};
messages: Array<{ role: 'user' | 'assistant'; content: string }>;
}
export function constructCacheOptimizedPayload(
systemDirectives: string,
staticWorkspaceContext: string,
tools: ToolDefinition[],
userTurns: Array<{ role: 'user' | 'assistant'; content: string }>
): PromptPayload {
const sortedTools = sortToolsCanonically(tools);
const canonicalToolSpecs = serializeCanonicalJson(sortedTools);
const staticPinnedBlock = [
'=== IMMUTABLE SYSTEM CONTEXT ===',
systemDirectives,
'=== CANONICAL TOOL REGISTRY ===',
canonicalToolSpecs,
'=== PROJECT ARCHITECTURAL MAP ===',
staticWorkspaceContext
].join('\n\n');
return {
systemPrompt: 'You are an advanced sovereign AI coding agent operating under strict anti-slop guidelines.',
cachedContextBlock: {
type: 'text',
text: staticPinnedBlock,
cache_control: { type: 'ephemeral' }
},
messages: userTurns
};
}
| Metric | Unoptimized Baseline | KV-Cache Optimized Target | Improvement Factor |
|---|---|---|---|
| Cache Hit Ratio | 0% - 20% | 90% - 98% | 4.5x - 5x higher |
| Time-to-First-Token (TTFT) | 3,200ms - 5,500ms | 250ms - 450ms | ~10x faster response |
| Prompt Token Cost | 100% full rate | 20% - 25% discounted rate | 75% - 80% cost reduction |
usage.prompt_tokens_details.cached_tokens in application telemetry to catch accidental prefix cache busts immediately.| Anti-Pattern | Operational Consequence | Engineering Remedy |
|---|---|---|
| Dynamic session IDs embedded in the system prompt | 100% cache invalidation on every user session | Relocate session IDs to application state headers |
Randomized order of tools from Object.values(tools) | Non-deterministic JSON payload busts KV cache | Sort tools alphabetically by name and schema keys |
| Modifying instruction wording midway through conversation | Re-reads entire 100k+ token context at full price | Keep static prompt templates strictly versioned and immutable |
frontier-ai-models-expert — Align with caching specs across Gemini 4 Pro, Claude 5.5, and GPT Astra 6.llm-finops-router — Calculate financial savings and route cache-heavy workloads to optimal endpoints.gemini-agent-booster — Exploit Google Cloud native 2M context caching mechanisms.vercel-ai-sdk-expert — Implement provider options for Anthropic and Google cache controls.brainstorming — Added to "Integrasi AI & LLM" and "Frontier AI & Simulation" matrix rows.zero-to-prod-orchestrator — Integrated in Phase 4 (Backend APIs, Microservices & AI Agents).<a name="bahasa-indonesia"></a>
Terhubung dan mengorkestrasi dengan brainstorming, zero-to-prod-orchestrator, frontier-ai-models-expert, llm-finops-router, gemini-agent-booster, dan vercel-ai-sdk-expert untuk menyusun prompt multi-turn dengan efisiensi KV-cache maksimal, menghemat biaya token hingga 80% dan memangkas waktu respons awal (TTFT) hingga 10x lebih cepat.
Panduan produksi untuk merekayasa awalan (prefix) prompt yang deterministik, mengunci batas KV-cache, dan memaksimalkan penggunaan ulang konteks pada model frontier (Google Gemini 4 Pro / 3.x context caching, Anthropic Claude 5.5 prompt caching, dan OpenAI prefix caching). Memberikan arsitektur yang menjamin tingkat keberhasilan cache (cache hit rate) di atas 90% melalui pengurutan definisi tool kanonikal, serialisasi JSON stabil, dan partisi konteks dinamis.
Aktifkan skill ini ketika:
cache_control: { type: 'ephemeral' } atau Gemini explicit caching).Model frontier mencocokkan token awalan secara persis (prefix matching). Perubahan satu karakter saja di awal prompt akan merusak seluruh cache setelahnya:
Kunci objek JSON wajib diurutkan secara alfabetis sebelum dikirimkan ke model agar representasi string biner tidak berubah antar permintaan.
| Praktik Buruk | Dampak Buruk | Solusi Rekayasa |
|---|---|---|
| Menyisipkan ID sesi acak ke dalam system prompt | Cache batal 100% pada setiap sesi baru | Pindahkan ID sesi ke header aplikasi di luar prompt |
Urutan tool berubah-ubah dari Object.values(tools) | Representasi string berubah dan membatalkan KV cache | Urutkan tool secara alfabetis berdasarkan namanya |
| Mengubah redaksi instruksi di tengah percakapan | Membaca ulang 100k+ token dengan harga penuh | Kunci template instruksi dalam keadaan statis dan terversi |
frontier-ai-models-expert — Sinkronisasi spesifikasi caching pada Gemini 4 Pro, Claude 5.5, dan GPT Astra 6.llm-finops-router — Menghitung efisiensi anggaran dan mengarahkan beban kerja ber-cache tinggi.gemini-agent-booster — Memanfaatkan mekanisme context caching native Google Cloud 2M.vercel-ai-sdk-expert — Mengimplementasikan opsi provider untuk kontrol caching Anthropic dan Google.brainstorming — Tambahkan ke baris "Integrasi AI & LLM" dan "Frontier AI & Simulation" pada Matriks Orkestrasi.zero-to-prod-orchestrator — Tambahkan ke Fase 4 (Backend APIs, Microservices & AI Agents).まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
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 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.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for designing Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation / Panduan ahli merancang ekonomi mikro antar-agen (M2M), dompet agen otonom, dan alokasi anggaran swarm.
日本語の概要は準備中です。原文の説明を表示しています。