logseq-wiki: Skill for Claude Code

.skills/wiki-rebuild/SKILL.md

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

A Logseq wiki reset procedure that archives the current wiki and creates a new empty one. Logseq is a note-taking tool that stores linked pages as files.

In plain words
What is it for?
Use it when you want to rebuild a Logseq wiki from scratch, archive its existing pages, and reset its tracking files.
Why use it?
It gives you a clean start while preserving the old wiki in a dated archive. Because it moves and replaces files, it asks for confirmation first.

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-rebuild/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-rebuild

README.md
[![agentmods](https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/wiki-rebuild/github.svg)](https://agentmods.dev/skills/ystreibel/logseq-wiki/wiki-rebuild)
Your own site
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/wiki-rebuild"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/wiki-rebuild/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 wiki-rebuild

Your own site · 80×15
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/wiki-rebuild"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/wiki-rebuild.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 593 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.00064 $0.00593
Opus 5 $0.00032 $0.00296
Sonnet 5 $0.00013 $0.00119
Haiku 4.5 $0.00006 $0.00059

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

Security

Grade A, and why

wiki-rebuild 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 9d 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-rebuild/SKILL.md · 83 lines

What it actually says

Logseq Rebuild — Reconstruction

REQUIRED: Invoke llm-wiki skill first for Logseq syntax and file format rules.

⚠️ Opération destructive — confirmation requise

Avant toute action, afficher :

⚠️ ATTENTION : Cette opération va archiver tout le wiki actuel.
Contenu actuel : [N pages, M thèmes, dernière mise à jour le DATE]
Archive destination : wiki/_archive/YYYY_MM_DD/

Veux-tu continuer ? (oui/non)

Attendre la réponse. Si non ou ambiguë : arrêter.

Étape 1 : Archiver

  1. Créer wiki/_archive/YYYY_MM_DD/ (date du jour)
  2. Déplacer tous les fichiers de wiki/ vers wiki/_archive/YYYY_MM_DD/ (sauf wiki/_archive/ lui-même)

Utiliser Bash :

DATE=$(date +%Y_%m_%d)
mkdir -p wiki/_archive/$DATE
find wiki -mindepth 1 -not -path 'wiki/_archive' -not -path 'wiki/_archive/*' | sort -r | xargs -I{} mv {} wiki/_archive/$DATE/ 2>/dev/null || true

Étape 2 : Réinitialiser

Créer un nouveau wiki/_manifest.json vide :

{
  "version": 1,
  "last_ingest": null,
  "stats": {
    "total_sources_ingested": 0,
    "total_pages_created": 0
  },
  "sources": {}
}

Créer un nouveau wiki/_log.md :

title:: Wiki — Log des opérations
category:: meta
tags:: log, wiki
summary:: Historique de toutes les opérations du wiki.
created:: [DATE]
updated:: [DATE]

# Wiki — Log

## Log

- [ISO8601] REBUILD — archive vers wiki/_archive/[DATE]/, manifest réinitialisé

Étape 3 : Proposer un re-ingest

Afficher :

✅ Wiki archivé dans wiki/_archive/[DATE]/
   [N] pages archivées.

Lance 'initialise mon wiki' puis 'ingère mon vault' pour reconstruire.
Ou dis 'reconstruis et réingère' pour que je le fasse maintenant.

Si l'utilisateur veut reconstruire et réingérer : invoquer wiki-setup puis wiki-ingest.

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. 9d ago First seen · 83 lines · 64 tokens per session scan A 9d2ada2fc185

Subscribe to this mod's changes

wiki-rebuild is a skill published in the GitHub repository ystreibel/logseq-wiki (4 stars, last pushed 14d ago), licensed MIT. It adds 64 tokens to every session and 593 once invoked, about $0.0003 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.