微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📥

Logseq 笔记一键迁移至 slipbox

SlipBot Logseq Importer · v1.0.0
效率 安全 A 级 作者 jrswab 公开目录收录
下载 1.4k 安装 0 收藏 3.4k 浏览 16
原始页面

简介

从 Logseq 页面解析并批量导入笔记到 slipbox,自动提取元数据、处理嵌套结构、生成独立笔记条目

原始描述

Import notes from Logseq pages into the slipbox. Use when user pastes a Logseq page with properties and bulleted notes. Parses page-level properties, extracts each bullet as an individual note, handles nested bullets by adding parent context, then runs slipbot for each.

中文使用说明 来自收录源

核心用法

Logseq Import 是一款专为知识管理用户设计的笔记迁移工具,用于将 Logseq 格式的页面内容批量转换为 slipbox 笔记条目。该技能处理两类核心输入:页面级属性(key:: value 格式)和 Markdown 列表形式的子弹笔记。

处理流程:

  1. 预检阶段:解析页面元数据和子弹结构,生成内容摘要与预计导入数量,需用户确认后执行
  2. 属性映射:将 Logseq 的 title::、source::、author:: 等字段转换为 slipbox 的 source 对象
  3. 子弹解析:每个顶层子弹生成独立笔记,嵌套子弹通过追加父级上下文实现扁平化
  4. 内容清理:自动移除 id::、block-tags::、行内 #tag 等 Logseq 元数据,保留 Markdown 格式
  5. 批量调用:逐条触发 slipbot 工作流,完成文件名生成、标签提取、图谱更新

