logseq-wiki: Skill for Claude Code

.skills/wiki-switch/SKILL.md

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

A profile switcher for multiple Logseq vaults, which are separate collections of linked notes. It stores named configuration files and points the active configuration to the selected vault.

In plain words
What is it for?
Use it to list vault profiles, switch the active vault, inspect its settings, or create a new profile.
Why use it?
It prevents manual editing of configuration when moving between personal, work, or other wikis and shows which vault is active.

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/wiki-switch/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 wiki-switch

README.md
[![agentmods](https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/wiki-switch.svg)](https://agentmods.dev/skills/ystreibel/logseq-wiki/wiki-switch)
Your own site
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/wiki-switch"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/wiki-switch.svg" alt="Measured on agentmods" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,051 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.00124 $0.01051
Opus 5 $0.00062 $0.00526
Sonnet 5 $0.00025 $0.00210
Haiku 4.5 $0.00012 $0.00105

Measured 7d ago against content hash 8a6715aa250e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

wiki-switch 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 7d 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/wiki-switch/SKILL.md · 113 lines

How it starts

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

Wiki Switch — Gérer plusieurs profils de vault

Chaque vault est un fichier de config complet à ~/.logseq-wiki/config.<nom>. Le vault actif est celui vers lequel pointe le symlink ~/.logseq-wiki/config. Changer de vault = re-pointer ce symlink.

Dispatch

Parser l'invocation et router vers la bonne section :

Invocation Action
/wiki-switch <nom> Basculer
/wiki-switch list Lister
/wiki-switch show [nom] Afficher
/wiki-switch new <nom> Nouveau
/wiki-switch (sans args) Lister

Basculer (action par défaut)

Activer un profil de vault nommé.

  1. Vérifier que ~/.logseq-wiki/config.<nom> existe. Sinon, informer l'utilisateur et lister les vaults disponibles (lancer Lister).
  2. Exécuter :
    ln -sf ~/.logseq-wiki/config.<nom> ~/.logseq-wiki/config
    
  3. Lire LOGSEQ_VAULT_PATH depuis la config nouvellement activée.
  4. Confirmer à l'utilisateur :
    Vault activé : <nom>
    Chemin du vault : <valeur de LOGSEQ_VAULT_PATH>
    

Lister

Afficher tous les profils de vault enregistrés et lequel est actif.

  1. Trouver tous les fichiers correspondant à ~/.logseq-wiki/config.* (exclure config lui-même — c'est le symlink).
  2. Résoudre la cible du symlink actuel : readlink ~/.logseq-wiki/config
  3. Pour chaque fichier de config, lire la première ligne de commentaire non vide (lignes commençant par #) comme description humaine. Sinon, utiliser le suffixe du fichier.
  4. Afficher :
    Vaults :
      perso    Mon wiki de recherche personnel    ← actif
      pro      Wiki projets professionnels
    
    Marquer l'actif avec ← actif. Si le symlink est cassé ou config n'existe pas, afficher (aucun actif).

Afficher

Afficher la config complète d'un vault.

  • Si un nom est donné, lire ~/.logseq-wiki/config.<nom>.
  • Si aucun nom, lire ~/.logseq-wiki/config (le vault actif).
  • Si le fichier n'existe pas, informer l'utilisateur et lister les disponibles.
  • Afficher le contenu verbatim (masquer toute ligne contenant API_KEY ou SECRET — afficher *** à la place de la valeur).

Read the full file on GitHub · 113 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. 7d ago First seen · 113 lines · 124 tokens per session scan A 8a6715aa250e

Subscribe to this mod's changes

wiki-switch is a skill published in the GitHub repository ystreibel/logseq-wiki (4 stars, last pushed 11d ago), licensed MIT. It adds 124 tokens to every session and 1,051 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens