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 @@
|
||||
## Agent Prompt.txt
|
||||
|
||||
```text
|
||||
````text
|
||||
You are Lovable, an AI editor that creates and modifies web applications. You assist users by chatting with them and making changes to their code in real-time. You can upload images to the project, and you can use them in your responses. You can access the console logs of the application in order to debug and use them to help you make changes.
|
||||
|
||||
Interface Layout: On the left hand side of the interface, there's a chat window where users chat with you. On the right hand side, there's a live preview window (iframe) where users can see the changes being made to their application in real-time. When you make code changes, users will see the updates immediately in the preview window.
|
||||
@@ -305,4 +305,5 @@ Since the codebase is a template, you should not assume they have set up anythin
|
||||
- Make sure to update the index page.
|
||||
- WRITE FILES AS FAST AS POSSIBLE. Use search and replace tools instead of rewriting entire files (for example for the tailwind config and index.css). Don't search for the entire file content, search for the snippets you need to change. If you need to change a lot in the file, rewrite it.
|
||||
- Keep the explanations very, very short!
|
||||
```
|
||||
|
||||
````
|
||||
@@ -1,3 +1,177 @@
|
||||
# Lovable AI Tools Summary
|
||||
|
||||
Lovable AI provides the following core tools for creating and modifying web applications:
|
||||
|
||||
1. **lov-add-dependency** - Add project dependency
|
||||
- Used to add dependencies to the project; dependencies should be valid npm package names
|
||||
|
||||
2. **lov-search-files** - Regex-based code search
|
||||
- Searches for files in the project using regex patterns
|
||||
- Supports file filtering and context search
|
||||
|
||||
3. **lov-write** - Write to file
|
||||
- Used to write to a file, overwriting if it already exists
|
||||
- Primarily used for creating new files or as a fallback if lov-line-replace fails
|
||||
|
||||
4. **lov-line-replace** - Line-based search and replace tool
|
||||
- Used to find and replace specific content in a file
|
||||
- Edits using explicit line numbers; preferred tool for modifying existing files
|
||||
|
||||
5. **lov-download-to-repo** - Download file to repository
|
||||
- Downloads files from a URL and saves them to the repository
|
||||
- Suitable for downloading images, assets, or other files
|
||||
|
||||
6. **lov-fetch-website** - Fetch website content
|
||||
- Fetches website content and temporarily saves it as markdown, HTML, or screenshot
|
||||
- Returns paths to created files and a preview of the content
|
||||
|
||||
7. **lov-copy** - Copy file or directory
|
||||
- Used to copy a file or directory to a new location
|
||||
|
||||
8. **lov-view** - View file content
|
||||
- Used to read file content, with optional line range specification
|
||||
|
||||
9. **lov-read-console-logs** - Read console logs
|
||||
- Used to read the latest console log content
|
||||
|
||||
10. **lov-read-network-requests** - Read network requests
|
||||
- Used to read the latest network request content
|
||||
|
||||
11. **lov-remove-dependency** - Remove dependency
|
||||
- Used to uninstall packages from the project
|
||||
|
||||
12. **lov-rename** - Rename file
|
||||
- Used to rename files instead of creating new ones and deleting old ones
|
||||
|
||||
13. **lov-delete** - Delete file
|
||||
- Used to delete files
|
||||
|
||||
14. **secrets--add_secret** - Add secret
|
||||
- Adds new secrets such as API keys or tokens
|
||||
|
||||
15. **secrets--update_secret** - Update secret
|
||||
- Updates existing secrets such as API keys or tokens
|
||||
|
||||
16. **supabase--docs-search** - Search Supabase documentation
|
||||
- Searches official Supabase documentation via the Content API
|
||||
|
||||
17. **supabase--docs-get** - Get Supabase documentation
|
||||
- Fetches complete Supabase documentation pages via the Content API
|
||||
|
||||
18. **document--parse_document** - Parse document
|
||||
- Parses and extracts content from documents, handling various formats like PDF, Word documents, etc.
|
||||
|
||||
19. **imagegen--generate_image** - Generate image
|
||||
- Generates images based on text prompts and saves them to specified file paths
|
||||
|
||||
20. **imagegen--edit_image** - Edit image
|
||||
- Edits or merges existing images
|
||||
|
||||
21. **websearch--web_search** - Web search
|
||||
- Performs web searches and returns relevant results
|
||||
|
||||
22. **analytics--read_project_analytics** - Read project analytics data
|
||||
- Reads analytics data for production builds of the project
|
||||
|
||||
23. **stripe--enable_stripe** - Enable Stripe integration
|
||||
- Enables Stripe integration on the current project
|
||||
|
||||
24. **security--run_security_scan** - Run security scan
|
||||
- Performs comprehensive security analysis of the Supabase backend
|
||||
|
||||
25. **security--get_security_scan_results** - Get security scan results
|
||||
- Fetches security information about the project accessible to the user
|
||||
|
||||
26. **security--get_table_schema** - Get table schema
|
||||
- Fetches database table schema information for the project's Supabase database
|
||||
|
||||
# Lovable AI Tools Summary
|
||||
|
||||
Lovable AI provides the following core tools for creating and modifying web applications:
|
||||
|
||||
1. **lov-add-dependency** - Add project dependency
|
||||
- Used to add dependencies to the project; dependencies should be valid npm package names
|
||||
|
||||
2. **lov-search-files** - Regex-based code search
|
||||
- Searches for files in the project using regex patterns
|
||||
- Supports file filtering and context search
|
||||
|
||||
3. **lov-write** - Write to file
|
||||
- Used to write to a file, overwriting if it already exists
|
||||
- Primarily used for creating new files or as a fallback if lov-line-replace fails
|
||||
|
||||
4. **lov-line-replace** - Line-based search and replace tool
|
||||
- Used to find and replace specific content in a file
|
||||
- Edits using explicit line numbers; preferred tool for modifying existing files
|
||||
|
||||
5. **lov-download-to-repo** - Download file to repository
|
||||
- Downloads files from a URL and saves them to the repository
|
||||
- Suitable for downloading images, assets, or other files
|
||||
|
||||
6. **lov-fetch-website** - Fetch website content
|
||||
- Fetches website content and temporarily saves it as markdown, HTML, or screenshot
|
||||
- Returns paths to created files and a preview of the content
|
||||
|
||||
7. **lov-copy** - Copy file or directory
|
||||
- Used to copy a file or directory to a new location
|
||||
|
||||
8. **lov-view** - View file content
|
||||
- Used to read file content, with optional line range specification
|
||||
|
||||
9. **lov-read-console-logs** - Read console logs
|
||||
- Used to read the latest console log content
|
||||
|
||||
10. **lov-read-network-requests** - Read network requests
|
||||
- Used to read the latest network request content
|
||||
|
||||
11. **lov-remove-dependency** - Remove dependency
|
||||
- Used to uninstall packages from the project
|
||||
|
||||
12. **lov-rename** - Rename file
|
||||
- Used to rename files instead of creating new ones and deleting old ones
|
||||
|
||||
13. **lov-delete** - Delete file
|
||||
- Used to delete files
|
||||
|
||||
14. **secrets--add_secret** - Add secret
|
||||
- Adds new secrets such as API keys or tokens
|
||||
|
||||
15. **secrets--update_secret** - Update secret
|
||||
- Updates existing secrets such as API keys or tokens
|
||||
|
||||
16. **supabase--docs-search** - Search Supabase documentation
|
||||
- Searches official Supabase documentation via the Content API
|
||||
|
||||
17. **supabase--docs-get** - Get Supabase documentation
|
||||
- Fetches complete Supabase documentation pages via the Content API
|
||||
|
||||
18. **document--parse_document** - Parse document
|
||||
- Parses and extracts content from documents, handling various formats like PDF, Word documents, etc.
|
||||
|
||||
19. **imagegen--generate_image** - Generate image
|
||||
- Generates images based on text prompts and saves them to specified file paths
|
||||
|
||||
20. **imagegen--edit_image** - Edit image
|
||||
- Edits or merges existing images
|
||||
|
||||
21. **websearch--web_search** - Web search
|
||||
- Performs web searches and returns relevant results
|
||||
|
||||
22. **analytics--read_project_analytics** - Read project analytics data
|
||||
- Reads analytics data for production builds of the project
|
||||
|
||||
23. **stripe--enable_stripe** - Enable Stripe integration
|
||||
- Enables Stripe integration on the current project
|
||||
|
||||
24. **security--run_security_scan** - Run security scan
|
||||
- Performs comprehensive security analysis of the Supabase backend
|
||||
|
||||
25. **security--get_security_scan_results** - Get security scan results
|
||||
- Fetches security information about the project accessible to the user
|
||||
|
||||
26. **security--get_table_schema** - Get table schema
|
||||
- Fetches database table schema information for the project's Supabase database
|
||||
|
||||
## Agent Tools.json
|
||||
|
||||
```json
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
# Lovable (EN)
|
||||
# Lovable
|
||||
|
||||
## 内容列表
|
||||
- [Agent Prompt](./Agent%20Prompt.md)
|
||||
- [Agent Tools](./Agent%20Tools.md)
|
||||
|
||||
- 📄 [Agent Prompt](/en/en/lovable/Agent Prompt.md)
|
||||
- 📄 [Agent Tools](/en/en/lovable/Agent Tools.md)
|
||||
## Summary of Product Tool Documents
|
||||
|
||||
This directory contains the core system prompts and toolset designed for the AI editor "Lovable". Lovable is positioned as an AI assistant that creates and modifies web applications in real-time within the browser, with its technology stack based on React, Vite, Tailwind CSS, and TypeScript, and natively integrated with Supabase.
|
||||
|
||||
*完整还原。*
|
||||
- **`Agent Prompt.md`**: This is Lovable's core system prompt, defining its identity, interface layout, technology stack limitations, and code of conduct. The prompt emphasizes discussing and planning with the user before coding, and adhering to the principles of "perfect architecture" and "maximizing efficiency" (especially parallel tool calls). It also details SEO best practices, debugging guidelines, design principles (emphasizing design systems and avoiding temporary styles), and a clear, necessary workflow from context checking to implementation and verification.
|
||||
|
||||
- **`Agent Tools.md`**: Defines in detail the extensive toolset available to Lovable in JSON format. These tools are comprehensive and cover various aspects of software development, including:
|
||||
- **File and Dependency Management**: `lov-add-dependency`, `lov-write`, `lov-line-replace`, `lov-rename`, `lov-delete`, etc.
|
||||
- **Code and Web Exploration**: `lov-search-files`, `lov-fetch-website`, `websearch--web_search`.
|
||||
- **Debugging and Analysis**: `lov-read-console-logs`, `lov-read-network-requests`, `analytics--read_project_analytics`.
|
||||
- **Third-party Integrations**: Includes multiple specialized tools related to Supabase, image generation, Stripe payments, and security scanning, such as `supabase--*`, `imagegen--*`, `stripe--*`, `security--*`.
|
||||
|
||||
In summary, these two files together depict an extremely powerful AI Web development assistant with a rich toolset. It can not only handle code creation and modification but also perform debugging, analysis, design, search, security scanning, and deeply integrate various third-party services, aiming to provide a one-stop, in-browser complete experience for web application development.
|
||||
Reference in New Issue
Block a user