Online Analysis
Online (real-time) data analysis, rule extraction, and pattern recognition for testing scenarios. Activate when user mentions test online analysis, real-time...
Description
name: test-online-analysis description: Online (real-time) data analysis, rule extraction, and pattern recognition for testing scenarios. Activate when user mentions test online analysis, real-time data rule extraction, testing scenario pattern recognition, or log/stream data analysis for testing.
Test Online Analysis 测试实时分析技能
Overview
This skill provides real-time data analysis capabilities, including rule extraction from online streaming data, pattern recognition for testing scenarios, log analysis, and anomaly detection. It helps automate the process of identifying business rules, testing patterns, and abnormal behaviors from live data streams or log files.
Core Capabilities
1. Rule Extraction
- Automatically extract business rules from online data streams
- Identify implicit logic and constraints from real-time transaction data
- Generate structured rule documentation for testing reference
2. Pattern Recognition
- Recognize common testing scenarios from log data
- Identify recurring patterns in user behavior and system responses
- Classify data patterns to simplify test case design
3. Anomaly Detection
- Real-time detection of abnormal data points and system behaviors
- Compare current data against historical patterns to identify outliers
- Generate anomaly reports with severity levels
4. Testing Scenario Generation
- Automatically generate test cases based on extracted rules and patterns
- Map real-world scenarios to test coverage requirements
- Identify edge cases and boundary conditions from live data
Workflow
Step 1: Data Ingestion
- Accept input data sources: log files, real-time API streams, database queries
- Validate data format and structure
- Preprocess data (cleaning, normalization, filtering)
Step 2: Analysis Execution
- Run rule extraction algorithm on processed data
- Apply pattern recognition models to identify testing scenarios
- Perform anomaly detection against baseline patterns
Step 3: Result Generation
- Generate structured rule documentation in markdown format
- Create test case suggestions based on extracted patterns
- Produce anomaly reports with actionable insights
Step 4: Output Delivery
- Present summary of key findings to user
- Offer to export full analysis results to files
- Suggest follow-up actions for testing optimization
Usage Examples
Example 1: Extract Rules from Transaction Logs
User Request: "Analyze these transaction logs and extract business rules for testing" Skill Action:
- Ingest and parse log files
- Extract transaction validation rules, amount limits, and processing logic
- Generate structured rule document with test case suggestions
- Output summary of key rules and potential testing scenarios
Example 2: Detect Anomalies in Real-time Data
User Request: "Monitor this data stream and find anomalies" Skill Action:
- Connect to real-time data source
- Establish baseline pattern from historical data
- Alert on anomalous data points as they appear
- Generate anomaly report with severity assessment
Resources
scripts/
rule_extractor.py: Core algorithm for extracting business rules from structured datapattern_recognizer.py: Machine learning model for identifying testing scenariosanomaly_detector.py: Real-time anomaly detection utilitytest_case_generator.py: Automatically generate test cases from extracted rules
references/
rule_extraction_standards.md: Guidelines for consistent rule documentationpattern_catalog.md: Catalog of common testing patterns and scenariosanomaly_severity_matrix.md: Severity classification framework for anomalies
Installation
Local Installation
- Clone or copy the
online-analysisdirectory to your OpenClaw skills folder:# User workspace skills cp -r online-analysis ~/.openclaw/workspace/skills/ # Or global system skills cp -r online-analysis /usr/local/lib/node_modules/openclaw/skills/ - Restart OpenClaw to load the new skill
Dependencies
pip install numpy
Usage
Command Line
# Extract rules from log files
python scripts/rule_extractor.py transaction_logs.txt > extracted_rules.md
# Detect anomalies in numeric data
python scripts/anomaly_detector.py performance_metrics.json > anomaly_report.md
Skill Trigger
The skill automatically activates when you mention:
- "online analysis"
- "rule extraction"
- "real-time data analysis"
- "log analysis for testing"
- "anomaly detection"
License
MIT
Reviews (0)
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!