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

code-investigator代码调查员

Agent Skill

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

总安装

259

周安装

11

GitHub Stars

9

下载量

91
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/toilahuongg/shopify-agents-kit --skill code-investigator

简介

code-investigator 使用并行子代理系统全面调查代码库,产出功能清单与风险分析报告。

  • 适用于新项目 onboarding 或遗留系统重构,帮助快速掌握项目架构、入口点与依赖关系。
  • 输出结构化特征库存与优先级行动项,支持 Shopify 等平台特定模式识别与配置提取。
  • 运行时会调用 Task 工具探索整个项目,请确保具备完整读取权限且不触发敏感信息外泄。
  • 报告结果需人工复核与落地执行,AI 分析不能替代领域专家判断,建议结合团队知识库使用。

SKILL.md

Code Investigator

Systematic codebase investigation using parallel subagents. Discover all features, analyze risks, and produce a prioritized action report.

Workflow

Phase 1: Feature Discovery

Use the Task tool with subagent_type=Explore to map the entire project:

  1. Identify project type (framework, language, architecture pattern)
  2. List all features/modules with file locations
  3. Map dependencies (package.json, requirements.txt, go.mod, etc.)
  4. Identify entry points, routes, API endpoints
  5. Note configuration files, environment setup, CI/CD

Output a structured feature inventory:

## Feature Inventory
| # | Feature/Module | Files | Description |
|---|---------------|-------|-------------|
| 1 | Authentication | src/auth/* | OAuth + session |
| 2 | Product CRUD  | src/products/* | Admin API |
...

Present this inventory to the user before proceeding to Phase 2.

Phase 2: Parallel Investigation

Launch multiple Task subagents in a single message to investigate concurrently. Each subagent focuses on one investigation area. See references/investigation-areas.md for detailed checklists per area.

Required subagents (launch all in parallel):

SubagentTypeFocus
Security Auditortech-leadVulnerabilities, injection risks, auth gaps, secret exposure
Dead Code DetectorExploreUnused exports, unreachable code, orphan files, unused dependencies
Architecture Reviewertech-leadPattern violations, circular deps, coupling issues, missing abstractions
Error & Edge Case AnalyzerExploreMissing error handling, unhandled promises, race conditions
Dependency AuditorBashnpm audit, outdated packages, license issues, duplicate deps
Test Coverage AnalyzerExploreMissing tests, untested critical paths, test quality

Optional subagents (based on project type):

SubagentTypeWhen
Performance Profilertech-leadWeb apps, APIs with DB queries
TypeScript StrictnessExploreTS projects with any usage
API Contract CheckerExploreProjects with REST/GraphQL APIs
Accessibility AuditorExploreFrontend projects

Each subagent prompt must include:

  • The feature inventory from Phase 1
  • Specific checklist items from references/investigation-areas.md
  • Instruction to rate each finding: CRITICAL / HIGH / MEDIUM / LOW
  • Instruction to provide file path and line number for each finding

Phase 3: Report Synthesis

Collect all subagent results and compile into a single prioritized report.

Report Structure

# Code Investigation Report
**Project:** [name] | **Date:** [date] | **Files Analyzed:** [count]

## Executive Summary
[2-3 sentences: overall health, top concerns, immediate actions needed]

## Critical Findings (Act Immediately)
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|

## High Priority
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|

## Medium Priority
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|

## Low Priority / Improvements
| # | Finding | Category | File:Line | Impact | Recommendation |
|---|---------|----------|-----------|--------|----------------|

## Dead Code & Redundancies
| # | Item | Type | File:Line | Safe to Remove? |
|---|------|------|-----------|-----------------|

## Missing Functionality
| # | Gap | Why It Matters | Suggested Implementation |
|---|-----|----------------|--------------------------|

## Dependency Health
| Package | Current | Latest | Risk | Action |
|---------|---------|--------|------|--------|

## Metrics Summary
- Total findings: X (Critical: X, High: X, Medium: X, Low: X)
- Dead code items: X
- Missing features: X
- Vulnerable dependencies: X

Sorting Rules

  1. CRITICAL: Security vulnerabilities, data loss risks, crashes in production
  2. HIGH: Bugs likely to affect users, missing auth checks, unhandled errors in critical paths
  3. MEDIUM: Code smells, minor security issues, performance concerns, missing tests
  4. LOW: Style issues, minor refactoring opportunities, nice-to-have improvements

Key Guidelines

  • Never guess - always verify by reading actual code before reporting a finding
  • Include file path and line number for every finding
  • Distinguish between confirmed issues and potential concerns
  • Do not report style preferences as issues unless they cause real problems
  • Group related findings to avoid duplicate reports
  • If a subagent finds nothing in its area, report that as a positive signal

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.9%
按下载量换算34

Claude

30.03%
按下载量换算27

Cursor

20.18%
按下载量换算18

Gemini CLI

9.53%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills