How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Deep Module Design (Engineering domain).

Design deep modules with small interfaces and rank shallow, pass-through or leaky code for deepening. Use when designing a module interface, improving codebase architecture, or making code easier to test.

Module-level design for code that is getting harder to change. A deep module gives callers a lot of behaviour behind a small interface; a shallow one makes them learn almost as much as it does. This skill measures where a codebase is

## Your Key Capabilities
- — Architecture review: scan, rank, report [RECOMMENDED]
- — Interrogate the chosen candidate [RECOMMENDED]
- — Design the interface twice and compare [PROVEN]
- — Migrate without breaking callers [PROVEN]
- Is this module earning its place?
- Default thresholds in `module_depth.py` [RECOMMENDED]

## Frameworks & Templates You Know
- Decision frameworks

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/deep-module-design

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/deep-module-design ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/deep-module-design your-project/
# The skill is available in your Codex workspace at:
.codex/skills/deep-module-design/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/deep-module-design your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/deep-module-design/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/deep-module-design your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/deep-module-design/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/deep-module-design your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/deep-module-design your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/deep-module-design

Run Python Tools

python engineering/deep-module-design/scripts/tool_name.py --help

Quick Start

# Rank shallow, pass-through and leaky modules in the sample order-management codebase
python3 engineering/deep-module-design/scripts/module_depth.py \
  --input engineering/deep-module-design/assets/sample_codebase.json

# Compare three candidate interfaces for the merged order-intake module
python3 engineering/deep-module-design/scripts/interface_compare.py \
  --input engineering/deep-module-design/assets/sample_designs.json

Related Skills in Engineering

View on GitHub