Design a deep module
SkillMediaDesign or improve a module interface and its seam. Use for architecture or refactor discussions that must reduce caller knowledge, concentrate behavior, or improve testability. Do not use for routine implementation inside an accepted design.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Design a deep module skill
What this skill tells your AI
The instructions your AI receives, as published by engagemedia-video/cinematacms in .agents/skills/codebase-design/SKILL.md and read by ahel’s review.
A module is a function, class, package, Django application boundary, frontend feature, or other unit with an interface and an implementation. A deep module hides substantial behavior behind an interface that callers can learn and test without knowing its internals.
Use these terms consistently:
- Interface: every fact a caller must know, including inputs, outputs, invariants, ordering, errors, configuration, and performance constraints.
- Seam: the place where behavior can vary without editing the caller.
- Adapter: one implementation that satisfies an interface at a seam.
- Depth: the capability that callers gain relative to the interface they must learn.
- Locality: keeping related behavior, knowledge, and verification in one place.
Choose the module shape
- Map the callers, dependencies, tests, and behavior that currently changes together.
- Put the seam where callers need stable behavior and implementations can vary for a concrete reason.
- Minimize methods, parameters, ordering constraints, and leaked state.
- Keep policy behind the interface. Keep transport, persistence, or framework details in an adapter when they genuinely vary.
- Test through the same interface that production callers use.
Use the deletion test. If deleting the module makes its complexity disappear, the module was probably a pass-through. If the complexity spreads back across callers, the module was providing locality.
One adapter does not justify a speculative seam. Add a seam when a real caller, test double, or alternate implementation needs it.
Present the proposed interface, its invariants, the seam location, the affected callers, and the focused tests that prove it. Do not implement the design unless the user also requests implementation.
Signals
- GitHub stars
- 25
- Forks
- 14
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
codebase-design-engagemedia-video- Source
- github.com/engagemedia-video/cinematacms