Docs
Custom generators
Generate any file for any tool using a custom generator function.
You can add custom output targets to the custom array in your outputs config. Each entry needs a path and a generator function.
Example
typescript
outputs: {
custom: [
{
path: 'docs/ai-context.md',
generator: (config) =>
`# ${config.project.name}\n\n${config.project.architecture}`,
},
],
},The generator function receives the full parsed config and must return a string. contextai writes that string to the specified path.