Klytos Hooks Reference — community Klytos Hooks Reference, klytos, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

The AI-First CMS — Build and manage websites entirely with AI through Model Context Protocol (MCP)

joseconti joseconti
[8]
[0]
Updated: 4/5/2026
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

Klytos Hooks Reference

Install Klytos Hooks Reference, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Klytos Hooks Reference

Actions vs Filters

ActionsFilters
PurposeExecute code at specific pointsModify and return data
ReturnNone (void)Modified value
Registerklytos_add_action()klytos_add_filter()
Fireklytos_do_action()klytos_apply_filters()

Hook API

php
1klytos_add_action(string $hook, callable $callback, int $priority = 10): void 2klytos_do_action(string $hook, mixed ...$args): void 3klytos_add_filter(string $hook, callable $callback, int $priority = 10): void 4klytos_apply_filters(string $hook, mixed $value, mixed ...$args): mixed 5klytos_remove_action(string $hook, callable $callback): bool 6klytos_remove_filter(string $hook, callable $callback): bool 7klytos_has_action(string $hook): bool 8klytos_has_filter(string $hook): bool

Bulk Removal

php
1klytos_remove_all_actions(string $hook): void 2klytos_remove_all_filters(string $hook): void

Debugging

php
1klytos_did_action(string $hook): int // Times action was fired 2klytos_get_fired_actions(): array // ['hook' => fire_count, ...] 3klytos_get_registered_hooks(): array // ['actions' => ['hook' => count], 'filters' => [...]]

IMPORTANT: ALWAYS use the global klytos_* functions. NEVER use Hooks:: class methods directly. The Hooks class is an internal engine — plugins and core code must use the klytos_* wrappers.


Priority System

  • 1-9: Runs BEFORE most plugins
  • 10: Default
  • 11-99: Runs AFTER most plugins

Page Detection Helpers

php
1klytos_current_admin_page(): string // 'settings', 'users', 'dashboard', etc. 2klytos_is_admin_page(string $page): bool // Exact ('settings') or prefix ('settings.*')

Quick Hook Reference

Page Lifecycle

  • page.before_save, page.after_save, page.before_delete, page.after_delete (actions)
  • page.content (filter)

Build Process

  • build.before, build.after, build.page.before, build.page.after (actions)
  • build.page.output, build.head_html, build.body_end_html, build.sitemap_urls (filters)

LLM Discoverability (Build)

  • build.llms_generated (action) — after llms.txt + llms-full.txt + .html.md are generated, receives $stats array
  • build.llms_txt (filter) — modify llms.txt content before writing
  • build.llms_full_txt (filter) — modify llms-full.txt content before writing
  • build.page_markdown (filter) — modify per-page Markdown before writing .html.md, receives ($md, $page)
  • build.llms_pages (filter) — modify/reorder/add pages array for LLM file generation

MCP Tools

  • mcp.tools_list (filter) — register new tools
  • mcp.handle_tool (filter) — handle tool calls
  • mcp.tool_response (filter) — modify responses
  • mcp.tool_called (action) — tool was called

Authentication

  • auth.before_login, auth.after_login (actions)
  • auth.capabilities (filter)

Admin Panel

  • admin.sidebar_items (filter) — customize sidebar
  • admin.head, admin.footer (actions)
  • admin.{page}.before, admin.{page}.after (actions)

Blocks & Templates

  • block.before_save, block.after_save (actions)
  • block.rendered_html (filter)
  • page_template.before_save, page_template.after_save, page_template.approved (actions)

Plugins

  • plugin.activated, plugin.deactivated (actions)
  • plugin.loaded, plugin.installed (actions)

Source Files

  • Hook engine: installer/core/hooks.php
  • Global wrappers: installer/core/helpers-global.php

For the complete hook catalog with all arguments and sources, see the references/complete-hooks.md file.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is Klytos Hooks Reference?

The AI-First CMS — Build and manage websites entirely with AI through Model Context Protocol (MCP)

How do I install Klytos Hooks Reference?

Run the command: npx killer-skills add joseconti/klytos. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

Which IDEs are compatible with Klytos Hooks Reference?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add joseconti/klytos. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use Klytos Hooks Reference immediately in the current project.

Related Skills

Looking for an alternative to Klytos Hooks Reference or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
AI

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Developer