intelligence-learn-from-context

A session-learning tool that records useful preferences, working patterns, or recurring problems for future sessions, after you approve them.

In plain words
What is it for?
Use it after a session when you want the agent to remember how you work or how recurring friction should be handled.
Why use it?
It prevents the same lessons from being lost between sessions. It first analyzes the lesson without changing anything, then waits for approval before saving it.

Skill for Claude CodeCodex

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/ainova-systems/intelligence-sync/intelligence-learn-from-context
Any agent
npx skills add ainova-systems/intelligence-sync --skill intelligence-learn-from-context
Clone the repo
git clone --depth 1 https://github.com/ainova-systems/intelligence-sync

Made for: Claude Code, Codex.

Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 913 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.00017 $0.00913
Opus 5 $0.00009 $0.00456
Sonnet 5 $0.00003 $0.00183
Haiku 4.5 $0.00002 $0.00091

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

Security

Grade A, and why

intelligence-learn-from-context 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 2d 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.

intelligence/sync/skills/intelligence-learn-from-context/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Learn from Context

Use after a session where a meaningful preference, working pattern, or recurring friction emerged that should persist into future sessions. Runs in two phases — analyze (read-only) then apply (after user approval).

Principle: positive framing

LLMs follow whatever is named. Negation ("never do X") often draws attention to X. Positive framing ("default to Y", "prefer Y") steers behavior more cleanly.

This skill translates user-stated lessons before encoding:

  • "Don't use NOT-comparison structures" → "State positively what IS"
  • "Stop generating 3 options" → "Default to one strong recommendation"
  • "Never push toward architecture framing" → "Reflect the user's framing in their own words first"

The original negative pattern stays in the rule body as an illustrative example (paired with positive replacement), but the LLM-facing instruction is positive.

Phase A — Analyze (read-only)

  1. Read authoring conventions first. Discover the paths, never assume them: the umbrella is the directory holding config.yaml (intelligence/, Intelligence/, a codename), and the engine module is the directory under it holding both scripts/sync.sh and scripts/VERSION (conventionally sync/). The meta-skills live in <module>/skills/, not directly under the umbrella. Load <module>/skills/intelligence-add-rule/SKILL.md, <module>/skills/intelligence-add-skill/SKILL.md, <module>/skills/intelligence-add-agent/SKILL.md, and <module>/docs/CONVENTIONS.md (Authoring Discipline section). This skill writes nothing on its own — it delegates to the add-* skills, which carry the authoring conventions.

  2. Capture the lesson from session context or user input. Strip session-specific detail, keep the underlying pattern.

  3. Translate to positive form:

    • "Never do X" → "Default to Y"
    • "Stop doing Y" → "Do Z instead"
    • Already-positive lessons keep as-is. Confirm the translation with the user if removing the negation changes meaning.

Read the full file on GitHub · 70 lines

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. 2d ago First seen · 70 lines · 17 tokens per session scan A 5182f08b6059

Subscribe to this mod's changes

intelligence-learn-from-context is a skill published in the GitHub repository ainova-systems/intelligence-sync (4 stars, last pushed 4d ago), licensed MIT. It adds 17 tokens to every session and 913 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-31.

Related

Other skills, from other repositories

shadow-tutor

Post-session programming tutor for a developer who wants to grow. Use after an AI-assisted coding session to learn from it — it picks the one load-bearing decision the AI made that you most likely don't truly understand, makes you predict why before it reveals (breaking the "I get it" illusion), teaches the why…

lzfxxx/shadow-tutor · 118 tokens

qc-helper

Answer any question about Qwen Code usage, features, configuration, and troubleshooting by referencing the official user documentation. Also helps users view or modify their settings.json. Invoke with /qc-helper followed by a question, e.g. /qc-helper how do I configure MCP servers? or /qc-helper change approval mode…

QwenLM/qwen-code · 71 tokens

self-assessment

Interactive skill assessment with personalized learning path generation.

FlorianBruniaux/claude-code-ultimate-guide · 12 tokens

course-storytelling

Use when lesson or course content is correct but forgettable and a concept has to LAND: profiles the learner, breaks the blocking false belief, then rebuilds it as epiphany story → named model → grounded analogy → proof → so-what. NOT outcomes, assessment or module order (that is course-builder), NOT slide visuals…

ericrisco/rsc-harness · 79 tokens

talk-like-scarletkc

按 scarletkc 本人的自然表达习惯撰写、改写、润色和翻译文本,覆盖推文、微博、评论、聊天消息、技术观点、项目介绍、GitHub 文本(README、issue、PR、发布说明)和正式通信。当用户要求用自己的口吻写东西、把 AI 腔文字改自然、发推、回评论、点评模型或开发工具、写项目公告、写礼貌但直接的客服或正式邮件,或要求翻译时保留语气和立场,都使用本 skill,即使用户没有点名 scarletkc 或提出风格要求。.

scarletkc/agents · 141 tokens

marketing-copy

Write outbound promotional copy for a product or project: launch and update posts for community platforms and social media, store page descriptions and short blurbs, landing page headlines and calls to action, press-style announcements, and the naming of a product for another language or market. Covers what may be…

scarletkc/agents · 121 tokens