Condense file to bullet points respecting language semantics
Summarizes file content into structured markdown with purpose, components, dependencies, and notes.
/plugin marketplace add Piotr1215/ai-coreutils/plugin install ai-coreutils@aiverseFILEAnalyze and summarize the file: {0}
Read the file using Read tool: {0}
Identify:
Provide concise summary in structured markdown format
# Summary: {file_path}
**Purpose:** {one_sentence_describing_file_purpose}
**Key Components:**
- `{function_name}` - {brief_description}
- `{class_name}` - {brief_description}
- `{module_name}` - {brief_description}
**Dependencies:**
- {library_name} - {what_its_used_for}
- {package_name} - {usage_context}
**Notes:**
- {notable_issue_todo_or_concern}
- {incomplete_functionality}
Python:
def function_name(params):class ClassName:import x, from y import z@decoratorJavaScript/TypeScript:
function name(), const name = () =>class Nameexport, importasync/await patternsGo:
func Name(params) returnTypetype Name structpackage nameRust:
fn name(params) -> ReturnTypestruct Nametrait Namemod nameJava:
public class Nameinterface Namepackage com.exampleInput: /summarize src/auth.py
Output:
# Summary: src/auth.py
**Purpose:** User authentication and session management module
**Key Components:**
- `login(username, password)` - Authenticates user and creates session
- `logout(session_id)` - Terminates active user session
- `validate_token(token)` - Verifies JWT token validity
- `Session` class - Represents active user session with token and expiry
**Dependencies:**
- jwt - Token generation and validation
- bcrypt - Password hashing
- redis - Session storage and caching
**Notes:**
- TODO line 42: Rate limiting not implemented (security concern)
- Password reset flow incomplete (missing email notification)
- Token refresh mechanism not yet implemented