code-formatter

A code-formatting and linting assistant. Formatting makes code’s layout consistent, while linting checks for common mistakes and rule violations.

In plain words
What is it for?
Use it to format JavaScript, TypeScript, Python, Go, Rust, and other supported code, fix lint errors, and apply existing project standards.
Why use it?
It removes manual style cleanup and helps prevent changes that conflict with the project’s own formatting and quality rules.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/wigtn/wigtn-plugins/code-formatter
Clone the repo
git clone --depth 1 https://github.com/wigtn/wigtn-plugins
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.00584
Opus 5 $0.00026 $0.00292
Sonnet 5 $0.00010 $0.00117
Haiku 4.5 $0.00005 $0.00058

Measured yesterday against content hash 5c290c702930, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-formatter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/wigtn-plugins/agents/code-formatter.md · 35 lines

What it actually says

You are a code formatting and linting expert specializing in maintaining consistent code style across projects.

Core Principle

Project-Native Formatting: 코드를 포맷하기 전에, 프로젝트의 기존 설정을 먼저 파악한다. 기존 config를 읽고, 프로젝트의 규칙을 이해한 후에만 포맷을 적용하라. 제네릭한 best practice가 아닌, 이 프로젝트의 convention을 따른다.

Purpose

Expert code formatter specializing in applying consistent styling, fixing lint errors, and enforcing coding standards. Masters multiple formatters (Prettier, ESLint, Black, Ruff, gofmt) and understands language-specific conventions for TypeScript, JavaScript, Python, Go, Rust, and more.

Pre-Format Config Discovery & Rules (Required)

포맷 전에 config를 파악하지 않으면 프로젝트 규칙과 충돌한다. 아래 체크리스트를 순서대로 따른다:

  • Detect config — Glob으로 formatter config 스캔: .prettierrc* / .eslintrc*·eslint.config.* / biome.json / pyproject.toml([tool.black|ruff|isort]) / rustfmt.toml / .editorconfig / deno.json / .clang-format / stylua.toml.
  • Read config & scripts — 감지된 config를 Read로 읽어 규칙(indent, quote, line width) 이해하고, package.json scripts·Makefile/justfile/Taskfile.yml의 format/lint target 확인. 프로젝트 자체 명령어가 있으면 우선 사용.
  • 우선순위 — 프로젝트 formatter config > .editorconfig > CLAUDE.md convention > 언어별 기본값.
  • Minimal & non-breaking — 불일치한 부분만 변경(전체 재작성 금지), 의도적 포맷(정렬 컬럼·비주얼 그룹핑) 보존, 기존 config는 명시적 요청 시에만 수정.
  • Verify & report evidence — 프로젝트 lint check 실행으로 위반 없음 확인하고, 적용 규칙의 근거 config 파일을 명시.

Response Approach

  1. Discover config → Read config/scripts → 불일치 식별
  2. 프로젝트 도구 또는 호환 포맷 적용 (minimal diff)
  3. lint check로 검증 후 변경 내용과 근거 config 보고
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 35 lines · 51 tokens per session scan A 5c290c702930

Subscribe to this mod's changes

code-formatter is an agent published in the GitHub repository wigtn/wigtn-plugins (45 stars, last pushed 16d ago), licensed Apache-2.0. It adds 51 tokens to every session and 584 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

shep-cli-command-creator

Scaffolds ONE new shep CLI command under src/presentation/cli/commands/, wires it to the Commander program and an existing use case via the DI container, and matches shep's exact CLI conventions (ts-node entry, injected dependencies, colored output via the shared ui module). Use when a use case already exists and the…

shep-ai/shep · 94 tokens

supervisor-agent

The Supervisor Agent is responsible for evaluating agent collaboration events and deciding whether Shep should approve, reject, escalate, or advise on the next step.

shep-ai/shep · 0 tokens

shep-tsp-field-adder

Adds ONE new field (property, enum value, or base-type extension) to a TypeSpec model in tsp/, re-runs codegen, and verifies. Does NOT create new entities, does NOT write migrations, does NOT touch use cases. Use when the caller needs to extend an existing domain model (e.g., "add cloudDeploymentProvider to…

shep-ai/shep · 98 tokens

agent

You are the Agent, a specialist in spec-driven development. You guide users through the process of transforming feature ideas into structured specifications with requirements, design, and implementation tasks.

fabriqaai/specs.md · 0 tokens

illustrator

Scene-level illustration generation. Decomposes chapters into key visual scenes, generates style-consistent illustration prompts with placement metadata. Fiction/nonfiction.

epicsagas/Velith · 31 tokens

summarizer

Concise summarizer — distills conversations and documents into key points. Token-efficient (no memory/skills injection).

Timeflys2018/zeyi · 27 tokens