universal-anti-patterns

Enforce universal anti-pattern rules across multiple programming languages.

836|66|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill universal-anti-patterns-kreuzberg-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: universal-anti-patterns
Source: https://github.com/kreuzberg-dev/html-to-markdown/tree/main/.codex/skills/universal-anti-patterns
Command: npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill universal-anti-patterns-kreuzberg-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid common pitfalls and anti-patterns in software development, leading to more robust, maintainable, and efficient code.

Core Features & Use Cases

  • Code Quality Enforcement: Provides a set of rules and guidelines to prevent the introduction of anti-patterns.
  • Language Agnostic Principles: Focuses on universal concepts applicable across various programming languages.
  • Use Case: A team is experiencing recurring bugs related to improper error handling and state management. This Skill can be used to guide developers away from these problematic practices during code reviews or as a reference for writing new code.

Quick Start

Follow the universal anti-patterns guidelines to refactor the provided code snippet.

Frequently Asked Questions about universal-anti-patterns

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

FAQPage Schema
What are universal anti-patterns in software development?

Universal anti-patterns are common coding pitfalls like improper error handling, state management issues, and code duplication. This Skill provides guidelines to identify and avoid these problematic practices across multiple programming languages.

How do I enforce coding best practices during code reviews?

You can enforce coding best practices during reviews by applying language-agnostic rules that guide developers away from anti-patterns. This Skill serves as a reference to prevent improper type usage, poor I/O operations, and unstructured logging.

Does this anti-pattern enforcement work with any programming language?

Yes, the anti-pattern enforcement focuses on language-agnostic principles applicable across various programming languages. It addresses universal concepts like testing methodologies, composition over inheritance, and structured logging.

What is the best way to refactor code to prevent recurring bugs?

The best way to refactor code and prevent recurring bugs is to follow universal anti-patterns guidelines. This approach addresses root causes like improper state management and error handling rather than patching symptoms.

When should I use composition over inheritance in my codebase?

You should adopt composition over inheritance as a best practice to improve code maintainability and flexibility. This Skill guides developers toward this approach as part of its universal anti-patterns enforcement across software projects.

Why does improper error handling cause state management issues?

Improper error handling causes state management issues because it fails to correctly capture and recover from I/O operation failures. This Skill enforces structured logging and robust error handling to prevent these cascading failures.