omp-extension-development

Develop OMP extensions with TypeScript plugins for lifecycle events, tools, and commands.

Updated Jan 17, 2023
One-click install
npx skills add https://github.com/MjxOro/dotfiles --skill omp-extension-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: omp-extension-development
Source: https://github.com/MjxOro/dotfiles/tree/main/claude/.claude/skills/omp-extension-development
Command: npx skills add https://github.com/MjxOro/dotfiles --skill omp-extension-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need a clear guide to create, register, and manage Oh My Pi extensions, ensuring proper lifecycle handling, tool definition, UI safety, and state persistence.

Core Features & Use Cases

  • Extension discovery across user, project, and manifest paths.
  • API for lifecycle events, custom tools, and slash commands with TypeBox validation.
  • UI interaction safeguards for dangerous operations.
  • State persistence via tool result details for session branching.
  • Plugin manifest support using omp or pi fields in package.json.

Quick Start

Create a new OMP extension that registers a greet tool and a hello command.

Frequently Asked Questions about omp-extension-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom OMP extensions for the Oh My Pi agent?

To create OMP extensions, you build TypeScript plugins that register custom tools, handle lifecycle events, and define slash commands using the OMP extension API.

How does TypeBox schema validation work for OMP plugin tools?

TypeBox schema validation enforces strict input types for custom OMP plugin tools, ensuring that parameters passed to your extension's tools are structurally validated before execution.

What is the best way to persist state across OMP agent sessions?

You persist state across OMP agent sessions by storing data within tool result details, enabling session branching and context retention for your custom extension.

Can I use TypeScript to add custom slash commands to the Oh My Pi agent?

Yes, you can develop TypeScript OMP extensions to register custom slash commands, which integrate directly into the Oh My Pi agent's command interface.

How do I add UI interaction safeguards for dangerous operations in an OMP plugin?

OMP plugin development supports UI interaction checks, allowing your extension to prompt for user confirmation before executing potentially dangerous operations.

Where does the Oh My Pi agent discover extensions?

The Oh My Pi agent discovers extensions across user, project, and manifest paths, specifically reading plugin manifests via omp or pi fields in package.json.