Self Improvementのロゴ

Self Improvement

コミュニティ
andreaswasita
self-improvement

得られた教訓を記録し、繰り返し使えるパターンとして活用します。

Add to TypingMind

概要

公開者andreaswasita
リポジトリcopilot-agents-dojo
スキル名self-improvement
スター
54
フォーク
15
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/self-improvement .claude/skills/self-improvement
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Self-Improvement Skill

Logs every correction and failed approach to tasks/lessons.md with structured metadata, escalates recurring patterns into skill amendments via scripts/lesson-updater.sh, and respects the cache-aware mutation rule so amendments don't trash Copilot's prompt cache mid-session. Does NOT delete or rewrite past lessons — history is evidence, not noise.

The memory vault (memory/) extends this with structured, linked knowledge:

  • Lessons live in tasks/lessons.md (short-term capture)
  • Patterns graduate to memory/patterns/ when they hit 3+ occurrences
  • Decisions are recorded in memory/decisions/ for architectural context
  • Preferences accumulate in memory/preferences/ from user corrections
  • Sessions are summarized in memory/sessions/ with links to all of the above

When to Use

  • Session start: Review memory/INDEX.md + tasks/lessons.md before doing anything else
  • After any correction: User points out a mistake or a better approach
  • After a failed approach: Something you tried didn't work
  • Pattern recognition: You notice you've made a similar mistake before
  • Skill amendment: A pattern hits 3+ occurrences
  • After any architectural decision: Record it in memory/decisions/
  • Session end: Write a session summary in memory/sessions/

Prerequisites

  • tasks/lessons.md exists (created by scripts/init.sh).
  • scripts/lesson-updater.sh available for the pattern-scan + amendment proposal.
  • Familiarity with the cache-aware mutation rule (see AGENTS.md → Cache-Aware Mutations).

Before any work begins:

  1. Read memory/INDEX.md — understand what knowledge exists
  2. Read tasks/lessons.md — check for recent, un-promoted lessons
  3. Query relevant context: bash scripts/memory-query.sh --type pattern --tag <current-task-domain>
  4. Filter for entries relevant to the current project, language, or task type
  5. Internalize active rules — these are your guardrails for this session
  6. Note any lessons with high occurrence counts — these are your blind spots

How to Run

text
1. At session start: `view tasks/lessons.md` and internalize active rules.
2. On correction: append a structured YAML entry (template in Procedure §2).
3. Periodically: `scripts/lesson-updater.sh` to scan for 3+ recurrences.
4. On amendment: edit the relevant skill; default to deferred invalidation.

Quick Reference

TriggerActionTool
Session startRead lessonsview tasks/lessons.md
Correction loggedAppend entryedit tasks/lessons.md
Pattern scanRun updater (deferred)powershell → bash scripts/lesson-updater.sh
Pattern scan (urgent)Run updater (immediate)powershell → bash scripts/lesson-updater.sh --now
Amend a skillEdit the SKILL.mdedit skills/<name>/SKILL.md
Archive a stale skillCurator handles itpowershell → bash scripts/curator.sh archive <name>

Procedure

Step 1: Session-Start Ritual

Before any work begins, view tasks/lessons.md. Filter mentally for entries relevant to the current project, language, or task type. High occurrences counts are your active blind spots — treat them as guardrails for this session.

Step 2: Capture a Lesson

After any correction or failed approach, append a structured entry to tasks/lessons.md:

yaml
- date: 2026-05-19
  error_type: type-error          # type-error | logic-bug | test-gap | over-engineering | scope-creep | …
  trigger: "Used string where number was expected in API response handler"
  root_cause: "Did not check the API schema before assuming response types"
  fix: "Added type validation at the API boundary"
  rule: "Verify API response types against the schema before using them"
  occurrences: 1
  status: active                  # active | resolved | amended-to-skill
  related_skill: code-review      # optional — which skill should absorb the rule?

Be ruthlessly honest. The only person you're fooling is yourself.

Step 3: Watch for Patterns

When the same rule appears across 2+ entries, increment occurrences on the canonical entry instead of duplicating. At occurrences: 3, escalate.

