cc-code-format-mod

by lixinghui · ★ 0 · updated yesterday

ToastsCommandsvalidates

0

Rewrites every fenced code block in an LLM response so it conforms to the language's standard style (Prettier for the web stack, black for Python, gofmt / rustfmt / shfmt where installed).

install cc-code-format-mod

Install

/plugin marketplace add kukaka/cc-mods
/plugin install cc-code-format-mod@cc-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runsession.append
API calls
$.command.register$.fs.read$.fs.write$.process.run$.state.get$.state.set$.ui.toast
Reach
level 2 of 3 other: $.state.getother: $.state.setruns processeswrites filesreads filesdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/kukaka/cc-mods
Path in repo
cc-code-format-mod
Source commit
25cc665 the exact code the scan read
Author
lixinghui @kukaka
License
Apache-2.0
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from kukaka/cc-mods

cc-context-mod

kukaka/cc-mods

Live context window forecast and MiniMax M Plan / Token Plan balance, drawn above the prompt.

★ 0Bands

cc-file-history-mod

kukaka/cc-mods

AbovePrompt band + Pane that together capture every file Claude has edited this session and let you revert any one of them. Toggle the band with /file-history; open the Pane from the band's [View] button.

★ 0PanesGuardsCommands

cc-notify-mod

kukaka/cc-mods

Forward Claude Code task completion, repeated Bash failures, and AskUserQuestion prompts to the macOS Notification Center so you hear about them when you are away from the terminal.

★ 0ReskinsGuards