Skip to content
Skill

Ni formatter

Adds layout cues to a finished WeChat article without changing its text

Ni formatter is an open-source agent skill for writing style. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
10
Last commit
License
MIT
Listing updated

Similar skills

About Ni formatter

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)、短内容、纯文本无需排版的场景。

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (13 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Ni formatter 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.

More from ttttstc/ni-skill

  1. Deepens a prompt or task to expert standard without expanding its scope

    • Open source
    • 10 GitHub stars
    • Productivity
  2. Turns a subject into reviewed multi-view images and a textured GLB 3D model

    • Open source
    • 10 GitHub stars
    • Design and media
  3. Writes a single cover-image prompt for a reviewed WeChat article, without generating

    • Open source
    • 10 GitHub stars
    • Writing style
  4. Runs a staged workflow that takes a WeChat AI tech article from topic to a reviewed draft

    • Open source
    • 10 GitHub stars
    • Writing style
  5. Finds and downloads ebooks by title, choosing text or PDF formats with integrity checks

    • Open source
    • 10 GitHub stars
    • Files and documents