cqrs-pattern

Document the CQRS pattern for Electron apps using RxJS and neverthrow.

3|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/naporin0624/claude-plugin-hono-electron --skill cqrs-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cqrs-pattern
Source: https://github.com/naporin0624/claude-plugin-hono-electron/tree/main/skills/cqrs-pattern
Command: npx skills add https://github.com/naporin0624/claude-plugin-hono-electron --skill cqrs-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill documents the CQRS (Command Query Responsibility Segregation) pattern used in Electron applications with RxJS and neverthrow.

Core Features & Use Cases

  • Reactive Queries: Use Observable<T> for read operations to push updates.
  • Safe Commands: Use ResultAsync<void, Error> for writes with explicit error handling.
  • Bridge Pattern: BehaviorSubject as a bridge between queries and commands for automatic updates.
  • Usage: Define a service interface and implement queries and commands following the CQRS guidelines.

Quick Start

Define a CQRS service interface with queries returning Observable<T> and commands returning ResultAsync<void, ApplicationError>, then wire it into Hono routes and a renderer client.