reflect
하는 일
이 스킬은 과거 작업 세션을 돌아보며 반복하는 작업을 찾고, 가장 작은 유용한 개선을 제안합니다. 실제 사용을 통해 AI 환경이 나아지기를 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓과거 세션에서 배우고 직접 하던 반복 작업을 찾고 싶을 때.
- ✓워크플로가 계속 반복되어 재사용 가능한 스킬이나 플레이북으로 바꿀 가치가 있을 때.
- ✓실제 작업 방식에 따라 설정이나 프롬프트 변경 제안을 받고 싶을 때.
스킬 링크
https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/reflect/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
/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
자주 묻는 질문
좋은 제안은 무엇인가요?
미래 필요에 대한 추측이 아니라, 반복 작업의 근거에 뒷받침된 개선입니다.
항상 변경을 제안하나요?
아니요. 근거가 변경을 뒷받침하지 않으면 변경하지 않는 것을 추천할 수 있습니다.
언제 쓰지 말아야 하나요?
일반적인 구현 작업, 일회성 디버깅, 워크플로 근거 없이 제안된 새 에이전트에는 쓰지 말아야 합니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
cli-review
10k에이전트가 풀 리퀘스트를 열기 전에 현재 브랜치에서 Greptile 코드 리뷰를 실행하고, 결과를 쉬운 말로 요약하도록 돕습니다.
ai-estimates
10k에이전트가 사람이 AI와 함께 일할 때 작업 시간을 추정하도록 돕습니다. 빠른 AI 작업과 사람 또는 외부의 지연을 나눠 계산합니다.
clonedeps
10k에이전트가 프로젝트의 핵심 의존성 소스 코드를 로컬 폴더에 복사해, 그 라이브러리가 내부에서 어떻게 작동하는지 읽을 수 있게 합니다.
codemap
10k낯선 코드 프로젝트의 구조화된 지도를 만들어, 에이전트가 주요 부분을 빠르게 찾도록 돕습니다. 코드베이스 지도를 요청할 때 가장 잘 쓰입니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.