Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Statistical Anomaly Detector

ASecurity

When the user requests anomaly detection in numerical datasets using statistical methods such as mean and standard deviation thresholds (e.g., 'amount > mean + 3*std'). This skill calculates per-group statistics, identifies outliers, and flags abnormal records. It is triggered by keywords like 'anomaly detection', 'outlier identification', 'statistical threshold', 'abnormal transactions', or any request involving standard deviation-based filtering in financial or transactional data.

8 stars
0 votes
0 copies
1 views
Added 9/6/2026
datapythongodatabase

Works with

cli

Security Analysis

A100/100

Scanned 9/6/2026

Install to Claude Code

$npx -y skills add zjunlp/Skills --skill statistical-anomaly-detector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Statistical Anomaly Detector?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Statistical Anomaly Detector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zjunlp-statistical-anomaly-detector/badge)](https://www.skillsdirectory.com/skills/zjunlp-statistical-anomaly-detector)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: statistical-anomaly-detector
description: When the user requests anomaly detection in numerical datasets using statistical methods such as mean and standard deviation thresholds (e.g., 'amount > mean + 3*std'). This skill calculates per-group statistics, identifies outliers, and flags abnormal records. It is triggered by keywords like 'anomaly detection', 'outlier identification', 'statistical threshold', 'abnormal transactions', or any request involving standard deviation-based filtering in financial or transactional data.
---
# Instructions

## Core Objective
Detect anomalous records in a dataset by applying a statistical threshold rule (e.g., `value > mean + N * standard_deviation`) on a per-group basis. Output the flagged anomalies, typically to a structured file like an Excel spreadsheet.

## Trigger Keywords & Phrases
- "anomaly detection"
- "outlier identification"
- "statistical threshold"
- "abnormal transactions/records"
- "flag transactions where amount > mean + 3*std"
- "find outliers using standard deviation"
- "mark abnormal data points"

## Primary Workflow
Follow this sequence when the skill is triggered:

1.  **Understand the Request & Locate Inputs**
    *   Clarify the target dataset (e.g., BigQuery table, CSV file), the numerical column for analysis (e.g., `amount`), and the grouping column (e.g., `client_id`).
    *   Identify the threshold rule (e.g., `mean + 3 * std`). The default is `mean + 3 * std` unless specified otherwise.
    *   Locate the output destination (e.g., an Excel file path and target sheet).

2.  **Inspect the Output Template**
    *   Examine the structure of the target output file (e.g., using `excel-get_workbook_metadata`).
    *   Read a sample of the existing data to understand the required column headers and format (e.g., using `excel-read_data_from_excel`).
    *   **Remove any placeholder or sample data** from the output file before writing new results.

3.  **Extract Data & Calculate Statistics**
    *   Query or load the source data, filtering for the relevant records (e.g., by year, by group).
    *   Use a single, efficient query/calculation to:
        *   Compute the mean (`AVG`) and standard deviation (`STDDEV`) for the numerical column, grouped by the specified group column.
        *   Join these statistics back to the original records.
        *   Apply the threshold rule to flag anomalies (e.g., `WHERE numerical_column > (mean + N * std)`).
        *   **Sort the final results** as requested (commonly by a record ID).

4.  **Format and Write Results**
    *   Format the anomaly records (client_id, transaction_id, timestamp, etc.) to match the output template's column order and data types.
    *   Write the formatted records to the output file, starting from the first data row after the headers.
    *   Preserve all existing formatting and sheet structure.

5.  **Verify and Summarize**
    *   Read back a portion of the updated file to confirm successful writing.
    *   Provide a concise summary to the user: state the number of anomalies found, the groups analyzed, and the output file location.

## Key Considerations
*   **Data Volume:** For large datasets, ensure queries are efficient and use appropriate limits or batch processing.
*   **Output Handling:** Always check the output file's structure before writing. Do not overwrite unintended sheets or data.
*   **Clarity:** If the user's request is ambiguous (e.g., missing group column or threshold value), ask for clarification before proceeding.
*   **Tool Selection:** Prefer using direct database/query tools (e.g., `google-cloud-bigquery_run_query`) for statistical calculations over manual Python processing for efficiency and accuracy.

## Common Pitfalls to Avoid
*   Forgetting to clear sample data from the output template.
*   Incorrectly formatting timestamps or numerical values when writing to Excel.
*   Writing results in an unsorted order when sorting is explicitly requested.
*   Making multiple unnecessary queries; combine data extraction and statistical calculation into one operation where possible.

Attribution

zjunlpzjunlp
View sourceMore from zjunlp →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Twitter Algorithm Optimizer

Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.

742580 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

663750 votes

Weather

Get current weather and forecasts (no API key required).

484900 votes
View all in data →