vectorspacelab/arex-skill/anomaly-detection
Claude Code and agent skill by vectorspacelab/arex-skill
- community
Checking that the SKILL.md file is still in the repository.
"Guides PyPOTS anomaly-detection workflows, including detector
Install
npx vskill@latest install vectorspacelab/arex-skill/anomaly-detectionSKILL.md
The same SKILL.md was published earlier as vectorspacelab/arex-skill/anomaly-detection.
PyPOTS Anomaly Detection
Use this sub-skill when the user wants PyPOTS to detect anomalous timesteps or samples in partially-observed time series.
Natural Triggers
- "detect anomalies with PyPOTS"
- "use TimesNet / TEFN / TimeMixer / Transformer for anomaly detection"
- "what does
anomaly_ratedo?" - "read
predict()[\"anomaly_detection\"]" - "compute accuracy, precision, recall, or F1 for anomaly labels"
- "why are anomaly labels named
anomaly_yin tests?"
First References
anomaly_y, and CLI label caveats.
- Read `../../references/api-reference.md` for detector helpers and result
keys.
- Read `../../references/model-overview.md#anomaly-detection` for model-family
choice.
- Read `../../references/troubleshooting.md` for data, CUDA, checkpoint, and
result-key failures.
- Use `../cli/` for CLI-driven train/predict/evaluate flows.
Scope
This route covers:
- Detector models such as
TimesNet,TEFN,TimeMixer,Transformer,
FiLM, SegRNN, ImputeFormer, PatchTST, DLinear, SAITS, iTransformer, Crossformer, Pyraformer, FEDformer, Informer, ETSformer, NonstationaryTransformer, and TimeMixerPP.
- Constructor-time
anomaly_ratehandling. - Result extraction through
predict()["anomaly_detection"]ordetect(). - Binary classification-style metrics for anomaly labels.
- In-memory dict and HDF5 lazy-loading inputs.
Route elsewhere:
- Missing-value imputation without anomaly labels -> `../imputation/`.
- Future-value forecasting -> `../forecasting/`.
- Sample classification labels -> `../classification/`.
- Embeddings for later detectors -> `../representation/`.
Core Workflow
- Prepare
Xwith shape[n_samples, n_steps, n_features]. - Choose an
anomaly_ratein(0, 1)that matches expected anomaly density. - Instantiate the detector with
n_steps,n_features,anomaly_rate, and
model-specific architecture fields.
- Train with
fit(train_set, val_set)where train/validation dicts contain at
least X; native fixtures also keep anomaly_y for metric checks.
- Predict with
predict(test_set)and readresults["anomaly_detection"], or
call detect(test_set).
- Evaluate with
calc_accandcalc_precision_recall_f1when ground-truth
anomaly labels are available.
Minimal Example Shape
If using native test-style labels, keep:
Then compare model outputs to those labels with the metric helpers.
Common Decision Points
- Use a tiny CPU fixture before a large detector run.
- Verify
0 < anomaly_rate < 1; the base detector asserts this range. - Do not reuse a forecasting or imputation config for anomaly detection without
checking task-specific constructor parameters.
- Make sure the evaluation label key matches the code path. Native tests use
anomaly_y; CLI evaluation currently checks binary targets through y.
- If the model emits scores instead of hard labels, confirm the metric helper's
expected input before interpreting the result.
Validation Signals
A successful anomaly workflow returns anomaly_detection and can compute finite accuracy/precision/recall/F1 values against the chosen binary label array.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/repositories/repo-skills/pypots/sub-skills/anomaly-detection/SKILL.md
Popularity
- Repository stars
- 324
- Repository forks
- 25
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vectorspacelab/arex-skill/anomaly-detection)