foryourhealth111-pixel/Vibe-Skills / bundled/skills/detecting-performance-regressions
detecting-performance-regressions
VerifiedCompare current benchmark results against historical baselines to spot performance regressions. Use as an explicit/manual helper for build-to-build degradation review, not for broad optimization strategy or low-level profiling ownership.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.4 KB |
| assets/README.md | markdown | 384 B |
| references/README.md | markdown | 526 B |
| scripts/README.md | markdown | 631 B |
| scripts/analyze_metrics.py | script | 4.9 KB |
| scripts/create_github_comment.py | script | 3.8 KB |
| scripts/generate_report.py | script | 3.8 KB |
scripts/generate_report.py
View on GitHub#!/usr/bin/env python3
"""
performance-regression-detector - Generator Script
Generates a human-readable report summarizing detected performance regressions, including affected metrics, severity, and potential causes.
Generated: 2025-12-10 03:48:17
"""
import os
import json
import argparse
from pathlib import Path
from datetime import datetime
class Generator:
def __init__(self, config: Dict):
self.config = config
self.output_dir = Path(config.get('output', './output'))
self.output_dir.mkdir(parents=True, exist_ok=True)
def generate_markdown(self, title: str, content: str) -> Path:
"""Generate markdown document."""
filename = f"{title.lower().replace(' ', '_')}_{datetime.now().strftime('%Y%m%d_%H%M%S')}.md"
file_path = self.output_dir / filename
md_content = f"""# {title}
Generated by performance-regression-detector
Date: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}
## Overview
{content}
## Configuration
```json
{json.dumps(self.config, indent=2)}
```
## Category
performance
## Plugin
performance-regression-detector
"""
file_path.write_text(md_content)
return file_path
def generate_json(self, data: Dict) -> Path:
"""Generate JSON output."""
filename = f"output_{datetime.now().strftime('%Y%m%d_%H%M%S')}.json"
file_path = self.output_dir / filename
output_data = {
"generated_by": "performance-regression-detector",
"timestamp": datetime.now().isoformat(),
"category": "performance",
"plugin": "performance-regression-detector",
"data": data,
"config": self.config
}
with open(file_path, 'w') as f:
json.dump(output_data, f, indent=2)
return file_path
def generate_script(self, name: str, template: str) -> Path:
"""Generate executable script."""
filename = f"{name}.sh"
file_path = self.output_dir / filename
script_content = f"""#!/bin/bash
# Generated by performance-regression-detector
# Date: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}
set -e # Exit on error
echo "🚀 Running {name}..."
# Template content
{template}
echo "✅ Completed successfully"
"""
file_path.write_text(script_content)
file_path.chmod(0o755) # Make executable
return file_path
def main():
parser = argparse.ArgumentParser(description="Generates a human-readable report summarizing detected performance regressions, including affected metrics, severity, and potential causes.")
parser.add_argument('--type', choices=['markdown', 'json', 'script'], default='markdown')
parser.add_argument('--output', '-o', default='./output', help='Output directory')
parser.add_argument('--config', '-c', help='Configuration file')
parser.add_argument('--title', default='performance-regression-detector Output')
parser.add_argument('--content', help='Content to include')
args = parser.parse_args()
config = {'output': args.output}
if args.config and Path(args.config).exists():
with open(args.config) as f:
config.update(json.load(f))
generator = Generator(config)
print(f"🔧 Generating {args.type} output...")
if args.type == 'markdown':
output_file = generator.generate_markdown(
args.title,
args.content or "Generated content"
)
elif args.type == 'json':
output_file = generator.generate_json(
{"title": args.title, "content": args.content}
)
else: # script
output_file = generator.generate_script(
args.title.lower().replace(' ', '_'),
args.content or "# Add your script content here"
)
print(f"✅ Generated: {output_file}")
return 0
if __name__ == "__main__":
import sys
sys.exit(main())
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: 323k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 323k | 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: 323k | 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: 323k | Updated | Claude CodeCodex | Verified | Install |