Extract the meaningful transcript from an OpenCode shared session link.
OpenCode share pages can contain a lot of runtime data: tool calls, reasoning parts, token counts, status objects, model metadata, and internal references. This skill keeps the parts people usually need for handoff and review:
- user-visible prompts
- assistant-visible text responses
- message order
- session metadata
- clean Markdown output
- optional JSON output
Copy this folder into your Codex skills directory:
$env:USERPROFILE\.codex\skills\opencode-shareThen ask Codex to analyze an OpenCode share URL, for example:
Analyze this OpenCode share session and summarize the effective conversation:
https://opncd.ai/share/SHARE_ID
Requirements: Python 3.10 or newer. No third-party packages are required.
From a URL:
python .\scripts\extract_opencode_share.py "https://opncd.ai/share/SHARE_ID" --out clean.mdThe parser also accepts https://opencode.ai/s/SHARE_ID and rewrites it to
the opncd.ai/share/SHARE_ID format before fetching.
From a saved HTML file:
python .\scripts\extract_opencode_share.py ".\share.html" --out clean.mdWith JSON output:
python .\scripts\extract_opencode_share.py "https://opncd.ai/share/SHARE_ID" --out clean.md --json-out clean.jsonThe Markdown output contains:
# OpenCode Share Session - Clean Transcript
## Metadata
Source: ...
Messages: ...
Share ID: ...
Title: ...
Model: ...
Tokens: ...
## Transcript
## 1. User
...
## 2. Assistant
...
The JSON output contains:
{
"metadata": {
"source": "...",
"share_id": "...",
"title": "...",
"model": {
"id": "..."
}
},
"message_count": 2,
"messages": [
{
"id": "msg_...",
"role": "user",
"text": "..."
}
]
}0: extraction succeeded2: URL fetch or local file read failed3: no OpenCode share data was found4: share data existed, but no visible transcript text was extracted
Codex discovers skills under .codex/skills. Other tools may scan different
directories. If you want the same skill available elsewhere, copy or symlink
this folder into that tool's skills directory, such as .opencode/skills or
.claude/skills.
Only analyze share links you are allowed to access. The parser reads public data exposed by the OpenCode share page or a local HTML file you provide. It does not authenticate, bypass access controls, or recover data that is not present in the shared page.
MIT