agentleFS
joyehuangjoyehuang/skills/deep-dive/SKILL.md

deep-dive

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

Deep dive into a specific module or system of the current project. Source-code-level analysis following the complete execution flow. Use when the user wants to thoroughly understand one part of the codebase.

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ralplan, deep-interview and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ibahgatSkill

    ralplan

    Create a strict, quality-first execution plan with explicit gates and rollback-ready sequencing.

    Also in 4 projects that use this

  • klauswgSkill

    deep-interview

    在明确批准执行之前,通过数学化歧义门控进行苏格拉底式深度访谈

    Also in 3 projects that use this

  • thoughtbotSkill

    trace

    Run a scenario and record what actually happened.

    Also in 3 projects that use this

  • sahinSkill

    execute

    Also in 4 projects that use this

  • snarktankSkill

    ralph

    Convert PRDs to prd.json format for the Ralph autonomous agent system. Use when you have an existing PRD and need to convert it to Ralph's JSON format. Triggers on: convert this prd, turn this into ralph format, create prd.json from this, ralph json.

    Also in 3 projects that use this

  • MicrosoftSkill

    git-commit

    Stage user-selected paths, confirm the exact staged set, and create one local Conventional Commit, or generate a commit message for staged changes without committing. Use when you want a guarded commit or a ready-to-paste message.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 8 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All responses MUST be in Chinese (中文).

    line 11
  2. Very specific:

    Use $ARGUMENTS as the target module name (e.g., auth, sandbox, session, db, agent).

    line 19
  3. Distinctive:

    Ask the user which one they want to deep dive into

    line 25
  4. Very specific:

    If .learn/plan.md exists, read it to understand what the user has already covered.

    line 29
  5. Very specific:

    If .learn/profile.md exists, read it to adapt the depth and terminology to the user's level.

    line 31
  6. Distinctive:

    Before diving in, map out the module:

    line 35
  7. Very specific:

    Find all related files: Use Glob and Grep to find every file related to this module

    line 37
  8. Distinctive:

    After tracing the happy path, cover:

    line 89
  9. Distinctive:

    If the module has other important flows, briefly mention them and ask if the user wants to trace those too.

    line 97
  10. Distinctive:

    After the flow trace, provide a higher-level analysis:

    line 101
  11. Very specific:

    Add a note: (via deep-dive)

    line 154
  12. Very specific:

    Create a session summary in .learn/sessions/ following the same format as /learn:

    line 158
  13. Very specific:

    Use actual code: Always Read the real code.

    line 191
  14. Distinctive:

    Trace real execution: Follow the actual call chain, don't just describe files in isolation.

    line 192
  15. Distinctive:

    Track line numbers: Always reference specific file:line so the user can navigate to the code.

    line 196

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/deep-dive — Module Deep Dive Skill

Language Rule

All responses MUST be in Chinese (中文). Keep technical terms in English (e.g., OAuth, middleware, session, PKCE, Drizzle ORM, hook, callback). File names, code, and variable names stay in English. This rule applies to all output including the module overview, flow traces, and interview summaries.

You are performing a deep, source-code-level analysis of a specific module. Unlike /learn which provides breadth, /deep-dive provides extreme depth on a single topic.

Step 1: Determine Target Module

If $ARGUMENTS is provided:

Use $ARGUMENTS as the target module name (e.g., auth, sandbox, session, db, agent).

If no argument:

  1. Quickly scan the project structure using Glob
  2. List the major modules/systems found
  3. Ask the user which one they want to deep dive into

Step 2: Check Learning State

If .learn/plan.md exists, read it to understand what the user has already covered. This helps avoid re-explaining concepts they already know.

If .learn/profile.md exists, read it to adapt the depth and terminology to the user's level.

Step 3: Module Reconnaissance

Before diving in, map out the module:

  1. Find all related files: Use Glob and Grep to find every file related to this module
  2. Identify the entry points: Where does execution begin? (API routes, exported functions, event handlers)
  3. Map the dependency graph: What does this module import? What imports it?

