Agent skill

Pattern Mine

by Apocrathia in Apocrathia/home-assistant-config

Mine Home Assistant history for automation trigger candidates from a narrative or structured event brief.

No licenceAuto-check passed

Install Pattern Mine

skills CLI
$ npx skills add Apocrathia/home-assistant-config --skill pattern-mine -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Apocrathia/home-assistant-config pattern-mine --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Apocrathia/home-assistant-config.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pattern-mine .claude/skills/pattern-mine && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pattern-mine
GitHub stars
179
Token cost
~827 tokens
SKILL.md length
322 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
None found

At a glance

Mine Home Assistant history for automation trigger candidates from a narrative or structured event brief.

  • Works in 6 steps: Normalize the brief. Turn narrative… → Seed-episode forensics. For the primary… → Neighborhood expand. From entities that… → …
  • Candidates from a narrative
  • SKILL.md covers Steps, Default Bar and Return
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pattern Mine is an agent skill from Apocrathia/home-assistant-config. Mine Home Assistant history for automation trigger candidates from a narrative or structured event brief. Use when finding a reliable trigger, correlating a morning/evening sequence, ranking sensor signals for a new automation, or running the pattern-analyst ↔ pattern-reviewer pair.

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Home Assistant. The repository describes itself as: Apocrathia's Home Assistant Configuration Files.

When your agent uses it

  • Candidates from a narrative
  • Structured event brief
  • Finding a reliable trigger
  • Correlating a morning/evening sequence

Example prompts

  • “/pattern-mine”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Normalize the brief. Turn narrative and/or structured events into an
  2. Seed-episode forensics. For the primary window, query state changes for
  3. Neighborhood expand. From entities that moved near anchors, discover
  4. Tier confidence.
  5. Multi-occurrence pass (reliable only). Find comparable episodes in the
  6. Emit the Artifact. Ranked candidates, rejected/noisy signals, evidence,

What it can do on your machine

Read from SKILL.md and the folder at commit e28308a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pattern Mine loads about 827 tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 322 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~827

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 322 words (~827 tokens).

“Read-only history mining for trigger candidates. Does not design automation YAML. Query past state via grafana-ha-history; resolve live entity IDs via HA MCP when needed.”

— opening of SKILL.md by Apocrathia
name
pattern-mine

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/pattern-mine of Apocrathia/home-assistant-config.

Open the folder on GitHubat commit e28308a

Compare with similar skills

Pattern Mine next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pattern Mine compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pattern Mine this skillApocrathia/home-assistant-config179—~827Automated safety check: PassNone
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
PPTXrvdbreemen/OTGW-firmware20735 repos~2.3kAutomated safety check: PassProprietary
XLSXrvdbreemen/OTGW-firmware20735 repos~2.9kAutomated safety check: PassProprietary
Sap Extension Creatorheshengtao/super-agent-party2.7k—~6kAutomated safety check: PassAGPL-3.0
Ha Frontend Componentshome-assistant/frontend5.7k—~1.2kAutomated safety check: PassApache-2.0

Similar skills

  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • PPTX

    rvdbreemen/OTGW-firmware

    Use this skill any time a .pptx file is involved in any way — as input, output, or both.

    207 GitHub starsUsed in 35 repos~2.3k tokens
    Documents & OfficeAuto-check passed
  • XLSX

    rvdbreemen/OTGW-firmware

    Use this skill any time a spreadsheet file is the primary input or output.

    207 GitHub starsUsed in 35 repos~2.9k tokens
    Documents & OfficeAuto-check passed
  • Sap Extension Creator

    heshengtao/super-agent-party

    Create Super Agent Party (SAP) extensions. An agent skill from heshengtao/super-agent-party.

    2.7k GitHub stars~6k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Ha Frontend Components

    home-assistant/frontend

    Home Assistant frontend component patterns. An agent skill from home-assistant/frontend.

    5.7k GitHub stars~1.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Ha Android Architecture

    home-assistant/android

    Home Assistant Android module and layer architecture. An agent skill from home-assistant/android.

    4k GitHub stars~1.7k tokensUpdated today
    MobileAuto-check passed

