codemap_routine_add_template

Add a template reference to a routine for automated scaffolding workflows

routinetemplatesworkflowautomation

Parameters

NameTypeRequiredDescription
routineNamestring✅ RequiredRoutine name
templateNamestring✅ RequiredTemplate name to add

Usage Examples

MCP Usage (for AI Agents like Claude)

json
{
  "name": "codemap_routine_add_template",
  "arguments": {
    "routineName": "create-component",
    "templateName": "react-component"
  }
}

Example Output

JSON Response

json
{
  "success": true,
  "message": "Template 'react-component' added to routine 'create-component'",
  "routineName": "create-component",
  "templateName": "react-component"
}
ℹ️When to Use This Tool
    Use codemap_routine_add_template when you need to:
  • Automate file scaffolding as part of routine workflows
  • Link templates to specific development processes
  • Create repeatable patterns for new features
  • Standardize file creation across the team
💡Common Patterns
Automated Scaffolding Pattern
1. Create routine for common task
2. Add template to routine
3. Add checklist items for customization
4. Team runs routine to scaffold files
💡Pro Tips
  • Deployment automation: Templates in routines deploy automatically when routine runs
  • Multiple templates: Can add multiple templates to one routine
  • Combine with checklist: Add items for post-deployment customization
Best Practices
  • Add templates that match the routine's purpose
  • Document template placeholders in routine checklist
  • Test routine before sharing with team
  • Use descriptive template names
⚠️Common Mistakes
Mistake: Adding template that doesn't match routine purpose
Instead: Choose templates relevant to the workflow

Mistake: Not documenting required customization steps
Instead: Add checklist items for placeholder replacement

Related Tools