AutoGLM-GUI: Command for Claude Code

.claude/commands/lint.md

lint is a command for Claude Code from suyiiyii/AutoGLM-GUI. It costs 12 tokens per session (314 once invoked), scanned A, original, Apache-2.0.

A command workflow for fixing every lint problem, including errors and warnings, until the project passes with none remaining.

In plain words
What is it for?
Running the project’s lint script, fixing TypeScript, ESLint, Pyright, and Ruff findings, and rerunning checks until they report zero errors and warnings.
Why use it?
It gives a repeatable process for finding and correcting code-quality and type-checking issues across supported tools.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool.

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/lint.py.

About the project

AutoGLM-GUI is a web interface that lets an AI operate Android devices through chat, live screen control, and Android Debug Bridge connections. It is intended for personal automation and scheduled tasks across one or more phones or emulators, and can be deployed remotely. The catalogue add-ons provide agent instructions and commands for using the tool.

suyiiyii/AutoGLM-GUI · 1,125 stars · on GitHub · autoglm-gui.vercel.app

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/suyiiyii/autoglm-gui/lint/github.svg)](https://agentmods.dev/commands/suyiiyii/autoglm-gui/lint)
Your own site
<a href="https://agentmods.dev/commands/suyiiyii/autoglm-gui/lint"><img src="https://agentmods.dev/badge/commands/suyiiyii/autoglm-gui/lint/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 lint

Your own site · 80×15
<a href="https://agentmods.dev/commands/suyiiyii/autoglm-gui/lint"><img src="https://agentmods.dev/badge/commands/suyiiyii/autoglm-gui/lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 314 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.00012 $0.00314
Opus 5 $0.00006 $0.00157
Sonnet 5 $0.00002 $0.00063
Haiku 4.5 $0.00001 $0.00031

Measured 12d ago against content hash b7e1d500547f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

lint 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 12d 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/lint.md · 44 lines

What it actually says

严格要求

必须修复所有错误和警告,不允许任何残留。

执行流程

  1. 运行 lint 命令查看所有问题
  2. 逐个修复所有错误和警告
  3. 重新运行 lint 验证
  4. 如果还有错误,继续修复
  5. 重复直到完全通过(0 errors, 0 warnings)

执行命令

uv run python scripts/lint.py

修复原则

  • 不允许跳过任何错误
  • 不允许跳过任何警告
  • 必须运行到完全通过为止
  • TypeScript 类型错误必须修复
  • ESLint 警告必须修复
  • Pyright 错误必须修复
  • Ruff 问题必须修复

工作流程

  1. 执行 uv run python scripts/lint.py
  2. 分析所有错误输出
  3. 使用 TodoWrite 列出所有需要修复的问题
  4. 逐个修复每个问题
  5. 每修复一批问题后重新运行 lint
  6. 继续直到 lint 完全通过

最终目标:lint 命令输出必须显示 "0 errors, 0 warnings" 或类似的成功信息。

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. 12d ago First seen · 44 lines · 12 tokens per session scan A b7e1d500547f

Subscribe to this mod's changes

lint is a command published in the GitHub repository suyiiyii/AutoGLM-GUI (1,125 stars, last pushed yesterday), licensed Apache-2.0. It adds 12 tokens to every session and 314 once invoked, about $0.0001 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.