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

deep-read深读

Agent Skill

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

总安装

1,080

周安装

45

GitHub Stars

2

下载量

360
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pfangueiro/claude-code-agents --skill deep-read

简介

用于源码优先的系统化代码阅读,输出带行号引用的具体发现。

  • 分六阶段推进:定范围、读实现、找模式、建映射、验假设、出结论。
  • 拒绝仅依赖文档或接口,坚持代码为唯一事实来源。
  • 适用于架构理解、遗留系统分析与技术债务评估。
  • deep-read 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Deep Read — Codebase Reading Engine

Systematic source-code-first analysis protocol. Reads implementations, not just interfaces. Every finding cites file:line.

Core principle: Source code is the source of truth. Documentation lies, comments rot, function names mislead. Read the actual code.

Protocol

Process every /deep-read invocation through these 6 phases in strict order. Never skip a phase. Gate each phase: do not advance until the gate condition is met.


Phase 1: SCOPE — Define the Reading Target

Narrow the target to a tractable area before reading anything.

  1. Parse $ARGUMENTS as the reading target (module, flow, question, or path)
  2. Read CLAUDE.md and MEMORY.md for project context — but treat these as hints, not truth
  3. Run initial discovery to estimate scope:

- Glob for relevant file patterns (**/*.ts, **/*.py, etc.) - Grep for key terms from the target description - Count matching files

  1. If scope exceeds 50 source files:

- Use AskUserQuestion to narrow: which subsystem, which flow, which layer? - Suggest specific narrowing options based on directory structure

  1. If the target is a question (e.g., "how are commissions calculated?"):

- Translate to concrete search terms - Grep for domain terms to locate relevant modules

  1. If the target is a path (e.g., src/services/billing/):

- List all files in the path - Identify entry points (exported functions, route handlers, main files)

Output: A scope definition listing:

  • Target description (1-2 sentences)
  • File list (< 50 source files)
  • Identified entry points
  • Out-of-scope areas (explicitly noted)

Gate: Scope is defined and contains < 50 source files. Entry points identified. Proceed.


Phase 2: MAP — Build Structural Overview

Understand the shape of the code before reading it deeply.

  1. Directory structure — map the relevant directories:

- Use Glob to list files by type and directory - Note the organizational pattern (by feature, by layer, by domain)

  1. Tech stack — identify from configs (not from docs):

- Read package.json, Cargo.toml, go.mod, requirements.txt, or equivalent - Note frameworks, key dependencies, build tools

  1. Entry points — verify by reading actual files (not just file names):

- Read route definitions, main files, exported modules - Read the first 50 lines of each candidate entry point - Confirm which files are actual entry points vs. helpers

  1. Dependency graph — map internal imports within the scope:

- Grep for import/require statements within scoped files - Build a mental model: what calls what, what depends on what - Identify the core files (most imported by others)

  1. Configuration and constants — read files that define behavior:

- Config files, environment schemas, constants, enums, types - These shape behavior as much as code does

Launch parallel Explore agents for steps 2-4 if the scope has 20+ files.

Output: Structural map including:

  • Directory layout with annotations
  • Tech stack (from configs, not docs)
  • Entry points (verified by reading)
  • Dependency flow diagram (text-based)
  • Core files ranked by centrality

Gate: Entry points verified by reading actual files. Dependency flow mapped. Proceed.


Phase 3: TRACE — Follow Execution Paths

Start from entry points and trace through the code. Read every file in the path.

  1. Select the primary execution path based on the reading target:

- For a flow (e.g., "payment processing"): start at the user-facing entry point - For a module: start at its public API / exports - For a question: start at the code most likely to contain the answer

  1. Trace forward from the entry point:

