npx skills add ...
npx skills add akillness/jeo-skills --skill 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.
npx skills add akillness/jeo-skills --skill pattern-detection
Do not use this skill as the main workflow when:
log-analysisdata-analysiscodebase-searchsecurity-best-practices or code-reviewmonitoring-observabilitypattern-detection should behave like a detection packet router, not a giant bag of regexes.
Read these support docs before choosing the packet:
Convert the prompt into this intake shape first:
Choose one primary packet for the run. If two are plausible, pick the one that reduces uncertainty fastest.
| 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:
text-prefilter when the fastest win is to narrow the search space cheaply.structural-code-rule when plain text matching is too noisy or misses true code shape.log-event-pattern when volume, spread, parser quality, or cohort grouping matters more than single-line reading.metric-anomaly when the user cares about spikes, drift, cohorts, or time-window irregularities.Apply at least one narrowing move before interpreting results:
Useful heuristics by packet:
Use this order:
Do not silently turn detection into a full diagnosis, code rewrite, dashboard memo, or alert rollout.
text-prefilterstructural-code-rule or log-event-pattern when the match quality is too noisy.structural-code-rulelog-event-patternlog-analysis once the user needs the actual incident story.metric-anomalydata-analysis.Default response shape:
Keep it compact. The point is to leave the user with the smallest trustworthy shortlist, not a giant implementation memo.
Switch when the next job is no longer first-pass detection:
log-analysisdata-analysiscodebase-searchsecurity-best-practicescode-reviewmonitoring-observabilityIf the evidence is too thin:
Prompt:
Scan this repo for repeated risky error-handling patterns and tell me what to inspect first.
Good response shape:
text-prefilter or structural-code-rulePrompt:
We have a KPI spike in a CSV export. Is this pattern-detection or data-analysis?
Good response shape:
metric-anomaly for first-pass detectiondata-analysisPrompt:
Look for suspicious gameplay telemetry outliers after yesterday's update.
Good response shape:
log-event-pattern or metric-anomalyPrompt:
We keep getting noisy anomaly alerts on one metric; should I debug the threshold, inspect the pattern, or write a dashboard summary?
Good response shape:
metric-anomaly to classify whether there is a real suspicious window or just alert noisemonitoring-observability and KPI explanation to data-analysis## Detection brief
- Packet: text-prefilter | structural-code-rule | log-event-pattern | metric-anomaly
- Scope: [files / logs / rows / metrics / time window]
- Grouping key: [file family / symbol shape / error family / cohort / segment]
- Trust level: high | medium | low
## Candidate findings
1. [pattern family or anomaly]
- Why it matters: ...
- Confidence: high | medium | low
- False-positive risk: ...
- Next check: ...
2. ...
## Route-out
- stay here | log-analysis | data-analysis | codebase-search | security-best-practices | monitoring-observability | code-review