Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pizza-customization

БесплатноБез исполняемых скриптовНе проверен

Customize and extend Pizza itself. Use when the user wants to add a tool, slash command, keybinding, CLI flag, UI widget, event hook, model provider, skill…

pizza-agentот pizza-agent★ 55 звёзд на GitHub

Об этом скилле

Pizza Customization

Pizza is designed to be reshaped by its users. Tools, slash commands, UI, keybindings, themes, prompt templates, skills, and model providers can all be changed by dropping files into conventional directories — no fork, no rebuild, no registration step. Pick the lightest mechanism that does the job, write it, and verify it loads.

0. Pick the right mechanism

| The user wants to… | Mechanism | | Add an LLM-callable tool, slash command, shortcut, CLI flag, UI widget, event hook, or model provider | Extension (a .ts/.js file) | | Teach the agent when/how to do a task (model-invoked instructions) | Skill (SKILL.md) | | Reusable user-invoked prompt (/name args) | Prompt template (.md) | | Change colors / TUI styling | Theme (.json) | | Rebind keys | keybindings.json | | Change the project system prompt | .pizza/SYSTEM.md (replace) / .pizza/APPEND_SYSTEM.md (append) | | Add/override models or providers without code | models.json (or pizza.registerProvider in an extension for OAuth/custom streaming) | | Change defaults (model, approvals, theme, skill commands, …) | settings.json | | Ship several of the above together | Plugin package (pizza manifest in package.json) | | Bridge Slack/Discord/Telegram/Lark/webhook into a workspace agent | Channel config (channels.json — built-in adapters, not an extension point) |

Rule of thumb: skills steer the model, extensions change what Pizza does. They compose well — a package can ship an extension plus a skill that teaches the model when to use it.

1. Where things live

Project scope (per repo, typically committed):

./.pizza/extensions/  ./.pizza/skills/  ./.pizza/prompts/  ./.pizza/themes/
./.pizza/SYSTEM.md    ./.pizza/APPEND_SYSTEM.md

User scope (applies everywhere):

~/.pizza/agent/extensions/  ~/.pizza/agent/skills/  ~/.pizza/agent/prompts/
~/.pizza/agent/themes/      ~/.agents/skills/  (shared convention dir —
                           where in-app marketplace skill installs land)

Files in ~/.pizza/agent/ (the dir is relocatable via PIZZA_CODING_AGENT_DIR):

settings.json     defaults; project .pizza/settings.json overrides per repo
keybindings.json  key remapping
models.json       custom providers/models
auth.json         provider credentials — managed by `pizza auth` / /login
extensions.json   plugin registry: installed packages, enabled state,
                  per-resource filters — managed by `pizza plugin`,
                  `pizza builtin`, `pizza config`. Never hand-edit.
channels.json     Slack/Discord/Telegram/Lark/webhook configs — managed by
                  the Channels tab in the desktop app / gateway

Choose project scope for anything repo-specific (share it via git); user scope for personal tooling. Name collisions resolve by precedence — project > user > packages > built-ins — so a user skill can shadow a built-in or package one.

One-off loading without installing: --extension/-e <path>, --skill, --prompt-template, --theme (repeatable). Kill switches: --no-extensions/-ne, --no-skills/-ns, --no-prompt-templates/-np, --no-themes, --no-context-files/-nc, --no-builtin-extensions, --no-builtin-skills. settings.json keys extensions, skills, prompts, themes add extra paths permanently.

2. Writing an extension

An extension is a .ts (or .js) file whose default export is a factory (pizza: ExtensionAPI) => void | Promise<void>. Files are loaded via jiti — no build step. These specifiers always resolve, even inside the compiled binary: pizza, typebox / @sinclair/typebox, @earendil-works/pi-ai, @earendil-works/pi-tui (plus the legacy @mariozechner/* names).

Drop foo.ts into an extensions dir, or a foo/ folder with index.ts, or a folder whose package.json declares "pizza": { "extensions": ["entry.js"] }.

import { Type } from "typebox";
import { isToolCallEventType, type ExtensionAPI } from "pizza";

export default function (pizza: ExtensionAPI) {
	// LLM-callable tool (TypeBox schema)
	pizza.registerTool({
		name: "hello",
		label: "Hello",
		description: "Say hello to someone",
		parameters: Type.Object({ who: Type.String() }),
		async execute(_id, params) {
			return { content: [{ type: "text", text: `Hello, ${params.who}!` }] };
		},
	});

	// Slash command: /hi
	pizza.registerCommand("hi", {
		description: "Greet the user",
		handler: async (_args, ctx) => {
			if (ctx.hasUI) ctx.ui.notify("hi!");
		},
	});

	// Event hook: guard dangerous commands (isToolCallEventType narrows input)
	pizza.on("tool_call", (event) => {
		if (isToolCallEventType("bash", event) && /\brm\s+-rf\s+\//.test(event.input.command)) {
			return { block: true, reason: "refusing rm -rf /" };
		}
	});
}

API surface (methods on pizza):

  • pizza.on(event, handler) — lifecycle hooks: resources_discover (contribute skill/prompt/theme paths programmatically),
Полный SKILL.md на GitHub

Установить pizza-customization в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл pizza-customization?

Customize and extend Pizza itself. Use when the user wants to add a tool, slash command, keybinding, CLI flag, UI widget, event hook, model provider, skill, prompt template, or theme to Pizza, change its default behavior, manage plugins (pizza plugin/builtin) or provider auth (pizza auth), or bundle resources into an installable plugin package.

Как установить скилл pizza-customization?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pizza-customization запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pizza-customization с