example-custom-strategy
Template example: demonstrates reading custom metrics and emitting a cache-operation verdict (copy this directory and adapt).
от 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 theuser_systemsection 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…