More from Apocrathia/home-assistant-config

All 22 skills in this repo
  • Reconcile Context

    Apocrathia/home-assistant-config

    Fix drift in Home Assistant Homelab agent context (AGENTS.md, CLAUDE.md, .agents/context/, rules, skills, agents) against the repo.

    179 GitHub stars~931 tokensUpdated 16 days ago
    Auto-check passed
  • Alignment

    Apocrathia/home-assistant-config

    Interview the operator about a topic until shared understanding, walking each branch of the decision tree one at a time.

    179 GitHub stars~1.4k tokensUpdated 16 days ago
    Auto-check passed
  • Architecture Review

    Apocrathia/home-assistant-config

    Explore packages/, layout, and .agents/ for architectural friction (coupling, shallow packages, missing boundaries) and file or recommend agent issues under docs/issues/.

    179 GitHub stars~764 tokensUpdated 16 days ago
    Auto-check passed
  • Automation Debug

    Apocrathia/home-assistant-config

    Systematically diagnose and fix broken Home Assistant automations with a structured reproduce → triggers → conditions → actions workflow.

    179 GitHub stars~1.2k tokensUpdated 16 days ago
    Auto-check passed
  • Config Validate

    Apocrathia/home-assistant-config

    Validate Home Assistant YAML configuration for syntax, structure, entity references, duplicates, and secrets usage before applying changes.

    179 GitHub stars~932 tokensUpdated 16 days ago
    Auto-check passed
  • Create Agent

    Apocrathia/home-assistant-config

    Create a new agent persona under .agents/agents/. An agent skill from Apocrathia/home-assistant-config.

    179 GitHub stars~1.1k tokensUpdated 16 days ago
    Auto-check passed

Works with

Questions about Pattern Mine

What does Pattern Mine do?

Mine Home Assistant history for automation trigger candidates from a narrative or structured event brief. Pattern Mine is an agent skill from Apocrathia/home-assistant-config. Mine Home Assistant history for automation trigger candidates from a narrative or structured event brief.

When should I use Pattern Mine?

Pattern Mine fits situations like: candidates from a narrative; structured event brief; finding a reliable trigger; correlating a morning/evening sequence.

How do I install Pattern Mine in Claude Code?

Run `npx skills add Apocrathia/home-assistant-config --skill pattern-mine -a claude-code`. Or copy the skill folder (.agents/skills/pattern-mine in Apocrathia/home-assistant-config) into .claude/skills/pattern-mine in your project. Claude Code loads it when a task matches its description.

How do I install Pattern Mine in Codex?

Run `npx skills add Apocrathia/home-assistant-config --skill pattern-mine -a codex`. Or copy the skill folder (.agents/skills/pattern-mine in Apocrathia/home-assistant-config) into .agents/skills/pattern-mine in your project. Codex loads it when a task matches its description.

Can I use Pattern Mine in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Apocrathia/home-assistant-config --skill pattern-mine -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pattern-mine, .gemini/skills/pattern-mine, .github/skills/pattern-mine and .opencode/skills/pattern-mine in your project.

What does Pattern Mine need to run?

SKILL.md names no scripts, command-line tools or credentials: Pattern Mine is instructions for the agent only.

Does Pattern Mine access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pattern Mine safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pattern Mine use?

No licence was found for Pattern Mine or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Pattern Mine use?

About 827 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pattern Mine?

Skills that share tags, products or a category with Pattern Mine: DOCX (rvdbreemen/OTGW-firmware, 207 stars), PPTX (rvdbreemen/OTGW-firmware, 207 stars), XLSX (rvdbreemen/OTGW-firmware, 207 stars) and Sap Extension Creator (heshengtao/super-agent-party, 2.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pattern Mine?

Apocrathia (a GitHub user) maintains it in Apocrathia/home-assistant-config, which has 179 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on September 21, 2026.

Source: Apocrathia/home-assistant-config on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.