Skip to content
Back to skills

Applying Microkernel Architecture

ASecurity

Use when making a system extensible through plug-ins: a small core that loads interchangeable plug-ins from a registry. Triggers on plugin architecture, extension points, a plug-in registry, adding a backend or driver without editing the core, open/closed extension, capability negotiation, dependency injection vs service locator, lazy plug-in loading, or versioning a plug-in contract, even when the user doesn't say 'microkernel' and only says 'plugin architecture'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsgoazurebackend

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill applying-microkernel-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Applying Microkernel Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Applying Microkernel Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-applying-microkernel-architecture/badge)](https://www.skillsdirectory.com/skills/xonovex-applying-microkernel-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: applying-microkernel-architecture
description: "Use when making a system extensible through plug-ins: a small core that loads interchangeable plug-ins from a registry. Triggers on plugin architecture, extension points, a plug-in registry, adding a backend or driver without editing the core, open/closed extension, capability negotiation, dependency injection vs service locator, lazy plug-in loading, or versioning a plug-in contract, even when the user doesn't say 'microkernel' and only says 'plugin architecture'."
---

# Microkernel (Plug-in) Architecture

A minimal core plus independent plug-ins, selected through a registry: extend the system by adding a plug-in, never by editing the core.

## Essentials

- **Core + plug-ins + registry** - the minimal core holds the least; features are registered plug-ins, see [references/core-plugins-registry.md](references/core-plugins-registry.md)
- **Open/closed** - add a plug-in and register it once; never edit a central switch, see [references/core-plugins-registry.md](references/core-plugins-registry.md)
- **Capabilities, fail-closed** - plug-ins self-declare guarantees; the core gates generically and securely-by-default, see [references/capabilities-fail-closed.md](references/capabilities-fail-closed.md)
- **Bind as late as cost allows** - compile vs load vs run-time selection picks the mechanism, see [references/binding-time.md](references/binding-time.md)
- **Wire at the root, don't locate** - inject the resolved plug-in; passing the registry into business logic is the service-locator anti-pattern, see [references/wiring.md](references/wiring.md)
- **Built on ports and adapters** - plug-ins are adapters behind contracts; for the port substrate see **applying-hexagonal-architecture**

## Gotchas

- A microkernel is not "just a hexagon". It adds an _open, registered_ plug-in set plus extensibility machinery; ports/adapters is only the substrate (**applying-hexagonal-architecture**).
- Passing the registry into business logic is the service-locator anti-pattern: hidden dependencies, runtime not-found errors, untestable; resolve at the root and inject the plug-in.
- A churning plug-in contract forces edits across every plug-in: the open/closed violation wearing an interface; keep the contract narrow and versioned.
- The capability gate must name no concrete plug-in: fail-closed on a self-declared guarantee, or a new plug-in can violate an invariant silently.
- The OS microkernel and this architecture pattern share a name, not a definition: keep the two senses separate, see [references/metapatterns-lens.md](references/metapatterns-lens.md).

## Example

```go
// composition root: the only importer of concrete plug-ins
reg := Registry{Backends: map[string]Backend{
	"s3": s3.New(), "gcs": gcs.New(), // adding "azure" = one leaf + one line
}}
b, ok := reg.Backends[kind] // open/closed: no central switch to edit
if !ok { return ErrUnknownBackend }
if !b.Guarantees().Has(Durable) { return ErrPolicy } // fail-closed, names no plug-in
```

## Progressive Disclosure

- Read [references/core-plugins-registry.md](references/core-plugins-registry.md) - Load when designing the core, plug-in contract, and registry (open/closed)
- Read [references/capabilities-fail-closed.md](references/capabilities-fail-closed.md) - Load when gating plug-ins by self-declared capabilities, secure-by-default
- Read [references/binding-time.md](references/binding-time.md) - Load when deciding when a plug-in is selected (compile/load/run-time)
- Read [references/wiring.md](references/wiring.md) - Load when wiring plug-ins (dependency injection vs service locator, lazy activation, contract versioning)
- Read [references/metapatterns-lens.md](references/metapatterns-lens.md) - Load when relating microkernel to hexagonal/middleware/mesh (one non-canonical synthesis, with caveats)

Files in this skill

  • SKILL.md3.8 KB
  • eval-output.json4 KB
  • eval-trigger.json5.9 KB
  • moon.yml86 B
  • references/binding-time.md2.5 KB
  • references/capabilities-fail-closed.md1.4 KB
  • references/core-plugins-registry.md2.5 KB
  • references/metapatterns-lens.md1.9 KB
  • references/wiring.md1.6 KB
  • sources.json4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.