Sync Claude Code sessions to qmd index
Syncs Claude Code sessions to qmd index for fork detection.
/plugin marketplace add SomtoUgeh/somto-dev-toolkit/plugin install somto-dev-toolkit@somto-dev-toolkit[--full]Update the qmd index with latest Claude Code sessions for fork detection.
command -v qmd &>/dev/null || echo "QMD_MISSING"
command -v jq &>/dev/null || echo "JQ_MISSING"
If missing, provide installation instructions:
bun install -g https://github.com/tobi/qmdbrew install jqCheck if this is first-time setup or update:
qmd status 2>/dev/null | grep -q "claude-sessions" && echo "UPDATE" || echo "SETUP"
For first-time setup:
"${CLAUDE_PLUGIN_ROOT}/scripts/setup-qmd-sessions.sh"
For updates (default - incremental):
"${CLAUDE_PLUGIN_ROOT}/scripts/sync-sessions-to-qmd.sh"
qmd embed
For full rebuild (if --full argument provided):
"${CLAUDE_PLUGIN_ROOT}/scripts/sync-sessions-to-qmd.sh" --full
qmd embed
After sync completes, show:
qmd status
And count indexed sessions:
find ~/.claude/qmd-sessions -name "*.md" | wc -l
<format>
Example output:
✓ Session sync complete
Sessions indexed: 127
Collection: claude-sessions
Ready to use /fork-detect
</format>