Output
📋 The Template Command in greatVibe
What It Does
The /template command manages reusable prompt templates - pre-written AI instructions with variable placeholders that can be applied to different contexts.
/template list # See all templates /template show coding # View template content /template use review file=main.go # Apply with variables
The 6 Built-in Templates
| coding | General coding assistant - contextual help for any language/framework |
| review | Code review - finds bugs, security issues, performance problems |
| debug | Debugging assistant - explains errors, finds root cause |
| explain | Code explanation - step-by-step breakdown of how code works |
| refactor | Refactoring assistant - improves code without changing behavior |
| test | Test writing - generates comprehensive test cases |
Variable Substitution
Templates use {{variable}} placeholders that get filled in:
# Template content: "You are an expert {{language}} developer working on {{project}}..." # After applying with variables: "You are an expert Go developer working on gvShell..."
Where It Fits in greatVibe
greatVibe Platform Architecture ┌─────────────────────────────────────────────────────────┐ │ gvShell (CLI) │ │ ├── /template ← Reusable prompt patterns │ │ ├── /project ← Project context (.gvproject.yaml) │ │ ├── /context ← Active file context │ │ ├── /session ← Conversation state │ │ └── @claude ← AI interaction │ │ │ │ Templates + Context + AI = Consistent, efficient work │ └────────────────────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────┐ │ greatVibe.local (Hub) - future │ │ └── Syncs templates across team/devices │ └─────────────────────────────────────────────────────────┘
Why We Need It
| Consistency | Same prompt structure every time → predictable AI behavior |
| Speed | One command vs typing detailed prompts repeatedly |
| Context-aware | Auto-fills project, language, framework from /project |
| Shareable | Team templates ensure everyone uses best practices |
| Extensible | Create custom templates for your specific workflows |
Real-World Example
Instead of typing:
"Review this Go code for bugs, security issues, performance problems. Format as Critical/Warning/Suggestion. Check for race conditions, null handling, resource leaks..."
You just type:
/template use review
The template automatically includes the full structured prompt with project context.
💡 Bottom Line
Templates are prompt engineering as code - they capture best practices for AI interaction so you get better results faster, every time.
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
gvshelltemplatearchitectureworkflow
Created
7 Jan 2026, 12:02 am
Updated
7 Jan 2026, 12:02 am
Timing
⏱️ 104.2s
0 tools
● TTFE 0%
● Thinking 100%
● Tools 0%
Created By
claude
Raw Data
{
"id": "65768c19-4826-4e79-90bb-b830092cbffc",
"type": "general",
"status": "completed",
"title": "Template Command Explained",
"description": "How /template fits into the greatVibe workflow",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:sans-serif;\">\n<h2 style=\"color:#fff;margin:0 0 20px 0;\">📋 The Template Command in greatVibe</h2>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#e5c07b;\">What It Does</h3>\n<p style=\"color:#e0e0e0;margin:0 0 12px 0;\">The <code style=\"background:#3d3d3d;padding:2px 6px;border-radius:4px;\">/template</code> command manages <strong>reusable prompt templates</strong> - pre-written AI instructions with variable placeholders that can be applied to different contexts.</p>\n<pre style=\"background:#3d3d3d;padding:12px;border-radius:4px;color:#98c379;margin:0;\">/template list # See all templates\n/template show coding # View template content\n/template use review file=main.go # Apply with variables</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#61afef;\">The 6 Built-in Templates</h3>\n<table style=\"width:100%;border-collapse:collapse;\">\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px;color:#98c379;font-weight:bold;\">coding</td><td style=\"padding:8px;color:#abb2bf;\">General coding assistant - contextual help for any language/framework</td></tr>\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px;color:#98c379;font-weight:bold;\">review</td><td style=\"padding:8px;color:#abb2bf;\">Code review - finds bugs, security issues, performance problems</td></tr>\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px;color:#98c379;font-weight:bold;\">debug</td><td style=\"padding:8px;color:#abb2bf;\">Debugging assistant - explains errors, finds root cause</td></tr>\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px;color:#98c379;font-weight:bold;\">explain</td><td style=\"padding:8px;color:#abb2bf;\">Code explanation - step-by-step breakdown of how code works</td></tr>\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px;color:#98c379;font-weight:bold;\">refactor</td><td style=\"padding:8px;color:#abb2bf;\">Refactoring assistant - improves code without changing behavior</td></tr>\n<tr><td style=\"padding:8px;color:#98c379;font-weight:bold;\">test</td><td style=\"padding:8px;color:#abb2bf;\">Test writing - generates comprehensive test cases</td></tr>\n</table>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#c678dd;\">Variable Substitution</h3>\n<p style=\"color:#e0e0e0;margin:0 0 12px 0;\">Templates use <code style=\"background:#3d3d3d;padding:2px 6px;border-radius:4px;\">{{variable}}</code> placeholders that get filled in:</p>\n<pre style=\"background:#3d3d3d;padding:12px;border-radius:4px;color:#e0e0e0;margin:0;\"><span style=\"color:#7f848e;\"># Template content:</span>\n\"You are an expert <span style=\"color:#e5c07b;\">{{language}}</span> developer working on <span style=\"color:#e5c07b;\">{{project}}</span>...\"\n\n<span style=\"color:#7f848e;\"># After applying with variables:</span>\n\"You are an expert <span style=\"color:#98c379;\">Go</span> developer working on <span style=\"color:#98c379;\">gvShell</span>...\"</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#56b6c2;\">Where It Fits in greatVibe</h3>\n<pre style=\"background:#3d3d3d;padding:16px;border-radius:4px;color:#e0e0e0;margin:0;line-height:1.8;\">\n<span style=\"color:#c678dd;font-weight:bold;\">greatVibe Platform Architecture</span>\n\n┌─────────────────────────────────────────────────────────┐\n│ <span style=\"color:#e5c07b;\">gvShell</span> (CLI) │\n│ ├── <span style=\"color:#61afef;\">/template</span> ← <span style=\"color:#98c379;\">Reusable prompt patterns</span> │\n│ ├── /project ← Project context (.gvproject.yaml) │\n│ ├── /context ← Active file context │\n│ ├── /session ← Conversation state │\n│ └── @claude ← AI interaction │\n│ │\n│ <span style=\"color:#7f848e;\">Templates + Context + AI = Consistent, efficient work</span> │\n└────────────────────────────────────────────────────────┘\n │\n ▼\n┌─────────────────────────────────────────────────────────┐\n│ <span style=\"color:#e5c07b;\">greatVibe.local</span> (Hub) - future │\n│ └── Syncs templates across team/devices │\n└─────────────────────────────────────────────────────────┘\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#98c379;\">Why We Need It</h3>\n<table style=\"width:100%;border-collapse:collapse;\">\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:10px;color:#e5c07b;font-weight:bold;width:30%;\">Consistency</td><td style=\"padding:10px;color:#abb2bf;\">Same prompt structure every time → predictable AI behavior</td></tr>\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:10px;color:#e5c07b;font-weight:bold;\">Speed</td><td style=\"padding:10px;color:#abb2bf;\">One command vs typing detailed prompts repeatedly</td></tr>\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:10px;color:#e5c07b;font-weight:bold;\">Context-aware</td><td style=\"padding:10px;color:#abb2bf;\">Auto-fills project, language, framework from /project</td></tr>\n<tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:10px;color:#e5c07b;font-weight:bold;\">Shareable</td><td style=\"padding:10px;color:#abb2bf;\">Team templates ensure everyone uses best practices</td></tr>\n<tr><td style=\"padding:10px;color:#e5c07b;font-weight:bold;\">Extensible</td><td style=\"padding:10px;color:#abb2bf;\">Create custom templates for your specific workflows</td></tr>\n</table>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;\">\n<h3 style=\"margin:0 0 12px 0;color:#ff6b6b;\">Real-World Example</h3>\n<p style=\"color:#e0e0e0;margin:0 0 12px 0;\">Instead of typing:</p>\n<pre style=\"background:#3d3d3d;padding:12px;border-radius:4px;color:#7f848e;margin:0 0 12px 0;\">\"Review this Go code for bugs, security issues, performance\nproblems. Format as Critical/Warning/Suggestion. Check for\nrace conditions, null handling, resource leaks...\"</pre>\n<p style=\"color:#e0e0e0;margin:0 0 8px 0;\">You just type:</p>\n<pre style=\"background:#3d3d3d;padding:12px;border-radius:4px;color:#98c379;margin:0;\">/template use review</pre>\n<p style=\"color:#7f848e;margin:12px 0 0 0;\">The template automatically includes the full structured prompt with project context.</p>\n</div>\n\n<div style=\"background:#1a3d1a;border:1px solid #2d5a2d;padding:16px;border-radius:6px;margin-top:16px;\">\n<h4 style=\"margin:0 0 8px 0;color:#98c379;\">💡 Bottom Line</h4>\n<p style=\"color:#e0e0e0;margin:0;\">Templates are <strong>prompt engineering as code</strong> - they capture best practices for AI interaction so you get better results faster, every time.</p>\n</div>\n</div>",
"requestedAt": "2026-01-06T23:52:00.000Z",
"requestId": "1f06234e-ffaa-4b7a-a9ca-cf573110e5b7",
"choices": [
{
"label": "Try /template",
"value": "Show me an example of using /template use review on a real file",
"primary": true
},
{
"label": "Custom templates",
"value": "How do I create my own custom templates?"
},
{
"label": "Start Phase 7",
"value": "Continue with gvShell Phase 7 Step 28 (Agent Registration)"
}
],
"turnTiming": {
"totalMs": 104193,
"ttfeMs": 71,
"thinkingMs": 104122,
"toolExecutionMs": 0,
"toolCallCount": 0,
"thinkingPct": 100,
"toolsPct": 0,
"ttfePct": 0
}
},
"createdBy": "claude",
"createdAt": "2026-01-06T14:02:37.982Z",
"updatedAt": "2026-01-06T14:02:43.124Z",
"requestId": "1f06234e-ffaa-4b7a-a9ca-cf573110e5b7",
"scope": "vibetools",
"tags": [
"gvshell",
"template",
"architecture",
"workflow"
],
"targetUser": "claude"
}