File size: 922 Bytes
81aa0b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
name: explain
description: Explain how the current codebase or a specific file works
argument-hint: File path or "codebase"
---
# Explain

Target: $ARGUMENTS

Explain the code clearly and concisely.

If target is "codebase" or empty:
1. Use `list_dir` to map the project structure
2. Identify the entry point (app.py, main.py, index.js, etc.)
3. Read the entry point and key modules
4. Produce a high-level architecture summary

If target is a file path:
1. `read_file` the target
2. Read any files it imports/requires (one level deep)
3. Explain:
   - What the file does
   - Its main functions/classes
   - How it fits into the larger project
   - Any non-obvious patterns or gotchas

Format your explanation for a developer who is new to this code. Use:
- Short paragraphs for prose
- Code snippets for examples
- A "Key takeaways" list at the end

Don't editorialize — describe what's there, not what should be.