mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-07 15:30:52 +00:00
添加总结
添加总结
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## DocumentAction.txt
|
||||
|
||||
```text
|
||||
````text
|
||||
The user is curently inside this file: {{filename}}
|
||||
The contents are below:
|
||||
```swift:{{filename}}
|
||||
@@ -18,4 +18,6 @@ Provide documentation for `{{selected_code}}`.
|
||||
|
||||
- Respond with a single code block.
|
||||
- Only include documentation comments. No other Swift code.
|
||||
```
|
||||
|
||||
|
||||
````
|
||||
@@ -1,6 +1,6 @@
|
||||
## ExplainAction.txt
|
||||
|
||||
```text
|
||||
````text
|
||||
The user is curently inside this file: {{filename}}
|
||||
The contents are below:
|
||||
```swift:{{filename}}
|
||||
@@ -15,4 +15,6 @@ The user has selected the following code from that file:
|
||||
The user has asked:
|
||||
|
||||
Explain this to me.
|
||||
```
|
||||
|
||||
|
||||
````
|
||||
@@ -1,6 +1,6 @@
|
||||
## MessageAction.txt
|
||||
|
||||
```text
|
||||
````text
|
||||
The user is curently inside this file: {{filename}}
|
||||
The contents are below:
|
||||
```swift:{{filename}}
|
||||
@@ -14,4 +14,5 @@ The user has selected the following code from that file:
|
||||
|
||||
The user has asked:
|
||||
{{message}}
|
||||
```
|
||||
|
||||
````
|
||||
@@ -1,6 +1,6 @@
|
||||
## PlaygroundAction.txt
|
||||
|
||||
```text
|
||||
````text
|
||||
The user is curently inside this file: {{filename}}
|
||||
The contents are below:
|
||||
```swift:{{filename}}
|
||||
@@ -20,4 +20,6 @@ Provide a brief example on how to use `{{selected}}`.
|
||||
- Don't use comments.
|
||||
- Don't use print statements.
|
||||
- Don't import any additional modules.
|
||||
```
|
||||
|
||||
|
||||
````
|
||||
@@ -1,6 +1,6 @@
|
||||
## PreviewAction.txt
|
||||
|
||||
```text
|
||||
````text
|
||||
The user is curently inside this file: {{filename}}
|
||||
The contents are below:
|
||||
```swift:{{filename}}
|
||||
@@ -58,4 +58,6 @@ The View to create the #Preview for is:
|
||||
`{{selected}}`
|
||||
|
||||
Return the #Preview and no additional explanation. ALWAYS wrap the preview in triple-tick markdown code snippet marks.
|
||||
```
|
||||
|
||||
|
||||
````
|
||||
@@ -1,6 +1,6 @@
|
||||
## System.txt
|
||||
|
||||
```text
|
||||
````text
|
||||
You are a coding assistant--with access to tools--specializing in analyzing codebases. Below is the content of the file the user is working on. Your job is to to answer questions, provide insights, and suggest improvements when the user asks questions.
|
||||
|
||||
Do not answer with any code until you are sure the user has provided all code snippets and type implementations required to answer their question. Briefly--in as little text as possible--walk through the solution in prose to identify types you need that are missing from the files that have been sent to you. Search the project for these types and wait for them to be provided to you before continuing. Use the following search syntax at the end of your response, each on a separate line:
|
||||
@@ -69,4 +69,6 @@ However, less commonly, you will either need to make entirely new things in new
|
||||
You are currently in Xcode with a project open.
|
||||
|
||||
Try not to disclose that you've seen the context above, but use it freely to engage in your conversation.
|
||||
```
|
||||
|
||||
|
||||
````
|
||||
@@ -1,13 +1,12 @@
|
||||
# Xcode (EN)
|
||||
# Xcode
|
||||
|
||||
## 内容列表
|
||||
- [DocumentAction](./DocumentAction.md)
|
||||
- [ExplainAction](./ExplainAction.md)
|
||||
- [MessageAction](./MessageAction.md)
|
||||
- [PlaygroundAction](./PlaygroundAction.md)
|
||||
- [PreviewAction](./PreviewAction.md)
|
||||
- [System](./System.md)
|
||||
|
||||
- 📄 [DocumentAction](/en/en/xcode/DocumentAction.md)
|
||||
- 📄 [ExplainAction](/en/en/xcode/ExplainAction.md)
|
||||
- 📄 [MessageAction](/en/en/xcode/MessageAction.md)
|
||||
- 📄 [PlaygroundAction](/en/en/xcode/PlaygroundAction.md)
|
||||
- 📄 [PreviewAction](/en/en/xcode/PreviewAction.md)
|
||||
- 📄 [System](/en/en/xcode/System.md)
|
||||
## Summary of Product Tool Documents
|
||||
|
||||
|
||||
*完整还原。*
|
||||
This directory contains various operational instructions defined for the AI coding assistant integrated with Xcode. Each document corresponds to a specific user action, detailing how the assistant should respond, what templates to use, and what rules to follow when receiving the corresponding instructions. For example, `DocumentAction.md` is used to generate documentation for selected code, `PreviewAction.md` is used to create previews for SwiftUI views, and `System.md` defines the assistant's core behavior, code analysis capabilities, and interaction principles with the Apple ecosystem (e.g., Swift, SwiftUI). These documents collectively form the functional and behavioral specifications of the AI assistant in Xcode.
|
||||
Reference in New Issue
Block a user