# Ni formatter

> Ni formatter is an open-source agent skill for writing style. Adds layout cues to a finished WeChat article without changing its text. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ttttstc/ni-skill/tree/main/skills/ni-formatter
- **Repository:** https://github.com/ttttstc/ni-skill
- **GitHub stars:** 10
- **License:** MIT
- **Skill name:** ni-formatter
- **Collection:** https://github.com/ttttstc/ni-skill
- **Categories:** [writing style](https://ai-powered.com/categories/writing-style)
- **Listing updated:** 2026-12-04

## About

A Chinese-language skill for formatting long-form WeChat Official Account articles after they are written. It reads an existing markdown article and inserts HTML comment markers that mark where layout modules such as sections, callouts, quotes, step lists and a single core-verdict line should go, leaving the article wording untouched. The skill caps the total number of modules at five and requires exactly one verdict anchored to the article's central argument, and it removes markers to confirm the text still reads cleanly.

The skill is meant to run after drafting and before a separate rendering step that turns these markers into WeChat-compatible HTML. It includes decision rules for choosing modules by article type and reference files that spell out each module's conversion rules and examples. It falls back to asking the user when the core argument or article type is unclear, and it reports which modules were skipped and why.

The input is a markdown article, either as a file path or pasted text, plus a one-sentence core argument. Output is a formatted markdown file with the markers in place. The instructions are written in Chinese and suit articles on AI, engineering management, DevOps and architecture.

## When your agent uses it

> 泥巴猪的公众号排版 skill。文章写完之后，给它「穿衣」——注入排版意图，让视觉效果匹配内容。当用户说「帮我排版」「这篇文章排一下」「加排版」「穿衣服」「文章写好了排个版」「公众号排版」时触发。也适用于用户给一篇 markdown 文章、说「弄得好看点」「该加点格式了」的场景。覆盖 AI / 工程化管理 / DevOps / 架构 四个领域的公众号长文。不适用于还没写完的文章（先去 ni-writer）、短内容、纯文本无需排版的场景。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ttttstc/ni-skill/tree/HEAD/skills/ni-formatter)
- [License: MIT](https://github.com/ttttstc/ni-skill/tree/HEAD/skills/ni-formatter)

## Features

- **Layout module insertion:** Places section, callout, quote, steps and verdict markers around existing article text.
- **Module count limits:** Enforces a maximum of five modules and exactly one verdict per article.
- **Article type matching:** Chooses modules according to whether the piece is technical, discursive, or essay-style.
- **Text preservation check:** Confirms the article still reads fully after all markers are stripped.
- **Fallback reporting:** Tells the user which modules were left out and the reason for each.

## Good for

- Format my finished WeChat article about DevOps practices
- Add layout touches to this markdown essay so it looks better
- Mark the core verdict sentence in my AI architecture post
- Add a warning callout to the pitfalls section of my article

## Install

### Claude Code

This skill ships in the `ni-skill` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ttttstc/ni-skill
/plugin install ni-skill@ni-skill
```

Or copy only this skill to `~/.claude/skills/ni-formatter`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ni-formatter &&
cp -R "$tmp/skills/ni-formatter" ~/.claude/skills/ni-formatter &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ni-formatter` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ni-formatter` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ni-formatter &&
cp -R "$tmp/skills/ni-formatter" ~/.agents/skills/ni-formatter &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ni-formatter` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ni-formatter` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ni-formatter &&
cp -R "$tmp/skills/ni-formatter" ~/.cursor/skills/ni-formatter &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ni-formatter` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ttttstc/ni-skill.git --path skills/ni-formatter
```

Or copy the folder to `~/.gemini/skills/ni-formatter` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ni-formatter`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ttttstc/ni-skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ni-formatter &&
cp -R "$tmp/skills/ni-formatter" ~/.copilot/skills/ni-formatter &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ni-formatter` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ttttstc/ni-skill.git
```

Then copy `ni-skill/skills/ni-formatter` into your agent's skills folder as `ni-formatter`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What input does the skill need?

It needs a markdown article, either as a file path or pasted text, and the article's core argument in one sentence, which it uses to locate the verdict module.

### Does Ni formatter change the article wording?

No. The skill only wraps existing text in HTML comment markers and does not rewrite any sentences.

### When should Ni formatter not be used?

The skill says not to use it for unfinished drafts, short content, or plain text that needs no layout. Unfinished drafts should go to the ni-writer skill first.

### Does Ni formatter run scripts?

The skill folder contains no scripts; it works through instructions and reference files.

### How do I install Ni formatter in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ni-formatter to use it in all your projects, or to .claude/skills/ni-formatter in one project. Or install the ni-skill plugin, which includes it: /plugin marketplace add ttttstc/ni-skill, then /plugin install ni-skill@ni-skill.

### Which AI agents can use Ni formatter?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Ni formatter?

The closest alternatives to Ni formatter are Ni inspect, Ni article image gen, Wechat post publisher, Ni article workflow and Soia pkm translate article zh.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ni inspect](https://ai-powered.com/skills/ni-inspect): Ni inspect is an open-source agent skill for writing style.
- [Ni article image gen](https://ai-powered.com/skills/ni-article-image-gen): Ni article image gen is an open-source agent skill for writing style.
- [Wechat post publisher](https://ai-powered.com/skills/wechat-post-publisher): Wechat post publisher is an open-source agent skill for writing style.
- [Ni article workflow](https://ai-powered.com/skills/ni-article-workflow): Ni article workflow is an open-source agent skill for writing style.
- [Soia pkm translate article zh](https://ai-powered.com/skills/soia-pkm-translate-article-zh): Soia pkm translate article zh is an open-source agent skill for writing style.
- [Article writing](https://ai-powered.com/skills/article-writing): Article writing is an open-source agent skill for writing style.
- [Article writing](https://ai-powered.com/skills/article-writing-fmarzochi): Article writing is an open-source agent skill for writing style.
- [Persuasive technical writing](https://ai-powered.com/skills/persuasive-technical-writing): Persuasive technical writing is an open-source agent skill for writing style.

---
Source: https://ai-powered.com/skills/ni-formatter