- Read the entry point file in full with the Read tool - For every function call, class instantiation, or module import encountered: - Grep to locate the implementation (not just the type signature) - Read the implementation file in full - Continue until reaching terminal operations (DB queries, API calls, file I/O, return values)

  1. Document the path as a chain with file:line citations: Request enters at routes/payments.ts:42 (POST /api/payments) -> calls PaymentService.processPayment() at services/payment.ts:87 -> validates input via PaymentSchema at schemas/payment.ts:15 -> calls StripeClient.charge() at clients/stripe.ts:34 -> constructs request at clients/stripe.ts:45-62 -> stores result via PaymentRepository.save() at repos/payment.ts:28 -> returns PaymentResponse at routes/payments.ts:58
  2. Trace secondary paths if the reading target involves multiple flows:

- Error paths, edge cases, fallback logic - Event handlers, webhooks, background jobs triggered by the primary path

  1. Note every branch point — conditions, switches, feature flags:

- What determines which path is taken? - Read the condition logic, don't just note "there's a conditional here"

Output: Complete execution trace(s) with file:line citations for every step.

Gate: At least 1 complete path traced from entry to terminal. Every file in the path has been Read in full. Proceed.


Phase 4: DEEP READ — Line-by-Line Analysis of Critical Files

This is the core phase. Read critical files thoroughly, understanding every line of business logic.

  1. Identify critical files from Phase 3 — files that contain:

- Business logic (calculations, rules, transformations) - State management (mutations, transactions, side effects) - Security logic (auth, validation, access control) - Data transformations (mapping, filtering, aggregation) - Error handling (catch blocks, error boundaries, recovery logic)

  1. Read each critical file in full with the Read tool:

- Do NOT skim — read the entire file - For files > 500 lines: read in sections, but read ALL sections - Launch parallel Read calls for independent files

  1. For each critical file, document:

- Purpose: What this file actually does (based on code, not comments) - Key functions: Each function's logic, with citations: calculateCommission(sale: Sale): number [billing/commission.ts:45-78] - Base rate: 5% of sale.amount (line 52) - Bonus tier: if sale.amount > 10000, rate += 2% (line 56) - Cap: commission capped at 5000 (line 62) - Proration: multiplied by daysInPeriod/30 (line 67) - Returns: rounded to 2 decimal places (line 74) - Formulas and conditions: Write out the actual math and logic, not summaries - State changes: What gets mutated, what side effects occur - Edge cases handled: Null checks, bounds, error recovery - Edge cases NOT handled: Missing validation, unchecked assumptions

  1. Cross-reference between files:

- When file A calls file B, verify that A's expectations match B's implementation - Note any mismatches between interface contracts and implementations - Check that error handling in callers matches errors thrown by callees

Output: Detailed analysis of each critical file with:

  • Function-level logic documentation with file:line citations
  • Formulas written out explicitly
  • Conditions and branch logic documented
  • State changes and side effects listed

Gate: Every critical file (identified in step 1) has been Read in full. Logic documented with formulas, conditions, and citations. Proceed.


Phase 5: CONNECT — Synthesize Understanding

Step back and reason about the system as a whole. Use sequential-thinking MCP for structured analysis.

  1. Start a sequential-thinking chain with all evidence from Phases 1-4: mcp__sequential-thinking__sequentialthinking({thought: "Synthesizing understanding of <target>. Evidence from phases:...", thoughtNumber: 1, totalThoughts: 8, nextThoughtNeeded: true})
  2. Identify patterns across the codebase (minimum 3):

- Architectural patterns (layering, dependency injection, event-driven, etc.) - Coding conventions (error handling style, naming patterns, data flow patterns) - Implicit rules (invariants maintained by convention, not enforced by code) - Anti-patterns or technical debt

  1. Map data flows end to end:

- How does data enter the system? - What transformations does it undergo? (with file:line citations) - Where does it end up? (DB, API response, file, event)

  1. Identify risks and assumptions:

- What assumptions does the code make that aren't validated? - What would break if those assumptions were violated? - Are there race conditions, consistency gaps, or security concerns?

  1. Answer the original question if the reading target was a question:

- Provide the answer with full evidence chain - Cite every source

Use branching in sequential-thinking to explore alternative interpretations of ambiguous code.

