본문으로 건너뛰기
Skillpedia
에이전트10k · #12016

reflect

하는 일

이 스킬은 과거 작업 세션을 돌아보며 반복하는 작업을 찾고, 가장 작은 유용한 개선을 제안합니다. 실제 사용을 통해 AI 환경이 나아지기를 원하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓과거 세션에서 배우고 직접 하던 반복 작업을 찾고 싶을 때.
  • ✓워크플로가 계속 반복되어 재사용 가능한 스킬이나 플레이북으로 바꿀 가치가 있을 때.
  • ✓실제 작업 방식에 따라 설정이나 프롬프트 변경 제안을 받고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/reflect/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“최근 세션을 돌아보고, 재사용 가능한 스킬로 만들어야 할 반복 작업이 무엇인지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 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 /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
자주 묻는 질문

좋은 제안은 무엇인가요?

미래 필요에 대한 추측이 아니라, 반복 작업의 근거에 뒷받침된 개선입니다.

항상 변경을 제안하나요?

아니요. 근거가 변경을 뒷받침하지 않으면 변경하지 않는 것을 추천할 수 있습니다.

언제 쓰지 말아야 하나요?

일반적인 구현 작업, 일회성 디버깅, 워크플로 근거 없이 제안된 새 에이전트에는 쓰지 말아야 합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
10k
순위
#12016
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