logseq-wiki: Skill for Claude Code

.skills/graph-colorize/SKILL.md

graph-colorize is a skill for Claude Code, Codex from ystreibel/logseq-wiki. It costs 90 tokens per session (1,818 once invoked), scanned A, original, MIT.

A tool that adds colors to nodes in Logseq's graph view using custom CSS. The graph view is a visual map of pages and their links, while CSS controls how parts of the interface look.

In plain words
What is it for?
Use it to color graph nodes by tag, theme, or visibility in a Logseq vault.
Why use it?
It makes different tags, themes, or visibility groups easier to distinguish in a crowded graph, while preserving a backup of the existing style file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is ystreibel/logseq-wiki's own configuration. It tells Claude Code and Codex how to work on logseq-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything logseq-wiki configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ystreibel/logseq-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ystreibel/logseq-wiki/main/.skills/graph-colorize/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ystreibel/logseq-wiki

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for graph-colorize

README.md
[![agentmods](https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/graph-colorize/github.svg)](https://agentmods.dev/skills/ystreibel/logseq-wiki/graph-colorize)
Your own site
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/graph-colorize"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/graph-colorize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for graph-colorize

Your own site · 80×15
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/graph-colorize"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/graph-colorize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.01818
Opus 5.5 $0.00036 $0.00727
Sonnet 5.5 $0.00018 $0.00364
Haiku 4.5 $0.00009 $0.00182

Measured 2mo ago against content hash 18851dfa6e6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

graph-colorize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.skills/graph-colorize/SKILL.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Graph Colorize — Coloriser la Vue Graphe Logseq

Note Logseq vs Obsidian : Logseq ne supporte pas les colorGroups JSON comme Obsidian. La colorisation du graphe Logseq se fait via logseq/custom.css en ciblant les nœuds SVG du graphe avec des sélecteurs CSS. Les capacités sont limitées comparé à Obsidian — la colorisation par tag nécessite du CSS avancé et est sujette à casser lors des mises à jour de Logseq.

Avant de commencer

  1. Lire ~/.logseq-wiki/config (ou .env local) → LOGSEQ_VAULT_PATH
  2. Vérifier que $LOGSEQ_VAULT_PATH/logseq/ existe. Si non, demander à l'utilisateur d'ouvrir le vault dans Logseq d'abord.
  3. Avertir l'utilisateur si Logseq est probablement ouvert : Logseq peut écraser custom.css au redémarrage. Fermer Logseq avant de continuer.

Étape 1 : Sauvegarder l'existant

cp "$LOGSEQ_VAULT_PATH/logseq/custom.css" \
   "$LOGSEQ_VAULT_PATH/logseq/custom.css.bak.$(date +%Y%m%d_%H%M%S)" 2>/dev/null || true

Étape 2 : Choisir un mode

Inférer le mode depuis la formulation de l'utilisateur. Défaut : by-tag.

Intention utilisateur Mode
"colorie par tag", "colorie mon graphe" (défaut) by-tag
"couleur par thème", "colorie par dossier" by-theme
"mettre en évidence la visibilité", "montrer internal/pii" by-visibility
Mapping explicite fourni custom

Étape 3 : Construire le CSS

Palette (10 couleurs distinctes, accessibles aux daltoniens)

# Hex Rôle
0 #4E79A7 bleu
1 #F28E2B orange
2 #E15759 rouge
3 #76B7B2 teal
4 #59A14F vert
5 #EDC948 jaune
6 #B07AA1 violet
7 #FF9DA7 rose
8 #9C755F brun
9 #BAB0AC gris

Mode : by-tag

  1. Lister tous les .md sous $LOGSEQ_VAULT_PATH/wiki/ (exclure _archive/, _meta/)
  2. Pour chaque page, extraire la ligne tags:: <valeurs> et parser les tags (séparés par ,)
  3. Compter la fréquence de chaque tag ; trier décroissant ; prendre le top 10
  4. Générer le CSS :

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 153 lines · 90 tokens per session scan A 18851dfa6e6e

Subscribe to this mod's changes

graph-colorize is a skill published in the GitHub repository ystreibel/logseq-wiki (5 stars, last pushed 11d ago), licensed MIT. It adds 90 tokens to every session and 1,818 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

graph-colorize compared with skills from other repositories

graph-colorize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graph-colorizeystreibel/logseq-wikiSkill511d agoMITA90Claude Code, Codex
anti-slop-designsickn33/agentic-awesome-skillsSkill49kyesterdayMITA34Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k3d agoMITA52Codex
open-design-setupcompozy/compozySkill2.8kyesterdayMITA67Claude Code, Codex
frontend-visual-qadaymade/claude-code-skillsSkill1.5kyesterdayMITA125Claude Code, Codex
prototype-webnexu-io/html-anythingSkill9.4k24d agoApache-2.0A24Claude Code, Codex