Skill站外收录 @skilllib/skill-2117939930272415735
verify-multilang-support
验证 code-index-mcp服务对多种编程语言的代码索引与检索能力,通过依次切换不同语言的示例项目路径、触发索引重建、执行语义化代码搜索,并结合文件摘要分析与源码内容校验,确认目标类、函数或接口等关键符号能否被准确识别和定位。
效率工具 AI 技能
Skills.MD
# Verify Multi-Language Support
## Overview
As an Agent, your goal is to verify that the `code-index-mcp` server can correctly index and search code across different programming languages. You will use the **MCP Tools** available to you (`set_project_path`, `refresh_index`, `search_code_advanced`) to interact with the sample projects located in `test/sample-projects`.
## Instructions
1. **Preparation**:
- Locate the `test/sample-projects` directory.
- Understand that you will need to iterate through specific subdirectories.
2. **Verification Loop**:
For each language listed in the **Verification Targets** table below, perform the following steps **sequentially**:
a. **Set Path**: Call `mcp_code-index_set_project_path` with the absolute path to the language's sample project.
- *Example*: `.../test/sample-projects/python`
b. **Index**: Call `mcp_code-index_refresh_index` to ensure the files are parsed.
c. **Search & Verify**: Call `mcp_code-index_search_code_advanced` using the **Verification Query** from the table.
d. **Deep Summary Check**: Call `mcp_code-index_get_file_summary` for the **Expected File Match**.
- *Goal*: Verify that the summary JSON includes the expected symbols (classes/functions) in the `functions` or `classes` list.
- *Pass Criteria*: The **Verification Query** symbol name must appear in the summary output.
- **Smart Fallback**: If the summary implies the file is trivial (e.g., no symbols found), **select another non-trivial file** from the project (using `list_dir` to find larger files) and repeat the summary check on that new file.
e. **Full Text Check**: If the summary check is ambiguous or fails, call `view_file` to read the actual file content.
- *Goal*: Visually confirm that the symbol (e.g., `class UserManager`) is present in the code and is NOT commented out.
f. **Check Results**:
- If the search returns results AND the file summary (or manual check) confirms the symbol, mark as **PASS**.
- Otherwise, mark as **FAIL**.
3. **Reporting**:
- After checking all languages, generate a summary report of PASS/FAIL status.
## Verification Targets
| Language | Relative Path | Verification Query | Expected File Match |
| :--- | :--- | :--- | :--- |
| **Python** | `python` | `class UserManager` | `UserManager.py` |
| **Go** | `go` | `UserService` | `user_service.go` |
| **Java** | `java/user-management` | `class UserManager` | `UserManager.java` |
| **JavaScript** | `javascript/user-management` | `function` | `User.js` |
| **TypeScript** | `typescript` | `interface PersonInterface` | `sample.ts` |
| **C#** | `csharp/orders` | `class OrderService` | `OrderService.cs` |
| **Kotlin** | `kotlin/notes-api` | `class NotesService` | `NotesService.kt` |
| **Objective-C**| `objective-c` | `interface UserManager` | `UserManager.h` or `.m` |
| **Zig** | `zig` | `fn main` | `main.zig` |
| **Dart** | `dart` | `void main` | *(Expect FAIL - Empty Project)* |
## Tips
- Use `set_project_path` carefully; it requires an absolute path. Start by finding the absolute path of `test/sample-projects`.
- If a search fails, try a broader query or check `list_dir` to ensure the file exists.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「verify-multilang-support」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次