aiskillstore/marketplace/csctf
Claude Code and agent skill by aiskillstore/marketplace
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Author "aiskillstore" has blocked skill(s)
Chat Shared Conversation To File - Convert ChatGPT, Gemini, Grok, and Claude share links to clean Markdown + HTML transcripts. Preserves code fences with language detection, deterministic filenames, GitHub Pages publishing. Bun-native CLI.
Install
npx vskill@latest install aiskillstore/marketplace/csctfSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aiskillstore/marketplace/csctf.
CSCTF — Chat Shared Conversation To File
A Bun-native CLI that turns public ChatGPT, Gemini, Grok, and Claude share links into clean Markdown + HTML transcripts with preserved code fences, stable filenames, and optional GitHub Pages publishing.
Why This Exists
Copy/pasting AI share links often:
- Breaks fenced code blocks — loses formatting and structure
- Loses language hints — no syntax highlighting
- Produces messy filenames — random or unreadable names
- Requires manual cleanup — inconsistent formatting
CSCTF fixes this with:
- Stable slugs — deterministic, collision-proof filenames
- Language-preserving fences — code blocks retain syntax hints
- Normalized whitespace — clean, consistent output
- Static HTML twin — no JS, ready for hosting/archiving
- One-command GitHub Pages — instant shareable microsite
Quick Start
Output:
<conversation_title>.md— Clean Markdown with preserved code fences<conversation_title>.html— Styled static HTML (zero JavaScript)
Supported Providers
| Provider | URL Pattern | Method | Notes | |
|---|---|---|---|---|
| ChatGPT | chatgpt.com/share/* | Headless Chromium | Public shares only | |
| Gemini | gemini.google.com/share/* | Headless Chromium | Public shares only | |
| Grok | grok.com/share/* | Headless Chromium | Public shares only | |
| Claude | claude.ai/share/* | Your Chrome session | Requires login |
Claude.ai Special Handling
Claude.ai uses Cloudflare protection that blocks standard browser automation. CSCTF handles this automatically:
- Copies your Chrome session cookies to a temporary profile
- Launches Chrome with remote debugging enabled
- Connects via Chrome DevTools Protocol to extract conversation
- If Chrome is running, offers to save tabs, restart, and restore afterward
Requirements: Chrome installed + logged into claude.ai in your regular Chrome session.
Design Principles
| Principle | Implementation | |
|---|---|---|
| Determinism | Explicit slugging and collision handling | |
| Minimal network | Only share URL fetched (update checks/publish opt-in) | |
| Safety | Static HTML (inline CSS/HLJS), no scripts emitted | |
| Clarity | Colorized step-based logging, confirmation gates | |
| Atomicity | Temp+rename writes prevent partial files |
How It Works
ChatGPT, Gemini, Grok (End-to-End)
Claude.ai
Processing Algorithms
Selector Strategy
Provider-specific selectors with fallback chains:
- ChatGPT:
article [data-message-author-role] - Gemini: Custom web components (
share-turn-viewer,response-container) - Grok: Flexible
data-testidpatterns - Claude:
[data-testid="user-message"]and streaming indicators
Each has multiple fallbacks tried with short timeouts.
Turndown Customization
- Injects fenced code blocks
- Detects language via
class="language-*" - Strips citation pills and
data-start/data-endattributes
Normalization
- Converts newlines to
\n - Removes Unicode LS/PS characters
- Collapses excessive blank lines
Slugging Algorithm
HTML Rendering
- Markdown-it + highlight.js
- Heading slug de-dupe for TOC
- Inline CSS for light/dark/print
- Zero JavaScript
Command Reference
Output Options
| Flag | Default | Description | |
|---|---|---|---|
--outfile <path> | auto | Override output path | |
--no-html / --md-only | off | Skip HTML output | |
--html-only | off | Skip Markdown output | |
--quiet | off | Minimal logging | |
--timeout-ms <ms> | 60000 | Navigation + selector timeout |
GitHub Pages Publishing
| Flag | Default | Description | |
|---|---|---|---|
--publish-to-gh-pages | off | Publish to GitHub Pages | |
--gh-pages-repo <owner/name> | my_shared_conversations | Target repo | |
--gh-pages-branch <branch> | gh-pages | Target branch | |
--gh-pages-dir <dir> | csctf | Subdirectory in repo | |
--remember | off | Save GH settings | |
--forget-gh-pages | off | Clear saved settings | |
--dry-run | off | Simulate publish (build index, no push) | |
--yes / --no-confirm | off | Skip PROCEED confirmation prompt | |
--gh-install | off | Auto-install gh CLI |
Other
| Flag | Description | |
|---|---|---|
--check-updates | Print latest release tag | |
--version | Print version and exit |
Output Format
Markdown Structure
Sort in place
my_list.sort()
Return new sorted list
sorted_list = sorted(my_list)
HTML Features
- Standalone — No external dependencies
- Zero JavaScript — Safe for any hosting
- Inline CSS — Light/dark mode via
prefers-color-scheme - Syntax highlighting — highlight.js themes inline
- Table of contents — Auto-generated from headings
- Language badges — Code block language indicators
- Print-friendly — Optimized print styles
Filename Generation
Rules:
- Lowercase
- Non-alphanumerics →
_ - Trimmed leading/trailing
_ - Max 120 characters
- Windows reserved names suffixed
- Collisions:
_2,_3, ...
GitHub Pages Publishing
Quick Recipe
Remembered Settings
Custom Configuration
Requirements
- GitHub CLI (
gh) installed and authenticated - Verify with:
gh auth status
Publish Flow
- Resolve repo/branch/dir (use remembered or defaults)
- Clone (or create via
gh) - Copy MD + HTML files
- Regenerate
manifest.jsonandindex.html - Commit + push
- Print viewer URL
Recipes
Quiet CI Scrape (MD only)
HTML-only for Embedding
Slow/Large Conversations
Custom Browser Cache
Batch Archive
Security & Privacy
Network Behavior
- Only fetches: The share URL itself
- Opt-in: Update checks, GitHub publish flows
- Auth: GitHub CLI (
gh) for publishing—no tokens stored
HTML Safety
- Zero JavaScript in output
- Inline styles only
- Citation pills and data attributes stripped
- highlight.js used statically
Filesystem
- Temp+rename write pattern (atomic)
- Collision-proof naming
- Config:
~/.config/csctf/config.json
Claude.ai Cookies
- Copied to temporary directory only
- Used for single scraping session
- Original Chrome profile never modified
Performance
| Phase | Time | |
|---|---|---|
| First run (Chromium download) | 30-60s | |
| Subsequent runs | 5-15s | |
| Claude.ai (uses local Chrome) | 5-10s |
Characteristics
- Playwright browsers cached after first run
- 60s default timeout, 3-attempt backoff
- Single page/context, linear processing
- Atomic writes prevent partial outputs
Failure Modes & Remedies
| Symptom | Fix | |
|---|---|---|
| "No messages found" | Link is private or layout changed; verify public share, retry with --timeout-ms 90000 | |
| Bot detection / challenge page | Stealth techniques used; retry or verify link in browser | |
| Timeout or blank page | Raise --timeout-ms, verify connectivity | |
| Publish fails (auth) | Ensure gh auth status passes | |
| Publish fails (branch/dir) | Pass --gh-pages-branch / --gh-pages-dir; use --remember | |
| Filename collisions | Expected; tool appends _2, _3, ... | |
| Claude.ai Cloudflare challenge | Complete verification in Chrome window, press Enter | |
| Claude.ai won't load | Ensure logged into claude.ai in Chrome; close Chrome if prompted |
Environment Variables
Runtime
| Variable | Description | |
|---|---|---|
PLAYWRIGHT_BROWSERS_PATH | Reuse cached Chromium bundle |
Installer
| Variable | Description | Default | |
|---|---|---|---|
VERSION | Pin release tag | latest | |
DEST | Install directory | ~/.local/bin | |
CHECKSUM_URL | Override checksum location | — |
File Locations
| Path | Purpose | |
|---|---|---|
~/.local/bin/csctf | Binary | |
~/.config/csctf/config.json | GitHub Pages settings | |
~/.cache/ms-playwright/ | Playwright Chromium cache |
Installation
From Source
Comparison
| Feature | Copy/Paste | csctf | |
|---|---|---|---|
| Code blocks preserved | Often broken | Always preserved | |
| Language hints | Lost | Detected and kept | |
| Filenames | Random/messy | Deterministic slugs | |
| HTML output | None | Styled, no-JS twin | |
| GitHub Pages | Manual | One command | |
| Collision handling | Overwrite | Auto-suffix |
Limitations
- Requires public share links (except Claude.ai which uses your session)
- Provider layouts may change (selectors maintained with fallbacks)
- Markdown/HTML exports require share to be available at scrape time
- Claude.ai requires Chrome installed with active login session
- First run downloads Playwright Chromium (~200MB)
Integration with Flywheel
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dicklesworthstone/csctf/SKILL.md
Popularity
- Repository stars
- 429
- Repository forks
- 45
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aiskillstore/marketplace/csctf)