domain-extraction

Extract domain concepts from Flutter code into pure TypeScript artifacts.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/Saurav-snapwork/NewAppTemplate --skill domain-extraction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: domain-extraction
Source: https://github.com/Saurav-snapwork/NewAppTemplate/tree/main/.github/skills/domain-extraction
Command: npx skills add https://github.com/Saurav-snapwork/NewAppTemplate --skill domain-extraction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MUST be used whenever business logic needs to be extracted into a pure TypeScript domain layer following clean architecture. Use when: isolating entities, use cases, and repository interfaces from Flutter domain classes or mixed UI+logic code; creating the domain layer of a new feature after the Feature Folder Generator has scaffolded the structure; verifying that an existing domain layer contains no framework dependencies; removing React, Axios, Redux, or any UI/infrastructure imports from business logic.

Core Features & Use Cases

  • Extract domain entities as pure TypeScript interfaces
  • Generate domain value objects and policy classes to enforce invariants
  • Scaffold repository interfaces and use cases aligned with clean architecture
  • Validate domain boundaries and produce a canonical domain index per feature

Quick Start

Point the classifier at a Flutter feature and run the domain-extraction skill to scaffold domain models, use cases, and repository interfaces.

Frequently Asked Questions about domain-extraction

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

FAQPage Schema
How do I extract domain logic from Flutter code into a clean TypeScript architecture?

To extract domain logic from Flutter code, point the skill at a Flutter feature to generate pure TypeScript domain entities, use cases, and repository interfaces. It isolates business rules from UI-heavy code to scaffold a zero-dependency domain layer.

What is a pure domain layer in clean architecture and when do I need it?

A pure domain layer in clean architecture contains business logic with zero framework dependencies. You need it when isolating entities and use cases from UI or infrastructure code, ensuring business rules remain independent of frameworks like React or Axios.

Can I use this to remove UI and framework dependencies from my existing domain layer?

Yes, you can use this to remove UI and framework dependencies by validating domain boundaries. It detects and eliminates React, Axios, Redux, or any infrastructure imports from your business logic, ensuring a pure TypeScript domain layer.

How do I scaffold domain entities and use cases for a new TypeScript feature?

To scaffold domain entities and use cases, run the domain-extraction skill after the Feature Folder Generator has created the structure. It extracts domain concepts and generates value objects, policy classes, and a canonical domain index per feature.

Does the generated TypeScript domain layer have any external dependencies?

No, the generated TypeScript domain layer has zero external dependencies. The skill enforces canonical Result<T> types and validates domain boundaries before writing output, ensuring business logic remains strictly isolated.