/b00t:rust-trait-object-layoutfrom b00t
Explains Rust trait object layout: DST fat pointers, vtable placement, and generic last-field unsized coercion for zero-cost adapter stacks.
Ships in b00t. 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.
None: SKILL.md is the whole skill.
Rust trait object layout differs critically from C++. In Rust, dyn Trait is a dynamically sized type whose layout is the underlying value. &dyn Trait is a fat pointer: (ptr_to_value, ptr_to_vtable). Box<dyn Trait> is an owned fat pointer with vtable via CoerceUnsized magic. The vtable is never embedded in the struct (unlike C++ where every object pays the cost) — it lives in the fat reference or Box.
The surprising coercion: generic last-field unsized coercion. If a struct has a generic as its LAST field, you can coerce &Struct<ConcreteType> to &Struct<dyn Trait>. Example: struct Adapter<R: ?Sized> { buf: Vec<u8>, inner: R } — let r: &Adapter<dyn Read> = &a; is legal because inner is the last field. This only works with a single generic — you cannot coerce two trait params. And Box/Rc do not support inline generic coercion through references: let r: &Box<dyn Read> = &b; is illegal, while let r: Box<dyn Read> = b; (ownership transfer) is legal.
Why this matters in b00t: DatumStore trait uses Box<dyn DatumStore> extensively. When wrapping adapters (e.g., CachingStore<HashMapStore>), the last-field coercion means &CachingStore<dyn DatumStore> is legal — useful for zero-cost adapter stacks. The Chalk Interner pattern relies on this layout guarantee.
Load this skill when working with Rust trait objects, DST coercions, vtable internals, or the DatumStore adapter stack in b00t. It is a prerequisite for datum-macro.
(data_ptr, vtable_ptr) for &dyn Trait and Box<dyn Trait>.&Struct<dyn Trait> for zero-cost adapter stacks; use Box<dyn Trait> for owned trait objects.&Box<dyn Trait> is not legal — use Box<dyn Trait> directly for ownership transfer.What SKILL.md sets; muted values are Claude Code's defaults
35 skills in this plugin
/aws-cliCLI-first AWS orchestration skill for Lambda, ECS/Fargate, and S3 workflows rooted in `.☁️` runbooks.
/b00t-hooksb00t hooks implementation status — Claude Code hooks (PostToolUse/PreToolUse/SessionStart) and git hooks (pre-commit/pre-push)/b00t-interface-libraryDesign and implement a Rust interface library in l3dg3rr that acts as a feature-configurable lifecycle manager for b00t processes. The library compliantly implements init → operate → terminate → lifecycle maintenance of miscellaneous process surfaces (MCP servers, daemons, sidecars) with deterministic governance controls. Uses the autoresearch pattern (karpathy/autoresearch): agent reads program.md, iterates on the library, experiments autonomously.
/b00t-maintenanceAccess the b00t maintenance loop — check status, view cake token balance,
confirm exercise reminders, and inspect the research queue. The 👍🏻/👎🏻
vote tokens feed the probabilistic cake lottery resolved at pre-commit review.
/bayesianBayesian reasoning: beliefs are probabilities; evidence updates them proportionally./chalk-internerChalk Interner pattern: "Ty<I>(I::InternedTy) is the HANDLE; TyKind<I> is the OPEN form; the Interner trait bridges them."Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of 'https://github.com/azure-ai-foundry/foundry-samples' into submodule path 'foundry-samples' failed
As a github or url source: Failed to clone repository: fatal: clone of 'https://github.com/azure-ai-foundry/foundry-samples' into submodule path 'foundry-samples' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job