← 返回 Skills 市场
413
总下载
0
收藏
2
当前安装
5
版本数
在 OpenClaw 中安装
/install pattern-miner
功能描述
Automatically detects repeated code and command patterns in Python/Shell, generating reusable Jinja2 templates and shell automation scripts via CLI.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pattern-miner - 安装完成后,直接呼叫该 Skill 的名称或使用
/pattern-miner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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 生成模板
- 提供详细文档、故障排除与最佳实践指南
元数据
常见问题
Pattern Miner 是什么?
Automatically detects repeated code and command patterns in Python/Shell, generating reusable Jinja2 templates and shell automation scripts via CLI. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 413 次。
如何安装 Pattern Miner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pattern-miner」即可一键安装,无需额外配置。
Pattern Miner 是免费的吗?
是的,Pattern Miner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Pattern Miner 支持哪些平台?
Pattern Miner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Pattern Miner?
由 haidong(@harrylabsj)开发并维护,当前版本 v2.0.1。
推荐 Skills