
Palace Diagram
- 79 installs
- 325 repo stars
- Updated August 2, 2026
- athola/claude-night-market
Visualize a memory palace knowledge graph as Mermaid and ASCII so you can inspect entities, triples, synapses, and tiers after architecting or migrating palaces.
About
Palace Diagram is an intermediate agent skill in the Claude Night Market memory-palace stack. It turns structured palace data into Mermaid and ASCII views so a solo builder running long-horizon agents can see how entities link, which synapses are strong or weak, and how content sits in tiers without spelunking raw graph files. Invoke it after memory-palace-architect creates or migrates a palace, when you need an inline ASCII overview in chat, or when you are debugging why knowledge-locator retrieval paths feel disconnected. The skill explicitly defers palace creation to memory-palace-architect and code-structure diagrams to cartograph, which keeps scope tight. Prism lists it as unwired: no /palace diagram command yet, so you may need palace_manager.py until integration ships. Estimated token budget around 400 with a standard model hint fits quick inspection loops during Build. For indie agent builders, this is documentation-of-memory, not shipping customer-facing UI—it improves how confidently you evolve agent context stores before Ship.
- Emits Mermaid and ASCII diagrams from the palace knowledge graph
- Shows entity relationships, triples, synapse connectivity, and tier assignments
- Supports heatmap-style strong vs weak synapse views for topology review
- Depends on memory-palace-architect; not for generic code architecture maps
- Documented as unwired in v1.9.4—invoke palace_manager.py until /palace diagram lands
Palace Diagram by the numbers
- 79 all-time installs (skills.sh)
- Ranked #5,292 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill palace-diagramAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 79 |
|---|---|
| repo stars | ★ 325 |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 2, 2026 |
| Repository | athola/claude-night-market ↗ |
What it does
Visualize a memory palace knowledge graph as Mermaid and ASCII so you can inspect entities, triples, synapses, and tiers after architecting or migrating palaces.
Files
Palace Diagram
Generate Mermaid and ASCII diagrams from the knowledge graph, showing palace structure, entity relationships, synapse connectivity, and tier assignments.
Status: wired. Invoke via `/palace diagram <palace-id>
[--type map|ascii|entity|heatmap]`, which calls
Skill(memory-palace:palace-diagram). The renderer lives inmemory_palace.palace_renderer.PalaceRenderer; see the Usagesection below for direct programmatic access.
When To Use
- Inspecting palace structure after creation or migration
- Understanding knowledge topology and connections
- Identifying strong and weak synapses (heatmap)
- Reviewing entity relationships and triples
- Getting an ASCII overview for inline display
When NOT To Use
- Creating palaces: use memory-palace-architect
- Searching knowledge: use knowledge-locator
- Code architecture diagrams: use cartograph
Diagram Types
| Type | Format | Description |
|---|---|---|
| Palace map | Mermaid flowchart | Rooms as subgraphs, entities as nodes, synapses as edges |
| Entity graph | Mermaid flowchart | Single entity's connections and triples |
| Synapse heatmap | Mermaid flowchart | Edge styling by strength (thick=strong, dotted=weak) |
| ASCII overview | Text | Box-drawing palace layout with entity counts |
Workflow
1. Identify palace by ID or name 2. Choose diagram type based on what you want to see 3. Generate diagram using PalaceRenderer 4. Render via Mermaid Chart MCP (for Mermaid) or display inline (for ASCII)
Usage
Palace Map
from memory_palace.knowledge_graph import KnowledgeGraph
from memory_palace.palace_renderer import PalaceRenderer
graph = KnowledgeGraph("path/to/knowledge_graph.db")
renderer = PalaceRenderer(graph)
mermaid = renderer.palace_map("palace_id")Then call mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram with the generated Mermaid string.
ASCII Overview
ascii_art = renderer.ascii_overview("palace_id")
print(ascii_art)Entity Graph
mermaid = renderer.entity_graph("entity_id")Synapse Heatmap
mermaid = renderer.synapse_heatmap("palace_id")Edge Styling
| Strength | Style | Meaning |
|---|---|---|
| >= 0.7 | ==> (thick) | Strong connection |
| >= 0.4 | --> (normal) | Medium connection |
| < 0.4 | -.-> (dotted) | Weak connection |
Integration
Works with:
memory-palace-architect: visualize after palace creationknowledge-locator: display search results as graphgraph-analyzer: tier-informed node sizing
Exit Criteria
- [ ] At least one of the four diagram types (palace map, entity graph,
synapse heatmap, ASCII overview) is generated without a Python exception from PalaceRenderer
- [ ] Mermaid diagrams are passed to
mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram and render successfully
- [ ] ASCII overview displays rooms with box-drawing characters and
entity counts per room
- [ ] Synapse edge styling matches strength thresholds:
==>for
strength ≥ 0.7, --> for ≥ 0.4, -.-> for < 0.4
- [ ] If the requested palace ID does not exist in the knowledge graph,
an error is reported with the palace ID that was searched
Related skills
FAQ
Is Palace Diagram safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.