cloudevents
Skill1 starsChanged 31 days agoMITView on GitHub
CloudEvents 1.0.2: describe events in a common format, with context attributes, extensions, the JSON, Avro and Protobuf formats, and the HTTP, Kafka, AMQP, MQTT and NATS bindings. Use when designing event payloads or webhooks, publishing to a queue or topic, choosing binary or structured content mode, mapping ce- headers, validating against the CloudEvents JSON Schema, adding traceparent or partitionkey, or checking the status of the Subscriptions and Pagination drafts. Triggers: CloudEvents, CNCF CloudEvents, specversion 1.0, application/cloudevents+json, application/cloudevents-batch+json, ce-id, ce-type, ce_ Kafka headers, data_base64, datacontenttype, dataschema, event envelope, webhook delivery, WebHook-Request-Origin, xRegistry.
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Add extensions only when needed: Prefer a documented extension, such as traceparent for tracing or partitionkey for Kafka keys, over a new …
- Very specific: line 44
Pick the format: Use JSON unless the transport or consumers need Avro or Protobuf.
- Very specific: line 53
Check the draft specs before relying on them: If the design needs subscriptions, discovery or paginated listings, read their status first.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CloudEvents
CloudEvents is a specification for describing event data in a common way, published by the CloudEvents project, a CNCF graduated project. Version 1.0.2 defines the context attributes every event carries, event formats that serialize them, and protocol bindings that map them onto transports. With this skill the agent produces and consumes conformant events and picks the right format and binding.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: producer, consumer, or intermediary (a broker or router that forwards events).
- Transport: HTTP (including webhooks), Kafka, AMQP, MQTT, NATS, or several.
- Revision: CloudEvents 1.0.2 for the core specification, formats and bindings. Subscriptions and Pagination are drafts at 0.1-wip; Draft posture: track, pinned to the main-branch text read on 2026-10-02.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, check the CloudEvents releases page and README documents table for a newer release (the main branch is 1.0.3-wip), and update the pins.
Invariants
- Four attributes are required:
id,source,specversionandtype(spec, REQUIRED Attributes).specversionis"1.0". source+idis unique per distinct event. A re-sent duplicate may keep the sameid, and consumers may treat identicalsourceandidas duplicates (spec,id).- Attribute names are lower-case ASCII letters and digits only, and should not exceed 20 characters. Extension attributes follow the same naming and type rules (spec, Attribute Naming Convention, Extension Context Attributes).
timeis RFC 3339, and all producers for onesourceare consistent in how they set it (spec,time).- Every implementation supports the JSON format (spec, Overview). In JSON, extensions are top-level members, the media type is
application/cloudevents+json, anddataanddata_base64are mutually exclusive (JSON format § 2, § 3, § 3.1). - HTTP receivers detect the content mode from
Content-Type:application/cloudeventsmeans structured,application/cloudevents-batchmeans batched, anything else means binary (HTTP binding § 3). In binary mode,datacontenttypemaps toContent-Typeand must not also appear asce-datacontenttype(HTTP binding § 3.1.1). - Batched mode is only used when the receiver asked for it, and every event in a batch has the same
specversion(HTTP binding § 1.3, § 3.3). - Intermediaries forward events of 64 KByte or less; consumers should accept at least 64 KByte (spec, Size Limits).
- No sensitive information in context attributes, because producers, consumers and intermediaries may log them (spec, Privacy and Security).
Workflow
- Design the event type. Choose a reverse-DNS
type, asourceURI-reference, and thesubject,dataschemaanddatacontenttypeyou need. ->references/attributes.md✓ Each event type has a documentedtype,sourcepattern,dataschema and the optional attributes it uses. - Add extensions only when needed. Prefer a documented extension, such as
traceparentfor tracing orpartitionkeyfor Kafka keys, over a new one. ->references/attributes.md✓ Every extension name follows the naming rule and has a definition. - Pick the format. Use JSON unless the transport or consumers need Avro or Protobuf; decide how
datais encoded. ->references/formats.md✓ A sample event serializes and validates against the 1.0.2 JSON Schema. - Map onto the transport. Choose binary or structured content mode per binding and map attributes to headers or the body.
->
references/bindings.md✓ A sample HTTP or Kafka message exists for each content mode you support. - Secure delivery. For webhooks, implement the abuse-protection handshake and the response codes; apply protocol-level security everywhere.
->
references/bindings.md✓ Webhook targets answer the OPTIONS validation request and return the status codes the webhook spec requires. - Check the draft specs before relying on them. If the design needs subscriptions, discovery or paginated listings, read their status first.
->
references/drafts.md✓ No production dependency rests on a draft without a recorded pin.
Verify before done
- Every event has
id,source,specversion: "1.0"andtype. - JSON events validate against the 1.0.2
cloudevents.jsonschema (the schema does not check attribute names, so check those separately). - All attribute and extension names match
^[a-z0-9]+$and are 20 characters or fewer. - Binary-mode HTTP messages carry
ce-headers with percent-encoded values and noce-datacontenttype. - Kafka binary-mode messages use
ce_headers, and the record key follows the binding's key-mapping rule. - Events stay within 64 KByte on the least efficient route.
- No secrets or personal data are carried in context attributes.
Reference index
references/attributes.md: required and optional attributes, the type system, extension rules, and the documented extensions. Load for steps 1 and 2.references/formats.md: the JSON format,dataanddata_base64, the batch format, the JSON Schema, and the Avro and Protobuf formats. Load for step 3.references/bindings.md: HTTP binary, structured and batched modes, header encoding, the webhook spec, and the Kafka, AMQP, MQTT and NATS bindings. Load for steps 4 and 5.references/drafts.md: the status of Subscriptions, Discovery and Pagination, with summaries. Load for step 6.
Related skills
ocsfto put security and audit events in a CloudEvent'sdata:npx skills add ScaleDockHQ/scaledock-skills --skill ocsf.opentelemetry-genaifor tracing AI workloads that emit events:npx skills add ScaleDockHQ/scaledock-skills --skill opentelemetry-genai.asyncapito document the channels that carry the events:npx skills add ScaleDockHQ/scaledock-skills --skill asyncapi.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- CloudEvents specification repository and README: CNCF graduated project, main branch (documents table and project status), checked 2026-10-02.
- CloudEvents v1.0.2 release: Released, ce@v1.0.2 (2022-02-06), checked 2026-10-02.
- CloudEvents - Version 1.0.2: Released, 1.0.2, checked 2026-10-02.
- JSON Event Format for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- CloudEvents JSON Schema: Released, 1.0.2, checked 2026-10-02.
- Avro Event Format for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- Protobuf Event Format for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- HTTP Protocol Binding for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- HTTP 1.1 Web Hooks for Event Delivery: Released, 1.0.2, checked 2026-10-02.
- Kafka Protocol Binding for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- AMQP Protocol Binding for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- MQTT Protocol Binding for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- NATS Protocol Binding for CloudEvents: Released, 1.0.2, checked 2026-10-02.
- CloudEvents Extension Attributes (documented extensions): Released, 1.0.2, checked 2026-10-02.
- Distributed Tracing extension: Released, 1.0.2, checked 2026-10-02.
- Partitioning extension: Released, 1.0.2, checked 2026-10-02.
- CloudEvents Subscriptions API: working draft, Version 0.1-wip (main branch), Draft posture: track, checked 2026-10-02.
- xRegistry specification repository: release candidate, v1.0-rc4 (core and registries), checked 2026-10-02.
- xRegistry Pagination: working draft, Version 0.1-wip (main branch), Draft posture: track, checked 2026-10-02.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- accolver/skill-maker★ 4same name
- DeepSpaceCartel/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- find-skillsSkill
- a2aSkill
- ag-uiSkill
- ap2Skill
- asyncapiSkill
- authzenSkill
- cedarSkill
- eu-ai-actSkill
- fapiSkill
- gnapSkill
- jwtSkill
- mcp-authorizationSkill
- oauthSkill
- ocsfSkill
- openapi-arazzoSkill
- openapi-overlaySkill
- openapiSkill
- openfeatureSkill
- openid4vcSkill
- openid-connectSkill
- openid-federationSkill
- openidSkill
- opentelemetry-genaiSkill
- owasp-agenticSkill
- problem-detailsSkill
- ratelimit-headersSkill
- scaledock-agent-permissionsSkill
- scaledock-enterprise-identitySkill
- scaledock-http-apiSkill
- scaledock-mcp-serverSkill
- scaledock-repo-standardSkill
- scimSkill
- shared-signalsSkill
- spiffeSkill
- standard-schemaSkill
- typespecSkill
- web-bot-authSkill
- webmcpSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

