decompose

Map project responsibilities and dependencies into modular boundaries.

39|6|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/mayurpise/draft --skill decompose
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: decompose
Source: https://github.com/mayurpise/draft/tree/main/skills/decompose
Command: npx skills add https://github.com/mayurpise/draft --skill decompose

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Decompose a project or track into well-defined modules with clear responsibilities, boundaries, and a recommended implementation order.

Core Features & Use Cases

  • Module discovery: Identify cohesive modules based on code structure and track requirements.
  • Dependency mapping: Analyze inter-module dependencies and flag potential circular references.
  • Architecture generation: Create a draft architecture file (architecture.md) at project-wide or track-scoped levels, including module definitions and a visualization of dependencies.
  • Checkpoint-driven planning: Provide a guided checkpoint flow to align with developer approval before implementation.

Quick Start

Run the decomposition workflow to generate a draft architecture. Review draft/architecture.md to refine modules, boundaries, and dependency order before proceeding.

Frequently Asked Questions about decompose

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

FAQPage Schema
How do I decompose a monolithic project into modular architecture?

You can decompose an existing brownfield project by mapping current code structure and inter-module dependencies. The workflow identifies cohesive modules, flags potential circular references, and outputs a draft architecture for developer review.

What is the best way to plan module boundaries for a new software project?

Planning module boundaries for a greenfield project involves consuming product context and tech-stack details to generate a draft architecture. This skill produces a checkpoint-driven flow to align module definitions and implementation order before coding begins.

How do I map and visualize inter-module dependencies during refactoring?

Yes, track-scoped decomposition is supported alongside project-wide workflows. You can target specific tracks to map module boundaries, dependencies, and implementation order without decomposing the entire project architecture at once.

What format does the generated architecture document use for module planning?

The generated architecture document is a markdown file named draft/architecture.md. It records module details, dependency mappings, and a recommended implementation order to guide checkpoint reviews and subsequent development.