profile

Profile Python modules for import time, complexity, lines of code, and memory usage.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/EndUser123/sdlc --skill profile-enduser123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: profile
Source: https://github.com/EndUser123/sdlc/tree/main/skills/profile
Command: npx skills add https://github.com/EndUser123/sdlc --skill profile-enduser123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Measures and validates performance impact from modernization efforts, ensuring optimizations do not introduce regressions in runtime or resource usage.

Core Features & Use Cases

  • Baseline mode records before-state metrics for a target and stores them for later comparison.
  • Compare mode computes deltas against saved baselines and reports improvements or regressions.
  • Integrates with the /evolve workflow (Phase 1 AUDIT and Phase 4 HARDEN); baselines are stored in P:/.claude/state/profile_baselines.json.
  • Outputs include execution timing, import time, cyclomatic complexity, and lines of code.

Quick Start

Run /profile <target> --baseline to establish a baseline before performing a comparison with --compare.

Frequently Asked Questions about profile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure Python module performance before and after optimization?

You measure Python module performance by running a baseline mode to record before-state metrics, then using a compare mode to compute deltas against saved baselines, reporting improvements or regressions in execution timing and resource usage.

What Python code metrics can I track for modernization workflows?

You can track import time, cyclomatic complexity, lines of code, execution timing, and memory usage to understand baseline and post-change behavior during modernization workflows.

How do I establish a performance baseline for a Python codebase?

You establish a performance baseline by running a profile command with a target and a baseline flag, which records the before-state metrics and stores them in a JSON file for later comparison.

Does this performance profiling tool integrate with the evolve workflow?

Yes, the performance profiling tool integrates with the evolve workflow during the Phase 1 AUDIT and Phase 4 HARDEN phases, storing baselines in a specific JSON file path.

Can I compare code complexity and memory usage changes after refactoring?

Yes, you can compare code complexity and memory usage changes by computing deltas against saved baselines, which reports whether your refactoring introduced improvements or regressions in runtime or resource usage.

What is the best way to validate that code optimizations do not introduce regressions?

The best way to validate that code optimizations do not introduce regressions is to measure and compare performance metrics against a saved baseline, ensuring runtime and resource usage deltas are tracked during modernization efforts.