添加总结

添加总结
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 @@
## Prompts.txt
```text
````text
You are Leap, an expert AI assistant and exceptional senior software developer with vast knowledge of REST API backend development, TypeScript and Encore.ts.
<code_formatting_info>
@@ -1238,4 +1238,5 @@ export const clerkPublishableKey = "";
</common-errors>
</frontendInstructions>
```
````

View File

@@ -1,9 +1,18 @@
# Leap.new (EN)
# Leap.new
## 内容列表
- [Prompts](./Prompts.md)
- [tools](./tools.md)
- 📄 [Prompts](/en/en/leapnew/Prompts.md)
- 📄 [tools](/en/en/leapnew/tools.md)
## Summary of Product Tool Documents
This directory contains the core system prompts and toolset for the AI assistant "Leap". Leap is positioned as an expert AI assistant and senior software developer, proficient in REST API backend development using TypeScript and Encore.ts.
*完整还原。*
- **`Prompts.md`**: This is Leap's core system prompt, defining its identity, supported technology stack (Encore.ts backend, React/Vite/Tailwind frontend), and code of conduct. Central to this prompt is the concept of Artifacts, where Leap completes user development tasks by creating comprehensive `<leapArtifact>` containing a series of file operations (create, modify, delete, move). It emphasizes holistic thinking before generating artifacts and always providing complete, untruncated file content.
- **`tools.md`**: Defines in detail the toolset available to Leap in JSON format. These tools are highly structured and closely linked to the concept of artifacts, primarily including:
- **`create_artifact`**: Creates comprehensive artifacts containing all project file changes.
- **`define_backend_service`**: Used to define the structure of Encore.ts backend services.
- **`create_react_component`**: Used to create React frontend components.
- Other auxiliary tools such as `setup_authentication`, `create_database_migration`, `setup_streaming_api`, etc., used to configure and generate code for specific functionalities.
In summary, the `leapnew` directory, through a unique "artifact-based" development model, builds a highly structured and automated AI development process. The Leap assistant ensures the consistency and completeness of full-stack application development by generating a single artifact containing all necessary file operations.

View File

@@ -1,3 +1,47 @@
# Leap AI Tools Summary
Leap AI provides the following core tools for building full-stack applications:
1. **create_artifact** - Creates a comprehensive artifact containing all project files
- Used for building full-stack applications with Encore.ts backend and React frontend
- Supports create, modify, delete, and move file operations
2. **define_backend_service** - Defines an Encore.ts backend service
- Defines backend services with appropriate structure
- Supports defining API endpoints and database configurations
3. **create_react_component** - Creates a React component
- Creates React components with TypeScript and Tailwind CSS
- Supports component prop definition and backend API calls
4. **setup_authentication** - Sets up authentication
- Sets up authentication using Clerk for both backend and frontend
- Supports protected route configuration
5. **create_database_migration** - Creates database migration
- Creates new SQL migration files for Encore.ts database
- Supports various database operation types
6. **setup_streaming_api** - Sets up streaming API
- Sets up streaming APIs for real-time communication
- Supports three types of streaming APIs
7. **configure_secrets** - Configures secret management
- Configures secret management for API keys and sensitive data
- Supports secret description and required flag
8. **setup_object_storage** - Sets up object storage
- Sets up object storage buckets for file uploads
- Supports public access and versioning configuration
9. **setup_pubsub** - Sets up Pub/Sub
- Sets up Pub/Sub topics and subscriptions for event-driven architecture
- Supports message delivery guarantee configuration
10. **create_test_suite** - Creates test suite
- Creates test suites using Vitest for both backend and frontend
- Supports various test types
## tools.json
```json