C

ccc

by @cocoindex-iov1.0.0
0.0(0)

基于语义搜索的代码索引工具,对当前代码库进行语义理解和智能检索,支持索引管理

semantic-searchcode-indexingclicodebase-navigationGitHub
安装方式
npx skills add cocoindex-io/cocoindex-code --skill ccc
compare_arrows

Before / After 效果对比

1
使用前

使用grep或全文搜索查找代码,只能匹配字面关键词,无法理解代码语义,搜索相关功能实现时需要猜测变量名和函数名

使用后

通过语义搜索直接用自然语言描述需求即可找到相关代码,理解代码含义而非字面匹配,索引管理便捷,代码探索效率显著提升

description SKILL.md

ccc

ccc - Semantic Code Search & Indexing

ccc is the CLI for CocoIndex Code, providing semantic search over the current codebase and index management.

Ownership

The agent owns the ccc lifecycle for the current project — initialization, indexing, and searching. Do not ask the user to perform these steps; handle them automatically.

  • Initialization: If ccc search or ccc index fails with an initialization error (e.g., "Not in an initialized project directory"), run ccc init from the project root directory, then ccc index to build the index, then retry the original command.

  • Index freshness: Keep the index up to date by running ccc index (or ccc search --refresh) when the index may be stale — e.g., at the start of a session, or after making significant code changes (new files, refactors, renamed modules). There is no need to re-index between consecutive searches if no code was changed in between.

  • Installation: If ccc itself is not found (command not found), refer to management.md for installation instructions and inform the user.

Searching the Codebase

To perform a semantic search:

ccc search <query terms>

The query should describe the concept, functionality, or behavior to find, not exact code syntax. For example:

ccc search database connection pooling
ccc search user authentication flow
ccc search error handling retry logic

Filtering Results

By language (--lang, repeatable): restrict results to specific languages.

ccc search --lang python --lang markdown database schema

By path (--path): restrict results to a glob pattern relative to project root. If omitted, defaults to the current working directory (only results under that subdirectory are returned).

ccc search --path 'src/api/*' request validation

Pagination

Results default to the first page. To retrieve additional results:

ccc search --offset 5 --limit 5 database schema

If all returned results look relevant, use --offset to fetch the next page — there are likely more useful matches beyond the first page.

Working with Search Results

Search results include file paths and line ranges. To explore a result in more detail:

  • Use the editor's built-in file reading capabilities (e.g., the Read tool) to load the matched file and read lines around the returned range for full context.

  • When working in a terminal without a file-reading tool, use sed -n '<start>,<end>p' <file> to extract a specific line range.

Settings

To view or edit embedding model configuration, include/exclude patterns, or language overrides, see settings.md.

Management & Troubleshooting

For installation, initialization, daemon management, troubleshooting, and cleanup commands, see management.md. Weekly Installs286Repositorycocoindex-io/co…dex-codeGitHub Stars996First Seen3 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex283opencode282github-copilot280gemini-cli279kimi-cli279cursor279

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月19日
对比案例1 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月19日
最后更新2026年3月19日