analyze-function
Analyze the specified function from the given file with detailed line-by-line breakdown.
Usage: /analyze-function filename:function_name or /analyze-function filename function_name
Arguments:
filename: The file containing the function to analyzefunction_name: The name of the function to analyze
For the function <arguments>, I will:
- Read and locate the function in the specified file
- Provide context about the function's role in the system
- Analyze each line explaining:
- What the code does technically
- Why it's implemented this way
- Performance implications
- Edge cases and potential issues
- Connection to the broader codebase
More from carsten-j/agent-resources
refactor-pass
Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build to verify behavior.
12update-claude-md
Update the project's CLAUDE.md with meta learnings, conventions, gotchas, and significant codebase changes. Use when the user asks to update CLAUDE.md, capture learnings, document project conventions, or reflect recent work in the project guide.
11pr-review
Review the current Pull Request that has been checked out locally with structured feedback on code quality, issues, testing, and suggestions. Use when you need a comprehensive code review of a PR branch.
8history
Display Claude conversation history in an easy-to-scan format showing recent sessions with dates, projects, and topics. Use when you want to review past conversations or resume a previous session.
1teach
Learning mode - guides the user to complete tasks themselves through Socratic teaching rather than doing it for them. Use when the user wants to learn how to do something instead of having it done for them.
1gwm
Manage git worktrees using the gwm script. Supports creating, listing, removing, and checking status of worktrees. Use when the user says "create git worktree", "new worktree", or needs to work with multiple branches simultaneously via git worktrees.
1