Use Case: Discovery

Inheriting a code base means reading before writing. The running example here is the hook subsystem of a repository you just cloned — approached from the outside in, until its structure, its concepts, and its pending changes are clear.

  1. 1

    Read the Docs

    Distill the Manual

    The reading starts where the authors explained themselves: the documentation is compressed to its ranked key points, each backed by a line-cited snippet.

    Claude Code
    /ase-docs-distill --top 7 @docs/usage-tool.md
  2. 2

    Plain Language

    Explain It Like I'm 5

    The concept behind the subsystem is re-told without jargon, which is the fastest way to notice that one has not actually understood it yet.

    Claude Code
    /ase-meta-eli5 --ground agent tool hooks
  3. 3

    Bird's Eye

    Take Project Insight

    Only then is the code base surveyed as a whole, so the reading order that follows is driven by the actual structure instead of by file names.

    Claude Code
    /ase-code-insight src/
  4. 4

    Structure

    Review the Architecture

    The survey is deepened into an architecture review — package cohesion, inter-package coupling, a rendered diagram — whose PROBLEM and TRADEOFF findings tell which seams of the code base are load-bearing.

    Claude Code
    /ase-arch-analyze src/
  5. 5

    Zoom In

    Explain the Core File

    The central module the survey pointed at is explained with its WHAT, WHY, analogy, diagram, cruxes, and gotchas — the parts a comment never carries.

    Claude Code
    /ase-code-explain src/ase-hook.ts
  6. 6

    Pending Work

    Dissect the Change Set

    The uncommitted changes found in the working copy are decomposed into cohesive parts — as a dry run, so nothing is materialized yet.

    Claude Code
    /ase-code-dissect --dry --max-parts 4
  7. 7

    Make or Buy

    Discover the Alternatives

    With the code understood, third-party components are discovered and ranked for its hand-rolled parts, showing which of them could stop being maintained in-house.

    Claude Code
    /ase-arch-discover --limit 8 hook dispatching for CLI tools
npm install -g @rse/ase && ase setup install