oyi77/1ai-skills/linter-agent

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when detecting and fixing code style violations, enforcing project

Install

npx vskill@latest install oyi77/1ai-skills/linter-agent

SKILL.md

Overview

This agent detects and fixes code style violations and enforces the project's lint rules across the tree. Use it after any batch of edits to keep the diff convention-clean. It reports what changed and why, so the style pass stays auditable.

Linter Agent

Quick Reference — see parent for full agent ecosystem.

The Linter Agent enforces code style, convention rules, and formatting standards across the codebase at scale. It goes beyond running a tool — it interprets project-specific conventions that static linters cannot express, fixes violations in bulk, migrates rules when upgrading linters, and surfaces only the warnings that matter. Its job is to make the codebase look like one person wrote it, even when fifty people contributed.

When Not to Use

  • Simple or one-off tasks — if the task is straightforward, direct execution is faster than structured methodology.
  • Already established workflows — follow existing team conventions rather than introducing new frameworks.
  • When automation overhead exceeds benefit — for very small scopes, the setup cost may not be justified.

Dependencies

  • Python 3.8+ or Node.js 18+
  • Access to relevant APIs/services for your specific use case
  • Basic understanding of the domain concepts

Commands

bash
# Refer to the skill's usage section for specific commands
# Adapt these to your workflow

Key Responsibilities

  • Apply project conventions: Enforce naming, import ordering, error-handling patterns, and file structure rules that go beyond automated linter config
  • Bulk fix and migrate: Run across entire directories with auto-fix, handle rule migrations (e.g., eslint flat config), and clean up after dependency updates
  • Surface actionable results: Suppress noise from rules the team has consciously decided to ignore; report only violations that need human attention

Code Example

python
"""Minimal linter agent pattern — scan and fix."""
import json, subprocess, sys
from pathlib import Path
def lint(paths: list[str], config: str | None = None, auto_fix: bool = True) -> dict:
results = {"files_scanned": 0, "errors": 0, "warnings": 0, "auto_fixed": 0}
for p in paths:
target = Path(p)
if not target.exists():
continue
# Run the linter (simplified — real agent integrates tool output)
cmd = ["ruff", "check", str(target)]
if auto_fix:
cmd.append("--fix")
if config:
cmd.extend(["--config", config])
result = subprocess.run(cmd, capture_output=True, text=True)
# Parse output (simplified — real agent parses JSON/SARIF)
results["files_scanned"] += 1
if result.returncode != 0:
results["errors"] += 1
# Apply project-specific conventions the linter cannot enforce
for p in paths:
for file in Path(p).rglob("*.py"):
content = file.read_text()
# Detect and fix common patterns (example: ensure newline at EOF)
if content and not content.endswith("\n"):
file.write_text(content + "\n")
results["auto_fixed"] += 1
return results
if __name__ == "__main__":
result = lint(sys.argv[1:])
print(json.dumps(result, indent=2))

Checklist

  • [ ] Zero lint errors after auto-fix (warnings may remain if intentionally accepted)
  • [ ] Project-specific conventions verified: naming, imports, error handling, comments
  • [ ] No new warnings introduced compared to baseline
  • [ ] Linter config committed and consistent across CI and local environments
  • [ ] False positives documented with justification (for rule suppression)

Workflow

  1. Identify the task or trigger.
  2. Prepare inputs and configure parameters.
  3. Execute the core routine.
  4. Verify the output against expected results.
  5. Iterate based on feedback or new data.

Verification

  • Run the agent over a file with a known violation and confirm the diff fixes exactly that class of violation.
  • Verify the agent's report lists each rule applied and the file:line where it fired.
  • Check the agent does not reformat unrelated regions (whitespace churn) outside the reported violations.
  • Re-run the project linter after the pass and confirm zero new findings.

Anti-Rationalization Table

RationalizationReality
"I will fix formatting in the next PR"Postponing lint debt compounds — every new file copies the bad patterns, making the eventual cleanup harder
"My editor already highlights these"Highlighted warnings you habitually ignore become permanent noise. The linter agent treats them as blockers
"We have too many false positives to run lint strictly"Each false positive deserves a rule suppression with a reason, not a habit of ignoring all warnings

When to Use

Use before every PR commit, after merge conflicts, when adopting new lint rules or migrating configs, after bulk code generation, and when on-boarding new team members to enforce standards. Do NOT use on generated code (protobuf, OpenAPI stubs) or vendored dependencies where upstream formatting is outside your control.

Security

  • Security scanPassed, 96 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
15
Repository forks
2
7-day trend score
9

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/oyi77/1ai-skills/linter-agent/badge)](https://verified-skill.com/skills/oyi77/1ai-skills/linter-agent)

Something wrong with this skill or its page? Tell us.