Patterns logo

Patterns

Organization
ai-analyst-lab
patterns

Browse, search, and leverage recurring analytical patterns discovered across past analyses. Trigger on "what patterns have we seen?", "have we seen this behavior before?", "show me recurring patterns", "what's consistent in our data?", "any known patterns about [metric/segment]?", "search patterns for [keyword]". Also updates pattern entries after each analysis archive and can remind at session start.

Overview

Publisherai-analyst-lab
Repositoryai-analyst-plugin
Skill namepatterns
Stars
34
Forks
13
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ai-analyst-lab on GitHub. Read the source before you install it.

Installation

Install the Patterns AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/patterns
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plugin.git /tmp/ai-analyst-plugin
mkdir -p .claude/skills
cp -r /tmp/ai-analyst-plugin/ai-analyst-plus/skills/patterns .claude/skills/patterns
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Patterns in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Patterns on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Patterns is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skill: Patterns

Purpose

Browse and search recurring patterns discovered across analyses. Patterns are auto-extracted after each analysis archive and represent behaviors that appear consistently in the data.

When to Use

  • User says /patterns or "what patterns have we seen?"
  • During analysis, to check if a finding matches a known pattern
  • At session start, to remind the user of established behaviors

Invocation

/patterns — list patterns for the active dataset /patterns --global — list patterns across all datasets /patterns search={term} — search patterns by keyword /patterns {id} — show full details for a specific pattern

Instructions

Step 0: Determine Active Dataset

Before loading patterns, identify the active dataset:

  1. Read .knowledge/active.yaml to get the active dataset name
  2. If the file doesn't exist or is empty, default to checking all datasets
  3. Use this dataset name when filtering patterns and referencing dataset-specific files

This ensures you're searching patterns for the correct dataset and providing accurate context.

Step 1: Load Patterns

  1. Check if .knowledge/analyses/_patterns.yaml exists:
    • If it doesn't exist: "No patterns recorded yet. The pattern system initializes after your first analysis is archived."
    • If it exists but is empty: "No patterns recorded yet. Complete 2-3 analyses and recurring patterns will emerge."
  2. If --global flag: also check and read .knowledge/global/cross_dataset_observations.yaml (same existence checks apply).
  3. Load pattern data from existing files.

Step 2: Execute Command

List patterns (/patterns):

  • Filter to active dataset (unless --global)
  • Sort by occurrences descending (most established first)
  • Display as a table: type, description, occurrences, confidence, last seen
  • Show total count

Show specific (/patterns {id}):

  • Display: description, type, all evidence (with analysis IDs), dimensions, metrics, suggested investigation
  • Offer: "Want to investigate this pattern further?"

Search (/patterns search={term}):

  • Search across description, dimensions, metrics, tags
  • Use flexible matching: include synonyms and related terms (e.g., "mobile" matches "device", "platform")
  • Display matching patterns as a table
  • If no matches: suggest related terms or broader searches
  • Always explain why you found/didn't find matches

Global (/patterns --global):

  • Include cross-dataset observations alongside per-dataset patterns
  • Note which dataset each pattern was observed in

Step 3: Contextual Suggestions

After displaying patterns:

  • "Want to check if {pattern} still holds in the current data?"
  • "Want to use {pattern} as context for a new analysis?"
  • "This pattern was last seen {N} days ago — may need revalidation."

For empty state (0 patterns): Keep the response concise (under 50 lines). Focus on:

  1. Why no patterns exist (need 2+ analyses with consistent findings)
  2. How many analyses are currently archived
  3. What happens after completing more analyses
  4. 1-2 suggested next actions

Avoid lengthy explanations of how the pattern system works — users want quick answers when nothing exists yet.

Pattern Extraction (Auto)

After an analysis is saved to .knowledge/analyses/ (any skill that writes a run record there), scan the new analysis for potential patterns:

  1. Compare new findings to existing patterns:
    • If a finding matches an existing pattern → increment occurrences, update last_seen
    • If a finding is new but could extend a pattern → add as evidence
  2. Look for NEW patterns:
    • Same metric behavior across 2+ analyses → candidate pattern
    • Same segment consistently outperforming → candidate pattern
    • Recurring anomaly at similar times → candidate pattern
  3. Write updated patterns back to _patterns.yaml

Minimum 2 occurrences to create a pattern. Single-occurrence findings are just findings, not patterns.

Edge Cases

  • No patterns: Suggest running more analyses
  • Stale patterns (last_seen >60 days): Flag as potentially outdated
  • Contradictory patterns: Flag and suggest investigation
  • Too many patterns (>50): Show top 20 by occurrences, offer pagination

Frequently asked questions

What does the Patterns AI skill do?

Browse, search, and leverage recurring analytical patterns discovered across past analyses. Trigger on "what patterns have we seen?", "have we seen this behavior before?", "show me recurring patterns", "what's consistent in our data?", "any known patterns about [metric/segment]?", "search patterns for [keyword]". Also updates pattern entries after each analysis archive and can remind at session start.

Why use Patterns on TypingMind?

Because you install it once and use it with any model. Patterns is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Patterns in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/patterns. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Patterns?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Patterns?

As many as you like. As long as a model supports skills, you can use Patterns with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Patterns AI skill free?

Yes. It is published on GitHub by ai-analyst-lab under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