Pular para o conteúdo
Skillpedia
Agentes10 mil · #12016

reflect

O que ela faz

Esta skill analisa sessões de trabalho passadas para encontrar tarefas que você repete e sugere a melhoria útil mais simples. Ela é para quem quer que a configuração de IA melhore com o uso real.

Quando usar

  • ✓Quando você quer aprender com sessões passadas e encontrar trabalhos que faz à mão repetidamente.
  • ✓Quando um fluxo de trabalho se repete e pode valer a pena transformá-lo em uma skill ou um roteiro reutilizável.
  • ✓Quando você quer sugestões de mudanças de configuração ou de prompt com base em como você realmente trabalha.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/reflect/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Analise minhas sessões recentes e me diga quais tarefas repetidas eu devo transformar em uma skill reutilizável.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill revisa as sessões e notas recentes, procura atritos repetidos e recomenda uma melhoria adequada. Ela também pode recomendar não fazer mudança nenhuma.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

O que conta como uma boa sugestão?

Melhorias baseadas em evidências de trabalho repetido, e não em palpites sobre necessidades futuras.

Ela sempre sugere uma mudança?

Não. A skill pode recomendar nenhuma mudança quando as evidências não a sustentam.

Quando não devo usá-la?

Para o trabalho comum de implementação, depuração pontual ou para novos agentes sugeridos sem nenhuma evidência de fluxo de trabalho.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
10 mil
Posição no ranking
#12016
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas