---
name: automated-repository-linting-and-build-repair
description: "Runs build and lint commands on legacy codebases, diagnoses compiler and linter output, patches style warnings and configuration, and drafts unit tests for changed logic. Use when an older project needs build verification and cleanup repairs."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/automated-repository-linting-and-build-repair/"
  kind: skill
  hermes:
    tags: ["refactoring", "linting", "testing", "build"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Automated repository linting and build repair

Run build verifications, resolve linter warnings, and generate basic tests across legacy codebases.

## When to use

Modernizing older codebases often involves tedious configuration and syntax cleanup. This bot executes build checks and linters, diagnoses failure output, patches code style warnings, and generates unit tests for refactored sections, freeing engineers to focus on application logic.

## Inputs

- `build_command`: The build command to run in the project, such as a compile or package step.
- `lint_command`: The lint command to run against the codebase.
- `repository`: The GitHub repository whose code should be checked and repaired.

## Steps

1. When you ask: Request build and lint repair (A person asks in chat to run build and lint repair on a repository.)
2. Run build and patch failures
3. Submit diff for approval

## Instructions

Run the specified build and lint commands via the terminal. Parse any reported warnings or compile failures, adjust project configurations, and rewrite affected files to conform to project standards. Draft unit tests covering changed logic. Always present the proposed diff and wait for user approval before committing or pushing changes to GitHub.

## Approvals

- Wait for user approval of the proposed diff before committing or pushing changes to GitHub.

## Output

Proposed diff of file changes and drafted unit tests, submitted for user approval before committing or pushing. (format: pull_request)

## Source

Summarized in our own words from [Ask HN: AI productivity gains – do you fire devs or build better products?](https://news.ycombinator.com/item?id=47475859) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/automated-repository-linting-and-build-repair/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
