Ag Learn logo

Ag Learn

Community
kevinslin
ag-learn

Improve skills from agent friction or derive steering principles from user corrections.

Overview

Publisherkevinslin
Repositoryagstack
Skill nameag-learn
Stars
26
Forks
1
Bundled files
7
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.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kevinslin on GitHub. Read the source before you install it.

Installation

Install the Ag Learn 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/kevinslin/agstack/tree/main/active/ag-learn
  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/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/ag-learn .claude/skills/ag-learn
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ag Learn 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 Ag Learn 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 Ag Learn 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.

ag-learn

Use this skill to turn agent mistakes, repeated friction, or useful workflow discoveries into better skills.

Constants

  • LEARN_ROOT: $HOME/.llm/skills/learn
  • LEARN_ARCHIVE: $HOME/.llm/skills/learn/.archive
  • SKILL_TOKEN: ag-learn

Core Workflow

  1. Identify the learning source: current session, named session, merged PR, pasted evidence, or review window.
  2. For default/current-session learning, read ./references/session-forensics.md and scan the active rollout JSONL before choosing the final learning focus.
    • Treat the user's immediate complaint as a seed, not the whole evidence boundary.
    • Include earlier same-session mistakes, interruptions, corrections, and explicit skill invocations when they are related or explain why the immediate complaint happened.
    • If the user names a narrower source such as a PR, pasted evidence, or review window, scan that source and any current-session turns that led to the request.
  3. Inspect enough durable evidence to understand the friction.
    • Good evidence: transcript excerpts, rollout JSONL, PR comments, diffs, logs, generated artifacts, command output, saved learn notes.
    • If transcript forensics are needed, read ./references/session-forensics.md.
  4. Rank candidate learnings by prominence before choosing what to save or apply.
    • Prefer issues that recur across the session, required user correction, caused rework, or crossed skill boundaries.
    • Do not choose only the most recent failure unless the requested source is explicitly narrow.
    • Collapse timebound incidents into the durable workflow gap behind them. For example, "one PR had stale mergeability" should become a reusable finalization rule only if the evidence shows a general GitHub-state handling gap.
    • De-prioritize one-off environmental flakes, temporary CI behavior, and already-fixed implementation details unless they reveal a reusable skill gap.
  5. Decide whether the issue should change a skill.
    • Optimize an existing skill when the workflow already has a clear home.
    • Propose a new skill when repeated work has no clean home.
    • Use none when the lesson is too situational or not skill-shaped.
  6. Read the target skill or shortcut source before judging the gap.
    • For skill changes, follow $sc and edit only the canonical source tree.
    • For trigger:<shortcut> cases, resolve the shortcut through $dev.shortcuts before classifying the mistake.
  7. Produce 1-3 high-signal improvements. Do not pad with weak lessons.
    • When the user asks to scan an entire conversation or session, include a short candidate-friction ranking in the saved note coverage so the selected issues are auditable.
    • If a selected improvement is already covered by an existing skill, report it as already addressed and do not create a duplicate proposed change.
  8. Save a learn note only when the user asks for persistence, the finding should be reused, or the run is review/code/formal mode.
    • Before creating or updating any saved note under LEARN_ROOT, read ./references/templates.md.
    • Saved notes must follow the durable note template from templates.md; the compact output format below is only for the user-facing summary.
    • Before reporting the saved path, verify the note contains ## Evidence Inspected, ## Coverage, ## Known Gaps, at least one ## [number] Improvement Opportunity, and ### Routing.

Modes

  • Default/current session: use the Core Workflow, including the active rollout scan in ./references/session-forensics.md.
  • steering: read ./references/steering-mode.md; inventory user directives and corrections across the current conversation, group recurring behavioral patterns, and derive reusable steering principles.
  • review [time interval] [path]: read ./references/review-mode.md.
  • code: read ./references/code-mode.md.
  • Evidence-based skill optimization: use the Core Workflow to inspect evidence, rank friction, and select improvements; route canonical edits, validation, packaging, and sync through $sc.
  • Formal saved note or durable routing: read ./references/templates.md.
  • Session lookup, parent/fork tracing, or ledger logging: read ./references/session-forensics.md and ./references/ledger.md; use $ag-ledger and $dev.llm-session as needed.

Output

The compact numbered format below is for chat summaries only. Do not use it as the saved-note file format.

For each improvement, keep the user-facing summary compact:

markdown
1. [short title]
Evidence: [durable evidence checked]
Skill gap: [what the skill should have made easier or prevented]
Target: [existing skill, proposed skill, or none]
Proposed change: [implementation-ready change, or n/a]
Promote: [yes|no]

When saving a note, write it under LEARN_ROOT with a filename containing the literal ag-learn token. Verify the saved path exists before reporting it.

Archive Learning

When the user archives a learning, move it to LEARN_ARCHIVE.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ag Learn AI skill do?

Improve skills from agent friction or derive steering principles from user corrections.

Why use Ag Learn on TypingMind?

Because you install it once and use it with any model. Ag Learn 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 Ag Learn in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinslin/agstack/tree/main/active/ag-learn. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ag Learn?

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 Ag Learn?

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

Is the Ag Learn AI skill free?

It is published on GitHub by kevinslin. Check the repository for licensing terms. 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 👇