一键导入
agf
Codex 세션 탐색 및 분석. agf 데이터 소스(history.jsonl)를 활용한 세션 리스트 조회, 검색 및 상세 분석. "세션 목록", "session list", "세션 검색", "session search", "agf" 등의 요청 시 자동 적용.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Codex 세션 탐색 및 분석. agf 데이터 소스(history.jsonl)를 활용한 세션 리스트 조회, 검색 및 상세 분석. "세션 목록", "session list", "세션 검색", "session search", "agf" 등의 요청 시 자동 적용.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
현재 세션에서 한 작업(또는 주어진 텍스트·파일)을 비전문가·미래의 자신도 이해하도록 쉽게 풀어 설명하는 인터랙티브 HTML 페이지 생성. 목차·단계별 펼침접힘·핵심요약·용어풀이 포함. ~/Desktop 저장 후 자동 오픈. 트리거: "쉽게 설명", "정리해줘", "복기", "풀어서 설명", "이해하기 쉽게", "설명해줘", "요약해줘".
Turn any rough prompt, half-formed idea, or task description into a finished, ready-to-send prompt optimized for Opus 4.7 (with adaptive thinking) inside the chat app — Codex.ai, the Mac app, the iOS app — NOT the API. Use this skill whenever the user wants to write, rewrite, optimize, improve, sharpen, or polish a prompt for the chat app. Trigger phrases include "rewrite this prompt", "make this a better prompt", "optimize this prompt", "turn this into a prompt", "help me prompt this", "draft a prompt that...", "I want to ask...", or whenever the user pastes a draft prompt and asks for improvements. Also trigger when the user describes a task they plan to send into the chat app and clearly wants a reusable, well-structured prompt rather than a direct answer. The output is always a single, copy-pasteable prompt in a code block that the user sends as-is — never a template with placeholders. Always ends with the exact line "Think before answering (maximum reasoning)".
Use this when you need to EVALUATE OR IMPROVE or OPTIMIZE an existing LLM agent's output quality - including improving tool selection accuracy, answer quality, reducing costs, or fixing issues where the agent gives wrong/incomplete responses. Evaluates agents systematically using MLflow evaluation with datasets, scorers, and tracing. IMPORTANT - Always also load the instrumenting-with-mlflow-tracing skill before starting any work. Covers end-to-end evaluation workflow or individual components (tracing setup, dataset creation, scorer definition, evaluation execution).
Analyzes an MLflow session — a sequence of traces from a multi-turn chat conversation or interaction. Use when the user asks to debug a chat conversation, review session or chat history, find where a multi-turn chat went wrong, or analyze patterns across turns. Triggers on "analyze this session", "what happened in this conversation", "debug session", "review chat history", "where did this chat go wrong", "session traces", "analyze chat", "debug this chat".
Analyzes a single MLflow trace to answer a user query about it. Use when the user provides a trace ID and asks to debug, investigate, find issues, root-cause errors, understand behavior, or analyze quality. Triggers on "analyze this trace", "what went wrong with this trace", "debug trace", "investigate trace", "why did this trace fail", "root cause this trace".
Create professional, dark-themed architecture diagrams as standalone HTML files with SVG graphics. Use when the user asks for system architecture diagrams, infrastructure diagrams, cloud architecture visualizations, security diagrams, network topology diagrams, or any technical diagram showing system components and their relationships.
| name | agf |
| description | Codex 세션 탐색 및 분석. agf 데이터 소스(history.jsonl)를 활용한 세션 리스트 조회, 검색 및 상세 분석. "세션 목록", "session list", "세션 검색", "session search", "agf" 등의 요청 시 자동 적용. |
| model | haiku |
~/.Codex/templates/delegation.md 변형 B 적용 — 단, subagent_type은 general-purpose 대신 agf-session-explorer 사용 (전용 sub-agent).
(model="haiku", run_in_background=false, args=skill 호출 인자, 옵션=list, show, search, --deep)
main context에서 직접 실행 금지.
agf(AI Agent Session Finder)의 데이터 소스인 ~/.Codex/history.jsonl과 세션 JSONL 파일을 활용하여 Codex 세션을 프로그래밍 방식으로 탐색·분석하는 skill.
| 커맨드 | 설명 |
|---|---|
/agf | 사용법 표시 |
/agf list | 오늘 세션 리스트 |
/agf list YYYY-MM-DD | 특정 날짜 세션 리스트 |
/agf show <session-id-prefix> | 특정 세션 상세 + AI 요약 |
/agf search <query> | display 필드에서 세션 검색 |
/agf search --deep <query> | 세션 JSONL 내부까지 deep 검색 |
| 항목 | 경로 |
|---|---|
| 세션 인덱스 | ~/.Codex/history.jsonl |
| 세션 데이터 | ~/.Codex/projects/<project-dir>/<sessionId>.jsonl |
| 스크립트 디렉토리 | ~/.Codex/skills/agf/ |
| 디렉토리 매핑 | 비영숫자 문자를 -로 치환 (예: /Users/msbaek/dotfiles → -Users-msbaek-dotfiles) |
인자 없이 /agf가 호출되면 위 커맨드 테이블을 사용자에게 표시합니다.
쿼리 문자열로 세션을 검색합니다. 대소문자를 무시합니다.
search 다음 값을 쿼리로 사용. --deep 옵션 확인.# display 필드 검색 (기본)
python3 ~/.Codex/skills/agf/search.py <query>
# 세션 JSONL 내부까지 deep 검색
python3 ~/.Codex/skills/agf/search.py --deep <query>
인수가 없으면 오늘 날짜, YYYY-MM-DD 형식이면 해당 날짜의 세션 목록을 출력합니다.
list 다음 값이 YYYY-MM-DD 형식이면 해당 날짜, 없으면 생략 (스크립트가 오늘 날짜를 기본값으로 사용)# 오늘 세션 목록
python3 ~/.Codex/skills/agf/list.py
# 특정 날짜 세션 목록
python3 ~/.Codex/skills/agf/list.py 2026-02-25
세션 ID prefix(8자 이상)를 받아 해당 세션의 상세 정보와 AI 요약을 제공합니다.
python3 ~/.Codex/skills/agf/show.py <SESSION_PREFIX>
출력 형식:
META_START ~ META_END: 세션 메타데이터 (key: value)CONV_START ~ CONV_END: 대화 데이터 (U=사용자, A=어시스턴트, 최대 4000자)HISTORY_START ~ HISTORY_END: history.jsonl의 display 메시지 목록추출된 CONV_START~CONV_END 사이의 대화 데이터를 haiku 서브에이전트에 전달합니다.
Task 호출 파라미터:
| 파라미터 | 값 |
|---|---|
| description | "세션 요약 생성" |
| subagent_type | "general-purpose" |
| model | "haiku" |
프롬프트 (변수 치환 필요):
아래 Codex 세션의 대화 내용을 분석하여 요약해주세요.
코드를 작성하지 말고 분석만 수행하세요.
## 세션 정보
- 프로젝트: {PROJECT_DIR}
- 기간: {START} ~ {END} ({DURATION})
## 대화 내용 (U=사용자, A=어시스턴트)
{CONV_DATA}
## 출력 형식
### 요약
- 이 세션에서 수행한 작업을 3-5개 항목으로 정리
- 각 항목은 "무엇을 했는지"를 1줄로 서술
### 주요 결정사항
- 세션 중 내려진 기술적 결정이 있으면 기록 (없으면 "없음")
### 미완료 작업
- 세션에서 시작했으나 완료되지 않은 작업이 있으면 기록 (없으면 "없음")
메인 에이전트가 아래 형식으로 메타데이터 + AI 요약 + 사용자 메시지를 조합하여 출력합니다:
## 세션 상세: {SESSION_ID_SHORT}...
| 항목 | 값 |
|------|-----|
| 프로젝트 | {PROJECT_DIR} |
| 경로 | {CWD} |
| Git Branch | {GIT_BRANCH} |
| 시작 | {START} |
| 종료 | {END} |
| Duration | {DURATION} |
| 메시지 수 | User {USER_COUNT} / Assistant {ASST_COUNT} |
| 파일 크기 | {FILE_SIZE} |
### AI 요약
{HAIKU_SUBAGENT_RESULT}
### 사용자 메시지 목록
{HISTORY_MESSAGES}
세션을 키워드로 검색할 때 agf search --deep과 함께 qmd semantic 검색을 병행하면 키워드 매칭에 안 걸리는 세션도 발견할 수 있습니다.
# qmd-search가 색인 신선도를 자동 확인하고 필요 시 갱신 후 검색합니다
qmd-search "검색어" 2>/dev/null | head -20
agf 결과와 qmd 결과를 합쳐서 중복 제거 후 분석합니다.
history.jsonl 파일 없음 → "~/.Codex/history.jsonl 파일을 찾을 수 없습니다" 출력show에서 세션 ID prefix 매칭 0건 → "해당 prefix로 시작하는 세션을 찾을 수 없습니다" 출력show에서 세션 ID prefix 매칭 2건 이상 → 후보 목록(세션ID + 프로젝트) 표시 후 재선택 요청