Build or debug Netty bootstraps, channel pipelines, ByteBuf ownership, framing, and codecs.
Ships in netty. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
io.netty:netty-bom in Maven Central for the latest stable release compatible with the project's Java version and Netty line.
Honor an existing platform, BOM, or project pin, and keep Netty modules and native transports aligned with it.
Set ${netty.version} to the selected release only when the build does not manage it.Preserve transport, pipeline, lifecycle, and buffer ownership contracts.
Bootstrap, ServerBootstrap, Channel, ChannelPipeline, handlers, ByteBuf, and codec basics.ByteBuf and other ReferenceCounted messages as owned resources.
EventLoop thread with long-running work.
@Sharable.EventLoopGroup with shutdownGracefully().Use this skill for direct Netty TCP or UDP clients and servers, bootstrap setup, channel lifecycle, inbound and outbound pipeline flow, ByteBuf operations and ownership, framing, and codecs.
For builder-driven reactive transport centered on HttpServer, HttpClient, TcpServer, TcpClient, UdpServer, or UdpClient, use the higher-level reactive transport surface instead of low-level pipeline APIs.
Read the bootstrap, pipeline, and tests for transport, message ownership, and lifecycle owner. Keep existing resource wiring unless the task requires a change. Use the references for the changed topic. Examples do not authorize public listeners, external connections, or changes to deployed resources.
Channel stays on one EventLoop for its lifetime; inbound and outbound callbacks run there unless offloaded.bind(...), connect(...), writeAndFlush(...), and close(...) are asynchronous and return ChannelFuture.sync() may simplify startup or shutdown.ChannelFuture on an I/O thread.ServerBootstrap.option(...) configures the listening server socket that accepts connections.ServerBootstrap.childOption(...) configures each accepted child channel handled by the worker group.Bootstrap.option(...) configures the single client or UDP channel because there is no child-channel split.ByteBuf has separate reader and writer indexes and does not require flip().ctx.alloc() or channel.alloc() to allocate buffers that match the channel allocator.ByteToMessageDecoder: bytes to higher-level messagesMessageToByteEncoder<T>: messages to bytesFor dependencies or TCP client, TCP server, or UDP server setup, read dependency and transport examples.
Use netty-all for development convenience or individual modules for production.
For a UDP reply, writeAndFlush owns the new reference from retainedDuplicate; SimpleChannelInboundHandler releases the original packet.
For echo handlers, framing and POJO codec chains, manual buffer release, or write-then-close, read pipeline examples.
Separate byte-level concerns from business logic and place decoders, business handlers, and encoders according to pipeline direction.
Use ChannelFutureListener.CLOSE when the channel must close after a write completes.
Choose TCP for ordered reliable streams and UDP for datagram-oriented protocols when loss or reordering is acceptable.
Use ServerBootstrap for listening TCP sockets and Bootstrap for clients and UDP.
Use NIO first, automatic reads for ordinary servers, and a simple handler for existing frames.
Use SimpleChannelInboundHandler for one inbound type; decide ownership explicitly for shared or asynchronous buffers.
For TCP versus UDP startup, event loops, channels, and framing, read transport selection.
Verify the changed contract with the existing native tests.
Use EmbeddedChannel for handler or codec behavior that does not require a real transport.
Check cleanup on changed error and cancellation paths.
For bootstrap changes, check the channel class, server versus child options, and event-loop ownership.
For handler changes, trace pipeline order and buffer release through the affected path.
If AUTO_READ is false, call channel.read() in channelActive() and after each processed message.
Separate framing, decoding, encoding, and business handlers by responsibility.
Report transport, pipeline, ownership, or shutdown consequences, checks, and unverified network or lifecycle behavior.
Open these advanced references if needed:
| Blocker | Open |
|---|---|
| retain/release, leak detection, async ownership | reference-counting.md |
stateful decoders, LengthFieldBasedFrameDecoder, sharability rules | custom-codec.md |
| line-, delimiter-, fixed-size-, or length-based framing choices | framing.md |
| epoll, kqueue, or io_uring selection and fallback | native-transport.md |
AUTO_READ, manual channel.read(), flow-controlled consumption | backpressure.md |
testing handlers and pipelines with EmbeddedChannel | testing-embedded-channel.md |
| TLS or SSL pipeline setup | tls-ssl.md |
| heartbeat, timeout, or stale connection handling | idle-handling.md |
references/backpressure.md (opens in a new tab)references/custom-codec.md (opens in a new tab)references/framing.md (opens in a new tab)references/idle-handling.md (opens in a new tab)references/native-transport.md (opens in a new tab)references/pipeline-examples.md (opens in a new tab)references/reference-counting.md (opens in a new tab)references/testing-embedded-channel.md (opens in a new tab)references/tls-ssl.md (opens in a new tab)references/transport-examples.md (opens in a new tab)references/transport-selection.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/netty:nettyfrom netty
npx claudepluginhub ririnto/sinon --plugin netty2 skills in this plugin