Skip to main content

Module builtin

Module builtin 

Source
Expand description

Built-in task templates for common patterns.

Responsibilities:

  • Define embedded JSON templates for standard task types.
  • Provide lookup functions for built-in templates by name.

Not handled here:

  • Custom template loading from filesystem (see loader.rs).
  • Template merging with user options (see merge.rs).

Invariants/assumptions:

  • Template JSON is valid and parses to Task structs.
  • Template names are lowercase ASCII without spaces.

Constants§

ADD_DOCS_TEMPLATE
Built-in add-docs template - for documentation improvements
ADD_TESTS_TEMPLATE
Built-in add-tests template - for adding tests to existing code
BUG_TEMPLATE
Built-in bug fix template
DOCS_TEMPLATE
Built-in documentation template
FEATURE_TEMPLATE
Built-in feature template
FIX_ERROR_HANDLING_TEMPLATE
Built-in fix-error-handling template - for improving error handling
REFACTOR_PERFORMANCE_TEMPLATE
Built-in refactor-performance template - for performance optimization
REFACTOR_TEMPLATE
Built-in refactor template
SECURITY_AUDIT_TEMPLATE
Built-in security-audit template - for security improvements
TEST_TEMPLATE
Built-in test template

Functions§

get_builtin_template
Get built-in template by name
get_template_description
Get a human-readable description for a built-in template
list_builtin_templates
List all built-in template names