analyzing-service-layer

Analyze service classes, DTOs, mappers, and formulas to generate structured markdown documentation.

9|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/cliftonc/unwind --skill analyzing-service-layer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyzing-service-layer
Source: https://github.com/cliftonc/unwind/tree/main/skills/analyzing-service-layer
Command: npx skills add https://github.com/cliftonc/unwind --skill analyzing-service-layer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The service layer in many codebases is complex and inconsistently documented. This skill provides a structured approach to analyze, extract, and document services, DTOs, mappers, and business formulas to enable reliable rebuilds and maintenance.

Core Features & Use Cases

  • Analyze and catalog all service classes, including their public methods and transaction boundaries.
  • Capture DTOs and mapping logic to ensure data contracts are preserved.
  • Generate a complete layer documentation set (index.md, services.md, dtos.md, mappers.md, formulas.md, clients.md) ready for review and integration with the unwind workflow.
  • Use case: a team migrating a monolith to a microservices architecture can rely on the produced docs to map dependencies and transformations.

Quick Start

Review the generated docs under docs/unwind/layers/service-layer/ to begin validating and expanding the service-layer documentation.

Frequently Asked Questions about analyzing-service-layer

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

FAQPage Schema
How do I document service layer architecture for a codebase migration?

To document service layer architecture, you analyze service classes, DTOs, mappers, and business formulas to generate structured markdown files. This creates an index, domain-specific sections, and a dependency graph under docs/unwind/layers/service-layer/ for reliable rebuilds.

What is the best way to catalog DTOs and mappers across different domains?

The best way to catalog DTOs and mappers is to extract data contracts and mapping logic to preserve transformations across domains. The generated documentation captures these elements in dedicated dtos.md and mappers.md files, ensuring data contracts are clearly mapped for maintenance.

How do I extract and document business formulas from an existing service layer?

To extract and document business formulas from a service layer, analyze the codebase to document calculations with their original sources. The process outputs a formulas.md file that enforces mandatory tagging and records where each business rule originates.

Can I generate a dependency graph for service classes to support a microservices migration?

Yes, generating a dependency graph for service classes maps transaction boundaries and public method dependencies. This graph is produced as part of the service-layer documentation set, helping teams map dependencies when migrating a monolith to microservices.

What files are generated when analyzing a service layer for documentation?

When analyzing a service layer for documentation, the process generates a complete set including index.md, services.md, dtos.md, mappers.md, formulas.md, and clients.md. These markdown files are output under docs/unwind/layers/service-layer/ for review and integration.