dre-integrate

Set up DRE dependencies and scaffold feature folders in Android and Kotlin projects.

8|Updated May 18, 2025
One-click install
npx skills add https://github.com/decoutkhanqindev/DexReader --skill dre-integrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dre-integrate
Source: https://github.com/decoutkhanqindev/DexReader/tree/main/.claude/skills/dre-integrate
Command: npx skills add https://github.com/decoutkhanqindev/DexReader --skill dre-integrate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dre-core, dre-android, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the challenge of integrating the DRE pattern into Android/Kotlin projects, streamlining the transition from traditional architecture patterns to the DRE (Dispatch → Reduce → Effects) architecture for more maintainable and testable code.

Core Features & Use Cases

  • Project Setup: Adds the dre-kt library to your project and configures it for usage.
  • Feature Scaffolding: Automatically creates a new feature folder with the necessary files to follow the DRE pattern.
  • Migrating to DRE: Provides guidance on migrating existing ViewModels to the DRE pattern.

Quick Start

Integrate the DRE pattern into your project by running /dre-integrate setup.

Frequently Asked Questions about dre-integrate

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

FAQPage Schema
What is the DRE architectural pattern in Android and Kotlin?

The DRE (Dispatch → Reduce → Effects) pattern structures state management in Android Kotlin applications to produce more maintainable and testable code by separating state changes from side effects.

How do I integrate the DRE pattern into my existing Android Kotlin project?

You can integrate the DRE pattern by running the setup script to add the dre-kt library and configure dependencies, which automatically generates feature folders containing Contracts, Reducers, and ViewModels.

Can I migrate existing ViewModels to the DRE architecture?

Yes, you can migrate existing ViewModels to the DRE architecture. The Skill provides specific guidance and scripts to assist in transitioning from traditional architecture patterns to the DRE structure.

What dependencies do I need to set up the DRE pattern in Android?

Setting up the DRE pattern requires the dre-core and dre-android dependencies. The integration script automatically adds the dre-kt library and configures these required dependencies for your Android project.

What files are generated when scaffolding a new feature with the DRE pattern?

Scaffolding a new feature with the DRE pattern automatically creates a feature folder containing the necessary files, specifically Contracts, Reducers, and ViewModels, to properly follow the DRE architecture.