system-nexus-operation
БесплатноБез исполняемых скриптовНе проверенHow the UI shows system Nexus endpoint operations, and how to add a new one. Use this skill when a person adds, scaffolds, or changes the display of a…
от temporalio★ 452 звезды на GitHubОб этом скилле
System Nexus operations
Temporal has a system Nexus endpoint with the name __temporal_system. A workflow
calls this endpoint to do an operation on a different workflow.
The call makes two usual events: NexusOperationScheduled and
NexusOperationCompleted. The payload of each event is a workflowservice message
in binary/protobuf format.
Without this module, the UI shows the Nexus transport. This module decodes the payload and shows the operation.
Where the code is
src/lib/system-nexus-endpoints/
├── index.ts the registry and the public functions
├── types.ts the SystemNexusOperationDefinition contract
├── shared.ts helpers for links, targets, and states
└── <operation-kind>/
├── schemas.ts the proto message types and schemas
├── definition.ts all the data about this operation
└── input-renderer.svelte the display of its input payload
Put all the data about an operation in its definition. A component must not
test for an operation. If you write if (operation === 'SignalWithStart') in a
component, move that code to a definition.
The public functions
The components use four functions only:
| Function | Used by |
|---|---|
resolveSystemNexusEvent(event, ctx) |
event-card, event-summary-row, event-details-full, timeline-graph-row |
systemNexusInputRenderer(payload) |
event-card, input-and-results-payload |
systemNexusGroupLabel(event) |
get-group-name |
schemaForMessageType(messageType) |
decode-payload, for all binary protobuf payloads |
resolveSystemNexusEvent gives null for an operation that is not in the
registry. Thus the other events keep their usual display.
How to add an operation
Use the generator:
pnpm system-nexus-operation:new StartWorkflowExecution --kind start-workflow --category workflow
| Flag | Function | Default |
|---|---|---|
| (positional) | The proto operation name in PascalCase | necessary |
--kind |
The directory name and the kind slug | the operation name in kebab case |
--category |
The timeline color and icon | nexus |
--grouped |
Open all the events in the group | off, thus the UI opens one event |
The generator writes the three files. It adds the new kind to the
SystemNexusOperationKind union. It also adds the definition to OPERATIONS.
The new code compiles, and it obeys the lint rules.
Then complete the two TODO comments:
definition.ts, indescribeInitiatedanddescribeTerminal— read the necessary fields from the decoded payload. Give back{ displayName, hiddenFields, attributes?, links, summaryAttribute? }.input-renderer.svelte— show the payload panels from the design.
At the end, do this command: pnpm lint && pnpm check && pnpm test -- --run.
Important fields in a definition
operationNamemust be the same as theoperationfield onNexusOperationScheduled. The compiler does not find an error in this string. If the string is not correct, the UI shows the usual Nexus display.stateVerbschanges the last part of the event name. Example:ScheduledbecomesInitiated, andCompletedbecomesDelivered.hiddenFieldsremoves the Nexus transport fields from the card:endpoint,service,operation, andrequestId.expandsIndividuallycontrols the display of a group. Set it totrueif the two events show almost the same fields. Then the UI opens one card only. Set it tofalseto keep the usual group behavior.summaryAttributeis the first item in the collapsed history row, if the row has no link.
How to test
The file src/lib/system-nexus-endpoints/resolve.test.ts makes its test data with
create() and toBinary() from the true bufbuild schemas. Do not write the
base64 data manually.
Use the same method. It finds a change in a message type or a field name. Manual test data hides these changes.
A known limit
The module cannot resolve the NexusOperationFailed, NexusOperationTimedOut,
and NexusOperationCanceled events.
These events have only scheduled_event_id, failure, and request_id. They do
not have an endpoint field or an operation field. Thus the event cannot
identify itself without its related Scheduled event.
stateVerbs has the labels for these events. To
Установить system-nexus-operation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл system-nexus-operation?
How the UI shows system Nexus endpoint operations, and how to add a new one. Use this skill when a person adds, scaffolds, or changes the display of a `__temporal_system` Nexus operation such as SignalWithStart, StartWorkflow, SignalWorkflow, or QueryWorkflow. Also use it when the event history shows a raw "Nexus Operation Scheduled" card that must show the operation.
Как установить скилл system-nexus-operation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл system-nexus-operation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic