Langsung ke konten
Skillpedia
Agen10k Β· #12016

reflect

Fungsinya

Skill ini meninjau sesi kerja sebelumnya untuk menemukan tugas yang Anda ulangi, lalu menyarankan perbaikan terkecil yang berguna. Skill ini ditujukan untuk orang yang ingin pengaturan AI mereka makin baik dari pemakaian nyata.

Kapan dipakai

  • βœ“Saat Anda ingin belajar dari sesi sebelumnya dan menemukan pekerjaan yang terus Anda lakukan secara manual.
  • βœ“Saat sebuah alur kerja terus berulang dan mungkin layak dijadikan keterampilan atau panduan yang bisa dipakai ulang.
  • βœ“Saat Anda ingin saran perubahan konfigurasi atau prompt berdasarkan cara Anda benar-benar bekerja.

Link skill

https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/reflect/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/reflect/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTinjau sesi terbaru saya dan beri tahu tugas berulang mana yang sebaiknya saya jadikan keterampilan yang bisa dipakai ulang.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini meninjau sesi dan catatan terbaru, mencari hambatan yang berulang, dan merekomendasikan perbaikan yang sesuai. Skill juga dapat merekomendasikan untuk tidak mengubah apa pun.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 /reflect or /reflect <focus>;
  • run /reflect --sessions for 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

  1. Detect the schema, then load recent sessions. OpenCode v2 keeps live data in session_v2 + session_message; legacy v1 databases keep session

    • message (on v2 hosts those may still exist but are empty leftovers). Detect by probing session_v2 in sqlite_master and select the pair together β€” never per-table: session_message can exist on v1 hosts holding only metadata rows.

    Write the probe below to a temp file (for example /tmp/reflect-sessions.mjs) and run bun /tmp/reflect-sessions.mjs. Do not inline it with bun -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 project path for the Per-Session Analysis. Timestamps are epoch milliseconds. On v2, a non-null time_archived means the session was archived inside OpenCode.

  2. 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 type column β€” parse data JSON by it:

    • user β†’ data.text
    • assistant β†’ join data.content[] entries where entry.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 type column β€” data is JSON with role, 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
Pertanyaan umum

Apa yang dianggap saran yang baik?

Perbaikan yang didukung bukti pekerjaan berulang, bukan tebakan tentang kebutuhan di masa depan.

Apakah skill selalu menyarankan perubahan?

Tidak. Skill dapat merekomendasikan tanpa perubahan jika bukti tidak mendukungnya.

Kapan sebaiknya saya tidak memakainya?

Untuk pekerjaan implementasi biasa, debugging sekali jalan, atau agent baru yang disarankan tanpa bukti alur kerja.

Detail

Deskripsi asli dari pembuat

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.

repo: alvinunreal/oh-my-opencode-slim

Popularitas

Bintang GitHub
10k
Peringkat
#12016
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa