添加总结

添加总结
This commit is contained in:
tycon
2025-10-14 22:04:51 +08:00
parent c87083d594
commit 60ddd120c4
1067 changed files with 134118 additions and 10742 deletions

View File

@@ -1,6 +1,6 @@
## Prompt.txt
```text
````text
You are v0, Vercel's highly skilled AI-powered assistant that always follows best practices.
====
@@ -926,4 +926,5 @@ When making function calls using tools that accept array or object parameters en
Answer the user's request using the relevant tool(s), if they are available. Check that all the required parameters for each tool call are provided or can reasonably be inferred from context. IF there are no relevant tools or there are missing values for required parameters, ask the user to supply these values; otherwise proceed with the tool calls. If the user provides a specific value for a parameter (for example provided in quotes), make sure to use that value EXACTLY. DO NOT make up values for or ask about optional parameters.
If you intend to call multiple tools and there are no dependencies between the calls, make all of the independent calls in the same block, otherwise you MUST wait for previous calls to finish first to determine the dependent values (do NOT use placeholders or guess missing parameters).
```
````

View File

@@ -1,5 +1,31 @@
## Tools.json
## v0 Tools System Overview
This document defines the collection of tools available to the v0 AI assistant, which are the core capabilities that enable v0 to perform various development tasks. The entire tool system is defined in JSON format and includes 13 different tools, each with a clear purpose, parameters, and usage scenarios.
### Core Tool Categories
1. **Web and Search Tools**
- `SearchWeb`: Performs intelligent web searches, prioritizing first-party documentation from the Vercel ecosystem
- `FetchFromWeb`: Fetches full web page content and metadata from specified URLs
2. **Codebase Exploration Tools**
- `GrepRepo`: Searches for regex patterns within file contents across the repository
- `LSRepo`: Lists files and directories in the codebase
- `ReadFile`: Intelligently reads file contents (complete for small files, on-demand for large files)
- `SearchRepo`: Launches a new agent to search and explore the codebase
3. **Development Assistance Tools**
- `InspectSite`: Takes website screenshots for verifying visual bugs or reference designs
- `TodoManager`: Manages structured todo lists for complex, multi-step projects
4. **Design and Integration Tools**
- `GenerateDesignInspiration`: Generates design inspiration to ensure visually appealing content
- `GetOrRequestIntegration`: Checks integration status and retrieves environment variables and database schemas
Each tool adheres to strict parameter specifications, including task status display parameters (`taskNameActive` and `taskNameComplete`), which are shown in the UI to indicate the tool's execution status. This design ensures that users have a clear understanding of the AI assistant's ongoing tasks and completion status.
```json
{
"tools": [

View File

@@ -1,9 +1,14 @@
# v0 Prompts and Tools (EN)
# v0 Prompts and Tools
## 内容列表
- [Prompt](./Prompt.md)
- [Tools](./Tools.md)
- 📄 [Prompt](/en/en/v0-prompts-and-tools/Prompt.md)
- 📄 [Tools](/en/en/v0-prompts-and-tools/Tools.md)
## Summary of Product Tool Documents
This directory contains the core system prompts and toolset definitions designed for Vercel's AI assistant "v0". These documents collectively form v0's code of conduct and capability boundaries in code generation and project development.
*完整还原。*
- **`Prompt.md`**: This file is v0's core system prompt, detailing its identity, coding guidelines, design principles (colors, typography, layout), integration methods with third-party libraries (e.g., Supabase, Neon, Stripe), and alignment strategies for responding to users. It emphasizes v0's best practices in generating Next.js applications, handling files, using specific components (e.g., shadcn/ui), and interacting with the AI SDK.
- **`Tools.md`**: This file defines 13 core tools available to v0 in JSON format. These tools cover the full range of functionalities from codebase exploration (`GrepRepo`, `LSRepo`, `ReadFile`), web search (`SearchWeb`), development assistance (`InspectSite`, `TodoManager`), to design and integration (`GenerateDesignInspiration`, `GetOrRequestIntegration`). Each tool has clear descriptions, parameters, and usage scenarios, forming the basis for v0 to execute specific development tasks.
In summary, these two files collectively depict a powerful AI assistant that adheres to strict specifications, capable of efficiently completing full-stack development tasks from design conception to code implementation through its defined toolset and code of conduct.