Skip to content
Back to skills

Pattern Detection

ASecurity

Detect and document existing code patterns in a codebase. Use to

  • 27 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 7, 2026
code-qualitygotesting

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add vneseyoungster/ChocoVine --skill pattern-detection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pattern Detection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pattern Detection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vneseyoungster-pattern-detection/badge)](https://www.skillsdirectory.com/skills/vneseyoungster-pattern-detection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pattern-detection
description: Detect and document existing code patterns in a codebase. Use to
  maintain consistency with established conventions when writing new code.
---

# Pattern Detection Skill

## Purpose
Identify and document patterns for consistency enforcement.

## Pattern Categories

### 1. Naming Conventions
Reference: [patterns/naming-conventions.md](patterns/naming-conventions.md)

Detection method:
- Sample 10+ files across different directories
- Extract function/class/variable names
- Identify dominant patterns

### 2. Error Handling
Reference: [patterns/error-handling.md](patterns/error-handling.md)

Detection method:
- Search for try/catch blocks
- Find custom error classes
- Check for error middleware

### 3. Testing Patterns
Reference: [patterns/testing-patterns.md](patterns/testing-patterns.md)

Detection method:
- Locate test files
- Analyze test structure
- Identify mocking approach

## Consistency Scoring

Rate codebase consistency:
- **High (90%+)**: Strong patterns, few deviations
- **Medium (70-89%)**: Clear patterns with some variation
- **Low (<70%)**: Inconsistent, needs standardization

## Output Format
Create patterns document with:
1. Detected patterns with examples
2. Consistency score per category
3. Deviation examples
4. Recommendations for standardization

## Storage Location
Save to: `docs/research/patterns-{date}.md`

Files in this skill

  • SKILL.md1.4 KB
  • patterns/error-handling.md3.3 KB
  • patterns/naming-conventions.md2.4 KB
  • patterns/testing-patterns.md3.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…