Klytos Helper Functions

Expose Klytos core helpers to PHP code with runtime guards.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unified access to Klytos core functions and services in PHP plugins and templates, reducing boilerplate and ensuring consistent usage across modules.

Core Features & Use Cases

  • Global accessors to core services like App, Storage, and Auth.
  • Configuration and URL helpers: klytos_config(), klytos_set_config(), klytos_url(), klytos_admin_url(), klytos_plugin_url().
  • Permissions, metadata, and logging: klytos_has_permission(), klytos_get_meta(), klytos_set_meta(), klytos_log(), __() for translations.

Quick Start

Boot the CMS and start using klytos_app() to access core services, then call klytos_config() for settings and klytos_url() to build links.

Frequently Asked Questions about Klytos Helper Functions

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

FAQPage Schema
How do I access core PHP services for plugin development without writing repetitive boilerplate?

Klytos Helper Functions expose global accessors like klytos_app() to retrieve core PHP services for plugin development, reducing boilerplate and ensuring consistent module usage.

How do I generate URLs and manage configuration in PHP templates?

Use klytos_config() to retrieve settings, klytos_set_config() to update them, and klytos_url() to build links for PHP plugin development and custom templating.

What is the best way to handle logging and translations in PHP plugin development?

Use klytos_log() for logging events and __() for string translations to maintain consistent runtime behavior across PHP plugin development modules.

Does Klytos Helper Functions work with MCP-based scripts requiring routing and storage access?

Yes, it provides standardized PHP wrappers for App, storage, routing, and configuration access with clear usage and runtime guards for MCP-based scripts.

Can I check permissions and manage metadata using PHP helpers in custom templating?

Use klytos_has_permission() to verify access and klytos_get_meta() or klytos_set_meta() to manage metadata within custom PHP templating environments.

Why do I need a PHP wrapper for core accessors in plugin development?

Klytos Helper Functions standardize access to App, config, and URL generation with runtime guards, preventing module inconsistencies during PHP plugin development.