跳到正文
cccskills
免费在 GitHub 公开

lint

Run linters and formatters to fix code style issues. Use when cleaning up style violations, formatting code, or after implementation to ensure code meets project standards.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Lint

Run the full linting and formatting suite for the detected project type(s).

Instructions

Run these commands based on project type. All detected languages run for polyglot projects.

# Python linting (if pyproject.toml or requirements.txt exists)
([ -f pyproject.toml ] || [ -f requirements.txt ]) && {
  # Ruff - fix code quality issues
  ruff check --fix . 2>&1 || true
  # Ruff - format all files
  ruff format . 2>&1 || true
  # mypy - type check
  mypy . 2>&1 || true
}

# JS/TS linting (if package.json exists)
[ -f package.json ] && {
  # ESLint - use lint:eslint if exists (projects with existing linter), else lint
  if grep -q '"lint:eslint"' package.json 2> /dev/null; then
    bun run lint:eslint 2>&1 || true
  else
    bun run lint 2>&1 || true
  fi
  # Prettier - format all files
  bun run format --if-present 2>&1 || true
  # TypeScript type check (if tsconfig.json exists)
  [ -f tsconfig.json ] && bunx tsc --noEmit 2>&1 || true
}

# Go linting (if go.mod exists)
[ -f go.mod ] && {
  # golangci-lint - fix and report issues
  golangci-lint run --fix ./... 2>&1 || true
  # golangci-lint - format
  golangci-lint fmt ./... 2>&1 || true
}

Summary

After running, report:

  1. Any linting errors that couldn't be auto-fixed (Ruff, ESLint, or golangci-lint)
  2. Any formatting issues
  3. Type errors (mypy or TypeScript)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

audit

免费

Run comprehensive code audit for architecture, dead code, and test quality. Use when reviewing overall codebase health, checking for architectural violations, or before marking a feature complete.

中文简介正在准备中。当前显示原文说明。

TheMostlyGreat/mythos192026年6月14日 更新

bdd

免费

Behavior-first feature development — use when building new capabilities, continuing feature work, or when work introduces new state or multiple user flows. Discovers desired behavior through examples and scenarios before implementation. Do NOT use for bug fixes, typos, or small isolated changes.

中文简介正在准备中。当前显示原文说明。

TheMostlyGreat/mythos192026年6月14日 更新

Use when the user wants to explore options, weigh approaches, or think through uncertainty before committing to a direction. Collaborative brainstorming and rubber ducking — divergence-first thinking partner.

中文简介正在准备中。当前显示原文说明。

TheMostlyGreat/mythos192026年6月14日 更新

Kill zombie dev servers and test processes. Use when ports are blocked, processes are hanging, or test runners won't start.

中文简介正在准备中。当前显示原文说明。

TheMostlyGreat/mythos192026年6月14日 更新

debug

免费

Root cause debugging before fixes. Use when investigating bugs, diagnosing test failures, troubleshooting unexpected behavior, or when previous fix attempts failed. Enforces investigate-first discipline.

中文简介正在准备中。当前显示原文说明。

TheMostlyGreat/mythos192026年6月14日 更新

elicit

免费

Extract tacit knowledge through non-obvious microquestions — things only the user knows that can't be found in code, docs, or research. Use when you're about to guess at intent, context, or constraints during SAFEWORD's understanding flow. Also use when user says 'ask me', 'what do you need to know', or when another skill (bdd, brainstorm, debug) needs user context before proceeding. Do NOT use for questions answerable by reading the codebase or searching the web.

中文简介正在准备中。当前显示原文说明。

TheMostlyGreat/mythos192026年6月14日 更新

查看 TheMostlyGreat 的全部技能

报告此技能的问题