关键设计决策:

  • 完全忽略标签:明确禁止导入 Logseq 的任意标签(tags::、行内 #tag、block-tags::),避免与 slipbot 的自动生成机制冲突
  • 嵌套扁平化:通过语义继承("父标题(父描述)子内容")替代层级结构,适配 slipbox 的原子笔记理念
  • [[页面引用]] 转换为纯文本,保留潜在链接目标但不强制关联

显著优点

  • 批量效率:单次操作可处理数十条笔记,显著降低手动迁移成本
  • 元数据保真:作者、来源类型、URL 等学术引用字段完整保留
  • 上下文继承:嵌套子弹的自动富化减少信息丢失,优于简单剪贴
  • 确认机制:预检摘要防止误操作,适合谨慎的知识管理场景

潜在局限

  • 格式依赖:严格依赖 Logseq 的 key:: value 语法和 - 子弹格式,非标准 Markdown 或 Roam/Obsidian 格式可能解析失败
  • 标签冲突策略激进:完全丢弃用户原有标签体系,对依赖标签组织的用户可能造成信息损失
  • 深层嵌套(3+ 级)扁平化:累积的父级前缀可能生成冗长、可读性下降的内容
  • 无版本控制:未提及重复导入的去重机制,多次执行可能产生重复笔记

适合人群

  • 从 Logseq 迁移至 slipbox/Zettelkasten 工作流的知识管理用户
  • 需要批量导入书籍/文献笔记的研究者(支持 type:: #literature 映射)
  • 遵循"原子笔记"原则、接受扁平化标签管理的用户

常规风险

  • 确认跳过风险:用户可能在未仔细审阅预检摘要时确认导入,导致低质量或重复内容污染图谱
  • 嵌套语义漂移:自动拼接的父级上下文可能扭曲原意(如父级为反问句时)
  • 来源解析歧义:source:: 字段的纯文本与 Markdown 链接两种格式需精确区分,复杂嵌套链接可能解析错误
  • 元数据缺失容错:空值属性(author::)转为 null,下游 slipbot 需妥善处理

技能正文


name: logseq-import description: Import notes from Logseq pages into the slipbox. Use when user pastes a Logseq page with properties and bulleted notes. Parses page-level properties, extracts each bullet as an individual note, handles nested bullets by adding parent context, then runs slipbot for each.

Logseq Import

Parse a Logseq page and create individual slipbox entries for each bullet point.

Critical Rule: Ignore All Tags

Do not import any tags from Logseq. This includes:

  • Page-level tags:: property
  • Inline #tags in bullet content
  • block-tags:: metadata

Slipbot generates its own tags based on content. Logseq tags would conflict with this.

Input Format

Logseq pages have two parts:

1. Page Properties (top of page, key:: value format):

type:: #literature
source:: Book
author:: David Kadavy
title:: Digital Zettelkasten
alias:: zettelkasten-book
status::
tags::

2. Bulleted Notes (markdown list):

- First note content here
- Second note with [[page ref]] link
  - Nested bullet under second
- Third note id:: abc123-uuid

Property Mapping

Logseq Property Slipbox Field
title:: source.title
source:: source.type (if plain text like "Book")
source:: [text](url) source.title + source.url (if markdown link)
author:: source.author
type:: #literature Note type hint (maps to note)
alias:: Ignore
status:: Ignore
tags:: Ignore (slipbot generates better tags)

Empty properties (e.g., author:: with no value) → null

Parsing Rules

Properties

  1. Extract all key:: value lines at the top
  2. Stop when hitting first bullet (- )
  3. Strip # from values like #literature
  4. Parse markdown links: [text](url) → extract both parts

Bullets

  1. Each top-level bullet (- ) becomes its own slipbox note
  2. Nested bullets: Add parent context to make them standalone
    • Example parent: - [[Fleeting Notes]]: quick notes written anywhere
    • Example child: - Can be on paper or digital
    • Result: "Fleeting Notes (quick notes written anywhere) can be on paper or digital"
  3. Strip Logseq metadata from bullets:
    • id:: uuid → remove
    • block-tags:: #xxx → remove entirely
    • #tag inline tags → remove entirely (slipbot generates its own)
    • #{"{" or malformed tags → remove
  4. Convert [[page refs]] → plain text (potential link targets)

Content Cleanup

  • Remove trailing id:: xxx from bullets
  • Remove block-tags:: xxx entirely
  • Remove all #tag inline tags (slipbot generates its own tags)
  • Preserve markdown formatting (bold, italic, code)

Workflow

  1. Precheck (before import)

    • Parse the page properties and bullets (don't create notes yet)
    • Generate a brief summary of what the page is about (1-2 sentences based on title, author, and content themes)
    • Count total notes that will be created (including nested bullets that become standalone)
    • Present to user: summary, note count, source info
    • Ask for confirmation before proceeding with import
    • If user declines, stop and don't create any notes
  2. Parse the page (after confirmation)

    • Extract page properties → source metadata
    • Extract all bullets → note list
    • Handle nesting by enriching child bullets with parent context
  3. For each bullet, invoke slipbot workflow:

    • Use - {content} prefix (note type)
    • Include source: ~ {source.type}, {source.title} by {source.author}
    • Let slipbot handle: filename, tags, links, graph update
  4. Report results

    • Count of notes created
    • Any issues encountered

Example

Input:

type:: #literature
source:: Book
author:: David Kadavy
title:: Digital Zettelkasten

- Rewriting ideas helps decide their importance
- [[Fleeting Notes]]: quick notes written anywhere
  - Can be captured on paper or digitally
- Keywords should be specific to the idea id:: abc123

Processing:

  1. Source: Book, "Digital Zettelkasten" by David Kadavy

  2. Bullets extracted:

    • "Rewriting ideas helps decide their importance"
    • "Fleeting Notes: quick notes written anywhere"
    • "Fleeting Notes can be captured on paper or digitally" (nested, parent context added)
    • "Keywords should be specific to the idea" (id stripped)
  3. Each sent to slipbot as:

    • - Rewriting ideas helps decide their importance ~ Book, Digital Zettelkasten by David Kadavy
    • etc.

Edge Cases

  • No properties: Treat as standalone notes without source
  • Deeply nested bullets (3+ levels): Flatten, accumulating context from all ancestors
  • Citation sections (## Citation:): Ignore (redundant with properties)
  • Non-bullet content: Ignore headers, paragraphs outside bullets
  • Multiple [[refs]] in one bullet: Keep all, convert to plain text

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

logseqnote-importzettelkastenslipboxknowledge-managementmarkdown-parsing

同类 Skill