flomo-memo-to-markdown
Original:🇺🇸 English
Translated
1 scripts
Convert flomo memos from local desktop auth/API into grouped Markdown files for AI/NotebookLM reading, plus human-readable Markdown tag statistics with tree totals. Use when a user asks to export flomo notes to Markdown, split memos by month/quarter/year, generate NotebookLM-friendly archives, or produce flomo tag counts/aggregation.
5installs
Added on
NPX Install
npx skill4agent add undertone0809/flomo-skills flomo-memo-to-markdownTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Flomo Memo To Markdown
Overview
Convert flomo memos into Markdown files grouped by time range and generate with both and per tag node.
tag-stats.mddirect_counttotal_countThis is a standalone export skill. It is not a CRUD helper and should not be used for interactive "find one memo and edit it" requests.
Default behavior is optimized for fast one-shot processing from the local flomo desktop login state: full date range, monthly split, filenames, and .
{{user}}_{{range}}asset-mode=placeholderPreconditions
- has been logged in on this Mac before
flomo.app - Local flomo storage exists under
~/Library/Containers/com.flomoapp.m/... - Network access to flomo API is available if using the local source
Quick Start
Set the script path from the current environment instead of hardcoding a user directory:
bash
SKILL_ROOT="${CODEX_HOME:-$HOME/.codex}/skills/flomo-memo-to-markdown"
SCRIPT="$SKILL_ROOT/scripts/flomo_to_nblm.py"Examples:
bash
python3 "$SCRIPT"
python3 "$SCRIPT" --preview-only
python3 "$SCRIPT" --split quarter --asset-mode copyDefault Agent Workflow
- Use the local flomo API source.
- If any local API read step fails, fail fast and return error immediately.
- Do not fall back to cached exports.
- Do not ask for exported HTML unless the user explicitly requests postprocessing an archive.
- Run with defaults unless the user specifies date range / split / naming / asset handling.
- Report output directory, generated Markdown file count, per-file memo/char counts, threshold warnings, and the path.
tag-stats.md
When To Ask Follow-Up Questions
Ask only when one of these materially changes execution:
- The user wants a custom date range
- The user wants a different split granularity
- The user wants a custom filename template
- The user wants copied attachments or explicitly wants to ignore attachments
- Local desktop auth is missing or broken
Output Behavior
- Default output is decompressed Markdown files
- Also writes in export mode
tag-stats.md - performs parsing, filtering, grouping, and tag stats only
--preview-only - is treated as a character count threshold
--word-limit
Local Source Semantics
- Default input is the local flomo desktop login state, not exported HTML
- The script reads the local desktop auth token from
~/Library/Containers/com.flomoapp.m/.../leveldb - Memo bodies come from flomo API HTML and are rendered to Markdown
content - Memo timestamps come from
created_at - Attachments come from memo
files - Tags are re-derived from rendered Markdown text using syntax
#tag
Attachment Modes
- (default): Append attachment path lines to memo Markdown; do not copy files
placeholder - : Ignore attachments entirely
ignore - : Download signed attachment URLs into
copyunder the output directory and rewrite Markdown referencesassets/
Tag Statistics Semantics
- Tags are extracted from memo plain text using syntax
#tag - Counting is deduped per memo
- : memos tagged with this exact tag
direct_count - :
total_countplus all descendant tagsdirect_count
Resources
scripts/
- : Main converter CLI for local flomo export to grouped Markdown
scripts/flomo_to_nblm.py
references/
- : HTML export DOM assumptions and attachment selectors
references/flomo-export-dom.md