返回 Skill 列表
extension
分类: 开发与工程无需 API Key

chatgpt-share-markdown

将公共的ChatGPT分享链接转换为干净的Markdown格式的文字记录,以便于代理使用上下文。当用户提供一个https://chatgpt.com/share/... URL并希望对话被总结、存档或重新用作输入上下文时,请使用此功能。

person作者: jakexiaohubgithub

Chatgpt Share Markdown

Convert shared ChatGPT conversations into role-labeled Markdown using ./scripts/chatgpt-share-markdown.cs.

dotnet run --file ./scripts/chatgpt-share-markdown.cs -- "https://chatgpt.com/share/<id>"

Workflow

  1. Run the script with a public chatgpt.com/share/... URL.
  2. Inspect the generated Markdown for media placeholders and formatting.
  3. Use the Markdown directly as context, or trim it to only the relevant turns.

Commands

Export to stdout:

dotnet run --file ./scripts/chatgpt-share-markdown.cs -- "https://chatgpt.com/share/<id>"

Export to a file:

dotnet run --file ./scripts/chatgpt-share-markdown.cs -- "https://chatgpt.com/share/<id>" --output "/tmp/chat-context.md"

Output

  • Conversation title as H1
  • Metadata block with source URL and optional update timestamp/model
  • One section per turn: ## User and ## Assistant by default (## Tool optional)
  • Markdown-friendly content with fenced code blocks and basic multimodal placeholders
  • Internal tool-action payloads and reasoning recaps are omitted by default to keep context clean

Optional flags:

--include-tool-turns --include-internal-actions --include-reasoning

Troubleshooting

  • If the URL is not a public share link, request https://chatgpt.com/share/....
  • If parsing fails, rerun once; share page payload shape can change.
  • If output looks incomplete, keep the parser output and supplement manually only for missing turns.