migrating-to-db

Migrate Logseq graphs from Markdown to Database format.

3|2|Updated Nov 11, 2025
One-click install
npx skills add https://github.com/C0ntr0lledCha0s/claude-code-plugin-automations --skill migrating-to-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-to-db
Source: https://github.com/C0ntr0lledCha0s/claude-code-plugin-automations/tree/main/logseq-expert/skills/migrating-to-db
Command: npx skills add https://github.com/C0ntr0lledCha0s/claude-code-plugin-automations --skill migrating-to-db

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Expert guidance for migrating Logseq graphs from Markdown (MD) format to the Database (DB) format with best practices.

Core Features & Use Cases

  • Migration overview: storage, tags, properties, queries, sync
  • Pre-migration checklist and decision points
  • Step-by-step migration process with validation
  • Common issues and recovery strategies

Quick Start

Begin with a backup and review current graph structure before migrating.

Frequently Asked Questions about migrating-to-db

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a Logseq graph from Markdown to database format?

Migrating Logseq graphs from Markdown to database format involves backing up your graph, reviewing its structure, exporting to EDN, configuring import settings, executing the migration steps, and validating data integrity post-migration. Follow the pre-migration checklist to handle namespace decisions, tag-to-class conversions, and property type inference correctly.

What should I check before migrating my Logseq MD graph to DB?

Before migration, complete a pre-migration checklist covering your current graph structure, storage setup, tags, properties, and queries. Identify how tags will convert to classes, determine namespace handling, and back up your data. This preparation prevents compatibility and data-integrity issues during conversion.

What happens to properties and tags when converting Logseq from MD to DB?

During MD-to-DB migration, properties undergo type inference to map to database fields, and tags convert to classes based on your decisions. The migration process applies these transformations while maintaining data relationships and ensuring the resulting database structure meets compatibility and performance requirements.

How do I validate my Logseq graph after migrating to database format?

Post-migration validation confirms data integrity and compatibility in your converted database format. Review the migrated graph structure, verify property types and class assignments, check query functionality, and validate sync behavior to ensure the migration completed successfully.

What issues can occur during Logseq MD to DB migration and how do I fix them?

Common migration issues include property type mismatches, namespace conflicts, and incomplete tag-to-class conversions. Recovery strategies involve reviewing pre-migration decisions, re-exporting with corrected settings, and re-importing with adjusted configuration options to resolve data-integrity problems.

Can I migrate between different Logseq versions using database format?

Yes, MD-to-DB migration applies across Logseq versions, including version-specific export and import configurations. The migration process handles compatibility differences, ensuring your graph structure, properties, and queries work correctly in the target Logseq version's database format.