Karthik Table Style 标志

Karthik Table Style

社区
skthewimp
karthik-table-style

按 Karthik 的风格将表格排版为可视化内容:突出重点、对齐小数位、控制精度和列宽、减少表格线、使用等宽数字,并精心设置条件格式。

概览

发布者skthewimp
代码仓库karthik-data-visualization-skill
技能名称karthik-table-style
星标数
49
复刻数
5
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 skthewimp 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Karthik Table Style AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-table-style/claude
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skthewimp/karthik-data-visualization-skill.git /tmp/karthik-data-visualization-skill
mkdir -p .claude/skills
cp -r /tmp/karthik-data-visualization-skill/karthik-table-style/claude .claude/skills/karthik-table-style
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Karthik Table Style,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Karthik Table Style。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Karthik Table Style 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Karthik Table Style

Use this skill when the chosen form is a table, or when reviewing a table's formatting. A well-formatted table is a visualization: alignment, precision, and restraint do the same perceptual work that position and colour do in a chart.

This skill owns table craft only. Whether the data should be a table or a chart is dataviz-selector's decision; the two-line note beside the table is chart-explainer; diagnosing an existing table is dataviz-critique. Apply the workflow below before finalizing a table or table-generating code. Private local references may add nuance, but this public skill is self-contained.

Workflow

Semantic preflight: before formatting, identify each column's measure, unit, denominator, and the smallest difference that is meaningful to the reader. A table that is numerically faithful but hard to scan, or that shows more precision than the data supports, is not finished.

  1. State the reader's task: look up one value, compare down a column, compare across a row, or scan for outliers. The task decides ordering, emphasis, and any conditional formatting.
  2. Order rows and columns for that task (see Craft principles).
  3. Format from data outward: values and their alignment first, emphasis second, rules and shading last.
  4. Apply the eraser test: remove any ink that does not carry data or necessary structure - full gridlines, vertical rules, repeated units, redundant precision, decorative shading.
  5. Reserve the whole table by measurement before you render - see the numbered steps below. Geometry is settled up front, not discovered by clipping.
  6. Render and inspect the actual table as the safety net, not just the code: the geometry was reserved at step 5; this pass confirms columns align, decimals line up, nothing wraps into a collision, and the smallest font meets the supplied delivery minimum at displayed size.

Reserve the frame before you render

Table geometry is measured, never eyeballed. A clipped title or a header band overlapping the rows is a reservation skipped on the first pass, not a revision owed later. Before you render, in order:

  1. Size columns from their content. Measure each column's longest formatted value and its complete header with the renderer's own text metrics, and give each column that width plus modest padding. Wrap a long header rather than widening the whole column for it.
  2. Reserve the frame like the columns. The title, subtitle, and footer/notes are wrapped to the table width and given their own bands; the header band is its own layer that must not overlap the subtitle above it or the first data row below it.
  3. A block wider than the canvas does not fit - resolve it by narrowing, wrapping, or splitting across pages, and never ship it clipped at the edge. Do not drop rows or columns to force a fit.
  4. Draw with the widths and heights you measured, not by re-normalising rows afterwards - the failure mode where a hand-rolled table ignores measured heights and clips the footer.

Craft principles

  • Information before whitespace. Default to a compact, readable table with small outer margins and modest cell padding. Space earns its place by separating columns, grouping rows, or preventing collisions. Avoid oversized margins, spacious dashboard-card styling, and tall rows around small text. Keep type readable and tighten the surrounding space; never shrink type to create air.

  • Order for the reader's task. Sort rows and columns by the value being compared, not alphabetically or by source order, unless lookup by name is the task. Time runs across columns; rankings run top to bottom. Ordering is more load-bearing than any formatting: a badly ordered table cannot be rescued by alignment.

  • Make the header row distinct. The header must read as a different layer from the body - weight plus a single rule beneath it, not merely alignment. This is the most common table failure; do not rely on position alone.

  • Emphasis is scarce ink. Bold or shade only the cells that carry the claim

    • a total, a winner, an outlier, the row the reader came for. Emphasising everything emphasises nothing. Keep one focal element as figure against a neutral ground.
  • Alignment. Right-align numbers and align them on the decimal point; left-align text; align each header with its column body. Equalise the decimal count down a column so digit-length itself reads as magnitude - the number's size becomes a small bar chart.

  • Precision keyed to variance. Full rule and computation: dataviz-precision (the recommend_precision MCP tool), which derives one uniform rounding place from the column's spread. Inside the construct pipeline each column's format is resolved upstream and handed to you - apply and align to it, don't re-derive. In brief: significant digits not decimal places; round every value in a column to the same place; coarse-round the noise off large widely-spread values (12,483 → 12,500 or 12,000); never show or manufacture precision the data can't support.

  • Column widths sized to content. Give each column the width its content needs; wrap long text columns deliberately and never let one column's wrap distort the grid or push number columns out of scanning range. Number columns stay narrow and dense.

  • Rules and whitespace. No full gridlines, no vertical rules. Use a few horizontal rules - header, group boundaries, total - and whitespace to group rows. Whitespace groups and separates; it is not filler.

  • Group related rows and set totals apart. Cluster rows that belong together with a little whitespace, keep the column structure identical across groups, and give a total or summary row a distinct weight or rule so it is not read as just another row.

  • Put the main comparison down a column. The eye compares down a column far more accurately than across a row, so orient the table so the comparison the reader came for runs vertically; prefer more rows than columns (portrait).

  • Tabular (lining) figures. Use mono-width digits so columns align vertically; pair with a clean text font. Proportional figures break decimal alignment.

  • Units and headers. Put the unit once - in the header or a note - not in every cell. Keep headers short and their meaning unmistakable.

