Ports generic-scripts-module-v1 into a routed skill: module anatomy, shared loggers/base modules, Taskfile integration, workflows, and pattern decisions. Fixes a latent defect in the loggers example that silenced all logging in the module scaffold: loggers/lib/--index-api.sh now sources --env-vars-reader.sh, and the reader preserves already-exported values so caller overrides still win. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
547 B
547 B
module-example-v1 Generic Scaffold
This is a generic reference scaffold for a new Cognitive Architect script module.
To adapt it:
- Copy
module-example-v1/into.scripts/<new-module>/. - Replace paths containing
module-example-v1. - Replace environment prefix
MODULE_EXAMPLE_V1_. - Replace function prefix
_moduleExampleV1_. - Add public API wrappers and implementation files as needed.
- Add a root
Taskfile.ymlinclude only if the module should be task-runner public. - Run
bash -nagainst all generated.shfiles.