Claude Code design-deep-modules skill: Review and simplify an API
Inspect the methods, options, exceptions, and ordering rules a module exposes. The skill identifies details callers have to manage and proposes a smaller interface that keeps the underlying behavior.
中文Install in Claude Code
Open a local Claude Code practice project with a module file or a short example of the calling code.
- Download the repository snapshot at the linked commit. Copy the entire software-design-plugin/skills/design-deep-modules/ directory into .claude/skills/design-deep-modules/ in your practice project.
- Confirm that SKILL.md is directly inside .claude/skills/design-deep-modules/. Open Claude Code from the project root and enter /design-deep-modules CsvReport.
Example task
Run /design-deep-modules CsvReport. Describe callers that must run init(delimiter=','), format(rows), and write(path) in that order. Ask for two designs that retain an optional delimiter.What to check
The review identifies the repeated setup and ordering dependency, then sketches an interface such as writeReport(rows, path, options) with a default delimiter.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does a small method count make a module deep?
Depth depends on how much implementation complexity the interface hides. Check how much configuration and sequencing callers still have to manage.