atft-code-quality

Automate code-quality checks across the ATFT-GAT-FAN codebase.

Updated Aug 28, 2025
One-click install
npx skills add https://github.com/wer-inc/gogooku3 --skill atft-code-quality
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: atft-code-quality
Source: https://github.com/wer-inc/gogooku3/tree/main/claude/skills/atft-code-quality
Command: npx skills add https://github.com/wer-inc/gogooku3 --skill atft-code-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ruff, mypy, pyright, pytest, bandit, safety, detect-secrets, pip-tools, pre-commit, and includes scripts (resource) components.

What problem does it solve?

Manual code review and quality assurance processes are slow, error-prone, and can lead to regressions, security vulnerabilities, and inconsistent code styles, especially in a complex ML codebase. This Skill automates these checks, ensuring high-quality code.

Core Features & Use Cases

  • Automated Linting & Formatting: Enforce consistent code style and catch common errors using tools like Ruff, ensuring a clean and readable codebase.
  • Comprehensive Testing: Execute unit, integration, and security tests to prevent regressions and identify vulnerabilities before deployment.
  • Use Case: Before merging any new code, automatically run the full quality pipeline to check for formatting issues, type errors, failing tests, and potential security flaws, guaranteeing high-quality, production-ready code.

Quick Start

Example: Run full quality gate

pre-commit run --all-files ruff check src/ --fix mypy src/gogooku3 scripts/ pytest tests/unit -n auto -q

Frequently Asked Questions about atft-code-quality

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

FAQPage Schema
How do I automate code quality checks in my Python project?▼

Automate code quality checks by running a pre-commit pipeline that combines linting, formatting, type checking, and testing. Use Ruff for linting and formatting, mypy or pyright for type validation, pytest for tests, and bandit or detect-secrets for security scanning. Execute `pre-commit run --all-files` to trigger all checks automatically before commits.

What tools do I need to enforce consistent code style and catch errors?▼

Enforce consistent code style using Ruff for linting and formatting, which catches common errors and ensures readability. Pair it with mypy or pyright for static type checking to identify type-related bugs. These tools integrate into pre-commit workflows and CI pipelines for continuous enforcement across your codebase.

Can I run security scans and vulnerability detection automatically?▼

Yes, run security scans automatically by integrating bandit for code vulnerability detection and detect-secrets for credential leaks into your pre-commit or CI pipeline. These tools scan your codebase before deployment, catching security flaws and secrets before they reach production.

How do I prevent regressions and ensure code passes tests before merging?▼

Prevent regressions by executing comprehensive tests via pytest before merging. Integrate pytest into your pre-commit or CI pipeline to run unit and integration tests automatically. This gates code quality and ensures only tested, production-ready code is merged.

What's the best way to set up a quality gate for a complex codebase?▼

Set up a quality gate using pre-commit tooling to orchestrate multiple checks: Ruff for linting and formatting, mypy or pyright for typing, pytest for tests, and bandit or detect-secrets for security. Run `pre-commit run --all-files` or `ruff check src/ --fix` locally and in CI to catch issues before deployment.

Does this work with existing Python linting and testing tools?▼

Yes, this integrates with standard Python tools: Ruff for linting and formatting, mypy and pyright for type checking, pytest for testing, and bandit and detect-secrets for security. It uses pre-commit to orchestrate these tools, compatible with most Python development workflows and CI environments.