pattern-detection

Installation
Summary

Detect code smells, security vulnerabilities, anomalies, and trends across codebases using regex, AST analysis, and statistical methods.

  • Identifies problematic patterns including long functions, duplicate code, magic numbers, empty catch blocks, and TODO/FIXME markers
  • Scans for security risks such as SQL injection, hard-coded secrets, dangerous function usage (eval, innerHTML), and credential exposure patterns
  • Performs statistical anomaly detection using Z-score and IQR methods to flag outliers in numerical data
  • Includes regex-based sensitive data detection for emails, phone numbers, credit cards, and SSNs, plus time-series trend analysis with moving averages and growth rate calculation
  • Generates structured reports with severity levels and actionable recommendations; read-only operation with built-in false-positive awareness
SKILL.md

Pattern Detection

When to use this skill

  • Code review: Proactively detect problematic patterns
  • Security review: Scan for vulnerability patterns
  • Refactoring: Identify duplicate code
  • Monitoring: Alert on anomalies

Instructions

Step 1: Detect code smell patterns

Detect long functions:

# Find functions with 50+ lines
grep -n "function\|def\|func " **/*.{js,ts,py,go} | \
Related skills

More from supercent-io/skills-template

Installs
10.5K
GitHub Stars
88
First Seen
Jan 24, 2026