Scaffold a Module
Process for creating a new module or package from scratch
CLAUDE.md
When creating a new module:
- Check existing modules for naming conventions, directory structure, and patterns to follow.
- Create the directory with the standard file structure used in this project.
- Create the main entry point file with the public API exports.
- Add a test file with at least one smoke test.
- Wire the module into the project’s build, import maps, or package configuration.
- Run the build to verify the new module compiles and integrates.
- Add a brief comment in the entry file describing the module’s purpose and responsibilities.
Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.