{
  "type": "excalidraw",
  "version": 2,
  "source": "hermes-agent",
  "elements": [
    {
      "id": "title",
      "type": "text",
      "x": 280,
      "y": 15,
      "width": 640,
      "height": 35,
      "text": "SkeMex - Skill Memory Unit Self-Evolution",
      "fontSize": 24,
      "fontFamily": 1,
      "strokeColor": "#e2e8f0",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "originalText": "SkeMex - Skill Memory Unit Self-Evolution",
      "autoResize": true
    },
    {
      "id": "subtitle",
      "type": "text",
      "x": 270,
      "y": 55,
      "width": 660,
      "height": 20,
      "text": "mi = (ki, ci, ui)  Retrieval Key  Reusable Content  Utility Statistic",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#94a3b8",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "originalText": "mi = (ki, ci, ui)  Retrieval Key  Reusable Content  Utility Statistic",
      "autoResize": true
    },
    {
      "id": "box-trajectory",
      "type": "rectangle",
      "x": 30,
      "y": 120,
      "width": 220,
      "height": 120,
      "strokeColor": "#f59e0b",
      "backgroundColor": "#78350f",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roughness": 2,
      "opacity": 100,
      "roundness": {"type": 3},
      "boundElements": [
        {"id": "text-trajectory", "type": "text"},
        {"id": "text-trajectory-2", "type": "text"},
        {"id": "arrow-trajectory-gate", "type": "arrow"}
      ]
    },
    {
      "id": "text-trajectory",
      "type": "text",
      "x": 45,
      "y": 135,
      "width": 190,
      "height": 25,
      "text": "Interaction Trajectory",
      "fontSize": 16,
      "fontFamily": 1,
      "strokeColor": "#fbbf24",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-trajectory",
      "originalText": "Interaction Trajectory",
      "autoResize": true
    },
    {
      "id": "text-trajectory-2",
      "type": "text",
      "x": 50,
      "y": 170,
      "width": 180,
      "height": 40,
      "text": "Raw interactions\nSuccess / Failure / Feedback",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#d4a574",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-trajectory",
      "originalText": "Raw interactions\nSuccess / Failure / Feedback",
      "autoResize": true
    },
    {
      "id": "box-gate",
      "type": "rectangle",
      "x": 320,
      "y": 120,
      "width": 200,
      "height": 80,
      "strokeColor": "#3b82f6",
      "backgroundColor": "#1e3a5f",
      "fillStyle": "cross-hatch",
      "strokeWidth": 2,
      "roughness": 2,
      "opacity": 100,
      "roundness": {"type": 3},
      "boundElements": [
        {"id": "text-gate", "type": "text"},
        {"id": "text-gate-2", "type": "text"},
        {"id": "arrow-trajectory-gate", "type": "arrow"},
        {"id": "arrow-gate-engine", "type": "arrow"}
      ]
    },
    {
      "id": "text-gate",
      "type": "text",
      "x": 335,
      "y": 130,
      "width": 170,
      "height": 25,
      "text": "Gated Buffer (Filter)",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#60a5fa",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-gate",
      "originalText": "Gated Buffer (Filter)",
      "autoResize": true
    },
    {
      "id": "text-gate-2",
      "type": "text",
      "x": 340,
      "y": 160,
      "width": 160,
      "height": 20,
      "text": "Remove: errors, repeats, trivial",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#94a3b8",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-gate",
      "originalText": "Remove: errors, repeats, trivial",
      "autoResize": true
    },
    {
      "id": "box-engine",
      "type": "rectangle",
      "x": 590,
      "y": 100,
      "width": 260,
      "height": 160,
      "strokeColor": "#22c55e",
      "backgroundColor": "#14532d",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roughness": 2,
      "opacity": 100,
      "roundness": {"type": 3},
      "boundElements": [
        {"id": "text-engine", "type": "text"},
        {"id": "text-engine-2", "type": "text"},
        {"id": "text-engine-3", "type": "text"},
        {"id": "arrow-gate-engine", "type": "arrow"},
        {"id": "arrow-engine-skill", "type": "arrow"}
      ]
    },
    {
      "id": "text-engine",
      "type": "text",
      "x": 605,
      "y": 110,
      "width": 230,
      "height": 25,
      "text": "Two-Pass Distillation Engine",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#4ade80",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-engine",
      "originalText": "Two-Pass Distillation Engine",
      "autoResize": true
    },
    {
      "id": "text-engine-2",
      "type": "text",
      "x": 605,
      "y": 145,
      "width": 230,
      "height": 50,
      "text": "Pass 1: Analysis -> Pattern extraction\nPass 2: Mutation -> CREATE / PATCH / NONE",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#86efac",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-engine",
      "originalText": "Pass 1: Analysis -> Pattern extraction\nPass 2: Mutation -> CREATE / PATCH / NONE",
      "autoResize": true
    },
    {
      "id": "text-engine-3",
      "type": "text",
      "x": 610,
      "y": 205,
      "width": 220,
      "height": 30,
      "text": "Gates: Novelty Check + Quality Check",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#fbbf24",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-engine",
      "originalText": "Gates: Novelty Check + Quality Check",
      "autoResize": true
    },
    {
      "id": "box-skill",
      "type": "rectangle",
      "x": 340,
      "y": 330,
      "width": 440,
      "height": 130,
      "strokeColor": "#a78bfa",
      "backgroundColor": "#3b1f6e",
      "fillStyle": "solid",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "roundness": {"type": 3},
      "boundElements": [
        {"id": "text-skill", "type": "text"},
        {"id": "text-skill-2", "type": "text"},
        {"id": "arrow-engine-skill", "type": "arrow"},
        {"id": "arrow-skill-agent", "type": "arrow"},
        {"id": "arrow-skill-feedback", "type": "arrow"}
      ]
    },
    {
      "id": "text-skill",
      "type": "text",
      "x": 355,
      "y": 340,
      "width": 410,
      "height": 50,
      "text": "Skill Memory Unit  mi = (ki, ci, ui)\nki: retrieval key  |  ci: reusable content  |  ui: utility score",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#c4b5fd",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-skill",
      "originalText": "Skill Memory Unit  mi = (ki, ci, ui)\nki: retrieval key  |  ci: reusable content  |  ui: utility score",
      "autoResize": true
    },
    {
      "id": "text-skill-2",
      "type": "text",
      "x": 360,
      "y": 400,
      "width": 400,
      "height": 40,
      "text": "3-branch Repo: General Skills / Task-Level Skills / Action Skills\nStatus: active | mature | deprecated | archived",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#a78bfa",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-skill",
      "originalText": "3-branch Repo: General Skills / Task-Level Skills / Action Skills\nStatus: active | mature | deprecated | archived",
      "autoResize": true
    },
    {
      "id": "box-agent",
      "type": "rectangle",
      "x": 30,
      "y": 340,
      "width": 200,
      "height": 110,
      "strokeColor": "#34d399",
      "backgroundColor": "#064e3b",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roughness": 2,
      "opacity": 100,
      "roundness": {"type": 3},
      "boundElements": [
        {"id": "text-agent", "type": "text"},
        {"id": "text-agent-2", "type": "text"},
        {"id": "arrow-skill-agent", "type": "arrow"},
        {"id": "arrow-agent-feedback", "type": "arrow"}
      ]
    },
    {
      "id": "text-agent",
      "type": "text",
      "x": 45,
      "y": 350,
      "width": 170,
      "height": 25,
      "text": "LLM Medical Agent",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#6ee7b7",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-agent",
      "originalText": "LLM Medical Agent",
      "autoResize": true
    },
    {
      "id": "text-agent-2",
      "type": "text",
      "x": 45,
      "y": 385,
      "width": 170,
      "height": 50,
      "text": "Read skills -> Think ->\nTool Use -> Answer",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#a7f3d0",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-agent",
      "originalText": "Read skills -> Think ->\nTool Use -> Answer",
      "autoResize": true
    },
    {
      "id": "box-feedback",
      "type": "rectangle",
      "x": 30,
      "y": 530,
      "width": 200,
      "height": 110,
      "strokeColor": "#f97316",
      "backgroundColor": "#7c2d12",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roughness": 2,
      "opacity": 100,
      "roundness": {"type": 3},
      "boundElements": [
        {"id": "text-feedback", "type": "text"},
        {"id": "text-feedback-2", "type": "text"},
        {"id": "arrow-agent-feedback", "type": "arrow"},
        {"id": "arrow-feedback-trajectory", "type": "arrow"}
      ]
    },
    {
      "id": "text-feedback",
      "type": "text",
      "x": 45,
      "y": 545,
      "width": 170,
      "height": 25,
      "text": "Clinical Environment",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#fdba74",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-feedback",
      "originalText": "Clinical Environment",
      "autoResize": true
    },
    {
      "id": "text-feedback-2",
      "type": "text",
      "x": 45,
      "y": 580,
      "width": 170,
      "height": 50,
      "text": "Reward signal rt\nAdvantage = reward - baseline",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#fed7aa",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-feedback",
      "originalText": "Reward signal rt\nAdvantage = reward - baseline",
      "autoResize": true
    },
    {
      "id": "box-govern",
      "type": "rectangle",
      "x": 600,
      "y": 530,
      "width": 250,
      "height": 120,
      "strokeColor": "#fb7185",
      "backgroundColor": "#4c0519",
      "fillStyle": "hachure",
      "strokeWidth": 2,
      "roughness": 2,
      "opacity": 100,
      "roundness": {"type": 3},
      "boundElements": [
        {"id": "text-govern", "type": "text"},
        {"id": "text-govern-2", "type": "text"},
        {"id": "arrow-skill-govern", "type": "arrow"}
      ]
    },
    {
      "id": "text-govern",
      "type": "text",
      "x": 615,
      "y": 545,
      "width": 220,
      "height": 25,
      "text": "Govern: Repository Maintenance",
      "fontSize": 14,
      "fontFamily": 1,
      "strokeColor": "#fda4af",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-govern",
      "originalText": "Govern: Repository Maintenance",
      "autoResize": true
    },
    {
      "id": "text-govern-2",
      "type": "text",
      "x": 615,
      "y": 585,
      "width": 220,
      "height": 50,
      "text": "Deprecate low-utility  /  Mature\nhigh-utility  /  Merge duplicates\n/  Archive for traceability",
      "fontSize": 11,
      "fontFamily": 1,
      "strokeColor": "#fecdd3",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "box-govern",
      "originalText": "Deprecate low-utility  /  Mature\nhigh-utility  /  Merge duplicates\n/  Archive for traceability",
      "autoResize": true
    },
    {
      "id": "arrow-trajectory-gate",
      "type": "arrow",
      "x": 250,
      "y": 170,
      "width": 70,
      "height": 0,
      "points": [[0, 0], [70, 0]],
      "strokeColor": "#f59e0b",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "endArrowhead": "arrow",
      "startBinding": {"elementId": "box-trajectory", "focus": 0, "gap": 1},
      "endBinding": {"elementId": "box-gate", "focus": 0, "gap": 1}
    },
    {
      "id": "text-arrow-tg",
      "type": "text",
      "x": 260,
      "y": 145,
      "width": 50,
      "height": 20,
      "text": "filter",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#f59e0b",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "arrow-trajectory-gate",
      "originalText": "filter",
      "autoResize": true
    },
    {
      "id": "arrow-gate-engine",
      "type": "arrow",
      "x": 520,
      "y": 170,
      "width": 70,
      "height": 0,
      "points": [[0, 0], [70, 0]],
      "strokeColor": "#3b82f6",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "endArrowhead": "arrow",
      "startBinding": {"elementId": "box-gate", "focus": 0, "gap": 1},
      "endBinding": {"elementId": "box-engine", "focus": 0, "gap": 1}
    },
    {
      "id": "text-arrow-ge",
      "type": "text",
      "x": 530,
      "y": 145,
      "width": 50,
      "height": 20,
      "text": "distill",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#3b82f6",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "arrow-gate-engine",
      "originalText": "distill",
      "autoResize": true
    },
    {
      "id": "arrow-engine-skill",
      "type": "arrow",
      "x": 690,
      "y": 260,
      "width": 0,
      "height": 70,
      "points": [[0, 0], [-40, 35], [-200, 60]],
      "strokeColor": "#22c55e",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "endArrowhead": "arrow",
      "startBinding": {"elementId": "box-engine", "focus": 0, "gap": 1},
      "endBinding": {"elementId": "box-skill", "focus": 0, "gap": 1}
    },
    {
      "id": "text-arrow-es",
      "type": "text",
      "x": 600,
      "y": 265,
      "width": 80,
      "height": 20,
      "text": "CREATE/PATCH",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#22c55e",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "arrow-engine-skill",
      "originalText": "CREATE/PATCH",
      "autoResize": true
    },
    {
      "id": "arrow-skill-agent",
      "type": "arrow",
      "x": 340,
      "y": 400,
      "width": 0,
      "height": 0,
      "points": [[0, 0], [-200, 0]],
      "strokeColor": "#a78bfa",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "endArrowhead": "arrow",
      "startBinding": {"elementId": "box-skill", "focus": 0, "gap": 1},
      "endBinding": {"elementId": "box-agent", "focus": 0, "gap": 1}
    },
    {
      "id": "text-arrow-sa",
      "type": "text",
      "x": 220,
      "y": 385,
      "width": 100,
      "height": 20,
      "text": "Read: retrieve",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#a78bfa",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "arrow-skill-agent",
      "originalText": "Read: retrieve",
      "autoResize": true
    },
    {
      "id": "arrow-agent-feedback",
      "type": "arrow",
      "x": 130,
      "y": 450,
      "width": 0,
      "height": 80,
      "points": [[0, 0], [0, 80]],
      "strokeColor": "#34d399",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "endArrowhead": "arrow",
      "startBinding": {"elementId": "box-agent", "focus": 0, "gap": 1},
      "endBinding": {"elementId": "box-feedback", "focus": 0, "gap": 1}
    },
    {
      "id": "text-arrow-af",
      "type": "text",
      "x": 135,
      "y": 470,
      "width": 60,
      "height": 20,
      "text": "Assess",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#34d399",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "arrow-agent-feedback",
      "originalText": "Assess",
      "autoResize": true
    },
    {
      "id": "arrow-feedback-trajectory",
      "type": "arrow",
      "x": 160,
      "y": 580,
      "width": 0,
      "height": 0,
      "points": [[0, 0], [-60, 0], [-70, -350]],
      "strokeColor": "#f97316",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "endArrowhead": "arrow",
      "startBinding": {"elementId": "box-feedback", "focus": 0, "gap": 1},
      "endBinding": {"elementId": "box-trajectory", "focus": 0, "gap": 1}
    },
    {
      "id": "text-arrow-ft",
      "type": "text",
      "x": 48,
      "y": 510,
      "width": 70,
      "height": 20,
      "text": "Write loop",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#f97316",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "arrow-feedback-trajectory",
      "originalText": "Write loop",
      "autoResize": true
    },
    {
      "id": "arrow-skill-govern",
      "type": "arrow",
      "x": 780,
      "y": 400,
      "width": 0,
      "height": 0,
      "points": [[0, 0], [70, 0], [60, 130]],
      "strokeColor": "#a78bfa",
      "strokeWidth": 2,
      "roughness": 1,
      "opacity": 100,
      "endArrowhead": "arrow",
      "startBinding": {"elementId": "box-skill", "focus": 0, "gap": 1},
      "endBinding": {"elementId": "box-govern", "focus": 0, "gap": 1}
    },
    {
      "id": "text-arrow-sg",
      "type": "text",
      "x": 805,
      "y": 420,
      "width": 70,
      "height": 20,
      "text": "Govern",
      "fontSize": 12,
      "fontFamily": 1,
      "strokeColor": "#a78bfa",
      "backgroundColor": "transparent",
      "fillStyle": "solid",
      "strokeWidth": 1,
      "roughness": 0,
      "opacity": 100,
      "containerId": "arrow-skill-govern",
      "originalText": "Govern",
      "autoResize": true
    }
  ],
  "appState": {
    "viewBackgroundColor": "#1e1e2e",
    "gridSize": null
  }
}
