AgentSkillsCN

lint

为Deno项目运行格式化、lint和类型检查(镜像CI检查)。当用户想要检查代码质量、修复格式问题、运行linter或验证类型安全时,请使用此功能,例如"/lint"、"检查格式"、"运行类型检查"或提交代码前。

SKILL.md
--- frontmatter
name: lint
description: Run formatting, linting, and type checks for Deno projects (mirrors CI checks). Use when the user wants to check code quality, fix formatting issues, run linters, or verify type safety with commands like "/lint", "check formatting", "run type check", or before committing code.

Lint

Run the following checks in order, fixing any issues found:

  1. Check formatting

    bash
    deno fmt --check
    

    If formatting issues are found, run deno fmt to fix them.

  2. Lint

    bash
    deno lint
    

    Fix any linting errors reported.

  3. Type check

    bash
    deno check src/main.ts
    

    Fix any type errors reported.

Report the results of each check and summarize any issues that were found and fixed.