Command Palette

Search for a command to run...

Назад к скиллам
скилл № 20847

example-custom-strategy

Template example: demonstrates reading custom metrics and emitting a cache-operation verdict (copy this directory and adapt).

БесплатноЗапускает вложенные скрипты
fluid-cloudnativeот fluid-cloudnative★ 44 звезды на GitHub

Установить example-custom-strategy в Claude Code и Claude Desktop

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

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

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

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

Strategy semantics (read by the planner / validator)

  • Trigger: state in one sentence "under which conditions which operation should run";
  • Output operation: one of expand / preload / shrink / evict, with parameters following the executable action catalogue conventions (e.g. expand → {"desired_replicas": N}, preload → {"paths": [...]});
  • Conflict rule: when this strategy disagrees with a builtin strategy on the same operation, this strategy prevails;
  • The default template outputs no operation (action=null) and only demonstrates how to read metrics.

Script contract (the framework runs scripts/decide.py every round)

  • stdin: {"observations": [{"tool": "...", "result": {...}}], "context": {...}}, where observations carry the latest snapshot of every metric source (including the custom metrics from the user_system section of config.yml);
  • stdout: one JSON line {"action": ..., "parameters": {...}, "reason": "..."}.

For parameters, threshold examples, and the full description see README.md in this directory (not sent to the model).

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

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

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

Вложенные файлы

  • README.md
  • scripts/decide.py

FAQ

Что делает скилл example-custom-strategy?

Template example: demonstrates reading custom metrics and emitting a cache-operation verdict (copy this directory and adapt).

Как установить скилл example-custom-strategy?

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

Скилл example-custom-strategy запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить example-custom-strategy с