code-lint

Applies black, isort, and flake8 to Python code in src/bidi-demo.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/arakitakashi/homework-coach-robo --skill code-lint-arakitakashi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-lint
Source: https://github.com/arakitakashi/homework-coach-robo/tree/main/ref/adk-streaming-guide-main/.claude/skills/code-lint
Command: npx skills add https://github.com/arakitakashi/homework-coach-robo --skill code-lint-arakitakashi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining consistent code quality and style across Python projects, preventing common errors and improving readability.

Core Features & Use Cases

  • Automated Formatting: Ensures Python code adheres to the black formatting standard.
  • Import Sorting: Organizes imports using isort for better maintainability.
  • Linting: Identifies and reports potential errors and style violations using flake8.
  • Use Case: Before committing code, run this Skill to automatically format your Python files, sort your imports, and catch any linting errors, ensuring a clean and consistent codebase.

Quick Start

Run the code-lint skill to check and fix Python code formatting and linting issues in the src/bidi-demo directory.

Frequently Asked Questions about code-lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Python code formatting and linting before committing?

Automate Python code formatting and linting by running black for formatting, isort for import sorting, and flake8 for style enforcement. This combination targets your source directory to catch defects and ensure adherence to style guides before code commits.

What is the best way to sort Python imports and format code consistently?

The best way to sort Python imports and format code is using isort for import organization and black for standard formatting. Applying these tools ensures consistent code style and improves readability across your project.

Do I need pyproject.toml to run black and isort for code quality checks?

Yes, you need pyproject.toml to configure black and isort, and a .flake8 file for linting rules. These configuration files define the style standards required to enforce code quality across your Python project.

Can I use flake8 to identify potential code defects in a specific source directory?

Yes, you can use flake8 to identify potential code defects and style violations within a specific source directory. It targets the src/bidi-demo path to report errors and ensure your Python files adhere to configured style guides.

Why does Python code linting fail when imports are not sorted correctly?

Python code linting fails because unsorted imports violate style guides enforced by isort and flake8. Organizing imports alphabetically and grouping them correctly resolves these linting errors and improves code maintainability.