a5c-ai/babysitter / library/specializations/desktop-development/skills/startup-time-profiler
startup-time-profiler
VerifiedProfile and optimize application startup time for desktop applications
SKILL.md
View on GitHub---
name: startup-time-profiler
description: Profile and optimize application startup time for desktop applications
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
tags: [performance, profiling, startup, optimization, desktop]
graph:
domains: [domain:software-engineering]
specializations: [specialization:desktop-development]
skillAreas: [skill-area:performance-monitoring-profiling, skill-area:profiling-cpu]
roles: [role:desktop-developer, role:fullstack-engineer]
workflows: [workflow:feature-development, workflow:release-management]
---
# startup-time-profiler
Profile and optimize application startup time, identifying bottlenecks in initialization, module loading, and rendering.
## Capabilities
- Measure cold and warm start times
- Identify module loading bottlenecks
- Profile initialization phases
- Generate timeline visualizations
- Provide optimization recommendations
- Set up CI performance tracking
## Input Schema
```json
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"framework": { "enum": ["electron", "tauri", "native"] },
"iterations": { "type": "number", "default": 5 }
},
"required": ["projectPath"]
}
```
## Electron Startup Profiling
```javascript
// Add to main.js
const startTime = Date.now();
app.on('ready', () => {
console.log(`App ready: ${Date.now() - startTime}ms`);
});
// Enable tracing
app.commandLine.appendSwitch('trace-startup');
app.commandLine.appendSwitch('trace-startup-file', 'startup-trace.json');
```
## Optimization Techniques
1. Lazy load modules
2. Defer non-critical initialization
3. Optimize bundle size
4. Use V8 snapshots
5. Preload critical resources
## Benchmarks
| Metric | Good | Acceptable | Poor |
|--------|------|------------|------|
| Cold start | < 2s | < 4s | > 6s |
| Warm start | < 1s | < 2s | > 3s |
| Window visible | < 1.5s | < 3s | > 5s |
## Related Skills
- `memory-leak-detector`
- `bundle-size-analyzer`
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |