pattern-detection
БесплатноБез исполняемых скриптовНе проверенRoute repeated pattern, rule, and anomaly work into one detection packet before suggesting tools or fixes. Use when the user needs reusable scans, suspicious…
от akillness★ 63 звезды на GitHubОб этом скилле
Pattern Detection
When to use this skill
- The main job is finding repeated shapes or suspicious irregularities, not fully explaining or fixing them yet.
- The user needs a reusable scan, shortlist, grouped candidate set, or anomaly triage across code, logs/events, telemetry, or metric tables.
- The prompt is really asking "what patterns keep showing up?", "what looks off?", or "what should we inspect first?" even if it never says "pattern detection".
- The user needs confidence notes, false-positive risks, or the fastest validation step, not a raw wall of hits.
- The request mentions patterns, anomalies, outliers, repeated failures, suspicious spikes, odd cohorts, rule packs, signatures, code smells, anti-patterns, fraud signals, or recurring issue families.
Do not use this skill as the main workflow when:
- The real job is root-cause incident reconstruction from logs or traces →
log-analysis - The real job is decision-ready KPI explanation, experiment analysis, or stakeholder reporting →
data-analysis - The real job is repo tracing, ownership lookup, or metric-definition search →
codebase-search - The real job is security remediation, policy design, or vulnerability hardening →
security-best-practicesorcode-review - The real job is alert tuning, telemetry coverage, or incident operations →
monitoring-observability
Core idea
pattern-detection should behave like a detection packet router, not a giant bag of regexes.
- Normalize the prompt into one primary detection packet.
- Pick the cheapest evidence mode that can surface trustworthy candidates.
- Return grouped findings with confidence and false-positive notes.
- Give one fastest validation step.
- Route out aggressively once the bottleneck becomes diagnosis, explanation, remediation, or operations.
Read these support docs before choosing the packet:
- references/intake-packets-and-route-outs.md
- references/detection-modes.md
- references/confidence-and-false-positive-checklist.md
Instructions
Step 1: Normalize the request
Convert the prompt into this intake shape first:
pattern_detection_packet:
primary_packet: text-prefilter | structural-code-rule | log-event-pattern | metric-anomaly
evidence_shape: code | configs | logs | events | telemetry | tables | time-series | mixed | unknown
detection_goal: repeated-shape | risky-structure | noisy-family | suspicious-spike | drift | outlier | rule-draft | shortlist
grouping_key: file-path | symbol-shape | error-family | event-name | build-version | environment | browser-device | cohort | metric-segment | unknown
trust_risk: broad-match | parser-drift | instrumentation-change | denominator-gap | seasonality | sample-size | none | mixed | unknown
route_after: stay-here | log-analysis | data-analysis | codebase-search | security-best-practices | monitoring-observability | code-review
Choose one primary packet for the run. If two are plausible, pick the one that reduces uncertainty fastest.
Step 2: Choose the packet
| Packet | Use when | Best fits | Typical outputs |
|---|---|---|---|
text-prefilter |
You need a cheap first pass to narrow a big scope | TODO/FIXME clusters, repeated strings, suspicious config values, broad error families | candidate files/lines, counts, and next packet suggestion |
structural-code-rule |
Syntax or call shape matters more than plain text | risky API usage, duplicate branching/error shapes, migration candidates, rule drafts | grouped match families, exclusions, reusable rule idea |
log-event-pattern |
Repeated signals show up in logs or event records | noisy retries, browser/build splits, repeated errors, suspicious event families | grouped clusters, spread/count context, likely segmentation keys |
metric-anomaly |
The pattern lives in aggregates or time windows | KPI spikes/drops, retention or funnel anomalies, suspicious spend or telemetry shifts | suspicious segments/windows, baseline note, confidence and caveats |
Packet rules:
- Prefer
text-prefilterwhen the fastest win is to narrow the search space cheaply. - Prefer
structural-code-rulewhen plain text matching is too noisy or misses true code shape. - Prefer
log-event-patternwhen volume, spread, parser quality, or cohort grouping matters more than single-line reading. - Prefer
metric-anomalywhen the user cares about spikes, drift, cohorts, or time-window irregularities.
Step 3: Narrow the evidence before claiming a pattern
Apply at least one narrowing move before interpreting results:
- limit by file/path/language scope
- limit by time window, deploy window, or experiment window
- group by one stable key: message family, event name, exception class, browser/device, build, cohort, metric segment
- separate one nois
Установить pattern-detection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashВложенные файлы
FAQ
Что делает скилл pattern-detection?
Route repeated pattern, rule, and anomaly work into one detection packet before suggesting tools or fixes. Use when the user needs reusable scans, suspicious repeated shapes, grouped outlier candidates, or first-pass anomaly triage across code, logs/events, telemetry, and metric tables. Choose one packet: text-prefilter, structural-code-rule, log-event-pattern, or metric-anomaly. Triggers on: repeated bug, suspicious spike, odd cohort, noisy event, code smell family, rule pack, anti-pattern, outlier, anomaly, fraud signal, or recurring issue. Route root-cause incident work to log-analysis, KPI/business explanation to data-analysis, repo tracing to codebase-search, remediation to specialist skills, and alert/incident operations to monitoring-observability.
Как установить скилл pattern-detection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pattern-detection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic