sdk-manager-layers

Installation
SKILL.md

Rule

Three layers, each with one job. Sub-managers must never invent a second source of truth for entities the top-level manager already caches.

Layer Owns Primary job
Structure One instance's fields + its sub-managers Thin delegation to managers; applies local patches only when the update is clearly about this instance
Top-level manager The canonical cache for one resource type HTTP + cache lifecycle: fetch/create/edit/delete, via a generic base
Sub-manager No separate cache Routes scoped API calls through the matching top-level manager so responses still land in the one global cache

Base — the structure base class

// src/structures/base.ts
export abstract class Base {
  protected hematite: Client;
  public id: number;
Installs
2
First Seen
Sep 22, 2026