learn-pattern

A project pattern tracker that finds behaviours or structures you repeat and applies them again when the situation matches.

In plain words
What is it for?
Use it to reuse recurring coding, naming, or project-organisation patterns across similar tasks.
Why use it?
It saves you from restating the same project-specific approach, while checking that the context is still appropriate.

Skill for Claude CodeCodex

Part of the autocode plugin — 48 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ilang-ai/autocode/learn-pattern
Any agent
npx skills add ilang-ai/autocode --skill learn-pattern
Clone the repo
git clone --depth 1 https://github.com/ilang-ai/autocode

Made for: Claude Code, Codex.

Or install autocode, the plugin that ships this one along with the rest of its 48 skills.

Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 97 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00097
Opus 5 $0.00008 $0.00048
Sonnet 5 $0.00003 $0.00019
Haiku 4.5 $0.00002 $0.00010

Measured 3d ago against content hash 4a19f5dba279, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

learn-pattern scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/learn-pattern/SKILL.md · 16 lines

What it actually says

::GENE{learn-pattern|conf:confirmed|scope:global} -e T:detect_recurring_patterns T:apply_automatically A:apply_wrong_pattern⇒verify_context

::ACTIVATE{learn-pattern} ON:auto

Powered by I-Lang v5.0 | ilang.ai

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 16 lines · 15 tokens per session scan A 4a19f5dba279

Subscribe to this mod's changes

learn-pattern is a skill published in the GitHub repository ilang-ai/autocode (86 stars, last pushed 2mo ago), licensed MIT. It adds 15 tokens to every session and 97 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mckinsey-consultant

McKinsey顾问式问题解决系统。从商业问题出发,通过假设驱动的结构化分析方法,生成McKinsey风格研究报告和PPT。融合Problem Solving方法论、MECE原则、Issue Tree拆解、Hypotheses形成、Dummy Page设计、智能数据收集和专业PPT生成能力。.

Mann1988/awesome-claude-skills · 82 tokens

mimeng-writing

咪蒙爆款文章写作技巧。适用于需要创作10万+阅读量爆款文章、情感共鸣类内容、故事叙事或社会议题评论时使用。掌握标题制造、开篇设计、情绪调动、金句提炼、故事叙事等核心技巧。.

Mann1988/awesome-claude-skills · 74 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

Kayunangka/claude-skill · 80 tokens

us-gov-shutdown-tracker

Track and analyze US government shutdown liquidity impacts by monitoring TGA (Treasury General Account), bank reserves, EFFR, and SOFR data from FRED API. Use when user wants to (1) analyze current or past government shutdown effects on financial markets, (2) track liquidity conditions during fiscal policy…

Mann1988/awesome-claude-skills · 126 tokens

weekly-digests

Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests"…

thedotmack/claude-mem · 93 tokens

cloud-sync

Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.

thedotmack/claude-mem · 64 tokens