new-module
Skill1 starsChanged 36 days agoMITView on GitHub
Scaffold a new bounded-context module (domain, application, infrastructure, public API) under src/modules. Use when the user wants a new area of the business such as "billing" or "catalog" that does not fit an existing module.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- ricci-labs/twisetheir own version, first seen Oct 20, 2026
- lepresk/groundworktheir own version, first seen Oct 15, 2026
- nextflow-io/trainingtheir own version, first seen Oct 8, 2026
- luk-s12/legiontheir own version, first seen Aug 31, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- nextflow-io/training★ 277same name
- luk-s12/legion★ 2same name
- lepresk/groundwork★ 0same name
- ricci-labs/twise★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- connect-uiSkill
- new-adapterSkill
- new-use-caseSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Create the folders and files from templates/:
- Very specific: line 20
Add use cases with the new-use-case skill and adapters with the new-adapter skill.
- Very specific: line 21
Add src/composition/<name>.ts wiring adapters into use cases (see src/composition/orders.ts).
- Very specific: line 22
Never import another module's internals.
- Very specific: line 23
Run pnpm check and fix everything before reporting done.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
New module
Creates src/modules/<name>/ with the same layout as orders. <name> is lower-case, singular or plural noun (billing, catalog).
Steps
- Confirm the module does not already exist (
ls src/modules) and that the concept does not belong in an existing module. - Create the folders and files from templates/:
domain/errors.ts(copyDomainErrorpattern fromsrc/modules/orders/domain/errors.ts),domain/ports.ts,domain/index.tsapplication/index.tsinfrastructure/index.tsindex.ts(public API: re-exports domain and application, never infrastructure)
- Model the first entity in
domain/with its invariants, test first: writedomain/<entity>.test.ts(valid + invalid cases), watch it fail, then implement. - Add use cases with the
new-use-caseskill and adapters with thenew-adapterskill. - Add
src/composition/<name>.tswiring adapters into use cases (seesrc/composition/orders.ts). - Never import another module's internals; use only
@/modules/<other>(itsindex.ts). - Run
pnpm checkand fix everything before reporting done.
Tests expected
Domain tests for every invariant, including invalid input. Application and infrastructure tests are added by the other skills.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

