scaledockhq/scaledock-skills/cloudevents
Claude Code and agent skill by scaledockhq/scaledock-skills
- community
Checking that the SKILL.md file is still in the repository.
CloudEvents 1.0 (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, plus upgrades from CloudEvents 0.3. 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, upgrading specversion 0.3 events (schemaurl, datacontentencoding), or checking 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.
Install
npx vskill@latest install scaledockhq/scaledock-skills/cloudeventsSKILL.md
The same SKILL.md was published earlier as scaledockhq/scaledock-skills/cloudevents.
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.
- Target version: CloudEvents 1.0 (default,
specversion: "1.0", pinned at 1.0.2). CloudEvents 0.3 is legacy: read it and upgrade from it, never author it. No preview line exists; the 1.0.3-wip main branch is a patch in progress. See `references/versions.md`. - 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` + `id` is unique per distinct event. A re-sent duplicate may keep the same
id, 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).
- `time` is RFC 3339, and all producers for one
sourceare 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
- Pick the version. Use CloudEvents 1.0. If the input carries
specversion: "0.3", treat it as an upgrade (step 8).
-> `references/versions.md` ✓ Every event the design emits has specversion: "1.0".
- Design the event type. Choose a reverse-DNS
type, asourceURI-reference, and thesubject,dataschemaanddatacontenttypeyou need.
-> `references/attributes.md` ✓ Each event type has a documented type, source pattern, data schema 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.
- Upgrade (only when asked). Follow the 0.3 to 1.0 checklist: change
specversion, renameschemaurltodataschema, replacedatacontentencodingwithdata_base64, flatten nested extensions.
-> `references/versions.md` ✓ The upgraded events validate against the 1.0.2 JSON Schema and keep the same id, source, type and decoded data.
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/versions.md`: CloudEvents 1.0 and 0.3 with their status, what changed in 1.0 and its patch releases, the 0.3 to 1.0 upgrade checklist, and why no preview is listed. Load for steps 1 and 8.
- `references/attributes.md`: required and optional attributes, the type system, extension rules, and the documented extensions. Load for steps 2 and 3.
- `references/formats.md`: the JSON format,
dataanddata_base64, the batch format, the JSON Schema, and the Avro and Protobuf formats. Load for step 4. - `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 5 and 6.
- `references/drafts.md`: the status of Subscriptions, Discovery and Pagination, with summaries. Load for step 7.
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 v1.0-rc1 release notes: Released, v1.0-rc1 (2019-09-20), changes since v0.3, checked 2026-10-05.
- CloudEvents v1.0.1 release notes: Released, ce@v1.0.1 (2020-12-12), checked 2026-10-05.
- 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 - Version 0.3: working draft (superseded), v0.3 (2019-06-14), checked 2026-10-05.
- JSON Event Format for CloudEvents - Version 0.3: working draft (superseded), v0.3 (2019-06-14), checked 2026-10-05.
- 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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloudevents/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scaledockhq/scaledock-skills/cloudevents)