reflect
यह क्या करती है
यह स्किल पिछले काम के सत्रों को देखकर वे कार्य खोजती है जो आप बार-बार करते हैं, फिर सबसे छोटा उपयोगी सुधार सुझाती है। यह उन लोगों के लिए है जो चाहते हैं कि उनका AI सेटअप असली उपयोग से बेहतर हो।
कब इस्तेमाल करें
- ✓जब आप पिछले सत्रों से सीखना चाहते हैं और वह काम खोजना चाहते हैं जो आप हाथ से करते हैं।
- ✓जब कोई वर्कफ़्लो बार-बार दोहराया जाए और उसे दोबारा इस्तेमाल होने वाले skill या playbook में बदला जा सके।
- ✓जब आप चाहते हैं कि config या prompt बदलाव के सुझाव इस आधार पर हों कि आप असल में कैसे काम करते हैं।
Skill का लिंक
https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/reflect/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे हाल के सत्र देखिए और बताइए कि कौन से बार-बार होने वाले कार्य मुझे दोबारा इस्तेमाल होने वाले skill में बदलने चाहिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल हाल के सत्र और नोट्स देखती है, बार-बार आने वाली रुकावटें खोजती है, और उपयुक्त सुधार सुझाती है। वह कोई भी बदलाव न करने की सलाह भी दे सकती है।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
अच्छा सुझाव किसे माना जाता है?
वे सुधार जिनके पीछे बार-बार होने वाले काम का सबूत हो, भविष्य की ज़रूरतों के अनुमान नहीं।
क्या यह हमेशा कोई बदलाव सुझाती है?
नहीं। जब सबूत समर्थन न करे, तो स्किल कोई बदलाव न करने की सिफ़ारिश कर सकती है।
इसे कब इस्तेमाल न करें?
सामान्य कार्यान्वयन, एक बार की debugging, या बिना किसी वर्कफ़्लो सबूत के सुझाए गए नए एजेंटों के लिए।
जानकारी
लेखक का मूल विवरण
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
कमेंट
- …
इस repository की और skills
cli-review
10kआपके एजेंट को pull request खोलने से पहले मौजूदा branch पर Greptile कोड समीक्षा चलाने देती है, फिर नतीजों का सादी भाषा में सार देती है।
ai-estimates
10kआपके एजेंट को यह अनुमान लगाने में मदद करती है कि AI के साथ काम करने पर काम कितना समय लेगा, तेज़ AI काम को इंसानी और बाहरी देरी से अलग करते हुए।
clonedeps
10kआपके एजेंट को मुख्य प्रोजेक्ट dependencies का स्रोत कोड स्थानीय फ़ोल्डर में कॉपी करने देती है, ताकि वह समझ सके कि वे लाइब्रेरी अंदर से कैसे काम करती हैं।
codemap
10kकिसी अनजान कोड प्रोजेक्ट का संरचित नक्शा बनाती है, ताकि आपका एजेंट उसके मुख्य हिस्से जल्दी ढूँढ सके। कोडबेस का नक्शा माँगने पर सबसे अच्छा।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।