bytefield
/bytefield
Writes valid bytefield diagram source for uml-mcp (diagram_type=bytefield). Binary protocol and byte layout diagrams Use when the user asks for bytefield or that notation; then call validate_uml / generate_uml / generate_uml_image.
- Author
- antoinebou12 ↗
- Repository
- uml-mcp ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Writes valid bytefield diagram source for uml-mcp (diagram_type=bytefield). Binary protocol and byte layout diagrams Use when the user asks for bytefield or that notation; then call validate_uml / generate_uml / generate_uml_image.
Original author description
Writes valid bytefield diagram source for uml-mcp (diagram_type=bytefield). Binary protocol and byte layout diagrams Use when the user asks for bytefield or that notation; then call validate_uml / generate_uml / generate_uml_image.
How it works
- Styling
- Starter template
- Example
- Render with uml-mcp
SKILL.md preview
---
name: bytefield
description: >-
Writes valid bytefield diagram source for uml-mcp (diagram_type=bytefield). Binary protocol and byte layout diagrams Use when the user asks for bytefield or that notation; then call validate_uml / generate_uml / generate_uml_image.
---
# bytefield diagram (uml-mcp)
**`diagram_type`:** `bytefield`
**Backend:** `bytefield`
**Output formats:** svg
Binary protocol and byte layout diagrams
Load the workflow skill [uml-mcp-diagrams](../uml-mcp-diagrams/SKILL.md) for URL-first replies, progressive discovery, and which MCP tool to call. This file is notation only; it does not add an MCP tool.
## Styling
- Use `(defattrs … {:fill "#…"})` for row colors.
- No MCP `theme` param.
## Starter template
```bytefield
(defattrs :bg-green {:fill "#a0ffa0"})
(defattrs :bg-yellow {:fill "#ffffa0"})
(defattrs :bg-pink {:fill "#ffb0a0"})
(defattrs :bg-cyan {:fill "#a0fafa"})
(defattrs :bg-purple {:fill "#e4b5f7"})
(def row-height 40)
(def row-header-width 50)
(def box-width 30)
(defn draw-packet-header
[]
(draw-column-headers)
(draw-box "Version" {:span 8})
(draw-box "Flags" {:span 8})
(draw-gap "Payload")
(draw-bottom))
(draw-packet-header)
```
## Example
```bytefield
(defattrs :bg-green {:fill "#a0ffa0"})
(defattrs :bg-yellow {:fill "#ffffa0"})
(defattrs :bg-pink {:fill "#ffb0a0"})
(defattrs :bg-cyan {:fill "#a0fafa"})
(defattrs :bg-purple {:fill "#e4b5f7"})
(defn draw-group-label-header
[span label]
(draw-box (text label [:math {:font-size 12}]) {:span span :borders #{} :height 14}))
(defn draw-remotedb-header
[kind args]
(draw-column-headers)
(draw-group-label-header 5 "start")
(draw-group-label-header 5 "TxID")
(draw-group-label-header 3 "type")
(draw-group-label-header 2 "args")
(draw-group-label-header 1 "tags")
(next-row 18)
(draw-box 0x11 :bg-green)
(draw-box 0x872349ae [{:span 4} :bg-green])
(draw-box 0x11 :bg-yellow)
(draw-box (text "TxID" :math) [{:span 4} :bg-yellow])
(draw-box 0x10 :bg-pink)
(draw-box (hex-text kind 4 :bold) [{:span 2} :bg-pink])
(draw-box 0x0f :bg-cyan)
(draw-box (hex-text args 2 :bold) :bg-cyan)
(draw-box 0x14 :bg-purple)
(draw-box (text "0000000c" :hex [[:plain {:font-weight "light" :font-size 16}] " (12)"]) [{:span 4} :bg-purple])
(draw-box (hex-text 6 2 :bold) [:box-first :bg-purple])
(doseq [val [6 6 3 6 6 6 6 3]]
(draw-box (hex-text val 2 :bold) [:box-related :bg-purple]))
(doseq [val [0 0]]
(draw-box val [:box-related :bg-purple]))
(draw-box 0 [:box-last :bg-purple]))
(draw-remotedb-header 0x4702 9)
```
## Render with uml-mcp
1. Set `diagram_type` to `bytefield` exactly.
2. Call **`validate_uml`** when the source is untrusted (prefer `strict: true` for Mermaid sequence).
3. Call **`generate_uml`**, **`generate_uml_image`** (chat PNG), or **`generate_uml_batch`**.
4. Pass **`theme`** when this skill's Themes section lists supported values.
5. Surface the returned `url` / `playground` (see the workflow skill).
Confirm formats with `uml://formats` or `list_diagram_types` when unsure.
Versions
The database has no other skills named bytefield.
Database snapshot: 13.11.2026 · package version da922c73ba40 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100c4plantuml
Writes valid c4plantuml diagram source for uml-mcp (diagram_type=c4plantuml). C4 model diagrams using PlantUML Use when the user asks for c4plantuml or that notation; then call validate_uml / generate_uml / generate_uml_image. - 100d2
Writes valid d2 diagram source for uml-mcp (diagram_type=d2). A modern diagram scripting language Use when the user asks for d2 or that notation; then call validate_uml / generate_uml / generate_uml_image. - 91uml-diagram-design
UML 图表设计和绘制。当用户需要创建系统架构图、类图、时序图、用例图或其他 UML 图表时使用此技能。