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 mathematical formal verification, SMT solver constraints (Z3, Dafny, TLA+), invariant theorem proving for FinTech billing state machines, RBAC/ABAC authorization, and zero-violation architecture / Panduan ahli verifikasi formal matematis, SMT solver (Z3, Dafny, TLA+), pembuktian invarian state machine billing FinTech, otorisasi RBAC/ABAC, dan arsitektur zero-violation.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
<a name="english"></a>
Connects and orchestrates with brainstorming, zero-to-prod-orchestrator, saas-billing, doku-payment-gateway, authentication-identity-expert, and database-orm-expert to mathematically prove software invariants, state transitions, and authorization policies using formal SMT solvers before writing production code.
Production guide for applying formal methods, mathematical specifications, and SMT (Satisfiability Modulo Theories) solvers (Z3, Dafny, TLA+) to mission-critical software systems. Proves zero-invariant violation across double-entry ledger bookkeeping, billing subscription state machines, multi-tenant isolation boundaries, and cryptographic key lifecycle models.
Activate this skill when:
| System Domain | Mathematical Invariant | Solver Check |
|---|---|---|
| Double-Entry FinTech Ledger | $\sum \text{Debits} - \sum \text{Credits} = 0 \land \forall a, \text{balance}(a) \ge 0$ | Prove balance preservation across all concurrent transactions |
| SaaS Billing State Machine | $\text{State} \in { \text{Trial}, \text{Active}, \text{PastDue}, \text{Canceled} }$ with strict monotonic transitions | Prove unreachable illegal transition (e.g. Canceled $\to$ Active without Payment) |
| Multi-Tenant Authorization | $\forall r \in \text{Resources}, \text{TenantId}(r) = \text{Session}(\text{TenantId})$ | Prove satisfiability of data leakage equals $\emptyset$ |
export interface LedgerEntry {
accountId: string;
debit: number;
credit: number;
}
export interface VerificationResult {
isSound: boolean;
counterExample?: string;
message: string;
}
export class LedgerFormalVerifier {
public static verifyTransactionBalance(entries: LedgerEntry[]): VerificationResult {
if (entries.length < 2) {
return {
isSound: false,
message: 'A valid double-entry transaction must contain at least two entries.'
};
}
let totalDebit = 0;
let totalCredit = 0;
for (const entry of entries) {
if (entry.debit < 0 || entry.credit < 0) {
return {
isSound: false,
counterExample: JSON.stringify(entry),
message: 'Negative debit or credit amounts violate non-negative entry invariant.'
};
}
if (entry.debit > 0 && entry.credit > 0) {
return {
isSound: false,
counterExample: JSON.stringify(entry),
message: 'Single entry cannot contain both debit and credit amounts simultaneously.'
};
}
totalDebit += entry.debit;
totalCredit += entry.credit;
}
const delta = Math.abs(totalDebit - totalCredit);
if (delta > 0.0001) {
return {
isSound: false,
counterExample: `Debits: ${totalDebit}, Credits: ${totalCredit}, Discrepancy: ${delta}`,
message: 'Double-entry balance invariant violated: Debits must strictly equal Credits.'
};
}
return {
isSound: true,
message: 'Ledger invariant mathematically verified: Zero discrepancy.'
};
}
}
Before implementing database enum updates, model the allowable state graph as an adjacency matrix with strict precondition guards:
[Trial] ────────► [Active] ────────► [PastDue]
│ │ │
│ ▼ ▼
└─────────────► [Canceled] ◄──────────┘
Any edge attempting to move from Canceled directly back to Active without passing through the Checkout/Re-subscribe gate is blocked by formal proof.
prove NOT invariant) to discover edge-case input values that break assertions.CHECK constraints, foreign keys, and atomic database triggers.| Anti-Pattern | Critical Risk | Engineering Remedy |
|---|---|---|
| Floating point arithmetic for currency | Inexact decimal rounding creates ledger drift | Enforce integer cents/satoshis with strict SMT bounds |
| Unconstrained state transitions | Illegitimate subscription access without payment | Model transition matrix with formal guard preconditions |
| Relying on application-layer checks alone | Race condition during concurrent API calls bypasses check | Pair formal proof with database atomic constraints & row locks |
saas-billing — Formally prove subscription state transitions and balance deductions.doku-payment-gateway — Validate atomic idempotency and payment settlement invariants.authentication-identity-expert — Mathematically verify RBAC/ABAC role hierarchies.database-orm-expert — Implement proven invariants as SQL check constraints and foreign keys.brainstorming — Added to "Testing & Keamanan" and "Desain API & Kontrak" matrix rows.zero-to-prod-orchestrator — Integrated in Phase 2 (Foundation) and Phase 6 (Testing & QA).<a name="bahasa-indonesia"></a>
Terhubung dan mengorkestrasi dengan brainstorming, zero-to-prod-orchestrator, saas-billing, doku-payment-gateway, authentication-identity-expert, dan database-orm-expert untuk membuktikan invarian perangkat lunak, transisi state, dan kebijakan otorisasi secara matematis sebelum penulisan kode produksi.
Panduan produksi untuk menerapkan metode formal, spesifikasi matematis, dan SMT (Satisfiability Modulo Theories) solver (seperti Z3, Dafny, TLA+) pada sistem perangkat lunak misi kritis. Membuktikan ketiadaan pelanggaran invarian (zero-invariant violation) pada pembukuan entri ganda FinTech, transisi siklus langganan SaaS, batas isolasi multi-tenant, dan hierarki akses.
Aktifkan skill ini ketika:
Setiap transaksi keuangan wajib mematuhi aturan entri ganda:
Pastikan tidak ada alur ilegal dalam sistem langganan:
Canceled tidak boleh berubah menjadi Active tanpa melewati proses verifikasi pembayaran baru (Re-checkout).PastDue harus otomatis membatasi akses fitur premium sesuai aturan masa tenggang (grace period).CHECK constraint PostgreSQL dan atomic locks.| Praktik Buruk | Dampak Buruk | Solusi Rekayasa |
|---|---|---|
| Menggunakan tipe data float untuk saldo keuangan | Selisih sen akibat rounding error yang menumpuk | Gunakan tipe integer (satuan sen) dengan validasi solver |
| Mengizinkan transisi state tanpa validasi prasyarat | Pengguna mendapat akses gratis setelah membatalkan langganan | Buktikan matriks transisi dengan formal state graph |
| Validasi hanya di lapisan aplikasi | Transaksi paralel dapat menembus pengecekan (race condition) | Gabungkan bukti formal dengan kunci transaksi database (SELECT FOR UPDATE) |
saas-billing — Membuktikan transisi state langganan dan deduksi kuota secara formal.doku-payment-gateway — Memvalidasi invarian idempotensi transaksi pembayaran.authentication-identity-expert — Memverifikasi hierarki peran RBAC/ABAC tanpa celah eskalasi.database-orm-expert — Mengimplementasikan invarian terbukti ke dalam constraint database.brainstorming — Tambahkan ke baris "Testing & Keamanan" dan "Desain API & Kontrak" pada Matriks Orkestrasi.zero-to-prod-orchestrator — Tambahkan ke Fase 2 (Pondasi Proyek) dan Fase 6 (Pengujian Otomatis & Keamanan).まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
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.
日本語の概要は準備中です。原文の説明を表示しています。