mdadul

34 mods across 2 repositories, 8 stars between them.

refactoring-expert

01

mdadul/agent-skills

Agent

Expert at diagnosing code smells and planning safe, behavior-preserving refactorings. Driven by two skills — code-smells (the classic taxonomy: Bloaters, Object-Orientation Abusers, Change Preventers, Dispensables, Couplers) and refactoring (the 60+ named techniques across Composing Methods, Moving Features…

5 2mo ago A 207 tokens

clean-code

02

mdadul/agent-skills

Skill Claude CodeCodex

Apply Clean Code principles (meaningful names, small functions, error handling, TDD, SRP, smells & heuristics) when authoring, refactoring, or reviewing code—especially TypeScript. Use when the user asks for clean code, refactoring, extract function or class, code smell or maintainability review, readable tests, or…

5 2mo ago A 81 tokens

code-smells

03

mdadul/agent-skills

Skill Claude CodeCodex

Detect, name, and remediate code smells using the classic taxonomy (Bloaters, Object-Orientation Abusers, Change Preventers, Dispensables, Couplers) when reviewing, refactoring, or authoring code. Use when the user asks to find code smells, review code for maintainability, identify long methods/large classes/duplicate…

5 2mo ago A 90 tokens

create-skills

04

mdadul/agent-skills

Skill Claude CodeCodex

Create and maintain custom Skills with correct SKILL.md metadata, strong trigger-aware descriptions, concise instructions, progressive disclosure, and validation loops. Use when the user asks to write, improve, review, or organize a Skill.

5 2mo ago A 48 tokens

create-subagent

05

mdadul/agent-skills

Skill Claude CodeCodex

Create and maintain custom subagent definition files for any AI agent platform, with strong descriptions, tight tool scope, and explicit handoff contracts. Use when the user asks to create, improve, or standardize a subagent.

5 2mo ago A 49 tokens

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Chain of Responsibility (CoR) pattern to pass requests along a dynamic chain of handlers where each can process or forward the request. Use when users ask about CoR, Chain of Command, middleware pipelines, sequential validation, request bubbling, or comparing CoR to Decorator, Command, or Mediator.

5 2mo ago A 71 tokens

command

07

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Command pattern to encapsulate requests as objects for decoupled invocation, queuing, scheduling, logging, and undo/redo workflows. Use when users ask about Command, Action, Transaction, invoker-receiver decoupling, reversible operations, or comparing Command with Strategy, Chain of Responsibility…

5 2mo ago A 69 tokens

iterator

08

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Iterator pattern to traverse collections without exposing their internal structure. Use when users ask about Iterator, custom traversal algorithms, decoupling traversal from collections, parallel iteration, lazy iteration, or comparing Iterator to for-each loops and language-native iterables.

5 2mo ago A 55 tokens

mediator

09

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Mediator pattern to centralize collaboration rules among tightly coupled components and eliminate direct component-to-component dependencies. Use when users ask about Mediator, Intermediary, Controller, UI dialog coordination, reusable components, or comparing Mediator with Observer, Facade, or…

5 2mo ago A 63 tokens

memento

10

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Memento (Snapshot) pattern to save and restore object state without breaking encapsulation. Use when users ask about Memento, Snapshot, undo/redo, state history, transaction rollback, or comparing Memento to Prototype or Command.

5 2mo ago A 53 tokens

observer

11

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Observer pattern to implement event-driven one-to-many notifications with dynamic subscription and loose coupling between publishers and subscribers. Use when users ask about Observer, Event-Subscriber, Listener, pub/sub style updates, runtime subscriptions, or comparing Observer with Mediator…

5 2mo ago A 62 tokens

state

12

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the State pattern to replace state-based conditional branches with polymorphic state objects. Use when users ask about State, finite-state machines, eliminating state conditionals, behavior that changes per state, or comparing State to Strategy.

5 2mo ago A 48 tokens

strategy

13

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Strategy pattern to isolate interchangeable algorithms behind a common interface and swap them at runtime without changing context logic. Use when users ask about Strategy, algorithm selection, replacing large conditionals, runtime behavior switching, or comparing Strategy with State, Command, or…

5 2mo ago A 57 tokens

template-method

14

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Template Method pattern to define an algorithm skeleton in a base class while allowing subclasses to override selected steps without changing overall flow. Use when users ask about Template Method, extracting duplicate algorithm structure, superclass hooks, final template flows, or comparing…

5 2mo ago A 61 tokens

visitor

15

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Visitor pattern to add new operations to a stable element hierarchy without modifying element classes, using double dispatch. Use when users ask about Visitor, double dispatch, adding behavior to sealed/frozen class hierarchies, separating algorithms from object structures, or combining Visitor…

5 2mo ago A 61 tokens

abstract-factory

16

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Abstract Factory pattern to create families of related products through abstract interfaces while keeping variants compatible. Use when users ask about Abstract Factory, replacing concrete constructors for multiple product types, ensuring variant consistency, or comparing Abstract Factory with…

5 2mo ago A 55 tokens

builder

17

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Builder pattern to construct complex objects step by step, separating construction from representation. Use when users ask about Builder, telescoping constructors, step-by-step object assembly, Director/Builder roles, or comparing Builder to Factory patterns.

5 2mo ago A 50 tokens

factory-method

18

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Factory Method pattern to remove direct constructor coupling and enable extensible object creation via creator subclasses. Use when users ask about Factory Method, virtual constructor, replacing new calls, introducing creator/product hierarchies, or comparing Factory Method to Abstract Factory.

5 2mo ago A 55 tokens

prototype

19

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Prototype pattern to copy existing objects through a cloning interface without coupling client code to concrete classes. Use when users ask about Prototype or Clone, replacing repeated initialization with preconfigured instances, handling copy semantics, or comparing Prototype with Factory Method…

5 2mo ago A 58 tokens

singleton

20

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Singleton pattern to ensure a class has exactly one instance with a global access point. Use when users ask about Singleton, single shared instance, thread-safe initialization, lazy vs eager instantiation, or comparing Singleton to dependency injection.

5 2mo ago A 50 tokens

adapter

21

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Adapter pattern to let incompatible interfaces collaborate by translating calls, data formats, or call order through a wrapper. Use when users ask about Adapter or Wrapper, integrating legacy or third-party services, format conversion boundaries, or comparing Adapter with Decorator, Facade, Proxy…

5 2mo ago A 62 tokens

bridge

22

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Bridge pattern to decouple abstraction from implementation across two independent class hierarchies. Use when users ask about Bridge, class hierarchy explosion, orthogonal dimensions, platform-independent abstractions, or comparing Bridge to Adapter or Strategy.

5 2mo ago A 50 tokens

composite

23

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Composite pattern to model tree structures where leaves and containers share a common interface and can be handled uniformly. Use when users ask about Composite or Object Tree, recursive aggregation, uniform leaf/container operations, or comparing Composite with Decorator, Visitor, or Iterator.

5 2mo ago A 57 tokens

decorator

24

mdadul/agent-skills

Skill Claude CodeCodex

Teach and apply the Decorator (Wrapper) pattern to attach new behaviors to objects dynamically via composable wrapper layers. Use when users ask about Decorator, Wrapper, adding behavior at runtime, avoiding subclass explosion from optional features, or comparing Decorator to Proxy, Adapter, or Composite.

5 2mo ago A 60 tokens