Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

investigating-a-codebase调查代码库

Agent Skill

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

总安装

282

周安装

12

GitHub Stars

176

下载量

99
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ed3dai/ed3d-plugins --skill investigating-a-codebase

简介

用于查找、检索和筛选相关信息。investigating-a-codebase 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可在 Codex、Claude、Cursor 等宿主环境中使用。
  • 通过 GitHub 安装,具体用法请参考原始 README。
  • 安装前建议确认权限范围和维护状态,避免触发联网或文件操作。

SKILL.md

Investigating a Codebase

Overview

Understand current codebase state to ground planning and design decisions in reality, not assumptions. Find existing patterns, verify design assumptions, and provide definitive answers about what exists and where.

When to Use

Use for:

  • Verifying design assumptions before implementation ("Design assumes auth.ts exists - verify")
  • Finding existing patterns to follow ("How do we currently handle API errors?")
  • Locating features or code ("Where is user authentication implemented?")
  • Understanding component architecture ("How does the routing system work?")
  • Confirming existence definitively ("Does feature X exist or not?")
  • Preventing hallucination about file paths and structure

Don't use for:

  • Information available in external docs (use internet research)
  • Questions answered by reading 1-2 specific known files (use Read directly)
  • General programming questions not specific to this codebase

Core Investigation Workflow

  1. Start with entry points - main files, index, package.json, config
  2. Use multiple search strategies - Glob patterns, Grep keywords, Read files
  3. Follow traces - imports, references, component relationships
  4. Verify don't assume - confirm file locations and structure
  5. Report definitively - exact paths or "not found" with search strategy

Verifying Design Assumptions

When given design assumptions to verify:

  1. Extract assumptions - list what design expects to exist
  2. Search for each - file paths, functions, patterns, dependencies
  3. Compare reality vs expectation - matches, discrepancies, additions, missing
  4. Report explicitly:

- ✓ Confirmed: "Design assumption correct: auth.ts:42 has login()" - ✗ Discrepancy: "Design assumes auth.ts, found auth/index.ts instead" - + Addition: "Found logout() not mentioned in design" - - Missing: "Design expects resetPassword(), not found"

Why this matters: Prevents implementation plans based on wrong assumptions about codebase structure.

Quick Reference

TaskStrategy
Where is XGlob likely names → Grep keywords → Read matches
How does X workFind entry point → Follow imports → Read implementation
What patterns existFind examples → Compare implementations → Extract conventions
Does X existMultiple searches → Definitive yes/no → Evidence
Verify assumptionsExtract claims → Search each → Compare reality vs expectation

Investigation Strategies

Multiple search approaches:

  • Glob for file patterns across codebase
  • Grep for keywords, function names, imports
  • Read key files to understand implementation
  • Follow imports and references for relationships
  • Check package.json, config files for dependencies

Don't stop at first result:

  • Explore multiple paths to verify findings
  • Cross-reference different areas of codebase
  • Confirm patterns are consistent not one-off
  • Follow both usage and definition traces

Verify everything:

  • Never assume file locations - always verify with Read/Glob
  • Never assume structure - explore and confirm
  • Document search strategy when reporting "not found"
  • Distinguish "doesn't exist" from "couldn't locate"

Reporting Findings

Lead with direct answer:

  • Answer the question first
  • Supporting details second
  • Evidence with exact file paths and line numbers

Provide actionable intelligence:

  • Exact file paths (src/auth/login.ts:42), not vague locations
  • Relevant code snippets showing current patterns
  • Dependencies and versions when relevant
  • Configuration files and current settings
  • Naming, structure, and testing conventions

Handle "not found" confidently:

  • "Feature X does not exist" is valid and useful
  • Explain what you searched and where you looked
  • Suggest related code as starting point
  • Report negative findings prevents hallucination

Common Mistakes

MistakeFix
Assuming file locationsAlways verify with Read/Glob before reporting
Stopping at first resultExplore multiple paths to verify findings
Vague locations ("in auth folder")Exact paths (src/auth/index.ts:42)
Not documenting search strategyExplain what was checked when reporting "not found"
Confusing "not found" typesDistinguish "doesn't exist" from "couldn't locate"
Skipping design assumption comparisonExplicitly report: confirmed/discrepancy/addition/missing
Reporting assumptions as factsOnly report what was verified in codebase

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.03%
按下载量换算32

Claude

30.21%
按下载量换算30

Cursor

19.54%
按下载量换算19

Gemini CLI

10.08%
按下载量换算10

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills