Lint

From Miosa-osa/canopy · View interactive version

Lint is an AI agent skill from the GitHub repository Miosa-osa/canopy. > Run linters and formatters, report issues, auto-fix where possible.

How to use this skill

Skill file

/lint

Run linters and formatters, report issues, auto-fix where possible.

Usage

/lint [path] [--fix] [--strict] [--format <format>]

What It Does

Detects the project language and runs appropriate linters and formatters. Reports style violations, potential bugs, and security issues. With --fix, auto-corrects fixable issues.

Implementation

  1. Detect project type and available linters.
  2. Run linters in order:
  1. Parse output -- extract file, line, rule, severity, message.
  2. Auto-fix (if --fix) -- run formatters and auto-fixable rules.
  3. Report -- categorized by severity (error, warning, info).

Examples

# Check for lint issues
/lint

# Auto-fix all fixable issues
/lint --fix

# Strict mode (warnings become errors)
/lint --strict

# Lint specific directory
/lint lib/optimal_engine/
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.