reflect
ما الذي تفعله
تنظر هذه المهارة في جلسات العمل السابقة لتجد المهام التي تكررها، ثم تقترح أصغر تحسين مفيد. وهي موجهة للأشخاص الذين يريدون أن يتحسن إعداد الذكاء الاصطناعي لديهم من الاستخدام الفعلي.
متى تستخدمها
- ✓عندما تريد التعلم من جلسات العمل السابقة وإيجاد أعمال تكررها يدويًا.
- ✓عندما يتكرر سير عمل وقد يستحق أن يصبح مهارة أو دليلًا قابلًا لإعادة الاستخدام.
- ✓عندما تريد اقتراحات لتغييرات في الإعداد أو الأوامر مبنية على طريقة عملك الفعلية.
رابط المهارة
https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/reflect/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“راجع جلسات عملي الأخيرة وأخبرني بالمهام المتكررة التي يجب أن أحوّلها إلى مهارة قابلة لإعادة الاستخدام.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تراجع المهارة الجلسات والملاحظات الأخيرة، وتبحث عن الاحتكاك المتكرر، وتوصي بتحسين مناسب. وقد توصي أيضًا بعدم إجراء أي تغيير.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Reflect
Reflect is an orchestrator-only workflow for learning from repeated work. It looks back over recent sessions, project notes, and existing agent assets, then recommends the smallest useful improvement: a skill, custom agent, command, configuration change, prompt rule, documentation playbook, or no change.
The goal is to identify real repeated friction and suggest practical improvements with evidence.
Branch: lines marked [branch: --sessions] run only with that flag; plain /reflect skips Session Mode.
When to Use
Use Reflect when the user asks to:
- run
/reflector/reflect <focus>; - run
/reflect --sessionsfor session archaeology; - learn from recent sessions or repeated workflows;
- find work they keep doing manually;
- improve their oh-my-opencode-slim setup based on actual usage using oh-my-opencode-slim skill;
- review whether a recurring process should become a reusable playbook;
- turn repeated workflow friction into a safer future default.
Do not use Reflect for ordinary implementation work, one-off debugging, broad architecture review, or speculative agent creation without workflow evidence.
Session Mode [branch: --sessions]
When the user includes --sessions in their reflect command, shift to session
archaeology: analyze historical OpenCode sessions across all repos to find
repeated patterns, friction, and improvement opportunities.
Session Discovery
Detect the schema, then load recent sessions. OpenCode v2 keeps live data in
session_v2+session_message; legacy v1 databases keepsessionmessage(on v2 hosts those may still exist but are empty leftovers). Detect by probingsession_v2insqlite_masterand select the pair together — never per-table:session_messagecan exist on v1 hosts holding only metadata rows.
Write the probe below to a temp file (for example
/tmp/reflect-sessions.mjs) and runbun /tmp/reflect-sessions.mjs. Do not inline it withbun -e "…": nested quotes get mangled by PowerShell on Windows; a temp script sidesteps shell quoting entirely.import Database from 'bun:sqlite'; import { homedir } from 'os'; const db = new Database(`${homedir()}/.local/share/opencode/opencode.db`, { readonly: true }); const isV2 = !!db.query("SELECT 1 FROM sqlite_master WHERE type='table' AND name='session_v2'").get(); const LIMIT = 50; // set to the --last N value when specified const sessions = isV2 ? db.query( `SELECT s.id, p.worktree AS project, s.title, s.agent, s.model, s.time_created, s.cost, s.tokens_input, s.tokens_output, s.time_archived FROM session_v2 s LEFT JOIN project p ON p.id = s.project_id ORDER BY s.time_created DESC LIMIT ${LIMIT}` ).all() : db.query( `SELECT id, directory AS project, title, agent, model, time_created, cost, tokens_input, tokens_output FROM session ORDER BY time_created DESC LIMIT ${LIMIT}` ).all(); console.log(sessions);Both branches emit a
projectpath for the Per-Session Analysis. Timestamps are epoch milliseconds. On v2, a non-nulltime_archivedmeans the session was archived inside OpenCode.Load session messages - for each session ID, query the matching message table and parse
data:const rows = isV2 ? db.prepare('SELECT type, seq, data FROM session_message WHERE session_id = ? ORDER BY seq').all('<session_id>') : db.prepare('SELECT data FROM message WHERE session_id = ?').all('<session_id>');v2 rows carry a
typecolumn — parsedataJSON by it:user→data.textassistant→ joindata.content[]entries whereentry.type === 'text'(use.text)summary→data.summary(compaction summaries; useful for reconstructing goals)- tool types → keep the tool name for
tools_used(plus any error/failure signal), skip the output payload; reasoning types → skip entirely
v1 rows have no
typecolumn —datais JSON withrole,agent,model,summary, etc.
Per-Session Analysis
For each session, analyze and produce a structured summary:
{
"session": "ses_14de9c68effegtZtlATm42wnz7",
"project": "/home/user/Projects/oh-my-opencode-slim",
"timestamp": "2026-06-10T15:08:45.427Z",
"goal": "Fix CI failure",
"success": true,
"frictions": [
"Repeated grep to find test file",
"Three failed test runs before passing"
],
"recommendations": [
"Create /test-ci comm
الأسئلة الشائعة
ما الذي يُعد اقتراحًا جيدًا؟
تحسينات مدعومة بأدلة على عمل متكرر، لا تخمينات عن احتياجات مستقبلية.
هل تقترح تغييرًا دائمًا؟
لا. يمكن أن توصي المهارة بعدم إجراء أي تغيير عندما لا تدعمه الأدلة.
متى لا أستخدمها؟
في أعمال التنفيذ العادية، أو تصحيح الأخطاء لمرة واحدة، أو اقتراح وكلاء جدد دون أي دليل على سير عمل.
التفاصيل
الوصف الأصلي من المؤلف
Review recent work, find repeated workflow patterns, and suggest reusable skills, agents, commands, config changes, or playbooks. Use when the user asks to learn from past sessions, improve recurring workflows, or identify what should be turned into reusable agent instructions.
الشعبية
- نجوم GitHub
- 10k
- الترتيب
- #12016
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
cli-review
10kيتيح لوكيلك تشغيل مراجعة شيفرة من Greptile على فرعك الحالي قبل فتح طلب سحب، ثم تلخيص النتائج بلغة واضحة.
ai-estimates
10kيساعد وكيلك على تقدير المدة التي يستغرقها العمل عندما يعمل شخص مع الذكاء الاصطناعي، مع الفصل بين عمل الذكاء الاصطناعي السريع والتأخيرات البشرية والخارجية.
clonedeps
10kيتيح لوكيلك نسخ الشيفرة المصدرية للاعتماديات الأساسية في المشروع إلى مجلد محلي، حتى يستطيع قراءة كيفية عمل تلك المكتبات من الداخل.
codemap
10kينشئ خريطة منظمة لمشروع شيفرة غير مألوف، حتى يجد وكيلك أجزاءه الرئيسية بسرعة. الأفضل استخدامها عندما تطلب خريطة للشيفرة.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.