Treatment and layout

A table of comparable numbers is formatted by default. Numbers alone make the reader do the comparison in their head; a magnitude channel in the cell (a bar or a shade) lets the eye see the pattern while the number stays there for lookup. Plain text is the exception, justified only when the task is looking up a single value and nothing in the table is compared.

Decide the treatment before sizing, for every block of numbers:

  1. Which cells compare with which? That is the scale's scope.
    • Column - each column is its own metric (revenue next to headcount next to margin). Each column gets its own scale.
    • Row - each row is one series whose cells compare with each other (a metric across periods, a measure across segments, one entity's values across comparable categories). Each row gets its own scale.
    • Table - every cell shares one honest scale (the same unit and meaning everywhere, such as a matrix of scores on one 0-100 scale). One scale.
  2. Which magnitude channel?
    • Data bars when the table has room: they read as length, the most accurate cue. The bar trails its number, so the value is read first with its decimal alignment intact.
    • Shading when the table is dense (many columns, a matrix) or space is tight: a heat fill costs no width. Sequential for a one-sided magnitude, diverging around a meaningful midpoint (zero, an average, a target) for signed or above/below values.
    • Column count does not decide this; room and density do.
  3. Which direction is good? Reverse the scale where lower wins (cost, latency, error, pace), so the strongest shade marks the best cell rather than the biggest number.
  4. Is there an ordered sequence? When a row's values run over time or distance, add a sparkline column at the end so the shape is visible next to the exact values. Each sparkline shows its own row's shape unless the rows share a unit and the comparison between their levels matters. Unrelated metrics are not a sequence.
  5. Is there a focal entity? Emphasise the row the claim is about (bold plus a tint), and preserve ties.
  6. Would a summary help the reading? A row average or total column (such as each entity's mean across the columns) often answers the question the matrix raises. Compute it, add it as a column, and give it the same treatment.

A table may combine treatments: row-wise shading on the value block, a sparkline column, and a focal row.

Compute each treatment's scale from the cells that compare (a column, a row, or the whole value block, depending on the reading task), reverse it for lower-is-better columns, and keep every number legible on its fill - pick dark or light ink per cell by contrast. Leave room in the column for any inline bar or sparkline, and right-align numbers. Use recommend_precision for display strings. For shading, use an ordered sequential or diverging scale (dataviz-color covers how to pick one); take brand pole colours if there is a brand, and never run the categorical colour picker on shades. Comparable numeric columns left untreated need a reason - usually that the task is single-value lookup.

Supply each complete header, including units and explanatory sublabels; use explicit newlines for semantic breaks. Do not equalise column widths or stretch cells to fill the delivery canvas. Keep padding compact and preserve space needed for graphics. The tallest complete wrapped header determines the header band; compact body rows are a separate layer. When a table splits across pages, repeat identifiers and headers, never silently drop rows or columns, and check that the split still supports the reading task.

Set the intended display width and minimum displayed text pixels for screen outputs. DPI alone says nothing about readability after an image is fitted into a container. For print, use the intended physical size and point-size minimums. Never fit by shrinking below the supplied minimum. Widen within delivery limits, wrap, split/paginate, or revise supported wording/form. Reduce scope only when authorized.

Rendering

  • Delivered HTML or interactive tables: author with the R gt package; it carries alignment, precision, grouping, and conditional formatting cleanly. Markdown or hand-built HTML is an acceptable fallback for non-R contexts.
  • A static image: build the table as a gtable (gt::as_gtable or gridExtra::tableGrob) and render it through ragg.
  • Look at each delivered page at its display width against the typography floor. Resolve text overflowing its cell by changing cell geometry or wrapping, not by moving table labels off their cells. Read decimal alignment, contrast against cell fills, and treatment effectiveness from the actual render.

Guardrails

  • A table is not a dumping ground for data a chart could show as a shape. If the message is one comparison the eye should grab at once (a ranking of a handful of values, a single trend), it is a chart - return to dataviz-selector. A matrix of many entities against several metrics or periods, where the reader wants both the exact values and the pattern, is a formatted table.
  • Never widen precision to fill space or narrow it to hide spread; precision is a data decision, not a layout one.
  • One table, one main task. Split a table that serves two unrelated comparisons.
  • A shaded or barred table is not finished until the render shows the treatment.

常见问题

Karthik Table Style AI 技能有什么作用?

按 Karthik 的风格将表格排版为可视化内容:突出重点、对齐小数位、控制精度和列宽、减少表格线、使用等宽数字,并精心设置条件格式。

为什么在 TypingMind 中使用 Karthik Table Style?

因为您只需安装一次,就能搭配任何模型使用。Karthik Table Style 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Karthik Table Style?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-table-style/claude。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Karthik Table Style?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Karthik Table Style 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Karthik Table Style 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Karthik Table Style AI 技能免费吗?

是的。skthewimp 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