getPrompt method
Build the prompt content for this command.
Implementation
@override
Future<List<ContentBlock>> getPrompt(
String args,
ToolUseContext context,
) async {
final target = args.trim();
final diffCmd = target.isNotEmpty ? 'git diff $target' : 'git diff';
return [
TextBlock(
'Show the current git changes and provide a concise explanation.\n\n'
'1. Run `$diffCmd`\n'
'2. If no output, try `git diff --staged`\n'
'3. Summarize the changes in a clear, structured way\n',
),
];
}