custom-engine-implementation
БесплатноБез исполняемых скриптовНе проверенAdd and test declarative behavior-defined agentic engines in gh-aw, extending Go infrastructure only when necessary.
от github★ 5 758 звёзд на GitHubОб этом скилле
Custom Engine Implementation
Use this skill when adding a new agentic engine definition or extending the behavior-defined engine infrastructure.
Choose the smallest implementation
Prefer a shared Markdown engine definition. Installation, execution, MCP
configuration, provider routing, caching, manifests, plugins, network defaults,
harness scripts, and log parsing can already be declared through
engine.behaviors.
Only change Go code when the engine needs a reusable behavior that the declarative model cannot express. Add a dedicated Go engine only when the shared behavior-defined runtime cannot run the engine at all.
| Need | Implementation |
|---|---|
| Existing behaviors are sufficient | Add an imported shared engine definition |
| A reusable declarative behavior is missing | Extend the definition model and behavior-defined runtime |
| The shared runtime is fundamentally unsuitable | Add a dedicated Go engine and register it |
The relevant implementation is in:
pkg/workflow/engine_definition.gofor the definition model and catalogpkg/workflow/behavior_defined_engine.gofor the shared runtimepkg/workflow/engine_definition_loader.gofor embedded built-in definitionspkg/workflow/agentic_engine.gofor dedicated Go engine registrationpkg/parser/schemas/main_workflow_schema.jsonfor the workflow schema
Study representative engines
Read the closest examples before making changes:
.github/workflows/shared/opencode.md: npm installation, merged configuration, MCP, provider routing, and log parsing.github/workflows/shared/aider.md: hash-locked pip installation and a custom harness without native MCP.github/workflows/shared/crush.md: native MCP configuration adapter and harness.github/workflows/shared/cursor.md: plugin support.github/workflows/shared/deepseek-harness.md: provider endpoint discovery and a headless profile
Use the examples to identify a pattern, not as a reason to copy optional behaviors.
Add a shared engine definition
- Create
.github/workflows/shared/<engine>.md. - Declare
engine.id,display-name,description,experimental, provider metadata, authentication, and only the requiredbehaviors. - Pin a default CLI version. Make installation deterministic and provide a verification command.
- Document setup, authentication, model syntax, MCP support, and limitations in the Markdown body. Keep in-repository integrations clearly identified as unsupported samples.
- Add the engine ID and shared definition path to
.github/aw/engines.json. Imported behavior-defined engines are registered dynamically; do not add them toNewEngineRegistry(). - Add
.github/workflows/smoke-<engine>.md, following the closest existing smoke workflow. Import the shared definition and exercise the capabilities the engine claims to support. - Update the unsupported sample table in
docs/src/content/docs/reference/engines.md. - Add a changeset when the engine is a user-visible repository sample. New
experimental engines have precedent as a
minorchange. - Run
make recompileand include the generated smoke workflow.lock.yml.
TestKnownEngineImportsFile_MatchesSharedEngineFiles in
pkg/workflow/engine_definition_test.go enforces catalog coverage for shared
external engines.
Design the definition
Keep the definition declarative and minimal:
- Select the correct package manager, package name, binary name, version, and
verification command under
behaviors.installation. For Python engines, usepackage-manager: pipwith a completerequirementslist ofname/version/sha256entries instead ofpre-agent-steps, and prependGH_AW_PYTHON_PACKAGEStosys.pathat execution. - Put invocation arguments and non-secret environment variables under
behaviors.execution. - Use an existing secret strategy and provider environment mode where possible.
- Declare native MCP support only when the CLI can consume the generated configuration. Otherwise use a harness or the gh-aw CLI proxy pattern.
- Add only required default domains and map provider-specific domains under
behaviors.network.provider-domains. - Declare manifest files, cache paths, and plugin support only when the CLI consumes them.
- Add a log parser only when its emitted event format can be tested.
Treat inline JavaScript in harnesses, configuration adapters, and log parsers as production code. Avoid shell interpolation, validate paths and child-process arguments, preserve nonzero exit codes, and never print secret values. Enabling package lifecycle scripts requires a pinned version and an explicit reason.
For log and error regular expressions, also load
.github/skills/error-pattern-safety/SKILL.md.
Extend declarative infrastructure
When an engine exposes a generally useful capability that existing behaviors cannot express:
- Add the smallest field to the types in `pkg/workflow/engine_definitio
Установить custom-engine-implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл custom-engine-implementation?
Add and test declarative behavior-defined agentic engines in gh-aw, extending Go infrastructure only when necessary.
Как установить скилл custom-engine-implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл custom-engine-implementation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic