lint

GitHub

用于对 Keychat 项目执行代码质量检查,包括静态分析、格式化和自动修复。支持通过参数 'fix' 自动修正格式问题,或运行完整检查并报告异常,遵循 very_good_analysis 规则。

.claude/skills/lint/SKILL.md keychat-io/keychat-app

触发场景

用户请求检查代码规范或格式 用户请求修复代码格式问题 需要运行静态分析以发现潜在错误

安装

npx skills add keychat-io/keychat-app --skill lint -g -y
更多选项

非标准路径

npx skills add https://github.com/keychat-io/keychat-app/tree/main/.claude/skills/lint -g -y

不安装直接使用

npx skills use keychat-io/keychat-app@lint

指定 Agent (Claude Code)

npx skills add keychat-io/keychat-app --skill lint -a claude-code -g -y

安装 repo 全部 skill

npx skills add keychat-io/keychat-app --all -g -y

预览 repo 内 skill

npx skills add keychat-io/keychat-app --list

SKILL.md

Frontmatter
{
    "name": "lint",
    "description": "Run linting, formatting, and static analysis on the codebase",
    "allowed-tools": "Bash(melos *), Bash(dart format *), Bash(dart analyze *)",
    "argument-hint": "[fix]",
    "disable-model-invocation": true
}

Run code quality checks on the Keychat project.

Arguments

  • $ARGUMENTS - Optional: "fix" to auto-fix formatting issues

Commands

Run all checks (analyze + format check)

melos run lint:all

Run analyzer only

melos run analyze

Check formatting

dart format --set-exit-if-changed .

Fix formatting

dart format .

Workflow

  1. If $ARGUMENTS is "fix":

    • Run dart format . to fix formatting
    • Then run melos run analyze to check for remaining issues
  2. Otherwise:

    • Run melos run lint:all to check everything
    • Report any issues found

Analysis configuration

The project uses very_good_analysis rules defined in analysis_options.yaml.

版本历史

  • 294d00d 当前 2026-07-05 10:51

同 Skill 集合

.claude/skills/architecture/SKILL.md
.claude/skills/batch/SKILL.md
.claude/skills/bootstrap/SKILL.md
.claude/skills/flutter-check/SKILL.md
.claude/skills/generate/SKILL.md
.claude/skills/pods/SKILL.md
.claude/skills/clean/SKILL.md
.claude/skills/run/SKILL.md
.claude/skills/rust-build/SKILL.md
.claude/skills/test/SKILL.md

元信息

文件数
0
版本
0cdb462
Hash
1f200720
收录时间
2026-07-05 10:51

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 02:50
浙ICP备14020137号-1 $访客地图$