Agent skill

Palace Diagram

by athola in athola/claude-night-market

Generates Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity.

MITAuto-check passedDevelopment

Install Palace Diagram

skills CLI
$ npx skills add athola/claude-night-market --skill palace-diagram -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market palace-diagram --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/memory-palace/skills/palace-diagram .claude/skills/palace-diagram && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
palace-diagram
GitHub stars
341
Token cost
~946 tokens
SKILL.md length
315 words
Files
1
Skills in repo
152
Repo updated
First seen
Licence
MIT

At a glance

Generates Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity.

  • Works in 4 steps: Identify palace by ID or name → Choose diagram type based on what you… → Generate diagram using PalaceRenderer → …
  • Presenting a palace visually
  • SKILL.md covers When To Use, When NOT To Use, Diagram Types and Workflow, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Palace Diagram is an agent skill from athola/claude-night-market. Generates Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity. Use when inspecting or presenting a palace visually.

Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Diagrams. It works with Mermaid. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Presenting a palace visually
  • Tasks that involve Diagrams

Example prompts

  • “Use the palace-diagram skill to generate Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity”
  • “/palace-diagram”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Palace Diagram loads about 946 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 315 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~946

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 315 words, ~946 tokens.

Download SKILL.mdSave it as .claude/skills/palace-diagram/SKILL.md (or your agent's skills folder).
name
palace-diagram
description
Generates Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity. Use when inspecting or presenting a palace visually.
alwaysApply
false
category
visualization
tags
memory, visualization, mermaid, diagram, graph
dependencies
memory-palace-architect
usage_patterns
palace-visualization, knowledge-topology
complexity
intermediate
model_hint
standard
estimated_tokens
400

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 in memory_palace.palace_renderer.PalaceRenderer; see the Usage section 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

TypeFormatDescription
Palace mapMermaid flowchartRooms as subgraphs, entities as nodes, synapses as edges
Entity graphMermaid flowchartSingle entity's connections and triples
Synapse heatmapMermaid flowchartEdge styling by strength (thick=strong, dotted=weak)
ASCII overviewTextBox-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
python
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
python
ascii_art = renderer.ascii_overview("palace_id")
print(ascii_art)
Entity Graph
python
mermaid = renderer.entity_graph("entity_id")
Synapse Heatmap
python
mermaid = renderer.synapse_heatmap("palace_id")

Edge Styling

StrengthStyleMeaning
>= 0.7==> (thick)Strong connection
>= 0.4--> (normal)Medium connection
< 0.4-.-> (dotted)Weak connection

Integration

Works with:

  • memory-palace-architect: visualize after palace creation
  • knowledge-locator: display search results as graph
  • graph-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

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/memory-palace/skills/palace-diagram of athola/claude-night-market.

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Palace Diagram next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Palace Diagram compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Palace Diagram this skillathola/claude-night-market341—~946Automated safety check: PassMIT
Archify Diagramstt-a1i/archify82k—~2.9kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design49k1 repos~7.6kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Pretty Mermaid Rendererimxv/Pretty-mermaid-skills1.5k—~2kAutomated safety check: PassMIT
Archify Diagram BuilderUnclecheng-li/AI_Animation1.5k2 repos~4.1kAutomated safety check: PassMIT

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    82k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    49k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Pretty Mermaid Renderer

    imxv/Pretty-mermaid-skills

    Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.

    1.5k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed
  • Mermaid

    WH-2099/mermaid-skill

    Generate Mermaid diagrams from user requirements. An agent skill from WH-2099/mermaid-skill.

    288 GitHub starsUsed in 4 repos~958 tokens
    DevelopmentAuto-check passed

More from athola/claude-night-market

All 152 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    341 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Palace Diagram

What does Palace Diagram do?

Generates Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity. Palace Diagram is an agent skill from athola/claude-night-market. Generates Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity.

When should I use Palace Diagram?

Palace Diagram fits situations like: presenting a palace visually; tasks that involve Diagrams.

How do I install Palace Diagram in Claude Code?

Run `npx skills add athola/claude-night-market --skill palace-diagram -a claude-code`. Or copy the skill folder (plugins/memory-palace/skills/palace-diagram in athola/claude-night-market) into .claude/skills/palace-diagram in your project. Claude Code loads it when a task matches its description.

How do I install Palace Diagram in Codex?

Run `npx skills add athola/claude-night-market --skill palace-diagram -a codex`. Or copy the skill folder (plugins/memory-palace/skills/palace-diagram in athola/claude-night-market) into .agents/skills/palace-diagram in your project. Codex loads it when a task matches its description.

Can I use Palace Diagram in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill palace-diagram -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/palace-diagram, .gemini/skills/palace-diagram, .github/skills/palace-diagram and .opencode/skills/palace-diagram in your project.

What does Palace Diagram need to run?

SKILL.md names no scripts, command-line tools or credentials: Palace Diagram is instructions for the agent only. Our summary lists: Python 3.

Does Palace Diagram access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Palace Diagram safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Palace Diagram use?

Palace Diagram is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Palace Diagram use?

About 946 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Palace Diagram?

Skills that share tags, products or a category with Palace Diagram: Archify Diagrams (tt-a1i/archify, 82k stars), Diagram Design (cathrynlavery/diagram-design, 49k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Pretty Mermaid Renderer (imxv/Pretty-mermaid-skills, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Palace Diagram?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 152 skills in this directory. The repository was last updated on October 9, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.