AgentSkillsCN

search

当用户提出“查找实现X功能的代码”“搜索身份验证相关代码”“X功能具体在何处实现”“寻找与X相关的代码片段”或希望按概念而非精确文本进行语义化代码搜索时,可运用此技能。

SKILL.md
--- frontmatter
name: search
description: This skill should be used when the user asks "find code that does X", "search for authentication", "where is X implemented", "look for code related to", or needs semantic code search by concept rather than exact text.
argument-hint: "<query>"

Semantic Code Search

Search the codebase using Mira's semantic search to find code by meaning, not just text.

Query: $ARGUMENTS

Instructions

  1. Use the mcp__mira__code tool with action="search" and the query provided above
  2. Set an appropriate limit (default: 10 results)
  3. Present results clearly with:
    • File path and line numbers
    • Relevance score
    • Code snippet preview
  4. Group related results if they're from the same module
  5. Suggest follow-up searches if results seem incomplete

Example Usage

code
/mira:search authentication middleware
/mira:search error handling patterns
/mira:search database connection pooling