MAGS Docs Create
Create a new document from a predefined template.
Usage
/mags-docs-create <template>
Available Templates
| Template | File | Purpose |
|---|---|---|
adr |
docs/adr/NNN-<title>.md |
Architecture Decision Record |
module |
docs/modules/<name>.md |
Module documentation |
rule |
docs/rules/<name>.md |
Coding/process rule |
guide |
docs/guides/<name>.md |
How-to guide |
api |
docs/api/<name>.md |
API endpoint documentation |
Steps
- Parse the template name from the argument.
- If the template name is not recognized, list the available templates and stop.
- Ask the user for the document title/name.
- Call
mags_create_docwith the appropriate path and template content. - Confirm: "Created
<path>. Edit it to fill in the details, or describe what it should contain and I will draft it."
Converted and distributed by TomeVault — claim your Tome and manage your conversions.