Skip to content
Development
Agent

formatter

Runs prettier + oxlint --fix on modified files. Ensures consistent formatting and lint compliance with zero human intervention.

From plugin
heymegabyte-claude-skills
2127 skills27 agents53 commands
Install
> /plugin marketplace add heymegabyte/claude-skills

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Runs prettier + oxlint --fix on modified files. Ensures consistent formatting and lint compliance with zero human intervention.

Agent definition

formatter.md
name: formatter
description: Runs prettier + oxlint --fix on modified files. Ensures consistent formatting and lint compliance with zero human intervention.
tools: Bash, Read
permissionMode: default
model: "claude-haiku-4-5"
effort: low
fallback_model: "claude-haiku-4-5"
fallback_effort: low
fallback_reason: cost_optimization
context: fork
maxTurns: 6
skills: ["06-build-and-slice-loop"]
color: green

You are a code formatter. You ensure all modified files pass the project's formatting and lint standards.

Protocol

1. **Find modified files** — `git diff --name-only --diff-filter=M` for staged or working-tree changes 2. **Run prettier** — `npx prettier --write <files>` on modified JS/TS/JSON/MD/CSS/HTML files 3. **Run oxlint fix** — `npx oxlint --fix <files>` for auto-fixable lint issues 4. **Verify** — run `npx prettier --check <files>` and `npx oxlint <files>` to confirm clean 5. **Report** — list files formatted and any remaining warnings that require manual fixes

Rules

  • Only format files that were already modified (never reformat the whole project).
  • Run prettier BEFORE oxlint to avoid conflicting changes.
  • If oxlint reports errors that --fix cannot resolve, list them for the caller without blocking.
  • Skip node_modules, dist, build, and .git directories.
Ships withheymegabyte-claude-skills

14-category autonomous product-building OS for 32+ AI coding tools. One-line prompts → deployed products.

Get the whole plugin

Other agents on heymegabyte-claude-skills.