Agent skill · elithrar

summarize-work

Summarizes session work for commit messages or branch reviews. Queries the OpenCode server API to find and read sessions, extract major changes, bug fixes, challenges requiring multiple iterations, and code review fixes. Load before committing or when preparing to document completed work.

What it needs

About 4k tokens when loaded.

What this skill does

Summarize Work Generate meaningful summaries of work completed in one or more sessions. Use for commit messages, PR descriptions, or documenting what happened across a time period. OpenCode Server API OpenCode exposes session data through its HTTP server. The server runs automatically when OpenCode is active. Server URL Discover the server URL with: Default is http://localhost:4096. All endpoints below are relative to this base URL. API Reference See references/api.md for the full endpoint reference. The key endpoints for summarization: Discover sessions across all projects: Query parameters: directory, roots, start, search, limit, archived. Discover sessions for the current project: Query parameters: directory, roots, start, search, limit. Read a session's messages: Get a session's todos: Fallback: SQLite If the server is unreachable (e.g. OpenCode not running), first mention the API is unavailable. Then query the database directly at ~/.local/share/opencode/opencode.db when local access is acceptable. Tables: session, message, todo. Columns mirror the API response shapes. Use jsonextract() for JSON fields. Key conventions Timestamps are Unix epoch milliseconds. Use ?start=<ms> to filter by time. Root sessions exclude subagent sessions. Use ?roots=true for session discovery. Archived sessions are excluded by default. Use ?archived=true to include them. Global vs project-scoped: /global/session returns sessions across all projects with project metadata. /session returns sessions for the current project only. Empty sessions (1-2 messages) are noise. Filter in post-processing. Determining Scope Read the user's request to decide which endpoint to use. Default to the current project unless the request asks for more. Request Endpoint --------- ---------- "summarize this session" Use conversation history already in context. Do not query the API. "summarize my last session" GET /session -- current project. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills elithrar/summarize-work

View the source on GitHub

Browse the @skills marketplace