preen

Automate code quality and security fixes across a repository.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/a2f0/tearleads --skill preen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preen
Source: https://github.com/a2f0/tearleads/tree/main/.codex/skills/preen
Command: npx skills add https://github.com/a2f0/tearleads --skill preen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of identifying and fixing common code quality issues, security vulnerabilities, and documentation gaps across a codebase, ensuring continuous improvement and reducing manual review burden.

Core Features & Use Cases

  • Automated Code Audits: Scans for specific anti-patterns in TypeScript, React, database queries, API security, and dependencies.
  • Proactive Fixes: Implements focused, behavior-preserving changes to address identified issues.
  • Stateful Iteration: Tracks progress across runs to ensure comprehensive coverage over time.
  • Use Case: Regularly run this Skill to automatically refactor overly complex React components, update outdated dependencies, and ensure API endpoints adhere to security best practices, all before manual review.

Quick Start

Run the preen skill to perform a full code quality audit and apply any necessary fixes.

Frequently Asked Questions about preen

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

FAQPage Schema
How do I automate code quality and security audits for my repository?

Automated code quality and security audits scan your repository to identify and resolve issues in TypeScript typings, React components, database queries, API security, dependencies, and documentation parity. The Skill applies behavior-preserving fixes proactively to ensure continuous improvement.

How does automated refactoring handle complex React components and TypeScript typings?

Automated refactoring identifies overly complex React components and incorrect TypeScript typings, then implements focused, behavior-preserving changes to resolve them. This targets specific anti-patterns to improve code maintainability and type safety without altering runtime logic.

Can I run a security audit on API endpoints and project dependencies?

Yes, security audits specifically target API endpoint security best practices and dependency vulnerabilities. You can operate the Skill in a dedicated 'security' or 'audit' mode to focus exclusively on identifying and resolving these vulnerability categories.

What is the best way to maintain code quality across multiple iterations?

Stateful iteration tracks progress across multiple runs to ensure comprehensive coverage over time. This historical analysis enables adaptive category selection and self-improvement, allowing the audit to progressively resolve issues without repeating previous work.

Does automated code maintenance fix flaky tests and documentation gaps?

Yes, automated code maintenance identifies and resolves test flakiness and documentation parity issues. It scans for these specific anti-patterns alongside code and security vulnerabilities, applying focused fixes to ensure documentation matches implementation.

What are the limitations of automated code refactoring for database performance?

Automated database performance refactoring focuses on identifying specific anti-patterns in database queries and applying behavior-preserving changes. It operates within configurable modes and relies on stateful iteration, meaning complex schema migrations may require manual review beyond automated fixes.