markdown-formatter

markdown-formatter is a skill for Claude Code, Codex from ThreeFish-AI/negentropy. It costs 37 tokens per session (1,260 once invoked), scanned A, original, Apache-2.0.

A Markdown cleanup and formatting guide for correcting syntax, layout, headings, lists, links, images, tables, formulas, and translated content.

In plain words
What is it for?
It helps repair Markdown syntax, fix heading and list structure, check image paths, format tables and LaTeX formulas, improve translated documents, and review term consistency.
Why use it?
It helps make Markdown documents consistent and correctly displayed, while identifying formatting problems that still need attention.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/threefish-ai/negentropy/markdown-formatter
Any agent
npx skills add ThreeFish-AI/negentropy --skill markdown-formatter
Clone the repo
git clone --depth 1 https://github.com/ThreeFish-AI/negentropy

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for markdown-formatter

README.md
[![agentmods](https://agentmods.dev/badge/skills/threefish-ai/negentropy/markdown-formatter.svg)](https://agentmods.dev/skills/threefish-ai/negentropy/markdown-formatter)
Your own site
<a href="https://agentmods.dev/skills/threefish-ai/negentropy/markdown-formatter"><img src="https://agentmods.dev/badge/skills/threefish-ai/negentropy/markdown-formatter.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,260 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.01260
Opus 5 $0.00018 $0.00630
Sonnet 5 $0.00007 $0.00252
Haiku 4.5 $0.00004 $0.00126

Measured 5d ago against content hash 7edecd9b0a52, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

markdown-formatter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/markdown-formatter/SKILL.md · 213 lines

How it starts

The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Markdown Formatter

专门处理 Markdown 文档的格式化、布局优化和语法修正,特别支持翻译后文档的优化处理。

核心功能

1. 语法验证与修正

  • 检查并修正 Markdown 语法错误
  • 统一标题层级(避免跳级)
  • 修正列表格式(有序/无序)
  • 确保代码块语言标识正确

2. 图片处理

  • 验证图片引用路径的正确性
  • 使用 zai-mcp-server 分析图片内容
  • 生成合适的图片 alt 文本
  • 统一图片命名规范

3. 表格格式化

  • 确保表格对齐正确
  • 修正表格分隔符
  • 处理表格内容溢出
  • 添加表格标题和说明

4. 公式处理

  • 验证 LaTeX 公式语法
  • 确保行内/块级公式正确显示
  • 添加公式说明文字
  • 处理复杂公式的换行

Workflow

输入处理

  1. 接收原始 Markdown 内容
  2. 分析文档结构和格式问题
  3. 识别需要修正的内容类型

格式化步骤

  1. 标题结构

    • 检查标题层级连续性
    • 统一标题风格(是否加粗等)
    • 生成目录结构(如需要)
  2. 段落格式

    • 统一段落间距
    • 修正换行符使用
    • 处理多余空行
  3. 列表格式

    • 统一列表符号
    • 修正嵌套列表缩进
    • 处理列表项的延续
  4. 链接处理

    • 验证链接有效性
    • 统一链接格式
    • 处理相对路径
  5. 图片优化

    • 检查图片路径
    • 分析图片内容生成描述
    • 优化图片大小引用

输出生成

  1. 返回格式化后的 Markdown
  2. 提供修改日志
  3. 标记未解决的问题

使用场景

文档后处理

格式化这个 Markdown 文档,修正所有语法错误:document.md

图片优化

检查文档中的所有图片,确保路径正确并添加描述:article.md

表格修复

修复这个文档中的表格格式问题:report.md

综合格式化

全面格式化这个 Markdown 文档,确保所有元素都正确显示:guide.md

翻译后优化

优化这个翻译后的文档,修复格式和中英文混排问题:translated_doc.md

术语一致性检查

检查文档中的术语翻译是否一致:technical_doc.md

检查清单

结构检查

  • 标题层级是否连续
  • 章节划分是否合理
  • 目录是否完整(如有)

格式检查

  • Markdown 语法是否正确
  • 列表格式是否统一
  • 代码块是否正确标记

媒体检查

  • 图片路径是否有效
  • 图片描述是否准确
  • 公式显示是否正确

链接检查

  • 内部链接是否有效
  • 外部链接格式是否规范
  • 锚点是否正确

特殊处理

技术文档

  • 保留代码示例的原始格式
  • 确保技术术语的一致性
  • 维护 API 文档的特殊格式

学术文档

  • 保持引用格式的一致性
  • 确保公式的学术规范
  • 处理脚注和参考文献

多语言文档

  • 标记不同语言部分
  • 统一混合语言的格式
  • 处理特殊字符和编码

翻译后文档处理

  • 中英文混排优化:调整中英文之间的空格
  • 术语一致性验证:检查专业术语翻译的一致性
  • 格式适配:确保中文排版符合规范
  • 链接本地化:检查并修复翻译后的链接引用
  • 图片描述本地化:将图片 alt 文本翻译为中文
  • 表格内容调整:优化中文在表格中的显示

批次文档合并

  • 处理批次间的衔接
  • 统一格式风格
  • 合并重复的标题
  • 维护文档连续性

输出格式

返回结构化结果:

{
  "formatted_content": "格式化后的 Markdown 内容",
  "changes": [
    {
      "type": "标题修正",
      "description": "修正了第 3 级标题的层级"
    }
  ],
  "issues": [
    {
      "type": "图片路径",
      "description": "图片 images/fig1.png 不存在",
      "suggestion": "请检查图片路径或更新引用"
    }
  ],
  "statistics": {
    "total_changes": 15,
    "critical_issues": 2,
    "warnings": 3
  }
}

Read the full file on GitHub · 213 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 213 lines · 37 tokens per session scan A 7edecd9b0a52

Subscribe to this mod's changes

markdown-formatter is a skill published in the GitHub repository ThreeFish-AI/negentropy (10 stars, last pushed 5d ago), licensed Apache-2.0. It adds 37 tokens to every session and 1,260 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

HKUDS/DeepCode · 61 tokens

security-ownership-map

Analyze git repositories to build a security ownership topology (people-to-file), compute bus factor and sensitive-code ownership, and export CSV/JSON for graph databases and visualization. Trigger only when the user explicitly wants a security-oriented ownership or bus-factor analysis grounded in git history (for…

HKUDS/DeepCode · 99 tokens

graft

This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.

trailhq/Graft · 56 tokens

braindb-agent

Persistent memory across sessions via the BrainDB agent. Use at conversation start and whenever you need to recall what you know about the user or save new information to long-term memory.

dimknaf/braindb · 40 tokens

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.

HKUDS/DeepCode · 46 tokens

cc10x-router

THE ONLY ENTRY POINT FOR CC10X. Activate this skill for build, debug, review, and plan requests. Use when the user asks to implement, fix, review, plan, test, refactor, or continue code work. Trigger keywords: build, implement, create, write, add, review, audit, debug, fix, error, bug, broken, plan, design, architect…

romiluz13/cc10x · 125 tokens