Skip to content
Development
Command

/profile

Static analysis for backend performance anti-patterns (N+1 queries, sync I/O, memory leaks)

From plugin
ultraship
12216 skills13 agents16 commands3 hooks
+1
Install
> /plugin marketplace add Houseofmvps/ultraship
> /plugin install ultraship@ultraship

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/profile

Context preview

What this command does when you run it.

Static analysis for backend performance anti-patterns (N+1 queries, sync I/O, memory leaks)

Command definition

profile.md
description: Static analysis for backend performance anti-patterns (N+1 queries, sync I/O, memory leaks)

Run the code profiler on this project:

node ${CLAUDE_PLUGIN_ROOT}/tools/code-profiler.mjs <project-directory>

Report findings grouped by category: N+1 queries, synchronous I/O in handlers, unbounded database queries, missing indexes, memory leak patterns, sequential awaits, and error handling gaps. For each finding, show the file, line number, and specific fix recommendation.

If an LSP server is connected (check your tools for a language server), use `find references` on each flagged function to confirm how often the hot path is actually called and whether the anti-pattern is real before recommending a fix. A loop that looks like an N+1 but is called once at startup is not worth refactoring. The static profiler flags candidates; the LSP confirms impact.

Ships withultraship

"ULTRASHIP" Claude Code plugin — 39 skills, 33 tools, 11 agents for ship-ready workflows: planning, review, pentesting, safety guardrails, canary monitoring, SEO/AI-readiness check, penetration testing, code review, competitive analysis, incident response. 1 dependency. 180 tests. MIT.

Get the whole plugin

Other commands on ultraship.