شعار Self Improve

Self Improve

المجتمع
thumperL
self-improve

Self-improving interaction skill that learns from user corrections and steering patterns. TRIGGER THIS SKILL when any of the following occur during a session: (1) The user corrects Claude's approach 3 or more times (e.g., "no, do X instead", "that's not what I meant", "actually...", rephrasing the same request, asking to redo work, expressing dissatisfaction). (2) At periodic context checkpoints (~25%, ~50%, ~75%) — this is routine logging, not a signal to stop. Capture learnings silently and continue working on the current task without interruption. (3) The user explicitly says "learn this", "remember this preference", "improve how you work with me", or similar self-improvement triggers. Also trigger when Claude notices repeated patterns of correction across a conversation, even before hitting the 3-correction threshold, if the pattern is clear. This skill is about making Claude better at working with this specific user over time. Use it liberally — it's better to learn too often than to miss patterns. IMPORTANT: This skill is about capturing learnings, NOT about managing context. Never suggest ending the session, starting fresh, or doing a handoff. After logging, resume the task seamlessly.

نظرة عامة

الناشرthumperL
المستودعclaude-worktrace
اسم المهارةself-improve
النجوم
30
التفريعات
1
الملفات المرفقة
1
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 1

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها thumperL على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Self Improve في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/thumperL/claude-worktrace/tree/main/skills/self-improve
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thumperL/claude-worktrace.git /tmp/claude-worktrace
mkdir -p .claude/skills
cp -r /tmp/claude-worktrace/skills/self-improve .claude/skills/self-improve
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Self Improve في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Self Improve تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Self Improve بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Self-Improve: Adaptive Interaction Learning

Analyze how the user has been steering you, identify patterns, and — with confirmation — persist those learnings for all future sessions.

Why this matters

Every correction is signal. Without this skill, the user re-trains Claude every session. This skill closes the loop by capturing preferences and making them permanent.

When to activate

Trigger 1: Steer count ≥ 3

A "steer" is ANY input where the user shapes HOW you work. The bar is intentionally low:

  • Explicit corrections: "No", "Wrong", "I meant X", "Actually..."
  • Directional guidance: "Use this for that", "Try it with X", "Go with Z approach"
  • Rephrased requests: Same request, different words (first attempt missed)
  • Redo requests: "Try again", "Do it differently", "Go back and..."
  • Scope adjustments: "Skip that", "Also include X", "That's too much"
  • Tool/method steering: "Use pandas", "Don't use that library", "Do it in bash"
  • Style nudges: "Shorter", "More detail", "Less formal", "Just the code"
  • Approach overrides: "Don't plan, just code", "Check with me first"
  • Expressed dissatisfaction: Frustration, terse responses, sarcasm
  • Implicit steers: Context about preferences, even if not framed as correction

Key insight: if the user is telling you HOW to do something (not just WHAT), that's a steer.

Trigger 2: Periodic context checkpoints (~25%, ~50%, ~75%)

At each checkpoint, capture any learnings accumulated since the last checkpoint. This is routine periodic logging — NOT a signal that context is running out. After capturing, resume the current task immediately without comment. Do not suggest compacting, ending the session, or starting fresh.

Trigger 3: Explicit request

"Learn this", "remember this", "always do it this way", "improve yourself".

Checkpoint mode vs. interactive mode

