Retinue
jklthinking/retinue
Coordinate work through a local Retinue workspace using its MCP tools.
Exports an OpenCode session from its local database into a single self-contained HTML page styled like the official share view, with folding and editing controls.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install nigo81/nigo-skills opencode-session-visualizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/nigo81/nigo-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/opencode-session-visualizer .claude/skills/opencode-session-visualizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "opencode-session-visualizer" agent skill from https://github.com/nigo81/nigo-skills/tree/main/opencode-session-visualizer into .claude/skills/opencode-session-visualizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-session-visualizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/nigo81/nigo-skills/tree/main/opencode-session-visualizerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install nigo81/nigo-skills opencode-session-visualizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nigo81/nigo-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/opencode-session-visualizer .agents/skills/opencode-session-visualizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "opencode-session-visualizer" agent skill from https://github.com/nigo81/nigo-skills/tree/main/opencode-session-visualizer into .agents/skills/opencode-session-visualizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-session-visualizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install nigo81/nigo-skills opencode-session-visualizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nigo81/nigo-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/opencode-session-visualizer .cursor/skills/opencode-session-visualizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "opencode-session-visualizer" agent skill from https://github.com/nigo81/nigo-skills/tree/main/opencode-session-visualizer into .cursor/skills/opencode-session-visualizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-session-visualizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/nigo81/nigo-skills.git --path opencode-session-visualizer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install nigo81/nigo-skills opencode-session-visualizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nigo81/nigo-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/opencode-session-visualizer .gemini/skills/opencode-session-visualizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "opencode-session-visualizer" agent skill from https://github.com/nigo81/nigo-skills/tree/main/opencode-session-visualizer into .gemini/skills/opencode-session-visualizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-session-visualizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install nigo81/nigo-skills opencode-session-visualizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/nigo81/nigo-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/opencode-session-visualizer .github/skills/opencode-session-visualizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "opencode-session-visualizer" agent skill from https://github.com/nigo81/nigo-skills/tree/main/opencode-session-visualizer into .github/skills/opencode-session-visualizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-session-visualizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install nigo81/nigo-skills opencode-session-visualizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nigo81/nigo-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/opencode-session-visualizer .opencode/skills/opencode-session-visualizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "opencode-session-visualizer" agent skill from https://github.com/nigo81/nigo-skills/tree/main/opencode-session-visualizer into .opencode/skills/opencode-session-visualizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "opencode-session-visualizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
opencode-session-visualizerExports an OpenCode session from its local database into a single self-contained HTML page styled like the official share view, with folding and editing controls.
OpenCode's context compaction cannot be undone inside a session, but the local SQLite database still holds every message. This skill reads that database and builds one HTML file that copies the dark look of the official share page. The page renders Markdown with marked.js and highlights code with highlight.js, shows tool calls as collapsed cards with full input and output, folds reasoning, and marks compaction events as amber cards.
Two bundled Python scripts do the work: `export_session.py` lists recent sessions or exports one to JSON, and `generate_html.py` builds the page, either straight from the database with a session ID or from the exported JSON. The agent lists recent sessions first when you give no ID, then suggests opening the file in a browser. The scripts find the database on macOS, Linux and Windows without configuration.
In the browser the page has a left sidebar that lists user messages and jumps to them, a back-to-top button and editing tools: delete a message together with the assistant replies that follow, or truncate everything after a message, then download the cleaned HTML. The SKILL.md is written in Chinese.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6468211. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
OpenCode Session Visualizer loads about 1.3k tokens when it runs. Until then it costs about 105 tokens; SKILL.md has 238 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from nigo81/nigo-skills at commit 6468211, republished under its MIT licence (© nigo81). 238 words, ~1,292 tokens.
.claude/skills/opencode-session-visualizer/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.将 OpenCode 会话从本地数据库导出,生成复刻官方 share 页面样式的单文件 HTML。
OpenCode 的上下文压缩(compaction)是不可逆的——恢复会话时只能看到 checkpoint 之后的内容。 但数据库里完整保存了所有消息。这个 skill 直接从数据库提取完整数据,生成可分享的 HTML 网页。
脚本支持 macOS、Linux 和 Windows。无需额外配置。
python3,Windows 用 python(下方示例统一写 python3,Windows 用户自行替换)__file__ 自动定位自身目录,无需关心 skill 安装在哪个路径。下方命令中的 SKILL_DIR 指本 skill 的安装目录(因 AI Agent 工具而异,如 ~/.claude/skills/opencode-session-visualizer/、~/.config/opencode/skills/opencode-session-visualizer/ 等)~/.local/share/opencode/opencode.db~/.local/share/opencode/opencode.db 或 ~/Library/Application Support/opencode/opencode.db%LOCALAPPDATA%\opencode\opencode.db 或 %APPDATA%\opencode\opencode.db一行命令从数据库直接生成 HTML(SKILL_DIR = 本 skill 目录):
python3 SKILL_DIR/scripts/generate_html.py --session <session_id> [output.html]如果用户没有提供 session_id,先列出最近会话:
python3 SKILL_DIR/scripts/export_session.py --list -n 15python3 SKILL_DIR/scripts/export_session.py <session_id> session.jsonpython3 SKILL_DIR/scripts/generate_html.py session.json [output.html]生成后提示用户在浏览器中打开(macOS: open <path>,Windows: start <path>,Linux: xdg-open <path>)。
生成的 HTML 是完全自包含的单文件,具备以下交互功能:
#131315,代码块 #0b0b0c,链接 #89b4fa,系统字体 13pxread · format.ts),点击展开显示完整 Input 和 Output(代码块样式,可滚动)导出的 JSON 结构:
{
"session": {
"id": "ses_xxx",
"title": "会话标题",
"stats": { "total_messages": 222, "user_messages": 59, ... }
},
"messages": [
{
"id": "msg_xxx",
"role": "user|assistant",
"timestamp": "2026-07-23 16:18:45",
"agent": "Orchestrator",
"model": "glm-5.1",
"parts": [
{"type": "text", "data": {"text": "markdown内容"}},
{"type": "tool", "data": {"type": "tool", "tool": "bash", "callID": "...", "state": {"status": "completed", "input": {"command": "..."}, "output": "...", "title": "...", "time": {"start": 123, "end": 456}}}},
{"type": "reasoning", "data": {"text": "思考内容"}},
{"type": "step-start", "data": {...}},
{"type": "step-finish", "data": {...}},
{"type": "compaction", "data": {...}},
{"type": "patch", "data": {...}}
]
}
]
}Part 类型处理:
text:渲染为 Markdown(用户消息和助手消息的正文)tool:折叠卡片,显示工具名+摘要,展开显示 Input 参数和 Output 结果reasoning:折叠卡片,点击展开查看思考过程step-start / step-finish:步骤分隔标记(不在页面显示)compaction:琥珀色压缩事件卡片patch:代码补丁卡片agent:agent 切换标记Tool 的 input 字段因工具而异:
read/edit/write:{filePath: "/path/to/file"}bash:{command: "ls -la"}grep:{pattern: "...", include: "*.ts"}glob:{pattern: "**/*.py"}task:{description: "...", prompt: "..."}opencode-session-visualizer/
├── SKILL.md # 本文件
├── scripts/
│ ├── export_session.py # 数据库导出脚本(session_id → JSON)
│ └── generate_html.py # HTML 生成脚本(JSON/DB → HTML)
└── assets/
└── template.html # HTML 模板(含 __SESSION_DATA__ 占位符)export_session.py — 从 opencode.db 导出完整会话数据
python3 export_session.py <session_id> [output.json] — 导出指定会话python3 export_session.py --list -n 15 — 列出最近 15 个会话generate_html.py — 将会话数据注入模板生成 HTML
python3 generate_html.py --session <session_id> [output.html] — 直接从数据库生成(推荐)python3 generate_html.py <session.json> [output.html] — 从导出的 JSON 生成assets/template.htmltemplate.html — HTML 模板
__SESSION_DATA__ 位于 <script id="conv-data"> 内WHERE session_id作者:nigo 微信公众号:逆行的狗
© nigo81, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, assets) in opencode-session-visualizer of nigo81/nigo-skills.
Open the folder on GitHubat commit 6468211
OpenCode Session Visualizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| OpenCode Session Visualizer this skillnigo81/nigo-skills | 133 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Retinuejklthinking/retinue | 112 | — | ~279 | Automated safety check: Pass | MIT | |
| MCP Server BuildershareAI-lab/learn-claude-code | 78k | 5 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Agent Memorytigerless-labs/agent-memory | 2.4k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Plan Previewu-ichi/reviewable-html-workbench | 298 | 1 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Visual HTML Rendereru-ichi/reviewable-html-workbench | 298 | 1 repos | ~8.7k | Automated safety check: Pass | MIT |
jklthinking/retinue
Coordinate work through a local Retinue workspace using its MCP tools.
shareAI-lab/learn-claude-code
Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.
tigerless-labs/agent-memory
Read and write the shared long-term memory store. An agent skill from tigerless-labs/agent-memory.
u-ichi/reviewable-html-workbench
Plan Mode の <proposedplan を出す直前に、計画の段階・依存関係・検証観点を一時HTMLで視覚確認したい時に使う agent-internal skill。Use this agent-internal skill to create a temporary HTML preview for a plan just before presenting…
u-ichi/reviewable-html-workbench
HTMLを最終成果物として生成・検証・プレビューしたい時に使う共通レンダラー。Use this shared renderer when the user wants content turned into a final, validated, previewable HTML artifact.
topoteretes/cognee
Explains how cognee stores session memory by session_id and bridges it into the permanent graph with improve(), including the stages, results and settings.
nigo81/nigo-skills
Looks up Chinese company registration data in the CICPA industry knowledge base, from a quick search to a full 61-dimension export, subsidiary discovery and Excel output.
nigo81/nigo-skills
Checks audit reports (financial statements and notes) for cross-reference, summation and text errors, with arithmetic done by script and results exported to Excel and Markdown.
nigo81/nigo-skills
Merges bank statements from several banks and formats into one standard Excel layout, then reconciles them against the general ledger with a layered matching engine.
nigo81/nigo-skills
A Chinese-language persona that answers accounting-standards and audit questions in the style of forum moderator Chen Yiwei, checking standards text before it replies.
nigo81/nigo-skills
Chinese-language tool that turns a business process description into a swimlane flowchart for internal control and audit work, exported as .drawio, PNG, SVG or VSDX.
nigo81/nigo-skills
Cross-checks a client's own registry data against its customers' and suppliers' to surface undisclosed related-party relationships for an audit.
Categories
Exports an OpenCode session from its local database into a single self-contained HTML page styled like the official share view, with folding and editing controls. OpenCode's context compaction cannot be undone inside a session, but the local SQLite database still holds every message. This skill reads that database and builds one HTML file that copies the dark look of the official share page.
OpenCode Session Visualizer fits situations like: exporting an OpenCode conversation as a shareable HTML page; recovering the full conversation from before context compaction; trimming or deleting messages from a session before sharing it.
Run `npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a claude-code`. Or copy the skill folder (opencode-session-visualizer in nigo81/nigo-skills) into .claude/skills/opencode-session-visualizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a codex`. Or copy the skill folder (opencode-session-visualizer in nigo81/nigo-skills) into .agents/skills/opencode-session-visualizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nigo81/nigo-skills --skill opencode-session-visualizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opencode-session-visualizer, .gemini/skills/opencode-session-visualizer, .github/skills/opencode-session-visualizer and .opencode/skills/opencode-session-visualizer in your project.
Going by SKILL.md and its folder, OpenCode Session Visualizer needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3 (`python3`, or `python` on Windows); OpenCode's local `opencode.db` database.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
OpenCode Session Visualizer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with OpenCode Session Visualizer: Retinue (jklthinking/retinue, 112 stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), Agent Memory (tigerless-labs/agent-memory, 2.4k stars) and Plan Preview (u-ichi/reviewable-html-workbench, 298 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
nigo81 (a GitHub user) maintains it in nigo81/nigo-skills, which has 133 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on August 23, 2026.
Source: nigo81/nigo-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.