scopewalker-mcp: Agent for Claude Code

.claude/agents/lint-type-format-fixer.md

lint-type-format-fixer is an agent for Claude Code from timohaa/scopewalker-mcp. It costs 31 tokens per session (560 once invoked), scanned A, original, MIT.

An agent that runs code-quality checks for a TypeScript project, including linting, type checking, and Prettier formatting, then fixes reported problems.

In plain words
What is it for?
Use it after changing code and before committing to find and fix formatting issues, type errors, and lint warnings.
Why use it?
It removes manual cleanup work and helps ensure the code passes the project's checks before a commit.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is timohaa/scopewalker-mcp's own configuration. It tells Claude Code how to work on scopewalker-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scopewalker-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timohaa/scopewalker-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/timohaa/scopewalker-mcp/main/.claude/agents/lint-type-format-fixer.md
Clone the repo
git clone --depth 1 https://github.com/timohaa/scopewalker-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lint-type-format-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/lint-type-format-fixer.svg)](https://agentmods.dev/agents/timohaa/scopewalker-mcp/lint-type-format-fixer)
Your own site
<a href="https://agentmods.dev/agents/timohaa/scopewalker-mcp/lint-type-format-fixer"><img src="https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/lint-type-format-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 560 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00031 $0.00560
Opus 5 $0.00015 $0.00280
Sonnet 5 $0.00006 $0.00112
Haiku 4.5 $0.00003 $0.00056

Measured 4d ago against content hash 0d7382ee106c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

lint-type-format-fixer 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 4d ago.

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.

.claude/agents/lint-type-format-fixer.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lint Type Format Fixer Agent

Run the TypeScript lint, type, and formatting checks. Fix every reported problem and repeat the checks until they pass.

Workflow

1. Initial Assessment

Run all checks and capture output:

npm run lint 2>&1
npm run typecheck 2>&1
npx prettier --check src 2>&1

2. Categorize Issues

Group findings into:

  • Formatting: Prettier violations (fix first; changes least code)
  • Type errors: TypeScript strict mode violations
  • Lint errors: ESLint rule violations

3. Systematic Resolution

Fix in this order:

  1. Formatting: run npm run format, then verify
  2. Type errors: fix manually, guided by error messages
  3. Lint errors: run npm run lint:fix for auto-fixable, then fix remaining manually

4. Verification Loop

After fixing each category, re-run all checks:

npm run check   # check:versions + lint:fix + typecheck
npm run format  # prettier

Repeat until all three pass with zero errors.

A check:versions failure means manifest.json/server.json versions are out of sync with package.json. It is release metadata, not a lint or type error. Update the version fields it names rather than touching source.

Key Guidelines

  • Preserve functionality: never change code behavior to fix a lint error
  • No suppression comments (eslint-disable, @ts-ignore) unless unavoidable; explain why in a comment if used
  • Batch similar fixes: apply the same fix pattern consistently across all occurrences

Edge Cases

  • If a script doesn't exist, report this and check package.json for an alternative
  • If a fix would require significant refactoring, flag it for human review rather than making a breaking change
  • If a type error stems from a dependency missing types, suggest installing the matching @types/* package

Output Format

End with a report covering:

  1. Initial error/warning counts by category (formatting, type errors, lint errors)
  2. Files modified and the fixes made
  3. Final verification results (should show all checks passing)
  4. Any issues that required a judgment call or human review

Read the full file on GitHub · 75 lines

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. 4d ago Changed · -1 lines · -6 tokens per session 0d7382ee106c
  2. 7d ago First seen · 76 lines · 37 tokens per session scan A f871e491d7e4

Subscribe to this mod's changes

lint-type-format-fixer is an agent published in the GitHub repository timohaa/scopewalker-mcp (0 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 560 once invoked, about $0.0002 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-31.