Agent skill · data analytics · aiskillstore

pattern-detection

Detect patterns, anomalies, and trends in code and data. Use when identifying code smells, finding security vulnerabilities, or discovering recurring patterns. Handles regex patterns, AST analysis, and statistical anomaly detection.

Why this skill is useful

Adds specific regex patterns and scripts for detecting code smells and security vulnerabilities that the AI wouldn't reliably generate on its own.

What it needs

Requires awk, grep, numpy, pandas, python, scipy installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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: Duplicate code patterns: Magic numbers: Step 2: Security vulnerability patterns SQL Injection risks: Hard-coded secrets: Dangerous function usage: Step 3: Code structure patterns Import analysis: TODO/FIXME patterns: Error handling patterns: Step 4: Data anomaly patterns Regex patterns: Statistical anomaly detection: Step 5: Trend analysis Output format Pattern detection report Best practices 1. Incremental analysis: Start with simple patterns 2. Minimize false positives: Use precise regex 3. Check context: Understand the context around a match 4. Prioritize: Sort by severity Constraints Required rules (MUST) 1. Read-only operation 2. Perform result verification 3. State the possibility of false positives Prohibited (MUST NOT) 1. Do not auto-modify code 2. Do not log sensitive information References Regex101 OWASP Cheat Sheet Code Smell Catalog Examples Example 1: Basic usage <!-- Add example content here --> Example 2: Advanced usage <!-- Add advanced example content here -->

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/pattern-detection

View the source on GitHub

Browse the @skills marketplace