Agent skill
startup-time-profiler
Profile and optimize application startup time for desktop applications
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/startup-time-profiler
SKILL.md
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
{
"type": "object",
"properties": {
"projectPath": { "type": "string" },
"framework": { "enum": ["electron", "tauri", "native"] },
"iterations": { "type": "number", "default": 5 }
},
"required": ["projectPath"]
}
Electron Startup Profiling
// 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
- Lazy load modules
- Defer non-critical initialization
- Optimize bundle size
- Use V8 snapshots
- 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-detectorbundle-size-analyzer
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?