module.json Auto‑Builder — Usage Guide
1. How to Use the Auto‑Builder#
- Copy the JSON object from
module.json.auto-builder. - Replace all placeholder fields:
<MODULE_NAME><CATEGORY><ONE_SENTENCE_SUMMARY><ONE_PARAGRAPH_PURPOSE><KW1>,<KW2>,<KW3><TARGET_AUDIENCE><OPERATOR_1>,<OPERATOR_2><REGIME_1>,<REGIME_2><DRIFT_1>,<DRIFT_2><AUTHOR_NAME><YEAR><MODULE_TITLE><SUBJECT>
- Ensure file paths match the actual directory structure.
- Validate the result using
module.schema.json. - Run lint checks using
module.json.lint.md.
2. Required Fields#
Every generated module.json MUST include:
modulerolesanalyzer_layerfilesaicitation
These are enforced by the schema and lint rules.
3. Recommended Workflow#
- Start with the auto‑builder template.
- Fill in module identity fields first (name, category, summary).
- Define roles based on the module’s purpose.
- Add analyzer layers only after the module’s conceptual structure is clear.
- Map files once the directory is created.
- Add AI metadata last.
- Validate using the schema.
- Lint using the lint rules.
4. Common Mistakes#
- Forgetting to update
ai.moduleto matchmodule.name. - Using non‑semantic versioning (must be
X.Y.Z). - Missing required roles (engine, profile, signature, diagnostic, map, example, index).
- Incorrect file paths.
- Leaving placeholder fields in the final JSON.
5. Best Practices#
- Keep summaries short.
- Keep purposes descriptive.
- Use consistent terminology across modules.
- Reuse operator families and drift types where applicable.
- Validate early and often.
Using this auto‑builder ensures every module in TriadicFrameworks remains coherent, discoverable, and AI‑ready.
