a5c-ai/babysitter / library/specializations/algorithms-optimization/skills/code-profiler
code-profiler
VerifiedProfile code performance and identify bottlenecks
SKILL.md
View on GitHub---
name: code-profiler
description: Profile code performance and identify bottlenecks
allowed-tools:
- Bash
- Read
- Write
- Grep
- Glob
graph:
domains: [domain:computer-science]
specializations: [specialization:algorithms-optimization]
skillAreas: [skill-area:dynamic-programming, skill-area:graph-algorithms]
roles: [role:backend-engineer, role:computational-scientist]
---
# Code Profiler Skill
## Purpose
Profile algorithm implementations to identify performance bottlenecks and optimization opportunities.
## Capabilities
- Runtime profiling
- Memory profiling
- Cache miss analysis
- Hot spot identification
- Optimization suggestions
- Comparative benchmarking
## Target Processes
- code-level-optimization
- complexity-optimization
- memory-optimization
## Profiling Dimensions
### Time Profiling
- Function-level timing
- Line-by-line profiling
- Call graph analysis
- Hot spot detection
### Memory Profiling
- Heap allocation tracking
- Memory leak detection
- Peak memory usage
- Allocation patterns
### Cache Analysis
- Cache miss rates
- Memory access patterns
- Data locality issues
## Input Schema
```json
{
"type": "object",
"properties": {
"code": { "type": "string" },
"language": { "type": "string" },
"profileType": {
"type": "string",
"enum": ["time", "memory", "cache", "all"]
},
"testInput": { "type": "string" },
"iterations": { "type": "integer", "default": 1 }
},
"required": ["code", "profileType"]
}
```
## Output Schema
```json
{
"type": "object",
"properties": {
"success": { "type": "boolean" },
"timing": { "type": "object" },
"memory": { "type": "object" },
"hotSpots": { "type": "array" },
"recommendations": { "type": "array" }
},
"required": ["success"]
}
```
## Integration
Can integrate with profiling tools like gprof, perf, Valgrind, cProfile, and language-specific profilers.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |