logseq-wiki: Skill for Claude Code

.skills/openclaw-history-ingest/SKILL.md

openclaw-history-ingest is a skill for Claude Code, Codex from ystreibel/logseq-wiki. It costs 124 tokens per session (1,966 once invoked), scanned A, a copy of db-migration-review, MIT.

A tool that reads OpenClaw agent history and distills lasting knowledge into a Logseq wiki. OpenClaw stores both long-term memory and individual session transcripts, including JSONL records.

In plain words
What is it for?
Use it to import new or updated OpenClaw memory and session files, or rebuild the wiki from the complete history.
Why use it?
It turns past agent conversations and stored memories into reusable notes instead of leaving useful decisions and insights buried in history files.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

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/openclaw-history-ingest/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 openclaw-history-ingest

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/openclaw-history-ingest"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/openclaw-history-ingest.svg" alt="Reviewed on agentmods" width="80" 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,966 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 86% copy Near-identical to another mod 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.01966
Opus 5.5 $0.00050 $0.00786
Sonnet 5.5 $0.00025 $0.00393
Haiku 4.5 $0.00012 $0.00197

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

Security

Grade A, and why

openclaw-history-ingest 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.

Origin

This is a copy

86% identical to db-migration-review — 232 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.skills/openclaw-history-ingest/SKILL.md · 219 lines

How it starts

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

OpenClaw History Ingest — Session & Memory Mining for Logseq

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

You are extracting knowledge from the user's OpenClaw agent history and distilling it into the Logseq wiki. OpenClaw stores both a structured long-term MEMORY.md and per-session JSONL transcripts — focus on durable knowledge, not operational telemetry.

This skill can be invoked directly or via the wiki-history-ingest router (/wiki-history-ingest openclaw).

Before You Start

  1. Read ~/.logseq-wiki/config to get LOGSEQ_VAULT_PATH and OPENCLAW_HISTORY_PATH (default to ~/.openclaw if unset)
  2. Read wiki/_manifest.json at the vault root to check what has already been ingested
  3. Read wiki/_master-index.md at the vault root to understand what the wiki already contains

Ingest Modes

Append Mode (default)

Check wiki/_manifest.json for each source file. Only process:

  • Files not in the manifest (new session logs, updated MEMORY.md or daily notes)
  • Files whose modification time is newer than ingested_at in the manifest

Use this mode for regular syncs.

Full Mode

Process everything regardless of manifest. Use after wiki-rebuild or if the user explicitly asks for a full re-ingest.

OpenClaw Data Layout

OpenClaw stores all local artifacts under ~/.openclaw/.

~/.openclaw/
├── openclaw.json                          # Global config
├── credentials/                           # Auth tokens (skip entirely)
├── workspace/                             # Agent workspace
│   ├── MEMORY.md                          # Long-term memory (loaded every session)
│   ├── DREAMS.md                          # Optional dream diary / summaries
│   └── memory/
│       ├── YYYY-MM-DD.md                  # Daily notes (today + yesterday auto-loaded)
│       └── ...
└── agents/
    └── <agentId>/
        ├── agent/
        │   └── models.json                # Agent config (skip)
        └── sessions/
            ├── sessions.json              # Session index
            └── <sessionId>.jsonl          # Session transcript (JSONL, append-only)

Read the full file on GitHub · 219 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 219 lines · 124 tokens per session scan A cec777e0d76e

Subscribe to this mod's changes

openclaw-history-ingest is a skill published in the GitHub repository ystreibel/logseq-wiki (5 stars, last pushed 11d ago), licensed MIT. It adds 124 tokens to every session and 1,966 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to db-migration-review, differing in 232 lines, and is treated as a copy.

Related

openclaw-history-ingest compared with skills from other repositories

openclaw-history-ingest next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openclaw-history-ingestystreibel/logseq-wikiSkill511d agoMITA124Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex