
Tuzi Format Markdown
This formats markdown files by adding frontmatter, generating titles from content, and applying typographic fixes for CJK text. It detects whether your file is plain text or already markdown and asks how aggressive you want to be with formatting (optimize everything, keep structure but fix typography, or just run spacing fixes in place). The script handles the fiddly stuff like adding spaces between Chinese and English text, fixing emphasis punctuation with remark-cjk-friendly, and optionally converting straight quotes to fullwidth. It saves to a new file with `-formatted` appended unless you choose the in-place option. You can set preferences in EXTEND.md at project or user level. Useful when you have drafts that need consistent structure or CJK content that looks awkward without proper spacing.
- skills.sh installs
- 165
- GitHub stars
- 39
- last updated
- Aug 21, 2026
Install
$ npx -y skills add tuziapi/tuzi-skills --skill tuzi-format-markdown --agent claude-codeInstalls into .claude/skills of the current project.
Files
Markdown Formatter
Transforms plain text or markdown files into well-structured markdown with proper frontmatter, formatting, and typography.
Script Directory
Scripts in scripts/ subdirectory. Replace ${SKILL_DIR} with this SKILL.md's directory path.
| Script | Purpose |
|---|---|
scripts/main.ts | Main entry point with CLI options (uses remark-cjk-friendly for CJK emphasis) |
scripts/quotes.ts | Replace ASCII quotes with fullwidth quotes |
scripts/autocorrect.ts | Add CJK/English spacing via autocorrect |
Preferences (EXTEND.md)
Use Bash to check EXTEND.md existence (priority order):
# Check project-level first
test -f .tuzi-skills/tuzi-format-markdown/EXTEND.md && echo "project"
# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.tuzi-skills/tuzi-format-markdown/EXTEND.md" && echo "user"
Sponsors
Details
- Repository
- github.com/tuziapi/tuzi-skills
- Category
- Code Review & Quality
- First seen
- Jun 3, 2026
More from tuziapi/tuzi-skills
All 20- Tuzi Markdown To Html164
- Tuzi Url To Markdown164
- Tuzi Cover Image160
- Tuzi Post To X159
- Tuzi Slide Deck159
- Tuzi Copy Polish158
- Tuzi Danger Gemini Web156
- Tuzi Danger X To Markdown156
- Release Skills151
- Tuzi Update Claude Md150
- Tuzi Short Video329
- Tuzi Image Gen208
- Tuzi Comic191
- Tuzi Video Gen189
- Tuzi Infographic178
- Tuzi Post To Wechat174
- Tuzi Compress Image172
- Tuzi Xhs Images170
- Tuzi Article Illustrator165