Output: Synthesis including:

  • 3+ patterns identified with evidence (file:line)
  • End-to-end data flow map
  • Risk assessment
  • Answer to the original question (if applicable)

Gate: At least 5 reasoning steps completed. At least 3 patterns identified with file:line evidence. Proceed.


Phase 6: REPORT — Structured Deliverable

Produce the final report. Every claim must cite file:line.

## Deep Read Report: <target>

### Scope
- **Target:** <what was analyzed>
- **Files analyzed:** <count> files, <count> read in full
- **Entry points:** <list with file:line>

### Architecture Overview
<structural summary from Phase 2 — directory layout, tech stack, dependency flow>

### Execution Flow
<traced paths from Phase 3 — entry to terminal with file:line citations>

### Critical Logic
<detailed function-level analysis from Phase 4>

For each critical area:
- **What it does:** <plain language description>
- **How it works:** <formulas, conditions, logic with file:line>
- **State changes:** <what gets mutated>
- **Edge cases:** <handled and unhandled>

### Patterns & Conventions
<synthesized patterns from Phase 5>
1. <pattern> — evidence: <file:line>
2. <pattern> — evidence: <file:line>
3. <pattern> — evidence: <file:line>

### Data Flow
<end-to-end data flow map from Phase 5>

### Risks & Assumptions
<risk assessment from Phase 5>

### Key Findings
<concise bullet list of the most important discoveries>
- <finding> — <file:line>

### Answer
<if the reading target was a question, answer it here with full evidence>

Gate: All sections populated. Every finding cites file:line. Report complete.


Tool Usage by Phase

PhasePrimary ToolsWhen to Use Agents
1. SCOPERead, Glob, Grep, AskUserQuestion--
2. MAPGlob, Grep, Read (configs, entry points)Explore agents (parallel) for 20+ file codebases
3. TRACERead (full files), Grep (cross-refs)Explore agent for locating implementations
4. DEEP READRead (full files, parallel)--
5. CONNECTsequential-thinking MCPdeep-analysis skill for complex reasoning
6. REPORTStructured output--

Anti-Patterns — What This Skill Prevents

Bad HabitWhat /deep-read Does Instead
Read README/CLAUDE.md and call it donePhase 1 treats docs as hints; Phases 3-4 read source
Skim file headers and imports onlyPhase 4 requires line-by-line reading with citations
Summarize without evidenceEvery claim must cite file:line
Stop at the first abstraction layerPhase 3 traces full call chains to leaf functions
Rely on function names to infer behaviorPhase 4 reads implementations, documents actual logic
Produce vague "this seems to do X"Phase 4 requires concrete formulas and conditions
Read types/interfaces instead of implementationsPhase 3 Greps for implementations, not just signatures
Skip error paths and edge casesPhase 3 traces secondary paths; Phase 4 documents edge cases

Scope Examples

/deep-read payment processing flow from checkout to settlement
/deep-read src/services/billing/
/deep-read how are sales commissions calculated and distributed?
/deep-read the authentication and authorization system
/deep-read data pipeline from ingestion to reporting dashboard
/deep-read how does the caching layer work and when does it invalidate?

When to Use /deep-read vs Other Tools

SituationUse
Understand how existing code works/deep-read
Quick "what does this function do?"Read tool directly
Bug, crash, error, unexpected behavior/investigate
Architecture decision or trade-off/deep-analysis
Build a new feature/execute
Understand code, then reason about it/deep-read then /deep-analysis
Understand code, then redesign it/deep-read then /deep-analysis then /execute
Onboard to an unfamiliar codebase/deep-read
Code review with full context/deep-read then code-quality agent

References

See references/reading-strategies.md for codebase-type-specific reading strategies and context management approaches.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.18%
按下载量换算127

Claude

33.05%
按下载量换算119

Cursor

19.1%
按下载量换算69

Gemini CLI

10%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/pfangueiro/claude-code-agents --skill deep-read 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills