module
When to use
Use this skill when creating, exploring, or working within a module under
any directory listed in modules.root_paths (team setting in
.agent-project-settings.yml). The skill is stack-agnostic — Laravel
HMVC, Symfony DDD-lite, Node monorepo, Python src layout, Go internal/,
or a custom path all flow through the same procedure with a
stack-specific carve-out at the bottom.
When modules.enabled is false (the default) the skill is a no-op —
the project does not opt into module-aware behavior.
Understand the current layout before editing
Before creating, renaming, or modifying anything inside a module:
- Read the
modules:block from.agent-project-settings.yml—
never assume a specific module root.
- List the existing modules under each
modules.root_pathsentry and
review the target module's README.md (or package.json /
pyproject.toml description) to understand its purpose.
- Read any module-scoped agent docs under
{module_root}/{ModuleName}/{modules.agent_folder}/contexts/.
- Match the stack carve-out below by
modules.namespace_template
shape and confirm the conventions before generating files.
Skip this step → risk creating files in the wrong root, breaking
stack-native auto-loading, or duplicating existing modules.
Procedure: Work with modules
- Read
modules:block from.agent-project-settings.ymlvia the
loader (get_modules_config() in scripts/_lib/agent_settings.ts).
- For each path in
modules.root_paths, read the module'sREADME.md
(or package.json / pyproject.toml description) for purpose.
- If module-level agent docs exist under
{module_root}/{modules.agent_folder}/ (default agents/), read them.
- Match the stack carve-out below by
modules.namespace_templateshape
or root-path heuristic — apply stack-specific conventions on top of
the generic procedure.
Detection (fallback when `modules:` block is empty)
When modules.enabled is unset / false, the skill consults the
auto-detection table in