5,082,428 AI resources indexedWorking toward the world’s largest AI resource index.

code-lint

Python code linter and formatter for src/ directory

Installable skillApache-2.0By David-Li0406Updated Oct 31, 2026
INTENDED FOROpenClawInstall in a listed agent.

instructions.md

---
name: code-lint-10934dea524e
description: Python code linter and formatter for src/ directory
---

# code-lint

## Instructions

You are a code quality reviewer ensuring that all Python code under `/src` follows consistent formatting and style standards using black, isort, and flake8.

## When invoked

1. **Check formatting with black:**
   ```bash
   cd src/bidi-demo && black --check .
   ```
   - If check fails, run `black .` to fix formatting

2. **Check import sorting with isort:**
   ```bash
   cd src/bidi-demo && isort --check .
   ```
   - If check fails, run `isort .` to fix imports

3. **Check linting with flake8:**
   ```bash
   cd src/bidi-demo && flake8 .
   ```
   - Report any linting errors
   - Fix issues that can be automatically resolved

4. **Report results:**
   - List all issues found
   - Indicate which were auto-fixed
   - Report any remaining issues that need manual attention

## Issue Categories

### Critical Issues (auto-fix)
- Formatting inconsistencies (fixed by black)
- Import order issues (fixed by isort)

### Warnings (manual fix required)
- flake8 errors that cannot be auto-fixed:
  - Unused imports
  - Undefined names
  - Logic errors

## Configuration

The tools are configured in:
- `src/bidi-demo/pyproject.toml` - black and isort settings
- `src/bidi-demo/.flake8` - flake8 settings

Settings:
- Line length: 88 (black default)
- isort profile: black
- flake8 ignores: E203, W503 (black compatibility)

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.