← 返回
开发者工具 中文

Pattern Miner

Automatically detects repeated code and command patterns in Python/Shell, generating reusable Jinja2 templates and shell automation scripts via CLI.
自动检测 Python/Shell 中的重复代码和命令模式,生成可复用的 Jinja2 模板和 CLI 自动化脚本。
harrylabsj
开发者工具 clawhub v2.0.1 3 版本 100000 Key: 无需
★ 0
Stars
📥 634
下载
💾 6
安装
3
版本
#latest

概述

Pattern Miner

Discover patterns in your own data files with local analysis.

Overview

Pattern Miner helps you identify recurring patterns, associations, and anomalies in your own data files. All processing happens locally on your machine.

Features

  • Pattern Recognition: Identify recurring themes in your data
  • Association Discovery: Find items that frequently occur together
  • Anomaly Detection: Spot unusual patterns that deviate from norms
  • Local Processing: All analysis runs on your device, no data upload

When to Use

  • Analyzing your own structured data files (CSV, JSON)
  • Finding patterns in task lists or notes
  • Identifying trends in personal datasets
  • Discovering associations in your own records

Usage

Basic Analysis

# Analyze a JSON file
python3 scripts/analyze.py ~/data/my-tasks.json

Requirements

pip install numpy scikit-learn pandas

Scripts

  • scripts/analyze.py - Analyze JSON files for patterns

Configuration

Create a config file at ~/.pattern-miner/config.json:

{
  "minConfidence": 0.6,
  "minFrequency": 3,
  "analysisTypes": ["cluster", "association"]
}

Input Formats

Supported file formats:

  • JSON (array of objects)
  • CSV (with headers)
  • JSONL (one JSON object per line)

Output

Analysis results include:

  • Discovered patterns with confidence scores
  • Association rules with support metrics
  • Anomaly flags for unusual items
  • Exportable reports (JSON, CSV)

Privacy & Security

Your data stays on your device

  • No external API calls
  • No data uploaded to cloud services
  • No access to system files or shell history
  • Only reads files you explicitly specify

Technical Information

AttributeValue
------------------
Skill IDpattern-miner
Version2.0.1
Authorharrylabsj
LicenseMIT-0

Requirements

  • Python 3.8+
  • numpy, scikit-learn, pandas (for analysis)

Limitations

  • Only analyzes files you explicitly provide
  • Does not access system logs or shell history
  • Does not read OpenClaw session data
  • Requires structured data files (JSON/CSV)

版本历史

共 3 个版本

  • v2.0.1 当前
    2026-05-01 04:33 安全 安全
  • v0.1.0
    2026-03-31 03:46 安全
  • v1.0.1
    2026-03-18 20:55

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,375
content-creation

Content Generator

harrylabsj
跨平台生成并适配基于证据的电商、购物、推荐、社交内容包,适用于产品文案、种草文等需求。
★ 0 📥 1,762
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,826