trellis-session-insight
ما الذي تفعله
تبحث هذه المهارة في سجل محادثاتك المحفوظ باستخدام أمر الذاكرة في Trellis. وهي لمن يريد أن يتذكر كيف حلّ شيئًا من قبل.
متى تستخدمها
- ✓عندما تسأل كيف حللت مشكلة في المرة السابقة، أو هل ناقشتها من قبل.
- ✓عندما تبدأ مهمة تتداخل مع عمل سابق.
- ✓عندما تتصدى لخلل يبدو مألوفًا.
رابط المهارة
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-session-insight/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل ناقشنا مشكلة التخزين المؤقت هذه من قبل؟ ابحث عما قررناه في المرة السابقة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يستخدم وكيلك أمر trellis mem لعرض الجلسات السابقة المحفوظة على جهازك والبحث فيها وقراءة حوارها المنقّى. ثم يستخدم ما يجده للإجابة أو لتوجيه العمل الحالي.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Trellis Session Insight
This skill teaches an AI how to call trellis mem — the project's cross-session memory feedstock — and when reaching for it is the right move.
It is intentionally a capability skill, not a workflow. There is no fixed output file, no required write-back step, no "always run after finish-work" rule. What to do with what mem returns is a judgement call made in the moment of the conversation. The skill exists so the AI knows the capability is there and can decide.
What trellis mem is
A local CLI that indexes the user's past Claude Code, Codex, Devin CLI, Grok, OpenCode, Pi Agent, and ZCode conversation logs and lets you list, search, slice by Trellis task boundaries, and dump cleaned dialogue from them. Claude and Codex use ~/.claude/projects/ and ~/.codex/sessions/. Devin CLI (Cognition terminal agent, not trellis init --devin Desktop) uses ~/.local/share/devin/cli/sessions.db. Grok uses ~/.grok/sessions/. OpenCode uses ~/.local/share/opencode/opencode.db (zero-dependency SQLite reader). Pi uses its default or environment-configured session root, global ~/.pi/agent/settings.json, and the scoped project's .pi/settings.json; relative sessionDir values resolve from the settings file directory. Project-local Pi settings require project-scoped lookup through the current cwd or --cwd. ZCode uses ~/.zcode/cli/db/db.sqlite.
Nothing in mem is uploaded. All reads are local.
When to reach for it
The bar is "would a senior teammate ask 'didn't we already talk about this?'" — those are the moments. Some concrete patterns:
- Brainstorm rerun risk. Starting a new task that touches an area the user has been in before, and you want to check whether a decision was already made — before re-asking the user.
- Familiar-bug debugging. The current bug pattern feels like one the user reported / fixed before. Pulling the relevant past session can save a full debugging loop.
- Cross-session continuation. The user resumes work after a gap and says "where were we" / "继续上次的" without being specific.
- Decision retrieval. The user references "the decision we made about X" but the decision lives in an old brainstorm, not in any
prd.md/spec/. - Finish-work retrospective. When the user explicitly asks for a wrap-up of what was decided / what hurt / what surprised them in this task — not as a forced step on every finish-work.
- Pattern-spotting across past work. The user asks "do I keep making the same mistake on X" / "我每次都踩这个坑吗" — search across sessions answers that.
If none of these apply, don't call mem. It is a tool, not a ceremony.
When NOT to reach for it
- The relevant context is already in the current turn,
prd.md,design.md, recentgit log, or the open files.memis for stuff that has fallen out of immediate reach. - The user is asking about a fact in the code, not a fact from a past conversation.
git log -p/grep/ reading the file directly is faster and more authoritative. - You are in a sub-agent (
trellis-implement/trellis-check) whose dispatch prompt already includes the curatedimplement.jsonl/check.jsonlcontext. Addingmemon top usually just clutters. - The user has explicitly said "don't dig through history, just answer what I asked".
What to do with what mem returns
Treat the output as raw material, not a deliverable. Once you have it, decide based on the live conversation:
- Quote inline in your reply if a specific past exchange answers the user's current question — and cite the session-id / phase so the user can verify.
- Update
<task>/prd.mdor<task>/design.mdifmemsurfaced a load-bearing decision that should have been written down but wasn't. Surface the proposed edit to the user first. - Append to a task-local notes file (e.g.
<task>/notes.mdor extending an existing one) if the finding belongs to the current task's record but doesn't fit the PRD. - Update
.trellis/spec/if the finding is a project-wide convention or gotcha that would help future tasks. Run thetrellis-update-specskill for that —session-insightends at the discovery. - Just absorb it for the next few turns and answer better, without writing anything. This is often the right move for one-off recall.
Trellis does not prescribe a single destination. Forcing every recall into a fixed file makes the file grow into noise. Let the situation decide.
How to call it
Full CLI
الأسئلة الشائعة
من أي أدوات ذكاء اصطناعي تقرأ السجل؟
تقرأ سجلات أدوات عدة، مثل Claude Code وCodex وGrok، المحفوظة على جهازك.
هل ترفع محادثاتي؟
لا. تقرأ أدوات الذاكرة الملفات الموجودة على القرص ولا ترفع شيئًا.
هل تحفظ ملاحظات بعد كل جلسة؟
لا. لا توجد خطوة كتابة عائدة إلزامية، وما يُحفظ متروك للوكيل في لحظته.
التفاصيل
الوصف الأصلي من المؤلف
Reach into past AI conversation history through the `trellis mem` CLI. Use whenever the user asks 'how did we solve X last time', 'have we discussed this before', 'what was the decision on X', 'remind me what we did in this task', '上次怎么解的', '之前讨论过吗', '想起一段对话', or when starting a brainstorm that overlaps prior work, debugging a familiar bug, continuing a task across sessions, or doing a finish-work review. Returns raw past dialogue; decide for the moment whether to update spec, append to task notes, quote inline in the answer, or just internalize.
repo: mindfold-ai/Trellis
الشعبية
- نجوم GitHub
- 15k
- الترتيب
- #11032
- الترخيص
- AGPL-3.0
- آخر تحديث
- 29/9/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
first-principles-thinking
15kيساعد وكيلك على اختبار خطة أو تصميم بتفكيكه إلى حقائق أساسية والاستدلال صعودًا منها، بدل الاعتماد على العادة أو العرف.
python-design
15kيساعد وكيلك على كتابة سكربتات Python وأدوات سطر الأوامر ومراجعتها، بوحدات واضحة وواجهات بسيطة وتعقيد خفي أقل.
trellis-before-dev
15kيساعد وكيلك على قراءة إرشادات الكود وملاحظات المهام في المشروع قبل أن يبدأ الكتابة، حتى يتبع أعراف الفريق.
trellis-brainstorm
15kيساعد وكيلك على توضيح ميزة جديدة أو مهمة غامضة بطرح سؤال مفيد واحد في كل مرة، وفحص الكود، والاتفاق على نطاق ضيق.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.