Klytos Plugin Development

Create Klytos plugins with canonical structure and lifecycle hooks.

12|2|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/joseconti/klytos --skill klytos-plugin-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Klytos Plugin Development
Source: https://github.com/joseconti/klytos/tree/main/.claude/skills/klytos-plugin-development
Command: npx skills add https://github.com/joseconti/klytos --skill klytos-plugin-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Klytos Plugin Development provides a canonical, end-to-end guide for creating and maintaining plugins in the Klytos ecosystem, covering entry points, contract rules, and best practices so plugins integrate cleanly with MCP, admin pages, and the plugin loader.

Core Features & Use Cases

  • Canonical identity contract: ensures each plugin is discovered via a main {plugin-id}.php file containing a Plugin Name header.
  • Structured plugin layout: templates for core directories (admin, assets, lang, src, migrations) and clear guidance for hooks, tools, and routes.
  • Lifecycle & internationalization: demonstrates how to register MCP tools, actions/filters, translations, and event hooks, plus proper asset loading with CSP nonces.
  • Use Case: A developer creates a new payment gateway plugin that registers MCP tools, admin pages, and API routes, all following the canonical contract.

Quick Start

Create a minimal plugin directory under plugins/my-plugin, include my-plugin.php with a Plugin Name header, and register a basic admin menu item.

Frequently Asked Questions about Klytos Plugin Development

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

FAQPage Schema
How do I structure a Klytos plugin to ensure it is discovered by the plugin loader?

To ensure Klytos plugin discovery, structure your plugin under directory/plugins/{id}/{id}.php and include a Plugin Name header in the main file. This canonical identity contract allows the plugin loader to automatically detect and integrate your new features.

What is the canonical directory layout for Klytos plugin development?

The canonical Klytos plugin layout uses structured directories for core components, including admin, assets, lang, src, and migrations. This structure provides clear guidance for organizing hooks, MCP tools, and dynamic routes across your installation.

How do I register MCP tools and admin pages in a Klytos plugin?

You register MCP tools and admin pages in a Klytos plugin by utilizing provided lifecycle hooks and event hooks. The plugin development framework demonstrates how to properly register actions, filters, and translations alongside these integrations.

Does Klytos plugin development support internationalization and secure asset loading?

Yes, Klytos plugin development supports internationalization through lang directories and secure asset loading. It provides guidelines for proper asset loading that incorporate CSP nonces to maintain security guidelines across your Klytos installation.

Can I build a payment gateway plugin with dynamic routes using Klytos?

Yes, you can build a payment gateway plugin using Klytos that registers MCP tools, admin pages, and dynamic API routes. The canonical plugin structure supports creating new features and debugging utilities that integrate cleanly with the ecosystem.

What are the security guidelines for building Klytos plugins?

Klytos plugin security guidelines require proper asset loading using CSP nonces and adherence to canonical contract rules. Following these structured integration hooks and security practices ensures plugins integrate cleanly without vulnerabilities.