---
name: query
description: "Search the codebase index — find files, symbols, and dependencies instantly"
category: context
tags: [search, preview, lookup]
depends-on: [init]
input: "search query"
output: "ranked list of matching files with relevance scores"
token-estimate: 500
parallel-safe: true
argument-hint: "[search query]"
user-invocable: true
allowed-tools: Read, Bash
model: claude-sonnet-4-6
context: inline
agent: general-purpose
---

# Query — Engine-Powered Search

Search the codebase index for files, symbols, and dependencies. Zero AI exploration.

## Search Results (auto-generated by engine)

!`ccs search "$ARGUMENTS" 2>/dev/null || node "$HOME/.claude/skills/_ccs/engine/cli.js" search "$ARGUMENTS" 2>/dev/null || echo "No index found. Run /ccs-init first."`

## Report to User

Present the search results above. Explain:
- Which files match and why (symbol match, path match, dependency)
- The rank and role of each file
- Suggest reading specific files if the user wants to dive deeper

---
*codebase-context-skill v2.0.0*
