This skill should be used when the user wants to "use Logseq", "create knowledge graph", "analyze relationships", "set up graph database", "manage notes with Logseq", "build knowledge management system", or needs to integrate structured note-taking and graph visualization.
Logseq is a local-first, block-based knowledge management tool that creates powerful graph databases from markdown files. Unlike traditional note-taking apps, Logseq emphasizes:
This skill provides comprehensive integration between Claude and Logseq for:
Install Logseq and configure for Claude integration:
# Install Logseq (if not already installed)
~/.claude/skills/logseq/scripts/install.sh
# Set up a new knowledge graph
~/.claude/skills/logseq/scripts/setup-graph.sh --directory "/path/to/documents"
# Analyze existing documents for relationships
~/.claude/skills/logseq/scripts/analyze-relationships.sh --directory "/path/to/documents"
Transform a directory of documents into a Logseq knowledge graph:
# Initialize graph structure
~/.claude/skills/logseq/scripts/init-graph.sh --name "Strategic Memory" --path "/media/dontpanic/1112-15D8"
# Generate cross-references
~/.claude/skills/logseq/scripts/cross-reference.sh --path "/media/dontpanic/1112-15D8"
# Create concept index
~/.claude/skills/logseq/scripts/index-concepts.sh --path "/media/dontpanic/1112-15D8"
Set up new knowledge graphs for any document collection
# Basic graph setup
scripts/init-graph.sh --name "Project Name" --path "/path/to/docs"
# Advanced setup with templates
scripts/init-graph.sh --name "Strategic Analysis" --path "/path/to/docs" --template strategic
# Multi-directory graph
scripts/init-graph.sh --name "Research Collection" --paths "/docs1,/docs2,/docs3"
Configuration Options
Automated relationship discovery and mapping
# Full relationship analysis
scripts/analyze-relationships.sh --path "/path/to/docs" --output-format json
# Concept-based linking
scripts/cross-reference.sh --path "/path/to/docs" --strategy concepts
# Timeline-based connections
scripts/cross-reference.sh --path "/path/to/docs" --strategy timeline
# Custom relationship patterns
scripts/cross-reference.sh --path "/path/to/docs" --patterns "iteration,loop,strategy"
Analysis Types
Keep knowledge graphs updated and optimized
# Reindex entire graph
scripts/reindex.sh --path "/path/to/docs"
# Update relationships for new files
scripts/update-relationships.sh --path "/path/to/docs" --incremental
# Validate graph integrity
scripts/validate-graph.sh --path "/path/to/docs" --report detailed
# Optimize graph performance
scripts/optimize.sh --path "/path/to/docs" --method full
Merge multiple knowledge graphs into unified mother nodes for maximum resilience
# Basic graph merging
scripts/merge-graphs.sh --output "/unified-graph" --sources "/graph1,/graph2,/graph3"
# Advanced merge with conflict resolution
scripts/merge-graphs.sh --output "/mother-node" --sources "/strategic,/technical" --strategy deduplicate --conflict newer
# Sigil project integration with maximum resilience
scripts/merge-graphs.sh --output "/sigil-mother" --sources "/strategic,/sigil" --sigil --resilience --backup
# Distributed coordination setup
scripts/setup-distributed.sh --mother-node "/central" --satellites "/graph1,/graph2" --sync-schedule daily
Distributed Architecture Support
Specialized support for ongoing strategic analysis and iteration
# Set up strategic memory tracking
scripts/setup-strategic.sh --base-dir "/path/to/strategic/docs"
# Track iteration progression
scripts/track-iterations.sh --pattern "iteration_*" --output timeline
# Generate strategic insights
scripts/analyze-strategy.sh --path "/path/to/strategic" --focus "ralph_loop,community"
# Create strategic dashboards
scripts/create-dashboard.sh --type strategic --data "/path/to/strategic"
Strategic Templates
Advanced concept tracking and relationship building
# Extract and index concepts
scripts/extract-concepts.sh --path "/path/to/docs" --method semantic
# Build concept hierarchies
scripts/build-hierarchy.sh --concepts-file concepts.json --method similarity
# Generate concept maps
scripts/concept-map.sh --path "/path/to/docs" --format graphviz
# Track concept evolution
scripts/track-concepts.sh --path "/path/to/docs" --timeline
Create powerful visual representations of knowledge networks
# Generate graph visualizations
scripts/visualize.sh --path "/path/to/docs" --format interactive
# Create relationship matrices
scripts/relationship-matrix.sh --path "/path/to/docs" --output svg
# Build hierarchical views
scripts/hierarchy-view.sh --path "/path/to/docs" --depth 3
# Export for external tools
scripts/export-graph.sh --path "/path/to/docs" --format cytoscape
Complete workflow for transforming document collections into knowledge graphs
Discovery Phase
scripts/discover-structure.sh --path "/path/to/docs"
Relationship Building
scripts/build-relationships.sh --path "/path/to/docs" --strategy comprehensive
Graph Creation
scripts/create-graph.sh --path "/path/to/docs" --config auto-generated
Optimization
scripts/optimize-graph.sh --path "/path/to/docs" --focus navigation
Automated workflows for keeping graphs current and useful
# Daily maintenance (can be automated)
scripts/daily-maintenance.sh --path "/path/to/docs"
# Weekly analysis updates
scripts/weekly-analysis.sh --path "/path/to/docs"
# Monthly optimization
scripts/monthly-optimization.sh --path "/path/to/docs"
Logseq configuration optimization for different use cases
Create optimized configs via:
# Strategic analysis configuration
scripts/config-strategic.sh --output "/path/to/docs/logseq/config.edn"
# Research project configuration
scripts/config-research.sh --output "/path/to/docs/logseq/config.edn"
# General knowledge management configuration
scripts/config-general.sh --output "/path/to/docs/logseq/config.edn"
Configuration Features
Reusable templates for different document and project types
Templates available:
strategic - For strategic analysis and planning documentsresearch - For research projects and literature reviewsproject - For project management and trackingpersonal - For personal knowledge managementtechnical - For technical documentation and code analysisAccess via:
scripts/apply-template.sh --template strategic --path "/path/to/docs"
Structured approach to maintaining strategic memory and context
# Create memory indexes for Claude context
scripts/create-memory-index.sh --path "/strategic/docs" --format claude
# Generate relationship summaries
scripts/summarize-relationships.sh --path "/strategic/docs" --depth 2
# Build context maps for complex projects
scripts/build-context.sh --path "/strategic/docs" --focus recent
Tools for supporting Claude's analysis and decision-making
# Generate analysis dashboards
scripts/analysis-dashboard.sh --path "/project/docs" --metrics full
# Create decision support indexes
scripts/decision-support.sh --path "/project/docs" --format structured
# Build knowledge synthesis views
scripts/synthesis-view.sh --path "/project/docs" --strategy comprehensive
Principles for creating effective knowledge graphs
Structuring documents for optimal graph creation
Keeping graphs responsive and useful
Installation Problems
Graph Performance
Relationship Quality
See references/troubleshooting.md for detailed solutions and examples/ directory for working implementations.
Complete Documentation
references/api-reference.md - Complete script documentationreferences/configuration-guide.md - Detailed configuration optionsreferences/graph-theory.md - Knowledge graph principles and best practicesreferences/integration-patterns.md - Claude integration workflowsWorking Examples
examples/strategic-memory.md - Complete strategic memory setupexamples/research-project.md - Research project knowledge graphexamples/technical-docs.md - Technical documentation analysisexamples/maintenance-workflows.md - Ongoing maintenance examplesAll scripts include detailed help via --help flag and are designed for both interactive and automated use.
Located in ~/.claude/skills/logseq/scripts/:
install.sh - Install and configure Logseqinit-graph.sh - Initialize new knowledge graphsanalyze-relationships.sh - Comprehensive relationship analysiscross-reference.sh - Build cross-references between documentsreindex.sh - Rebuild graph indexes and relationshipssetup-graph.sh - Complete graph setup workflowvalidate-graph.sh - Check graph integrity and qualityoptimize.sh - Performance optimization and cleanupexport-graph.sh - Export for external tools and analysisvisualize.sh - Generate visual representationssetup-strategic.sh - Strategic memory configurationtrack-iterations.sh - Timeline and iteration analysisconcept-map.sh - Advanced concept relationship mappingcreate-dashboard.sh - Generate analysis dashboardsdaily-maintenance.sh - Automated maintenance workflowsmerge-graphs.sh - Merge multiple graphs into unified mother nodessetup-distributed.sh - Configure distributed graph architecturessync-graphs.sh - Synchronize between mother node and satellite graphsverify-integrity.sh - Cryptographic verification of merged contentrestore-from-mother.sh - Emergency recovery from mother node backupsEach script provides comprehensive help and examples via the --help option.37:["$","$L40",null,{"content":"$41","frontMatter":{"name":"logseq","description":"This skill should be used when the user wants to "use Logseq", "create knowledge graph", "analyze relationships", "set up graph database", "manage notes with Logseq", "build knowledge management system", or needs to integrate structured note-taking and graph visualization.","version":"1.0.0","allowed-tools":"Read, Write, Edit, Bash, Glob, Grep"}}]