Present a module overview:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Deep Dive: <module name>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Files: <N> files across <M> directories
  Entry points: <list>
  Key dependencies: <list>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Step 4: Flow Tracing

This is the core of deep-dive. Trace the complete execution flow for the module's primary use case.

4a: Pick the Primary Flow

Identify the most important flow for this module. For example:

  • Auth module → Complete OAuth login flow from button click to session creation
  • Sandbox module → Sandbox lifecycle from creation to cleanup
  • Task module → Task submission through agent execution to completion

Tell the user: "I'll trace the <flow name> flow from start to finish."

4b: Step-by-Step Trace

For each step in the flow:

  1. Read the actual code — Use Read with specific line ranges
  2. Explain what happens at this step — What does the code do? What data is transformed?
  3. Show the handoff — How does control flow to the next step? (function call, API request, event, redirect)
  4. Highlight interesting decisions — Why is it done this way? What are the tradeoffs?
  5. Flag potential issues — Are there edge cases, error paths, or potential bugs?

Format each step clearly:

Step N: <what happens>
File: <path>:<line range>
───────────────────────
<explanation>

→ Next: <what happens next and where>

4c: Error & Edge Case Paths

After tracing the happy path, cover:

  • What happens when things fail?
  • What are the error boundaries?
  • Are there retry mechanisms?
  • What state is left behind on failure?

4d: Secondary Flows

If the module has other important flows, briefly mention them and ask if the user wants to trace those too.

Step 5: Architecture Analysis

After the flow trace, provide a higher-level analysis:

Design Patterns Used

  • What patterns does this module employ? (Repository, Factory, Middleware, etc.)
  • Are they used well? Any anti-patterns?

Interface Boundaries

  • What's the public API of this module?
  • What's internal/private?
  • How clean is the separation?

State Management

  • What state does this module own?
  • Where is it stored? (DB, memory, cookies, etc.)
  • What are the state transitions?

Security Considerations

  • Are there auth checks?
  • Input validation?
  • Data encryption?
  • Potential vulnerabilities?

Step 6: Interview-Ready Summary

Generate a concise summary the user could use to explain this module in an interview:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Interview Angle: <module name>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  One-liner: <explain this module in one sentence>

  Key technical decisions:
  1. <decision and why>
  2. <decision and why>

  What I would improve:
  1. <improvement and why>

  Potential interview questions:
  - Q: <question>
    A: <brief answer>
  - Q: <question>
    A: <brief answer>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Step 7: Update Learning Progress

If .learn/plan.md exists:

  1. Find any topics in the plan that relate to this module
  2. Mark them as [x] with today's date
  3. Add a note: (via deep-dive)

Example: - [x] OAuth flow (2026-03-23, via deep-dive)

Create a session summary in .learn/sessions/ following the same format as /learn:

---
session: <next number>
date: YYYY-MM-DD
duration_min: <estimated>
topics_covered: <count>
type: deep-dive
module: <module name>
---

# Deep Dive: <module name>

## Flow Traced
- <primary flow description>

## Key Findings
- <important insights>

## Files Analyzed
- <file:line references>

## Potential Improvements Found
- <what could be better>

## Related Modules
- <modules that connect to this one>

Important Guidelines

  • Go deep, not wide: This is not an overview. Read every line of the critical path.
  • Use actual code: Always Read the real code. Never paraphrase or guess what code does.
  • Trace real execution: Follow the actual call chain, don't just describe files in isolation.
  • Be opinionated: Point out what's good and what's not. The user is here to truly understand, not just read docs.
  • Connect to the big picture: Even though you're going deep on one module, explain how it connects to the rest of the system.
  • Performance awareness: Point out any performance implications (N+1 queries, unnecessary re-renders, missing indexes, etc.)
  • Track line numbers: Always reference specific file:line so the user can navigate to the code.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.