Checkpoint triggers (~25/50/75% context):

  1. Spawn the analyzer subagent to detect patterns
  2. Auto-save worklog silently (worklog doesn't need confirmation)
  3. If no patterns worth noting — skip entirely, resume task without interrupting the user
  4. If patterns were found, present them with options:
📋 Checkpoint — patterns detected:

1. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

2. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

Options:
[1] Save these
[2] Skip, save nothing
[3] Let me edit/add my own

On [1]: persist via write_preferences.py --target log-only (logged, not auto-applied to CLAUDE.md) On [2]: discard and continue On [3]: accept user input, then persist

After the user responds, immediately resume the current task.

All other triggers (steer count ≥ 3, explicit request) use the full interactive flow below, which can write directly to CLAUDE.md on confirmation.

The Analysis Process (interactive mode)

Step 1: Delegate to a subagent

This is critical. Do NOT analyze your own conversation directly — you have blind spots about your own mistakes. Instead, spawn a subagent to analyze the transcript with fresh eyes.

Use the Agent tool to spawn an analyzer:

Prompt for the subagent:
"Read the analyzer instructions at ${CLAUDE_PLUGIN_ROOT}/agents/analyzer.md

Then analyze this conversation transcript for user steering patterns:

<transcript>
[Paste or summarize the key parts of the conversation — focus on user messages
that steered, corrected, or guided behavior. Include what Claude did before
each steer so the analyzer has context.]
</transcript>

Also check these existing preferences for conflicts:
[Include current contents of ~/.claude/CLAUDE.md if available]

Return your analysis as JSON following the format in the analyzer instructions."

The subagent returns structured JSON with steers found, patterns identified, and any conflicts.

Step 2: Review the subagent's findings

Read the JSON response. Sanity-check:

  • Do the identified patterns make sense?
  • Are there any false positives (one-offs classified as patterns)?
  • Are there conflicts with existing preferences?

Step 3: Present to the user

Show EXACTLY what was learned, concisely:

📋 Patterns detected from this session:

1. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

2. **[Category]**: [Preference summary]
   Evidence: "[Brief quote]"

[If conflicts:] ⚠️ Conflict: Previously you preferred X, but this session suggests Y. Which should I keep?

Save these to your global preferences?

Keep it SHORT. The user wants to see what you learned and confirm quickly.

Step 4: On confirmation, persist

Write preferences using the bundled script:

bash
python "${CLAUDE_PLUGIN_ROOT}/scripts/write_preferences.py" \
  --preferences '[{"category": "...", "preference": "...", "context": "...", "evidence": "..."}]' \
  --target global

The script handles:

  • Writing to ~/.claude/CLAUDE.md (global, cross-project, active in all sessions)
  • Writing to ~/Documents/AI/self-improve/preferences-log.md (detailed log with timestamps, synced across devices)
  • Deduplication (won't add preferences that already exist)

If the script isn't available, write directly to ~/.claude/CLAUDE.md under a ## User Preferences (Auto-Learned) section.

Step 5: Trigger worklog

After saving preferences, also trigger the worklog-logging skill to capture what was accomplished. Present both outputs together for a single confirmation.

Step 6: Resume work

After logging, immediately continue with the current task. Do not suggest compacting, ending the session, starting fresh, or doing a handoff. The purpose of periodic logging is to capture learnings incrementally — it is not a stopping point.

Handling conflicts

If a new preference contradicts an existing one:

  • Show both to the user with the conflict clearly labeled
  • On confirmation, replace the old preference
  • Log the change in the preferences log with a note about the update

What NOT to learn

  • One-off task-specific requests (user said "use pandas for this" but normally prefers R)
  • Project-specific preferences unless user says to generalize
  • Anything explicitly marked as temporary

Storage paths

  • Active preferences: ~/.claude/CLAUDE.md (auto-loaded by Claude in every session)
  • Detailed log: ~/Documents/AI/self-improve/preferences-log.md (synced across devices, includes evidence and timestamps)
  • Fallback log: ~/.claude/self-improve-preferences.md

Automatic steer capture (hooks)

Hooks in hooks/hooks.json automatically detect steering patterns on PreCompact/SessionEnd and log them to ~/Documents/AI/self-improve/preferences-log.md. Steers are never auto-applied — the manual flow (conversation-based, user-confirmed) remains the only path to CLAUDE.md.

Reviewing detected steers: Say "review detected steers", "what have you learned", or "show auto-detected preferences" to review and promote unconfirmed items.

Recovery

Users can always:

  • Edit ~/.claude/CLAUDE.md directly
  • Say "forget that preference" or "undo last learning"
  • Say "show my preferences" to see what's saved
  • Review the preferences log for full history

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Self Improve؟

Self-improving interaction skill that learns from user corrections and steering patterns. TRIGGER THIS SKILL when any of the following occur during a session: (1) The user corrects Claude's approach 3 or more times (e.g., "no, do X instead", "that's not what I meant", "actually...", rephrasing the same request, asking to redo work, expressing dissatisfaction). (2) At periodic context checkpoints (~25%, ~50%, ~75%) — this is routine logging, not a signal to stop. Capture learnings silently and continue working on the current task without interruption. (3) The user explicitly says "learn this...

لماذا تستخدم Self Improve على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Self Improve عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Self Improve في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/thumperL/claude-worktrace/tree/main/skills/self-improve. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Self Improve؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Self Improve؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Self Improve معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Self Improve مجانية؟

نعم. نشرها thumperL على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