explore-module

explore-module is a command for Claude Code from cassler/awesome-claude-code-setup. It costs 0 tokens per session (637 once invoked), scanned A, original, MIT.

A guided investigation of one code module, covering its structure, entry points, dependencies, users, tests, and documentation. A module is a part of a codebase that groups related functionality.

In plain words
What is it for?
Use it to map a module's files and exports, trace what it imports and what imports it, locate tests, and review its documentation.
Why use it?
It reduces the time needed to understand unfamiliar code and makes hidden dependencies or circular imports easier to find. This is useful before modifying or debugging the module.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to map a module's files and exports, trace what it imports and what imports it, locate tests, and review its documentation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cassler/awesome-claude-code-setup/explore-module
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/cassler/awesome-claude-code-setup

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for explore-module

README.md
[![agentmods](https://agentmods.dev/badge/commands/cassler/awesome-claude-code-setup/explore-module/github.svg)](https://agentmods.dev/commands/cassler/awesome-claude-code-setup/explore-module)
Your own site
<a href="https://agentmods.dev/commands/cassler/awesome-claude-code-setup/explore-module"><img src="https://agentmods.dev/badge/commands/cassler/awesome-claude-code-setup/explore-module/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for explore-module

Your own site · 80×15
<a href="https://agentmods.dev/commands/cassler/awesome-claude-code-setup/explore-module"><img src="https://agentmods.dev/badge/commands/cassler/awesome-claude-code-setup/explore-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00637
Opus 5.5 $0.00000 $0.00255
Sonnet 5.5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

Measured 1mo ago against content hash 8120f6803058, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

explore-module scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/explore-module.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Module Explorer

Please help me deeply understand this module: $MODULE_PATH

Exploration depth: ${DEPTH:-3} Focus areas: ${FOCUS:-all aspects}

Module Analysis

  1. Get module overview:

    # Show module structure
    ch ctx focus "$MODULE_PATH" ${DEPTH:-3}
    
    # List all files
    find "$MODULE_PATH" -type f -name "*.${EXT:-js|ts|py}" | head -20
    
  2. Understand module boundaries:

    # Find entry points
    chs find-file "index.*" "$MODULE_PATH"
    
    # Look for main exports
    chs find-code "export|module.exports" "$MODULE_PATH"
    
  3. Trace dependencies:

    # What does this module import?
    ch cr imports-of "$MODULE_PATH/index.${EXT:-js}"
    
    # Generate dependency tree
    ch cr dependency-tree "$MODULE_PATH"
    
    # Check for circular dependencies
    ch cr circular "$MODULE_PATH"
    
  4. Find who uses this module:

    # Who imports this module?
    ch cr imported-by "$MODULE_PATH"
    
    # Search for direct references
    MODULE_NAME=$(basename "$MODULE_PATH")
    chs find-code "from.*$MODULE_NAME|import.*$MODULE_NAME"
    
  5. Locate tests:

    # Find test files
    chs find-file "*.test.*|*.spec.*" "$MODULE_PATH"
    
    # Find tests in other locations
    chs find-code "$MODULE_NAME" --include "*.test.*"
    
  6. Check documentation:

    # Find docs
    chs find-file "*.md" "$MODULE_PATH"
    
    # Look for inline documentation
    chs find-code "^\\s*\\*|^\\s*/\\*\\*|@param|@returns" "$MODULE_PATH"
    
  7. Analyze code quality:

    # Check complexity
    ch cq large-files 200 "$MODULE_PATH"
    
    # Find TODOs
    ch cq todos "$MODULE_PATH"
    

Key Questions

  1. Architecture:

    • What is the module's primary responsibility?
    • How does it fit into the overall architecture?
    • Are there clear boundaries and interfaces?
  2. Dependencies:

    • What are the external dependencies?
    • Are there any concerning coupling issues?
    • Could this module be easily extracted/reused?

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 99 lines · 0 tokens per session scan A 8120f6803058

Subscribe to this mod's changes

explore-module is a command published in the GitHub repository cassler/awesome-claude-code-setup (268 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 637 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories