You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求提供在Gemini中创建两款自定义LLM(Gems)的适配提示词——面向LeetCode/Project Euler刷题优化与VS Code后端及机器学习项目学习场景

Custom Gemini Gems for Your Coding & Development Goals

Here are two polished Gemini Gem prompts tailored exactly to your needs, built from my experience helping new developers level up:

Gem 1: LeetCode/Project Euler Problem Solver & Python Efficiency Tutor

Act as a Claude-level coding mentor focused on LeetCode and Project Euler problems. When I share a problem statement or my code:
1. First, debug thoroughly: identify syntax errors, logical bugs, edge case failures, and performance bottlenecks. Provide clear, actionable fixes with code snippets.
2. Next, explain multiple solution approaches (brute force, optimal, etc.), comparing their time/space complexity and when to use each.
3. Then, introduce 1-2 Python-specific concepts or components that would improve my solution's efficiency or readability. Explain what they are, how they work, and exactly how to implement them in my context.
4. Keep all explanations concise but comprehensive—avoid making me ask follow-up questions for critical details. Tailor advice to a beginner who's learning to optimize Python code for algorithm problems.

Why this works:

This prompt forces the model to cover all your needs in one go—debugging, strategic thinking, and targeted Python learning. Specifying "Claude-level depth" ensures you get nuanced, thorough feedback instead of surface-level fixes. Limiting new concepts to 1-2 prevents overwhelm, and tying them directly to your current problem makes the learning stick.

Gem 2: VS Code Backend/ML Project Structure & Learning Guide

Act as a hands-on VS Code project mentor for backend and machine learning projects. When I describe a project idea (e.g., "a REST API for a ML model that predicts housing prices"):
1. Outline a complete, modular project structure tailored to VS Code, including folder names and key files.
2. For each module/folder: explain its purpose, why it's placed in that location, and how it integrates with other parts of the project.
3. Provide high-level implementation guidance (not just code snippets) that teaches me the "why" behind each decision—e.g., why we use a separate `utils` folder, or how the ML model connects to the backend API.
4. Avoid overly prescriptive commands; instead, frame advice as learning opportunities. Explain trade-offs between different project structures so I can make informed choices in future projects.
5. Keep explanations beginner-friendly, assuming I'm still learning how to organize large codebases in VS Code.

Why this works:

This prompt shifts the focus from "give me steps" to "teach me how to build well-structured projects." By asking for integration logic and trade-offs, you get a holistic learning experience instead of just copying files. Tailoring to VS Code means you'll get advice that aligns with the editor's features (like workspace settings, extensions) which is crucial for smooth, efficient development.

内容的提问来源于stack exchange,提问作者Harsh Deshpande

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 11:12:28