Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

codanna-codebase-intelligenceCodanna 代码库情报

Agent Skill

codanna-codebase-intelligence 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

879

周安装

37

GitHub Stars

15

下载量

308
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codanna-codebase-intelligence(Codanna 代码库情报)
来源仓库:https://github.com/nickcrew/claude-ctx-plugin
仓库路径:skills/codanna-codebase-intelligence
安装命令:
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill codanna-codebase-intelligence
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill codanna-codebase-intelligence

简介

codanna-codebase-intelligence 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。

  • 它适用于需要分析项目结构、跟踪任务进展或生成协作摘要的场景。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和是否触发联网操作。
  • 使用前建议检查维护状态和实际功能,避免依赖未经验证的自动化行为。
  • 涉及文件读写或外部请求时,应评估安全风险并限制敏感操作。

SKILL.md

Codanna Codebase Intelligence

Codanna indexes your codebase and provides semantic search, call graphs, and dependency analysis via MCP tools. Use codanna before grep/find - it understands code structure, not just text patterns.

When to Use

  • Finding code: "Where do we handle authentication?" → semantic_search_docs
  • Understanding dependencies: "What calls this function?" → find_callers
  • Impact analysis: "What breaks if I change this?" → analyze_impact
  • Exploring symbols: "Show me the Parser struct" → find_symbol

Core Tools

Discovery

# Natural language search - finds code by intent, not keywords
semantic_search_docs query:"error handling patterns" limit:5

# Search symbols by name/pattern
search_symbols query:"parse" kind:"function"

# Get full details on a specific symbol
find_symbol name:"process_file"

Relationships

# Who calls this function? (upstream)
find_callers symbol:"validate_input"

# What does this function call? (downstream)
get_calls symbol:"process_request"

# Full dependency graph - what breaks if I change this?
analyze_impact symbol:"DatabaseConnection" depth:3

Documentation (RAG)

# Search indexed markdown/docs
search_documents query:"API authentication" collection:"docs"

Tool Selection Guide

TaskToolExample
Find code by conceptsemantic_search_docs"database migrations"
Find symbol by namesearch_symbolsPattern: "auth*"
Get symbol detailsfind_symbolExact: "UserService"
Trace callersfind_callers"Who uses this?"
Trace dependenciesget_calls"What does this call?"
Assess refactor riskanalyze_impact"What breaks?"

Workflow Patterns

Before Refactoring

  1. find_symbol - understand current implementation
  2. find_callers - identify all usage sites
  3. analyze_impact - assess blast radius
  4. Then proceed with changes

Understanding Unfamiliar Code

  1. semantic_search_docs - "how does X work"
  2. find_symbol - get entry point details
  3. get_calls - trace execution flow

Finding Where to Add Code

  1. semantic_search_docs - "similar patterns"
  2. find_callers - how existing code integrates
  3. Follow established patterns

Why Codanna Over Grep

Grep/FindCodanna
Text matchingSemantic understanding
String "parse" matches commentsfind_symbol finds the actual function
Manual call tracingfind_callers shows full graph
Guessing impactanalyze_impact shows dependencies

Integration with Agent-Loops

Codanna complements the agent-loops review workflow by providing structural code intelligence that diff-based review alone cannot offer.

Pre-review impact analysis

Before invoking specialist-review.sh, run codanna to understand the blast radius of your changes. This feeds grounded structural data into the review, helping reviewers focus on real downstream effects rather than guessing from the diff.

# Gather impact data for changed symbols
codanna mcp find_callers process_request --watch
codanna mcp analyze_impact DatabaseConnection --watch --json

Multi-specialist review support

In the multi-specialist review architecture (see docs/development/plans/multi-specialist-review.md), specialists can use codanna tools alongside Read/Grep/Glob for grounded analysis. Impact data can also inform specialist triage — determining which review perspectives to activate based on which parts of the codebase are structurally affected.

Automatic index freshness

The --watch flag on CLI commands checks for file changes and re-indexes before running, so impact data stays current throughout a review session without manual reindexing. The MCP server equivalent (codanna serve --watch) provides the same freshness guarantee for interactive sessions.

Tips

  • Start broad with semantic_search_docs, then drill down with find_symbol
  • Use analyze_impact before any refactor touching shared code
  • find_callers with depth > 1 shows transitive callers
  • Results include file paths and line numbers - use for navigation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.32%
按下载量换算109

Claude

28.97%
按下载量换算89

Cursor

18.26%
按下载量换算56

Gemini CLI

8.55%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills