comprehend-code
SolidUnderstand and explain code — language detection, entry points, data flow, dependencies, and intent. Use when the user wants to understand code, review code logic, or get an architectural overview.
AI & Automation 0 stars
0 forks Updated today MIT
Install
Quality Score: 78/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Comprehend-Code (代码理解)
Read, understand, and explain code with structured output.
## When to Use
- "Read this Python file and explain the class hierarchy"
- "What does this function do?"
- "Give me an overview of this codebase"
- "Explain the architecture of this project"
- "What design patterns are used in this code?"
## When Not to Use
- Document understanding (specs, contracts, manuals) → use comprehend-doc
- Debugging specific errors → use debugging skill
- Quick code formatting questions → not needed
## Procedure
1. **Identify context** — detect programming language, framework, runtime, file type.
2. **Find entry points** — locate `main()`, handlers, route registrations, or script entry points.
3. **Map data structures** — identify key types, interfaces, classes, and their relationships.
4. **Trace data flow** — follow input → processing → output through the code paths.
5. **Map dependencies** — list external packages, imports, API calls, databases.
6. **Synthesize intent** — explain what the code is designed to do, not just what it does line by line.
## Pitfalls
- **Cross-language misjudgment**: Do not assume the same patterns apply across languages (e.g., Python duck typing vs Java interfaces). Always state the language first.
- **Excessive nesting expansion**: Stop at 3 levels deep unless the user specifically asks for deeper detail. Full call tree expansion drowns signal in noise.
- **Framework-specific assumptions**: Do not infer framework conventions wit...
Details
- Author
- AVA-2568
- Repository
- AVA-2568/MY_SKILL
- Created
- 2 days ago
- Last Updated
- today
- Language
- Python
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
comprehend-doc
Understand and explain documents — technical docs, specifications, manuals, reports. Use when the user wants to understand a document, extract key information, or get a structured summary.
0 Updated today
AVA-2568 AI & Automation Solid
explain-codebase
Use when you need to understand an unfamiliar repository or module and produce a structured walkthrough of how it works and where to change it.
1 Updated 5 days ago
NSBen AI & Automation Featured
understand-explain
Use when you need a deep-dive explanation of a specific file, function, or module in the codebase
76,509 Updated 2 days ago
Egonex-AI