bd-clean-code-writing

Guide developers to write clean, maintainable code using SOLID design principles.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bitsydarel/bdlogging --skill bd-clean-code-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bd-clean-code-writing
Source: https://github.com/bitsydarel/bdlogging/tree/main/.opencode/skill/bd-clean-code-writing
Command: npx skills add https://github.com/bitsydarel/bdlogging --skill bd-clean-code-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates guidance to help developers produce clean, maintainable code by applying disciplined design principles, primarily the SOLID set, to prevent complexity.

Core Features & Use Cases

  • Single Responsibility: Each unit should have one reason to change, enabling easier maintenance and testing.
  • Open/Closed, Liskov, Interface Segregation, Dependency Inversion: Guidelines for designing flexible, extensible code.
  • Refactoring & Naming: Clear naming, consistent style, and safe refactoring practices to improve readability and correctness.

Quick Start

Start by identifying the function or class's single responsibility and apply SOLID principles during implementation.

Frequently Asked Questions about bd-clean-code-writing

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

FAQPage Schema
How do I apply SOLID design principles when refactoring an existing class?

To apply SOLID design principles during refactoring, identify the class's single responsibility, separate concerns, and introduce proper abstraction. This ensures each unit has one reason to change, improving maintainability and enabling easier testing.

What is the best way to structure functions for better code quality and maintainability?

The best way to improve code quality is by enforcing naming discipline, explicit type safety, and single responsibility. Structuring functions with clear separation of concerns prevents complexity and makes the codebase easier to maintain.

Can I get guidance on clean code for both new components and legacy modules?

Yes, clean code guidance applies to creating new components and refactoring legacy modules. By focusing on separation of concerns and practical design-thinking steps, you can safely refactor existing code while ensuring correct abstraction.

Why does enforcing type safety and naming discipline matter for clean code?

Enforcing type safety and naming discipline matters because it improves readability and correctness. Clear naming and consistent style prevent complexity, making the code easier to understand and maintain across the entire module.

When do I need to refactor code to follow the Open/Closed or Interface Segregation principles?

You need to refactor using Open/Closed or Interface Segregation principles when modules require flexible, extensible design without modifying existing code. This prevents complexity by ensuring classes are open for extension but closed for modification.