Install the "add-outbound-event" agent skill from https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-outbound-event into .claude/skills/add-outbound-event/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-outbound-event", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add microbus-io/fabric --skill add-outbound-event -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "add-outbound-event" agent skill from https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-outbound-event into .agents/skills/add-outbound-event/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-outbound-event", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add microbus-io/fabric --skill add-outbound-event -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "add-outbound-event" agent skill from https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-outbound-event into .cursor/skills/add-outbound-event/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-outbound-event", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add microbus-io/fabric --skill add-outbound-event -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "add-outbound-event" agent skill from https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-outbound-event into .gemini/skills/add-outbound-event/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-outbound-event", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add microbus-io/fabric --skill add-outbound-event -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "add-outbound-event" agent skill from https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-outbound-event into .github/skills/add-outbound-event/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-outbound-event", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add microbus-io/fabric --skill add-outbound-event -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "add-outbound-event" agent skill from https://github.com/microbus-io/fabric/tree/main/.claude/skills/microbus/add-outbound-event into .opencode/skills/add-outbound-event/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-outbound-event", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
add-outbound-event
GitHub stars
172
Token cost
~1.7k tokens
SKILL.md length
777 words
Files
1
Skills in repo
32
Repo updated
First seen
Licence
Apache-2.0
At a glance
TRIGGER when user asks to fire, emit, or publish an event that other microservices can subscribe to.
Works in 10 steps: Read Local CLAUDE.md File → Determine the Signature → Determine the Method and Route → …
User asks to fire
Calls go
Publish an event that other microservices can subscribe to
What it does
Add Outbound Event is an agent skill from microbus-io/fabric. TRIGGER when user asks to fire, emit, or publish an event that other microservices can subscribe to.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Microservices. The repository describes itself as: Microbus is the only fabric where every agentic workflow runs on a true microservice substrate - giving your workflows security, scale, observability, and prompt-driven authoring. The licence is Apache-2.0.
When your agent uses it
User asks to fire
Publish an event that other microservices can subscribe to
Example prompts
“/add-outbound-event”
Workflow steps
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit fb98098. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Shell commands in SKILL.md call:
go
From the folder's file list and the shell code blocks in SKILL.md.
Network
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Add Outbound Event loads about 1.7k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 777 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~30
When it runs· the whole SKILL.md, loaded when a task matches
~1.7k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/add-outbound-event/SKILL.md (or your agent's skills folder).
name
add-outbound-event
description
TRIGGER when user asks to fire, emit, or publish an event that other microservices can subscribe to.
CRITICAL: Do NOT explore or analyze other microservices unless explicitly instructed to do so. The instructions in this skill are self-contained to this microservice.
CRITICAL: An outbound event is declared as a define.OutboundEvent var in myserviceapi/definition.go. Add the declaration and run cmd/genservice. An outbound event has no handler in service.go - this microservice fires it; other microservices sink it.
CRITICAL: Keep the // MARKER: OnMyEvent comment on the define.OutboundEvent var and on its In/Out structs.
IMPORTANT: Outbound events are not exposed via OpenAPI. The connector's built-in :888/openapi.json handler filters them out automatically.
Workflow
Copy this checklist and track your progress:
Creating or modifying an outbound event:
- [ ] Step 1: Read local CLAUDE.md file
- [ ] Step 2: Determine the signature
- [ ] Step 3: Determine the method and route
- [ ] Step 4: Determine a description
- [ ] Step 5: Define complex types
- [ ] Step 6: Declare the event in definition.go
- [ ] Step 7: Generate the boilerplate
- [ ] Step 8: Trigger the event
- [ ] Step 9: Test the outgoing event
- [ ] Step 10: Housekeeping
Step 1: Read Local CLAUDE.md File
Read the local CLAUDE.md file in the microservice's directory. It contains microservice-specific instructions that should take precedence over global instructions.
The first input argument must be ctx context.Context
The function must return an err error
Maps must be keyed by string, e.g. map[string]any
Complex types (structs) are allowed by value or by reference, e.g. MyStruct or *MyStruct
All input or output arguments must be serializable into JSON, including complex types
Arguments must not be named t or svc
Argument names must start with a lowercase letter
The event name must start with On followed by an uppercase letter
Step 3: Determine the Method and Route
The method of the endpoint determines the HTTP method with which it will be addressable. The most common approach is to use POST.
The route of the endpoint is resolved relative to the hostname of the microservice to determine how it is addressed. The common approach is to use the name of the endpoint in kebab-case as its route, e.g. /my-event.
Events should be set on a dedicated port to allow blocking external requests from reaching them. The recommended port to use for events is 417. Prefix the route with the port, e.g. :417/on-my-event.
Do not use path arguments in events.
Prefix the route with // to set a hostname other than that of this microservice, e.g. //another.host.name:417/on-something
Step 4: Determine a Description
Describe the event starting with its name, in Go doc style: OnMyEvent is triggered when X. This becomes the godoc comment on the define.OutboundEvent var.
Step 5: Define Complex Types
Identify the struct types in the signature and define each in the myserviceapi directory following the
add-type skill: one file per type, camelCase json tags with omitzero, jsonschema_description tags,
optional dv8 validation tags, and an optional pure Validate method for cross-field invariants. A type
owned by another microservice is aliased rather than redefined. Skip this step if there are no complex types.
Note that dv8 tags on an event's In struct are enforced at every sink when the event is received: the
source authors the payload contract and its validation together.
Show full SKILL.md (311 more words)Show less
Step 6: Declare the Event in definition.go
Append the define.OutboundEvent var and its In/Out structs to myserviceapi/definition.go.
go
/*
OnMyEvent is triggered when X.
*/
var OnMyEvent = define.OutboundEvent{ // MARKER: OnMyEvent
Host: Hostname, Method: "POST", Route: ":417/on-my-event",
In: OnMyEventIn{}, Out: OnMyEventOut{},
}
// OnMyEventIn are the input arguments of OnMyEvent.
type OnMyEventIn struct { // MARKER: OnMyEvent
Input1 string `json:"input1,omitzero"`
Input2 ThirdPartyStruct `json:"input2,omitzero"`
}
// OnMyEventOut are the output arguments of OnMyEvent.
type OnMyEventOut struct { // MARKER: OnMyEvent
Output1 map[string]MyStruct `json:"output1,omitzero"`
}
Host is always Hostname. Method and Route come from Step 3
The In struct holds the input arguments excluding ctx; the Out struct holds the output arguments excluding err
If an In/Out field's type comes from another package (e.g. a time.Time field needs "time"), add that import to definition.go
Step 7: Generate the Boilerplate
From the microservice's directory, run the generator. It regenerates myserviceapi/client.go (the MulticastTrigger, the Hook, and the response wrapper for OnMyEvent) and manifest.yaml from the updated definition.go. It also scaffolds a placeholder test in service_test.go for the event, ready for you to fill in.
shell
go run github.com/microbus-io/fabric/cmd/genservice .
Then verify the microservice compiles with go vet ./... from the project root.
Step 8: Trigger the Event
The event has no implementation of its own. Trigger it from within other endpoints using the generated trigger.
To fire an event and wait for zero or more responses, loop over the response sequence.
go
for r := range myserviceapi.NewMulticastTrigger(svc).OnMyEvent(ctx, input1, input2) {
output1, err := r.Get()
if err != nil {
return errors.Trace(err)
}
// ...
}
To fire and forget, call the trigger without iterating over its response.
Skip this step if instructed to be "quick" or to skip tests.
The boilerplate generator created a placeholder test function TestMyService_OnMyEvent in service_test.go, tagged with a // MARKER: OnMyEvent comment and a HINT block. Add one or more test cases at the bottom of that function, following the pattern shown in its HINT comment. Do not remove the HINT comment.
If the feature or microservice cannot or should not be tested - for example, it starts a daemon or requires a
resource unavailable in the test environment - do not delete the generated test. The generator keys on the test
function's name and would scaffold it again on the next regeneration. Instead, replace the entire body of the
test with a t.Skip("reason") explaining why.
Add Outbound Event next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.
Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with…
Creates Java + Spring Boot projects: Web applications, full-stack apps with Vue.js or Angular or React or vanilla JS, PostgreSQL, REST APIs, and Docker.
TRIGGER when user asks to create a microservice that calls Python, runs ML inference, or uses Python libraries (PyTorch, pandas, sentence-transformers, numpy) for its core compute.
TRIGGER when user asks to fire, emit, or publish an event that other microservices can subscribe to. Add Outbound Event is an agent skill from microbus-io/fabric. TRIGGER when user asks to fire, emit, or publish an event that other microservices can subscribe to.
When should I use Add Outbound Event?
Add Outbound Event fits situations like: user asks to fire; publish an event that other microservices can subscribe to.
How do I install Add Outbound Event in Claude Code?
Run `npx skills add microbus-io/fabric --skill add-outbound-event -a claude-code`. Or copy the skill folder (.claude/skills/microbus/add-outbound-event in microbus-io/fabric) into .claude/skills/add-outbound-event in your project. Claude Code loads it when a task matches its description.
How do I install Add Outbound Event in Codex?
Run `npx skills add microbus-io/fabric --skill add-outbound-event -a codex`. Or copy the skill folder (.claude/skills/microbus/add-outbound-event in microbus-io/fabric) into .agents/skills/add-outbound-event in your project. Codex loads it when a task matches its description.
Can I use Add Outbound Event in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microbus-io/fabric --skill add-outbound-event -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-outbound-event, .gemini/skills/add-outbound-event, .github/skills/add-outbound-event and .opencode/skills/add-outbound-event in your project.
What does Add Outbound Event need to run?
Going by SKILL.md and its folder, Add Outbound Event needs the command-line tools its instructions call (go).
Does Add Outbound Event access the network?
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Is Add Outbound Event safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
What licence does Add Outbound Event use?
Add Outbound Event is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Add Outbound Event use?
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
What are the alternatives to Add Outbound Event?
Skills that share tags, products or a category with Add Outbound Event: Node Backend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars), Nodejs Backend Patterns (ever-works/ever-works, 162 stars), AWS Serverless Eda (zxkane/aws-skills, 367 stars) and Golang Pro (antoniopaya22/go-rest-template, 172 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Add Outbound Event?
microbus-io (a GitHub organization) maintains it in microbus-io/fabric, which has 172 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on September 28, 2026.
Source: microbus-io/fabric on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.