code-linting
Run linters according to repository guidelines. Use immediately after creating or modifying code, or before committing changes.
Best use case
code-linting is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Run linters according to repository guidelines. Use immediately after creating or modifying code, or before committing changes.
Teams using code-linting should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/code-linting/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How code-linting Compares
| Feature / Agent | code-linting | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Run linters according to repository guidelines. Use immediately after creating or modifying code, or before committing changes.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# Code Linting Run all appropriate linters according to repository guidelines. ## When to Use This Skill Use this skill: - Immediately after creating new source code files - Immediately after modifying existing code (functions, classes, imports, etc.) - Immediately after completing a feature, refactor, or bug fix - Before staging files for commit - When build/compilation succeeds but linting hasn't been checked - Proactively, whenever code changes are made **Don't use:** - When you've already run linting and it passed ## Linter Discovery First look for linting commands in the following order: 1. Directives to AI agents (`CLAUDE.md`, `.cursorrules`, `.ai-rules`, `AGENTS.md`, `AGENT.md`, `GEMINI.md`, and similar) 2. Repository documentation (`README.md`, `docs/`, etc.) 3. Package configuration (`package.json`, `Makefile`, `pyproject.toml`, etc.) 4. Standard linter patterns for the project type If no linting guidelines are found or they are unclear, ask the user for clarification. ## Common Linter Commands ```bash # JavaScript/TypeScript npm run lint yarn run lint pnpm run lint npx eslint . # Python ruff check . pylint . flake8 . black --check . make lint # Shell shellcheck . # Multiple/Generic npm run format yarn run format pnpm run format ``` ## Linting Process For each linter found: 1. If it has an auto-fix mode (e.g., `prettier`, `eslint --fix`, `black`, `ruff check --fix`), run that first 2. Run the linter in check mode to see if there are any remaining issues 3. If issues can't be fixed automatically, report them clearly ## Important Rules **CRITICAL: Do NOT ignore unfixed issues!** - All linting issues MUST be resolved before considering the task complete - The only exception is if the user explicitly gives permission to defer resolution - Document any issues that couldn't be auto-fixed for the user to review ## Output Report results organized by: 1. **Auto-fixed issues**: What was automatically corrected 2. **Remaining issues**: Issues requiring manual attention (list each with file, line, and description) 3. **Recommendation**: What the developer should do next If all linting passes, simply confirm: "All linters passed."
Related Skills
xlsx-to-csv
Convert XLSX spreadsheets (single or multi-sheet) to CSV files you can read and grep. Use whenever you need to process an .xlsx report from Xero, Cryptio, bank exports, or any tool that delivers spreadsheet output.
xero-mcp
Use the Xero MCP server — obtain/refresh OAuth2 bearer tokens, troubleshoot authentication, and pick up other operational notes for working with Xero MCP tools. Use when Xero MCP tools fail with authentication errors, when the bearer token has expired (tokens last ~30 min), before starting any Xero workflow, or for general guidance on Xero MCP usage.
xero-browser
General Xero browser automation notes. Use when automating any Xero page with agent-browser — covers non-standard UI patterns, waiting, and dropdown menus.
test-running
Run tests according to repository guidelines. Use after linting passes, before staging changes.
task-orchestration
Orchestrate the complete development workflow for implementing sub-tasks from a task list. Use for end-to-end feature implementation with quality controls.
task-implementation
Implement a single sub-task from a task list. Use when working on feature development with existing task lists.
task-generation
Generate a detailed task list from a PRP. Use after a PRP is created and ready for implementation planning.
subagent-authoring
Create subagent definitions for Claude Code and OpenCode that delegate to skills. Use when creating new subagents or refactoring existing ones to follow the delegation pattern.
slow-command-running
Pipe long running commands through tee(1) to allow watching output and repeated analyses without rerunning
skill-authoring
Create and maintain Claude Code skills following Anthropic best practices. Use when building new skills, refactoring existing ones, or ensuring skills follow official guidelines for structure, naming, progressive disclosure, and testing.
safe-rm
Safely delete files / directories without asking for permission
prp-generation
Generate a Product Requirements Prompt (PRP) from a feature description. Use when starting work on a new feature.