Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

pattern-detection模式检测

Agent Skill

pattern-detection 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

535

周安装

23

GitHub Stars

11

下载量

188
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pattern-detection(模式检测)
来源仓库:https://github.com/akillness/skills-template
仓库路径:skills/pattern-detection
安装命令:
npx skills add https://github.com/akillness/skills-template --skill pattern-detection
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/skills-template --skill pattern-detection

简介

pattern-detection 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 用于发现代码、日志或指标中的重复模式与异常情况,提供可复用扫描与候选集分组。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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 reportingdata-analysis
  • The real job is repo tracing, ownership lookup, or metric-definition searchcodebase-search
  • The real job is security remediation, policy design, or vulnerability hardeningsecurity-best-practices or code-review
  • The real job is alert tuning, telemetry coverage, or incident operationsmonitoring-observability

Core idea

pattern-detection should behave like a detection packet router, not a giant bag of regexes.

  1. Normalize the prompt into one primary detection packet.
  2. Pick the cheapest evidence mode that can surface trustworthy candidates.
  3. Return grouped findings with confidence and false-positive notes.
  4. Give one fastest validation step.
  5. Route out aggressively once the bottleneck becomes diagnosis, explanation, remediation, or operations.

Read these support docs before choosing the packet:

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

PacketUse whenBest fitsTypical outputs
text-prefilterYou need a cheap first pass to narrow a big scopeTODO/FIXME clusters, repeated strings, suspicious config values, broad error familiescandidate files/lines, counts, and next packet suggestion
structural-code-ruleSyntax or call shape matters more than plain textrisky API usage, duplicate branching/error shapes, migration candidates, rule draftsgrouped match families, exclusions, reusable rule idea
log-event-patternRepeated signals show up in logs or event recordsnoisy retries, browser/build splits, repeated errors, suspicious event familiesgrouped clusters, spread/count context, likely segmentation keys
metric-anomalyThe pattern lives in aggregates or time windowsKPI spikes/drops, retention or funnel anomalies, suspicious spend or telemetry shiftssuspicious segments/windows, baseline note, confidence and caveats

Packet rules:

  • Prefer text-prefilter when the fastest win is to narrow the search space cheaply.
  • Prefer structural-code-rule when plain text matching is too noisy or misses true code shape.
  • Prefer log-event-pattern when volume, spread, parser quality, or cohort grouping matters more than single-line reading.
  • Prefer metric-anomaly when 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 noisy source from a broad multi-source spread
  • compare a suspicious window with a baseline window
  • note whether parser, schema, or instrumentation drift could dominate the signal

Useful heuristics by packet:

  • text-prefilter → counts + representative examples before deeper claims
  • structural-code-rule → describe the shape in words before drafting a rule
  • log-event-pattern → separate volume from spread and isolate cohort/environment differences
  • metric-anomaly → include denominator, baseline, and segment context before calling something abnormal

Step 4: Surface grouped candidates, not a raw hit list

Use this order:

  1. Candidate family — what repeated shape or anomaly exists?
  2. Why it matters — correctness, reliability, security, cost, UX, or player/product impact
  3. Confidence — high / medium / low
  4. False-positive risk — what could make it misleading?
  5. Next check — the fastest validation or route-out

Do not silently turn detection into a full diagnosis, code rewrite, dashboard memo, or alert rollout.

Step 5: Use packet-specific heuristics

For text-prefilter

  • Use it only as a cheap narrowing pass.
  • Capture counts and representative examples, not every hit.
  • Explicitly note when syntax/context is too important for plain text alone.
  • Escalate to structural-code-rule or log-event-pattern when the match quality is too noisy.

For structural-code-rule

  • Describe the code shape in words before reaching for tooling.
  • Group matches by family, not by file order.
  • Call out likely exclusions and false positives.
  • Route actual remediation or security hardening outward once the family is identified.

For log-event-pattern

  • Normalize one grouping unit first: error family, event name, exception class, browser, build, region, feature flag, tenant.
  • Separate repeated fallout from the likely primary family.
  • Flag parser or instrumentation drift explicitly.
  • Route root-cause reconstruction to log-analysis once the user needs the actual incident story.

For metric-anomaly

  • Name baseline vs comparison window.
  • Compare absolute and relative change with denominator context.
  • Test whether the anomaly is broad or concentrated in one segment.
  • Flag seasonality, low sample size, or instrumentation changes before implying business meaning.
  • Route deeper explanation, recommendations, or experiment narration to data-analysis.

Step 6: Return one compact detection brief

Default response shape:

## 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

Keep it compact. The point is to leave the user with the smallest trustworthy shortlist, not a giant implementation memo.

Step 7: Route out aggressively

Switch when the next job is no longer first-pass detection:

  • Root-cause incident or outage reconstructionlog-analysis
  • KPI explanation, experiment readout, or business narrativedata-analysis
  • Repo tracing, ownership lookup, or metric-definition huntingcodebase-search
  • Security remediation or hardening designsecurity-best-practices
  • Judgment-heavy patch / PR reviewcode-review
  • Alert routing, telemetry coverage, incident ops, or monitoring policymonitoring-observability

If the evidence is too thin:

  1. mark confidence low
  2. ask for the smallest missing anchor only if required: scope, time window, grouping key, or baseline
  3. do not pretend certainty from one noisy excerpt or thin sample

Examples

Example 1: Repeated risky code shape

Prompt:

Scan this repo for repeated risky error-handling patterns and tell me what to inspect first.

Good response shape:

  • choose text-prefilter or structural-code-rule
  • group matches by family
  • include confidence and false-positive notes
  • route remediation to review/refactor/security skills instead of fixing everything in place

Example 2: KPI spike triage

Prompt:

We have a KPI spike in a CSV export. Is this pattern-detection or data-analysis?

Good response shape:

  • choose metric-anomaly for first-pass detection
  • name baseline, denominator, and trust checks
  • route explanation and recommendations to data-analysis

Example 3: Gameplay telemetry outliers

Prompt:

Look for suspicious gameplay telemetry outliers after yesterday's update.

Good response shape:

  • choose log-event-pattern or metric-anomaly
  • segment by build, cohort, region, or item/class
  • include instrumentation caveats
  • stay in detection mode instead of promising a full balance fix

Example 4: Alert or anomaly?

Prompt:

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:

  • start with metric-anomaly to classify whether there is a real suspicious window or just alert noise
  • call out seasonality / low-history / denominator risks
  • route alert tuning to monitoring-observability and KPI explanation to data-analysis

Best practices

  1. Start with the unit of evidence and grouping key, not the tool name.
  2. Use the cheapest trustworthy packet before escalating.
  3. Always include confidence, false-positive risk, and one next check.
  4. Group findings into candidate families, not raw hit lists.
  5. Distinguish detection from diagnosis, remediation, explanation, and alert operations.
  6. Treat parser, instrumentation, seasonality, and denominator issues as first-class caveats.
  7. Prefer reusable rule thinking when the same pattern is likely to recur.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.44%
按下载量换算69

Claude

30.86%
按下载量换算58

Cursor

17.16%
按下载量换算32

Gemini CLI

8.09%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills