/nord-skills:pr-lens-diagramsfrom nord-skills
Creates animated architecture and data-flow diagrams from a hand-written graph.json, renders animated SVG, and records GIF/MP4 for sharing in chats.
Ships in nord-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Russian version: references/README.ru.md.
PR Lens (MIT, https://prlens.dev) renders a JSON graph document into a self-contained animated SVG (SMIL <animateMotion>, no scripts). A model key is only needed for analyze (graph from a git diff); for an arbitrary diagram the agent writes the JSON itself.
# deps: Node >= 20.11, npm, ffmpeg; Chromium is installed by the setup script
bash scripts/pr-lens-setup.sh # into $PR_LENS_HOME (default ~/.cache/pr-lens-diagrams)
bash scripts/pr-lens-build.sh my.graph.json out/ # → out/architecture.{svg,gif,mp4}, out/data-flow.{svg,gif,mp4}
examples/bots.graph.json (4 lanes, 12 nodes, 12 edges, 1 flow).dark by default; light or both as the 3rd arg), records frames with Playwright at deviceScaleFactor: 2, and encodes a non-dithered GIF and an MP4 (crf 18).PR_LENS_HOME, FPS (20), MIN_WIDTH (1600), PR_LENS_CLI_VERSION, PLAYWRIGHT_VERSION.npx skills add coldteadotai/pr-lens crashes on Node 20 (fs/promises has no glob); not required. Version-matched docs: npx pr-lens skill / npx pr-lens skill references inside $PR_LENS_HOME.pr-lens canvas push puts the diagram on prlens.dev behind a view link anyone holding it can open.Required: schemaVersion, kind: "graph", title, lenses, provenance, lanes, nodes; plus edges, flows.
provenance is required even without a repo (dummy owner/name, 40-zero sha).lanes are columns, left to right by order; there is no "top" — the leftmost lane is the start.service|app|module|function|route|job|queue|datastore|cache|external|ui|config|test|package|other. Edge kinds: call|http|rpc|event|queue|data|dependency|render|other; emphasis: normal|hero|muted; animated: true.delta: "unchanged" everywhere for a plain diagram.layout: { direction, laneOrder, rank } are hints, never coordinates.animated edges carry a dot (1.6 s). hero edges carry a 3-dot train (2.1 s, 0.7 s spacing) plus glow. Seamless loop = LCM(1.6, 0.7) = 11.2 s."data-flow" to lenses and flows[] (participants = node ids; messages sync|async|return|self). Steps light up in array order; loop length = dur in the SVG (7 steps → 9.8 s, max 16 s).walkthrough and payload only play on a prlens.dev canvas.pauseAnimations() + setCurrentTime(t) (scripts/record.mjs).subtitle. Express "everyone → X" in X's subtitle or via one aggregate node.layout.rank. Rank is a floor (≥ predecessor + 1), so use a staircase 0,1,2,3…; rows are shared across lanes, so give linked neighbours the same rank for straight edges.hero only for 1–2 key paths; rare edges muted; no labels on obvious edges.dark (default, reads best in chats), light, or both (writes <lens>-dark.* and <lens>-light.*). Pick both when the target page switches themes (GitHub <picture>, nopaste, docs sites); match the reader's theme when only one image fits.PALETTE=github (default renderer colours, dark ground #0d1117, light #ffffff) or PALETTE=nopaste (paste.goldfinches.ru colours: dark #212427/accent #8ab4f8, light #e6ddd2/accent #176b62). Diff colours (added/modified/removed) are never changed.palettegen=max_colors=128:stats_mode=diff + paletteuse=dither=none:diff_mode=rectangle, lanczos to CSS width (~1 MB for 11 s). MP4 at full 2x.render output names carry a hash; the build copies them to stable <lens>.svg.hero).examples/bots.graph.json and edit it: lanes, nodes with a layout.rank staircase, edges, and flows if needed.bash scripts/pr-lens-build.sh graph.json out/. If validate names a wrong field, fix it.graph.json source and the SVG.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nordz0r/skills --plugin all-skills28 skills in this plugin
/administering-linuxHands-on Linux administration of a systemd host: journalctl, systemctl, unit, drop-in, failed-service after reboot, OOM, df, ssh, Ubuntu Debian. Not Docker and not Ansible. Triggers: journalctl, unit file, drop-in, oom killer, disk full, sshd, ubuntu server, failed unit, vendor unit, host troubleshooting, сервер, диск заполнен, служба не стартует, логи, линукс./agency-database-optimizerDatabase design, migration safety, indexing, EXPLAIN analysis, query tuning, connection management, and production-safe PostgreSQL or MySQL changes. Use whenever the user mentions Postgres, PostgreSQL, MySQL, MariaDB, slow queries, schema design, migrations, locking risk, indexing, SQL plans, or wants to move an app between database engines safely./