بنقرة واحدة
ai-session-coach
Explicit workflow coach for analyzing unarchived OpenCode sessions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Explicit workflow coach for analyzing unarchived OpenCode sessions.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Analyze Codex session history since the last successful coaching run and return exactly five practical workflow improvements. Use when the user explicitly invokes the AI session coach or asks to review recent Codex sessions for recurring friction, instruction gaps, or reusable workflow improvements.
Code immersion: walks the user through how a project, component, or feature works, step by step. Use when the user wants to understand how code works or asks for a walkthrough.
Capture, update, or organize a task in Singularity. Use when the user wants to add a task, todo, reminder, deadline, or scheduled work item.
Draft, group, or create Conventional Commits. Use when the user asks for a commit message, commit title/body, a local commit from staged changes, categorizing local changes, partial staging mixed work, multiple semantic commits, or remaining artifacts.
Explicit plan and design stress-test interview.
Explicit reference for designing and editing predictable skills.
| name | ai-session-coach |
| description | Explicit workflow coach for analyzing unarchived OpenCode sessions. |
| disable-model-invocation | true |
Turn local OpenCode session history into exactly 5 practical workflow
recommendations. Analysis is read-only. Archiving is optional and requires two
explicit confirmations: one for intent, one after dry-run review. Dry-run is the
default; never pass --apply unless the user explicitly confirms it after
reviewing the dry-run output.
Treat the user's request as analysis_focus.
~/.local/share/opencode/opencode.db.--project, --since, or --until only when the user narrows scope.Collect a snapshot:
scripts/collect_sessions.py.--unarchived --exclude-current-session./tmp, not the repository.--analysis-focus with the user's request.--current-session-id <id> so the live thread is excluded.Completion criterion: manifest.json exists, names the generated project
packs, and excludes the current live session when its ID is available.
Read manifest.json.
session.directory.Analyze each project pack.
analysis_focus.Completion criterion: every project pack in the manifest is represented in the synthesis or explicitly excluded with a reason.
Synthesize exactly 5 recommendations, prioritized by leverage.
Ask whether to archive the exact snapshot.
If archiving is confirmed, run dry-run first:
scripts/archive_sessions.py --manifest <manifest> --prettyApply archiving only after explicit dry-run confirmation:
scripts/archive_sessions.py --manifest <manifest> --apply --pretty--current-session-id <id>.AGENTS.md additions or corrections.Return exactly 5 numbered recommendations. Each includes:
AGENTS.md snippet
when relevant.If data is thin, still return 5 recommendations and label weaker items lower confidence.
Example collection:
python3 config/opencode/skills/ai-session-coach/scripts/collect_sessions.py \
--unarchived \
--exclude-current-session \
--out-dir /tmp/ai-session-coach-opencode \
--analysis-focus "find recurring AI workflow friction" \
--pretty
collect_sessions.py is read-only with respect to OpenCode state. It reads
session metadata and message parts from ~/.local/share/opencode/opencode.db,
bounded log excerpts, session-diff excerpts, todos, and nearby AGENTS.md
files.
Useful collection options: --exclude-session, --current-session-id,
--project, --since, --until, --max-sessions, --max-message-chars,
--max-output-chars, and --max-events-per-session.
archive_sessions.py is the only archival tool for this skill. Dry-run is the
default; --apply is required for real archiving. It reads target sessions from
manifest.projects[].session_ids, creates a timestamped DB backup before any
apply, sets session.time_archived, and reports archived/skipped/error counts.