askill
explore

exploreSafety 98Repository

Understand code without making changes. Read-only exploration of codebase structure, patterns, data flow, and dependencies. Use when asked "how does X work" or to investigate code before planning.

1 stars
1.2k downloads
Updated 2/23/2026

Package Files

Loading files...
SKILL.md

Explore

Purpose: Understand code without making changes Mode: Read-only — do NOT modify any files Usage: /explore [scope flags] <question>

Iron Laws

  1. READ-ONLY, NO EXCEPTIONS — Never edit, create, or delete any file. This skill is purely investigative.
  2. ANSWER THE QUESTION ASKED — Do not propose fixes, refactors, or improvements unless explicitly asked. Exploration is not a license to redesign.
  3. SCOPE BEFORE SEARCHING — Define what you're looking for before reading files. Unbounded exploration fills context and degrades performance.

When to Use

  • "How does X work?" — Understand a feature's implementation
  • "Why does X behave this way?" — Investigate behavior with history
  • "What would be affected if I change X?" — Impact analysis
  • "Is there existing code for X?" — Find reusable patterns
  • Before /plan or /implement when the codebase is unfamiliar

When NOT to Use

  • You already know the answer from files in context → just answer
  • You need to fix a bug → /debug
  • You need to make changes → /implement
  • You need to review code quality → /review

Scope Flags

FlagDescription
--files=<paths>Focus exploration on specific files/directories
--project=<path>Project root for monorepos
--depth=<level>Exploration depth: surface, standard, deep

Exploration Strategies

Question TypeStrategyApproach
"How does X work?"TraceFind entry point → follow code path → document the flow
"Why does X behave this way?"InvestigateRead implementation → check tests → review git blame/history
"What would change X affect?"ImpactFind all references → trace dependents → map blast radius
"Is there existing code for X?"SearchGlob for patterns → grep for keywords → check test files for usage
"What's the architecture of X?"MapFind module boundaries → trace data flow → document interfaces

Depth Levels

LevelScope
SurfaceFile list + purpose — quick inventory
StandardCode flow + patterns + dependencies — full explanation (default)
DeepArchitecture + history + alternatives + edge cases — comprehensive

Context Management

  • Use subagents for deep explorations. When exploring a large area (6+ files), delegate to a subagent to prevent context exhaustion. The subagent reports a summary; the main session stays clean.
  • Set a scope budget. Before exploring, estimate how many files you'll need. If >10 files, narrow the question or use subagents.
  • Stop when answered. Don't keep reading files after finding the answer. Report what you found.

Workflow

Step 1: Parse Scope and Select Strategy

git branch --show-current

Identify: (1) question type from strategy table, (2) depth level, (3) scope from flags or question.

Step 2: Search for Relevant Files

Start narrow, widen only if needed. Use glob/grep to find entry points before reading full files.

Step 3: Read and Analyze

Trace: Find entry point → follow code path → document transformations and decision points.

Investigate: Read implementation → check tests → review git blame → check for TODOs.

Impact: Find all imports/references → trace dependents → map blast radius (direct → transitive).

Search: Glob patterns → grep keywords → check test files → review package.json.

Map: Identify module boundaries → trace data flow → document public interfaces → note coupling.

Step 4: Summarize Findings

Every exploration must include:

## Exploration: [Question]

### Key Files
| File | Purpose |
|------|---------|
| `path/to/file.ts` | [what it does] |

### How It Works
[Explanation with numbered steps referencing file:line]

### Patterns Found
- [Pattern — with example location]

### Considerations
- [Things to be aware of for future changes]

Deep explorations additionally include: Git History, Design Decisions, Edge Cases, and Suggested Next Steps.

Step 5: Indicate Confidence

For each finding, note what was verified vs. inferred:

  • Verified — Read the code and confirmed
  • Inferred — Based on naming/patterns but not traced end-to-end
  • Unknown — Couldn't determine; needs manual verification

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

92/100Analyzed 2/24/2026

Excellent skill document for code exploration. Comprehensive coverage includes triggers, when to use/not use, scope flags, exploration strategies mapped to question types, depth levels, context management guidance, and a detailed 5-step workflow with output template. Well-structured with tables and clear sections. The skill clearly establishes read-only boundaries and provides actionable guidance for various exploration scenarios. Minor improvement: could include an icon for visual branding.

98
95
95
95
92

Metadata

Licenseunknown
Version-
Updated2/23/2026
PublisherhypeJunction

Tags

github-actionstesting