The Agent Pattern Mining skill enables AI agents to study external agent, CLI, or assistant codebases and extract transferable architecture patterns into local workflow upgrades.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-pattern-mining
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-pattern-mining using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Agent Pattern Mining skill provides a structured methodology for Openclaw Skills to analyze mature AI agent frameworks, coding CLIs, or assistant codebases (such as Claude Code, Codex, Gemini CLI, or Cursor). Instead of gathering vague inspiration, this skill directs an agent to systematically dissect external repositories and turn observed features into actionable local technical improvements.
By leveraging this skill, developers can upgrade their local AI environments via concrete artifacts. The agent scans the source codebase's core architecture—focusing on command registries, memory systems, context tracking, and safety boundaries—and maps those findings directly to equivalent local upgrades. This ensures that valuable design patterns are rapidly adopted as new skills, optimized workflow rules, or updated documentation.
AGENTS.md, TOOLS.md), or durable memory records with proven patterns.AGENTS.md), modifying operational notes (TOOLS.md), or logging durable lessons in MEMORY.md.To activate and utilize the Agent Pattern Mining skill within your repository, ensure it is properly registered in your local Openclaw Skills library.
# Navigate to your local workspace skill directory
cd engineering-workspace/.openclaw/skills/
# Create the skill definition directory
mkdir -p agent-pattern-mining
# Clone or move the SKILL.md content into the directory
# Ensure references directory exists for deep analysis files
mkdir -p ../references
No specialized third-party dependencies are required, but your agent must have read permissions for local target repositories or access to fetched codebase structures.
The Agent Pattern Mining skill structures its data extraction, categorization, and updates across specific workspace files. It avoids polluting codebases with commentary by migrating raw analysis to the references/ directory and executing changes via structured schemas.
| File / Path | Purpose | Update Strategy |
|---|---|---|
SKILL.md |
Contains the core procedural instructions for executing this pattern mining skill. | Static / Read-Only |
references/ |
Houses detailed architectural breakdowns, text matrixes, and codebase analyses. | Created dynamically per repository studied |
AGENTS.md |
Contains stable system-level agent instructions and workflow guidelines. | Updated during the 'Adopt now' phase |
TOOLS.md |
Holds environment-specific operational notes and tool execution rules. | Updated to incorporate newly discovered tool patterns |
MEMORY.md |
Records durable lessons learned, architectural constraints, and historical insights. | Updated to maintain continuous context awareness |
When findings are mapped from a source repository, the agent constructs a logical matrix with the following attributes:
Loading
An AI-powered drafting assistant that dynamically structures and submits tailored GitHub issues from technical findings, code reviews, and bug reports.

An AI-powered email writing assistant that crafts personalized, proof-grounded B2B sales outreach tailored to specific recipient roles and influence principles.

An AI-powered trending topic analyzer that automatically crawls, filters, and decodes hot searches across major Chinese social media platforms to deliver structured analytical reports.

An AI-powered B2B sales preparation skill that maps out personalized stakeholder roles, objections, and optimal proof angles before important client meetings.

An AI writing companion and literary guide based on Kiese Laymon's memoir Heavy, focusing on systemic trauma, family dynamics, and raw truth-telling.

An AI-powered historical knowledge and leadership skill based on Nancy Gibbs and Michael Duffy's The Presidents Club, designed to analyze the secret relationships, alliances, and handovers of modern US presidents.








































