Delphi Clean Code
CommunityPragmatic Delphi clean code — concise and robust.
Software Engineering#refactoring#design-principles#clean-code#memory-management#guard-clauses#naming-convention#delphi
Authordelphicleancode
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Delphi projects often degenerate into hard-to-maintain spaghetti when guidelines are ignored. This Skill provides pragmatic rules to keep Delphi code readable, maintainable and robust.
Core Features & Use Cases
- Single Responsibility Principle (SRP): A function or unit does ONE thing.
- DRY & KISS: Avoid duplication and keep solutions simple.
- Guard Clauses & Early Returns: Reduce nested conditionals and improve readability.
- Naming Conventions: Consistent prefixes and verb-noun naming for clarity.
- Memory Management Guidance: Use try/finally for objects and be deliberate with interfaces.
- Anti-Patterns to Avoid: Identify and replace common pitfalls like God classes and overly long methods.
Quick Start
Refactor a sample Delphi unit to apply SRP, add guard clauses, and rename identifiers for clarity.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Delphi Clean Code Download link: https://github.com/delphicleancode/delphi-spec-kit/archive/main.zip#delphi-clean-code Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.