원클릭으로
smart-explore
Progressive code exploration — structure first, drill second. Reduces code reading from 10-15k tokens per file to 200-500 tokens.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Progressive code exploration — structure first, drill second. Reduces code reading from 10-15k tokens per file to 200-500 tokens.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
When asked to review a PR or branch ("review this PR", "PR review", "argus", before merging), fan the diff out to parallel read-only reviewers and return a severity-ranked verdict; optionally post inline via gh.
When the user has reviewer feedback on a GitHub PR (human or bot like gemini-code-assist) and wants the pertinent items fixed — "j'ai des retours sur la PR", "résous/corrige ce qui est pertinent", "lis les commentaires de la PR via gh" — triage every comment thread via gh, apply only the pertinent fixes (drop nits), then reply to and resolve each triaged thread. Not for publishing our own review findings — that is argus-review --post.
Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.
Enforce project coding conventions: reduce duplication, keep naming/file placement consistent, and minimize regression risk. Includes React component and layout guidelines. Use when writing or reviewing code.
Generate a Product Requirements Document from user instructions using the PRD template. Outputs a human-readable self-contained HTML file plus a markdown source for implementation tooling. Includes a macro-level task checklist at the end.
After modifying code, map all consumers of changed symbols and flag unhandled mismatches. Not for debugging (use systematic-debugging).
| name | smart-explore |
| description | Progressive code exploration — structure first, drill second. Reduces code reading from 10-15k tokens per file to 200-500 tokens. |
Read code structure before reading code. Show function signatures and types first, then drill into specific functions only when needed.
| Signal | Use smart-explore | Use standard Read |
|---|---|---|
| "Understand this module/feature" | Yes | No |
| Exploring unfamiliar codebase | Yes | No |
| Finding where to add a feature | Yes | No |
| Need to read one specific function | No | Yes |
| Debugging a known line | No | Yes |
| File is < 100 lines | No | Yes (just read it) |
Don't use for: small projects (< 20 files), single-file tasks, or when you already know what to read.
When asked to explore a codebase or understand a module:
Use Grep to find function/class definitions:
TypeScript/JavaScript/React:
rg "^\s*(export\s+)?(async\s+)?(function|class|const|let|interface|type)\s+\w+" src/ --no-heading -n
Python:
rg "^\s*(async\s+)?(def|class)\s+\w+" src/ --no-heading -n
Rust:
rg "^\s*(pub\s+)?(async\s+)?fn |^\s*(pub\s+)?(struct|enum|trait|impl)\s" src/ --no-heading -n
Use ^\s* not ^ — methods inside class bodies and impl blocks are indented. The ^ pattern misses ~70% of methods.
Based on names, pick 2-3 functions/classes to read.
Use Read with offset/limit to read specific functions — not the whole file.
Use Grep to find callers: rg "functionName" --type ts -n
Never read a file start-to-finish when exploring. Always structure first.
Without smart-explore (~18k tokens):
Read src/payments/processor.ts # 400 lines
Read src/payments/validator.ts # 300 lines
Read src/payments/gateway.ts # 500 lines
Read src/payments/types.ts # 200 lines
With smart-explore (~2.5k tokens):
# Step 1: Get structure (~400 tokens for all 4 files)
rg "^\s*(export\s+)?(async\s+)?(function|class|const|interface|type)\s+\w+" src/payments/ -n
# Step 2: Identify what matters from signatures
# "processPayment() calls validateAmount() — read those two"
# Step 3: Read only those functions (with line offsets)
Read src/payments/processor.ts (lines 45-90) # ~300 tokens
Read src/payments/validator.ts (lines 12-40) # ~200 tokens
# Goal: Add rate limiting to the auth service
# Step 1: What's in the auth module?
rg "^\s*(export\s+)?(async\s+)?(function|class|const)\s+\w+" src/auth/ -n
# Output:
# src/auth/middleware.ts:15:export async function authenticate(req: Request)
# src/auth/middleware.ts:45:export async function refreshToken(token: string)
# src/auth/service.ts:8:export function validate(claims: Claims)
# src/auth/service.ts:20:export async function login(creds: Credentials)
# Step 2: Rate limiting goes in middleware.ts before authenticate()
# Read ONLY the authenticate function
Read src/auth/middleware.ts lines 15-44
# Step 3: Add feature — done
| Operation | Without | With | Savings |
|---|---|---|---|
| Understand 5-file module | ~18,000 tokens | ~2,500 tokens | ~86% |
| Find where to add a feature | ~8,000 tokens | ~800 tokens | ~90% |
| PR review (10 changed files) | ~25,000 tokens | ~3,500 tokens | ~86% |
| Single function lookup | ~3,000 tokens | ~350 tokens | ~88% |
For larger codebases, install tree-sitter CLI for AST-based extraction:
brew install tree-sitter
See the full extract-signatures.py script in the claude-code-ultimate-guide for a Python script that extracts signatures automatically.
For codebases over 50 files, consider an indexed MCP server:
| Use Case | Recommended |
|---|---|
| General code exploration | mcp-server-tree-sitter |
| PR code reviews | code-review-graph |
| Symbol-heavy workflows | jCodeMunch (non-commercial) |