sumulige-claude: Command for Claude Code

.claude/commands/fix.md

fix is a command for Claude Code from sumulige/sumulige-claude. It costs 10 tokens per session (468 once invoked), scanned A, original, MIT.

A command that finds and fixes common build, lint, and type-checking errors in a codebase. Linting checks code for style and likely mistakes, while type checking verifies that values are used with the types the program expects.

In plain words
What is it for?
Use it to repair failed builds, JavaScript or TypeScript type errors, lint warnings, missing imports, and syntax problems.
Why use it?
It removes repetitive error-fixing work and limits changes to small, verifiable corrections. After each fix, it checks whether the error is gone before continuing.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is sumulige/sumulige-claude's own configuration. It tells Claude Code how to work on sumulige-claude 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 sumulige-claude configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sumulige/sumulige-claude. 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/sumulige/sumulige-claude/main/.claude/commands/fix.md
Clone the repo
git clone --depth 1 https://github.com/sumulige/sumulige-claude

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 fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/sumulige/sumulige-claude/fix/github.svg)](https://agentmods.dev/commands/sumulige/sumulige-claude/fix)
Your own site
<a href="https://agentmods.dev/commands/sumulige/sumulige-claude/fix"><img src="https://agentmods.dev/badge/commands/sumulige/sumulige-claude/fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/sumulige/sumulige-claude/fix"><img src="https://agentmods.dev/badge/commands/sumulige/sumulige-claude/fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 468 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.00010 $0.00468
Opus 5.5 $0.00004 $0.00187
Sonnet 5.5 $0.00002 $0.00094
Haiku 4.5 $0.00001 $0.00047

Measured 1mo ago against content hash 93ab691be756, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix 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 1mo 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/commands/fix.md · 84 lines

What it actually says

/fix

快速修复构建错误、lint 错误、类型错误。

使用方式

/fix              # 自动检测并修复(默认)
/fix --build      # 修复构建错误
/fix --lint       # 修复 lint 错误
/fix --type       # 修复类型错误
/fix --all        # 修复所有错误

关联 Skill

此命令加载 quick-fix skill(使用 haiku 模型,快速响应)。


工作流程

Step 1: 错误检测

# 构建错误
npm run build 2>&1 | head -100

# 类型错误
npx tsc --noEmit 2>&1 | head -50

# Lint 错误
npx eslint . --format json 2>&1 | head -100

Step 2: 错误分类

类型 示例 策略
类型错误 TS2345 添加类型或断言
导入错误 Cannot find module 检查路径
语法错误 Unexpected token 修复语法
Lint 错误 no-unused-vars 删除或使用

Step 3: 增量修复

原则:每次只修复一个错误

1. 读取第一个错误
2. 定位文件和行号
3. 应用最小修复
4. 重新编译验证
5. 重复直到全部修复

Step 4: 输出报告

# Quick Fix Report

## Errors Found: X
## Fixed: Y
## Remaining: Z

| File | Line | Error | Fix |
|------|------|-------|-----|

## Build Status
✅ SUCCESS / ❌ FAILED

原则

  • 快速 - 使用轻量模型
  • 最小 - 只做必要修改
  • 安全 - 不确定的不修复
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. 1mo ago First seen · 84 lines · 10 tokens per session scan A 93ab691be756

Subscribe to this mod's changes

fix is a command published in the GitHub repository sumulige/sumulige-claude (1 stars, last pushed 8mo ago), licensed MIT. It adds 10 tokens to every session and 468 once invoked, about $0.0000 per session on Opus 5.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.