pi-extension-op-response-envelope

Community

Maintain consistency in CRUD tool responses with a disciplined pattern

Authorruskibeats
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures consistency in CRUD tool responses by implementing the Op/Response-Envelope pattern, which captures every reducer action outcome, enforces exhaustive response formatting, and provides replay-compatible details snapshots.

Core Features & Use Cases

  • Op/Response-Envelope Pattern: A closed tagged union (Op) captures every reducer action outcome, a formatContent function with compiler-enforced exhaustive switch, and buildToolResult that wraps the formatted response with a replay-compatible details snapshot.
  • Use Case: When building CRUD tools in Pi extensions, this pattern helps maintain synchronization between reducer actions, formatted output, and branch-replay persistence.

Quick Start

Use the pi-extension-op-response-envelope skill to implement the Op/Response-Envelope pattern in your Pi extension.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pi-extension-op-response-envelope
Download link: https://github.com/ruskibeats/t1d/archive/main.zip#pi-extension-op-response-envelope

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.