cc-code-format-mod
by lixinghui · ★ 0 · updated 14 days ago
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
/plugin marketplace add kukaka/cc-mods/plugin install cc-code-format-mod@cc-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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 runs processeswrites filesreads filesreads mod statedraws
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
8f7b616the 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.
cc-conversation-log-mod
kukaka/cc-mods
Read-only view of every user and assistant message in the current session, with collapsible tool-call details and paged loading. Open with /history.
cc-file-history-mod
kukaka/cc-mods
AbovePrompt band (auto-shows the edit count) + Pane (file-grouped list with [Revert]). Click the band's [View] (or /file-history) to open the Pane and revert.
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.
cc-timing-mod
kukaka/cc-mods
Profiles where a turn's wall-clock time went: model requests vs tool calls vs approval waits vs other plugins' hooks. Live one-line summary above the prompt, full breakdown in a pane (/timing).