LO

logseq-table-formatter

Standardizes the formatting of markdown tables within Logseq pages for improved text-based readability.

Install

mkdir -p .claude/skills/logseq-table-formatter && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10763" && unzip -o skill.zip -d .claude/skills/logseq-table-formatter && rm skill.zip

Installs to .claude/skills/logseq-table-formatter

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Format markdown tables inside Logseq Flavored Markdown (LFM) pages and journals: bullet-wrapped first row, continuation rows with aligned pipe columns, padded cells for readable plain text, and [[wikilinks]] for graph commands or pages when they exist. Use when adding or fixing tables in pages/*.md or journals/*.md, when the user asks for column alignment, or after editing comparison tables. Do not use to convert wide tables to bullets (skill logseq-convert-md-to-lfm) or for non-Logseq markdown.
500 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Format markdown tables
  • Align pipe columns
  • Pad cell text
  • Integrate wikilinks

How it works

It processes table rows to align pipes and pad cells, ensuring the table remains readable in both raw markdown and rendered Logseq views.

Inputs & outputs

You give it
Unformatted markdown table
You get back
Aligned, padded markdown table

When to use logseq-table-formatter

  • Format markdown tables
  • Fix column alignment
  • Add wikilinks to table cells

About this skill

Logseq table formatter

Use when a table lives inside an LFM bullet tree (pages/, journals/) and must render in Logseq and read cleanly in the raw file.

Default path

  1. Confirm the table should stay a table (not a bullet label/value list). If more than two columns and the content is not a compact comparison, consider bullets per skill logseq-convert-md-to-lfm.
  2. Build row data (header + separator + body). Prefer short cell text; put detail in child bullets under the table.
  3. Use wikilinks in cells when a page exists ([[mise/unuse]], not `mise unuse`). Run skill logseq-link-hygiene when unsure a page exists.
  4. Format with aligned columns:
    • First row: - | col1 | col2 | … | at the correct tab depth.
    • Following rows: same tab depth, two spaces instead of - , then | … | so every | shares the same column as row 1.
    • Pad cell text with spaces so pipes line up across all rows (verify in plain text).
  5. Prefer the formatter script for padding; hand-edit only small tables.

Script

From repo root:

python3 .rulesync/skills/logseq-table-formatter/scripts/format-table.py \
  --tabs 2 \
  --rows='Command|Primary effect|Cache' \
  --rows='----|----|----' \
  --rows='[[mise/unuse]]|remove config and binary|✓'
  • --tabs N — tab count before the table (default 2).
  • --rows='a|b|c' — one row per flag (use = so separator rows like ----|---- are not parsed as CLI flags). First row is emitted with - |, rest with aligned |.
  • Or pipe one row per line on stdin: printf '%s\n' 'H|H' '---|---' 'a|b' | python3 …/format-table.py --tabs 2

Trust script output for column widths; fix wikilinks and wording before running.

When to read references

Related

  • rule: logseq-core — bullets, tabs, no blank lines between blocks (advanced detail: skill logseq-lfm).
  • skill: logseq-convert-md-to-lfm — when not to keep a table.
  • skill: logseq-link-hygiene — resolve [[wikilinks]] before filing.

When not to use it

  • For non-Logseq markdown
  • When converting wide tables to bullets

Prerequisites

python3

Limitations

  • Requires manual wikilink resolution if unsure
  • Prefer script for large tables

How it compares

It specifically handles Logseq Flavored Markdown (LFM) bullet-wrapped structures, unlike generic table formatters.

Compared to similar skills

logseq-table-formatter side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
logseq-table-formatter (this skill)01moReviewBeginner
obsidian-bases114moReviewIntermediate
video-transcript-downloader42moReviewIntermediate
obsidian-clipper-template-creator36moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry