Claude Formatter — Code Quality skill for Claude Code
A CLI tool to format Claude's streaming JSON output for better readability.
How to install Claude Formatter
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open claude-did-this/claude-formatter and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Formatter does
A CLI tool to format Claude's streaming JSON output for better readability.
Alternatives in Code Quality
- Import Drawio — Redraw a draw.io file as an editorial diagram at a chosen format, size, and detail level 27.2k ★
- Job Stories — Create job stories with acceptance criteria in JTBD format 7.8k ★
- Video Script: Claude SEO V1.7.2 — What's New — Duration: ~5 minutes Tone: Natural, conversational, like talking to a friend who knows Claude Code Format: Scr 5k ★
README
claude-formatter
A CLI tool to format Claude's streaming JSON output for better readability.
Installation
npm install -g claude-formatter
Usage
Pipe Claude's streaming JSON output to `claude-formatter`:
claude --continue -p "Continue iterating..." --output-format stream-json | claude-formatter
Features
- Formats streaming JSON output from Claude
- Converts escaped sequences (
\n,\t) to actual characters - Pretty prints different message types with emojis
- Color-codes output for better readability
- Handles tool calls and responses
- Shows token usage statistics
Examples
Basic usage
# Pipe Claude output directly
claude --output-format stream-json "Your prompt here" | claude-formatter
# Use with Claude's continue feature
claude --continue -p "Continue iterating..." --output-format stream-json | claude-formatter
# Save formatted output to a file
claude --output-format stream-json "Your prompt" | claude-formatter > output.log
Message Types
The formatter recognizes and specially formats these message types:
- 🤖 Assistant messages - Shows model responses with content blocks
- 👤 User messages - Displays user inputs
- ⚙️ System messages - System information and available tools
- 🛠️ Tool use - When Claude uses a tool
- 🔧 Tool results - Results from tool execution
- 📝 Text content - Regular text content
- ❌ Errors - JSON parsing errors
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
ISC
Related Skills
Pbi Format
Reformat DAX expressions for maximum readability using the DAX Formatter API (daxformatter.com). Handles long
Format
Run the black formatter on the entire codebase:
Wechat Article Formatter Skill
Claude Skill that format Wechat articles for 微信公众号 (微信公众号文章排版,支持自定义样式)
Prompt Integrity Validator
Lint Your Prompts, Ship Better Agents – Prompt Refiner 2026 Rule Engine
Output
Set the response output format for this session (tldr, table, verbose, bullets, narrative, json, raw). Default
Exec Brief
Request a single-domain executive brief — pick the exec and the question; output follows the Executive Memo Fo
Related Agents
Code Enhancement Specialist
Use this agent when you need systematic improvements to existing code, including refactoring for better perfor
08 Refactorer
Code improvement specialist that restructures code for better maintainability, readability, and performance wi
Moodle XML Formatter
This agent converts content into SCORM 1.2 format, the most reliable and universally compatible e-learning sta