← Back to Skills Marketplace
harrylabsj

Pattern Miner

by haidong · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ⚠ suspicious
413
Downloads
0
Stars
2
Active Installs
5
Versions
Install in OpenClaw
/install pattern-miner
Description
Automatically detects repeated code and command patterns in Python/Shell, generating reusable Jinja2 templates and shell automation scripts via CLI.
Usage Guidance
This package appears inconsistent: the top-level description promises template generation and shell automation, SKILL.md promises CSV/JSONL and ML-powered analysis, but the only code simply loads a JSON file and prints basic information. That suggests the skill is incomplete, mislabeled, or a placeholder rather than intentionally malicious. Before installing or using it: 1) Ask the author to clarify the intended functionality and why SKILL.md lists dependencies and config that the code doesn't use. 2) Review any future code changes to ensure promised features are actually implemented. 3) Run the script on non-sensitive sample files in an isolated environment to verify behavior and monitor network activity. 4) Avoid trusting the privacy claim until you verify no network calls are made (e.g., inspect code or run in a sandbox). If you need the advertised capabilities (pattern mining, template generation), prefer a skill/tool whose code and documentation align.
Capability Analysis
Type: OpenClaw Skill Name: pattern-miner Version: 2.0.1 The skill is a basic JSON structure viewer that aligns with its stated purpose of local data analysis. While the documentation in SKILL.md overstates the complexity of the analysis (claiming features like clustering and anomaly detection not present in the code), the actual implementation in scripts/analyze.py is safe, lacks network access, and only processes files explicitly provided by the user. No malicious indicators or suspicious behaviors were identified.
Capability Assessment
Purpose & Capability
The registry header/skill summary (mentions detecting repeated code/commands and generating Jinja2 templates and shell automation) does not match the SKILL.md, which describes data-file pattern analysis. The single included script only loads a JSON file and prints basic metadata; it does not perform pattern mining, does not generate templates/scripts, and does not use ML libraries. Required dependencies listed in SKILL.md (numpy, scikit-learn, pandas) are disproportionate to the actual code.
Instruction Scope
SKILL.md instructs installing heavy analysis packages, claims support for CSV/JSONL, describes a configuration file at ~/.pattern-miner/config.json, and promises exports and anomaly detection. The provided script neither reads the config nor supports CSV/JSONL or any analysis beyond printing JSON structure. SKILL.md's privacy claim ('no access to system files or shell history') is plausible given the current script, but the larger instructions are vague and overbroad compared to the actual runtime behavior.
Install Mechanism
No install spec is provided (instruction-only plus a small script). That minimizes install-time risk; nothing is downloaded or extracted by the skill itself.
Credentials
The skill requests no credentials or config paths (good). However, SKILL.md recommends installing unrelated heavy dependencies which are not used by the code; this is an unnecessary ask but not a credential risk. No environment variables are declared or accessed in the code.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. It does not modify other skills or system configuration. Autonomous invocation is allowed by default (platform behavior) but there are no other elevated privileges requested.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pattern-miner
  3. After installation, invoke the skill by name or use /pattern-miner
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.1
Add actual Python script implementation to address LLM concerns about documentation-only skill.
v2.0.0
Complete rewrite: Remove sensitive file access (shell history, sessions), simplify to user-specified files only, emphasize privacy and local processing.
v1.0.1
No functional changes in this version. - No file changes detected between previous and current version. - Documentation, features, setup, and usage remain the same as before.
v1.0.0
Initial release with comprehensive pattern mining and insight generation features: - Implements intelligent pattern discovery across multi-source workflow data with clustering, association rule mining, and anomaly detection. - Provides both CLI commands and a Node.js API for mining, listing, analyzing, and applying insights. - Supports automatic collection from conversations, decisions, tasks, and configurable files. - Introduces a pattern scoring system (confidence, frequency, importance) and actionable insights with prioritization. - Includes robust configuration, storage management, and integration support for related tools. - Supplies output in JSON/CSV, with examples and troubleshooting documentation.
v0.1.0
Pattern Miner Skill 0.1.0 – 初始版本 - 自动识别代码和命令历史中的重复模式,提取可复用模板与自动化脚本 - 支持静态代码分析(Python/Shell)、命令历史分析、模板和脚本一键生成 - 提供易用的 CLI 命令,支持多种配置与输出格式 - 基于 Python 3.8+,tree-sitter 进行代码解析,Jinja2 生成模板 - 提供详细文档、故障排除与最佳实践指南
Metadata
Slug pattern-miner
Version 2.0.1
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 5
Frequently Asked Questions

What is Pattern Miner?

Automatically detects repeated code and command patterns in Python/Shell, generating reusable Jinja2 templates and shell automation scripts via CLI. It is an AI Agent Skill for Claude Code / OpenClaw, with 413 downloads so far.

How do I install Pattern Miner?

Run "/install pattern-miner" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Pattern Miner free?

Yes, Pattern Miner is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Pattern Miner support?

Pattern Miner is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Pattern Miner?

It is built and maintained by haidong (@harrylabsj); the current version is v2.0.1.

💬 Comments