Ag Learnのロゴ

Ag Learn

コミュニティ
kevinslin
ag-learn

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

概要

公開者kevinslin
リポジトリagstack
スキル名ag-learn
スター
26
フォーク
1
同梱ファイル
7
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 7個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    kevinslinがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルAg LearnをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kevinslin/agstack/tree/main/active/ag-learn
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAg Learnを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にAg Learnを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ag Learnは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ag Learn」では何ができますか?

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

TypingMindでAg Learnを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ag Learnはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAg Learnをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kevinslin/agstack/tree/main/active/ag-learnを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ag Learnを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Ag Learnは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAg Learnを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ag Learn」は無料ですか?

kevinslinがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