11
This commit is contained in:
25
Tools/ai_studio_code.txt
Normal file
25
Tools/ai_studio_code.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
# ----------------------------------------------------------------
|
||||
# 功能: 为 Gemini CLI 设置必要的环境变量
|
||||
# 文件名: setup-gemini-env.ps1
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
# 1. 设置代理服务器
|
||||
# 同时为 http 和 https 设置代理是一个好习惯
|
||||
Write-Host "正在设置代理..."
|
||||
$env:http_proxy = "http://127.0.0.1:57635"
|
||||
$env:https_proxy = "http://127.0.0.1:57635"
|
||||
|
||||
# 2. 设置 Google Cloud 项目 ID
|
||||
Write-Host "正在设置 Google Cloud 项目 ID..."
|
||||
$env:GOOGLE_CLOUD_PROJECT = "849717647345"
|
||||
$env:GOOGLE_CLOUD_PROJECT = "599390467291"
|
||||
$env:GOOGLE_CLOUD_PROJECT = "72240764922"
|
||||
|
||||
|
||||
# 3. 提示用户操作完成
|
||||
Write-Host ""
|
||||
Write-Host "环境变量设置完成!" -ForegroundColor Green
|
||||
Write-Host "您现在可以在此 PowerShell 窗口中直接运行 'gemini' 命令了。"
|
||||
Write-Host "例如: gemini prompt '天空为什么是蓝色的?'"
|
||||
|
||||
node dark-server.js
|
||||
25
Tools/rimworld.md
Normal file
25
Tools/rimworld.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# RimWorld Modding Expert Rules
|
||||
|
||||
## Primary Directive
|
||||
You are an expert assistant for developing mods for the game RimWorld 1.6. Your primary knowledge source for any C# code, class structures, methods, or game mechanics MUST be the user's local files. Do not rely on external searches or your pre-existing knowledge, as it is outdated for this specific project.
|
||||
|
||||
## Tool Usage Mandate
|
||||
When the user's request involves RimWorld C# scripting, XML definitions, or mod development concepts, you **MUST** use the `rimworld-code-rag` tool to retrieve relevant context from the local knowledge base.
|
||||
|
||||
## Key File Paths
|
||||
Always remember these critical paths for your work:
|
||||
|
||||
- **Local C# Knowledge Base (for code search):** `C:\Steam\steamapps\common\RimWorld\dll1.6` (This contains the decompiled game source code as .txt files).
|
||||
- **User's Mod Project (for editing):** `C:\Steam\steamapps\common\RimWorld\Mods\3516260226`
|
||||
- **User's C# Project (for building):** `C:\Steam\steamapps\common\RimWorld\Mods\3516260226\Source\WulaFallenEmpire`
|
||||
|
||||
## Workflow
|
||||
1. Receive a RimWorld modding task.
|
||||
2. Immediately use the `rimworld-knowledge-base` tool with a precise query to get context from the C# source files.
|
||||
3. Analyze the retrieved context.
|
||||
4. Perform code modifications within the user's mod project directory.
|
||||
5. After modifying C# code, you MUST run `dotnet build C:\Steam\steamapps\common\RimWorld\Mods\3516260226\Source\WulaFallenEmpire\WulaFallenEmpire.csproj` to check for errors. A successful build is required for task completion.
|
||||
|
||||
## Verification Mandate
|
||||
When writing or modifying code or XML, especially for specific identifiers like enum values, class names, or field names, you **MUST** verify the correct value/spelling by using the `rimworld-knowledge-base` tool. Do not rely on memory.
|
||||
- **同步项目文件:** 当重命名、移动或删除C#源文件时,**必须**同步更新 `.csproj` 项目文件中的相应 `<Compile Include="..." />` 条目,否则会导致编译失败。
|
||||
Reference in New Issue
Block a user