Step 4: Amend the Relevant Skill

  1. Identify the pattern — What's the common thread across occurrences?
  2. Draft a rule — Write a concrete, actionable rule
  3. Promote to memory vault — Create a file in memory/patterns/ using the template:
    bash
    cp memory/patterns/_template.md memory/patterns/pattern-name.md
  4. Propose the amendment — Suggest an update to skills.md or copilot-instructions.md
  5. Run scripts/lesson-updater.sh — Automated pattern scanning
  6. Run scripts/link-index.sh — Update the link graph with new connections
  7. Evaluate — After the rule is in place, does the mistake rate drop?
  8. Revise or remove — If a rule isn't working, fix it or drop it. Dead rules are noise.

Recording Decisions

When an architectural or design decision is made during a session:

  1. Copy the template: cp memory/decisions/_template.md memory/decisions/YYYY-MM-DD-short-name.md
  2. Fill in context, decision, alternatives, and consequences
  3. Link from the session summary: [decision](../decisions/YYYY-MM-DD-short-name.md)
  4. Run scripts/link-index.sh to update backlinks

Recording Preferences

When the user corrects your approach (not a bug, but a style/approach preference):

  1. Copy the template: cp memory/preferences/_template.md memory/preferences/preference-name.md
  2. Record what they prefer and why
  3. Set confidence to low initially — raise to medium after 2nd reinforcement, high after 3rd

Session End Ritual

At the end of every non-trivial session:

  1. Create memory/sessions/YYYY-MM-DD-summary.md from template
  2. Link to any decisions, patterns, or preferences created/referenced
  3. Run scripts/link-index.sh to rebuild the graph
  4. Update tasks/lessons.md metrics

Pass --now only when correctness requires immediate effect. The script prints a warning about cache-invalidation cost.

After the amendment lands, set the lesson's status: amended-to-skill.

Step 5: Let the Curator Handle Stale Skills

Skills with created_by: agent and no recent use are auto-archived by scripts/curator.sh to skills/.archive/. Human-authored skills are never touched. Pin a skill to exempt it: bash scripts/curator.sh pin <name>.

Pitfalls

  • DO NOT "remember next time." If a lesson isn't in tasks/lessons.md, it doesn't exist.
  • DO NOT log without a rule: field. A symptom without a prevention rule is a diary entry.
  • DO NOT write hyper-specific rules. "Don't use parseInt on line 47 of auth.js" won't generalize. Extract the principle.
  • DO NOT delete old lessons. Set status: resolved instead — history is evidence.
  • DO NOT pass --now to lesson-updater.sh casually. It invalidates Copilot's prompt cache and dramatically raises cost.
  • DO NOT edit created_by: human skills via the curator. The curator only manages created_by: agent skills.

Verification

Concrete checks that prove the skill is producing intended outcomes. Run at session end (or after any correction) via the powershell tool:

text
bash scripts/self-improvement-verify.sh

The script (source: scripts/self-improvement-verify.sh) asserts:

  1. tasks/lessons.md exists — required artifact.
  2. Every lesson has a rule: field — a lesson without a prevention rule is a diary entry and fails the check.
  3. No duplicated active rules — the same rule: across multiple entries means someone cloned instead of incrementing occurrences:.
  4. Threshold promotion happened — any entry with occurrences: 3+ must either carry status: amended-to-skill or have a corresponding file under memory/patterns/.
  5. Memory graph has zero orphans — runs scripts/link-index.sh and inspects memory/INDEX.md.
  6. Today's session summary (if any) links out — at least one link to memory/decisions/, memory/patterns/, or memory/preferences/.

The script exits non-zero on hard failures and prints Summary: pass=… fail=… warn=…. Treat warnings as signal, not noise — investigate before closing the session.

Beyond the script: active rules should reduce repeat errors. If the same error_type + trigger recurs within 5 subsequent sessions after a rule lands, the rule is wrong — rewrite or remove it per Step 4 §8.

同梱ファイル

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

よくある質問

AIスキル「Self Improvement」では何ができますか?

得られた教訓を記録し、繰り返し使えるパターンとして活用します。

TypingMindでSelf Improvementを使うメリットは何ですか?

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

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

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

Self Improvementを使えるAIモデルはどれですか?

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

Self Improvementで使えるAIモデルの数に制限はありますか?

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

AIスキル「Self Improvement」は無料ですか?

はい。andreaswasitaがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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