The shortest of Xcode's code-action templates. It supplies the current filename, full file contents, and selected Swift code, then issues the bare instruction 'Explain this to me.' with no output-format constraints.
What makes this prompt notable
Minimal prompt: provides full file plus selection context but adds no formatting or length constraints, leaving explanation style open
Reuses the same {{filename}}/{{filecontent}}/{{selected}} context-injection scaffold shared across all Xcode actions
40 words · 245 chars
The user is curently inside this file: {{filename}}
The contents are below:
```swift:{{filename}}
{{filecontent}}
```
The user has selected the following code from that file:
```swift
{{selected}}
```
The user has asked:
Explain this to me.
The most elaborate Copilot VS Code agent prompt, for GPT-5. It combines the Copilot identity and refusals with a detailed communication-style guide, m…
role definitiontool-use protocolstructured diff format specification
A lightweight intent-classification prompt that routes a user message into chat/do/spec modes and returns a JSON object of confidence scores summing t…
Discussion (0)