Token导航 LogoToken导航

Agent Skill · AI 工具

csctf(csctf 命令行)

csctf 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

csctf 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描有未通过项,按安装量在AI 工具类的 2,536 个 Skill 里排第 1,106。

总安装 1,129周安装 48GitHub Stars 63下载 396核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:csctf(csctf 命令行)
来源仓库:https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations
仓库路径:skills/csctf
安装命令:
npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill csctf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill csctf

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

用于处理GitHub仓库、Issue、Pull Request和代码协作信息,适合围绕仓库状态和变更事项进行整理。适用于代码审查、协作流程管理和项目状态跟踪等场景,需结合具体任务选择使用方式。通过GitHub安装,建议确认权限范围和仓库维护状态后再执行操作。

可能触发联网请求或文件读写,需评估安全风险并限制在可信环境使用。输出内容包含稳定文件名和格式化结构,保留原始代码块和语言标识。

来源仓库内路径:skills/csctf

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skil…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

csctf 怎么安装?

在终端执行 npx skills add https://github.com/dicklesworthstone/agent_flywheel_clawdbot_skills_and_int…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

csctf 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

csctf 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

csctf 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

csctf 用的人多吗?

公开数据是累计安装 1,129 次,近一周安装 48 次,下载 396 次,GitHub 63 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

csctf 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
csctf

csctf 命令行 · 本页

1,12963操作浏览器MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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

# Install
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/chat_shared_conversation_to_file/main/install.sh | bash

# Convert any share link
csctf https://chatgpt.com/share/69343092-91ac-800b-996c-7552461b9b70
csctf https://gemini.google.com/share/66d944b0e6b9
csctf https://grok.com/share/bGVnYWN5_d5329c61-f497-40b7-9472-c555fa71af9c
csctf https://claude.ai/share/549c846d-f6c8-411c-9039-a9a14db376cf

Output:

  • <conversation_title>.md — Clean Markdown with preserved code fences
  • <conversation_title>.html — Styled static HTML (zero JavaScript)

Supported Providers

ProviderURL PatternMethodNotes
ChatGPTchatgpt.com/share/*Headless ChromiumPublic shares only
Geminigemini.google.com/share/*Headless ChromiumPublic shares only
Grokgrok.com/share/*Headless ChromiumPublic shares only
Claudeclaude.ai/share/*Your Chrome sessionRequires login

Claude.ai Special Handling

Claude.ai uses Cloudflare protection that blocks standard browser automation. CSCTF handles this automatically:

  1. Copies your Chrome session cookies to a temporary profile
  2. Launches Chrome with remote debugging enabled
  3. Connects via Chrome DevTools Protocol to extract conversation
  4. 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

PrincipleImplementation
DeterminismExplicit slugging and collision handling
Minimal networkOnly share URL fetched (update checks/publish opt-in)
SafetyStatic HTML (inline CSS/HLJS), no scripts emitted
ClarityColorized step-based logging, confirmation gates
AtomicityTemp+rename writes prevent partial files

How It Works

ChatGPT, Gemini, Grok (End-to-End)

1. Launch headless Playwright Chromium with stealth config
   (spoofed navigator properties, realistic headers)
2. Navigate twice (domcontentloaded → networkidle) for late-loading assets
3. Detect provider from URL hostname
4. Wait for provider-specific selectors with retry/fallback
5. Extract each role's inner HTML (assistant/user), traverse Shadow DOM
6. Clean pills/metadata, run Turndown with fenced-code rule
7. Normalize whitespace and newlines
8. Write Markdown to temp file, rename atomically
9. Render HTML twin with inline CSS/TOC/HLJS

Claude.ai

1. Copy Chrome session cookies to temporary profile
2. Launch Chrome with remote debugging
3. Connect via Chrome DevTools Protocol
4. Extract conversation HTML
5. Process through same Turndown/normalization pipeline
6. Clean up temporary profile

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-testid patterns
  • 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-end attributes

Normalization

  • Converts newlines to \n
  • Removes Unicode LS/PS characters
  • Collapses excessive blank lines

Slugging Algorithm

Title → lowercase → non-alphanumerics → "_" → trim → max 120 chars
       → Windows reserved-name suffix → collision suffix (_2, _3, ...)

HTML Rendering

  • Markdown-it + highlight.js
  • Heading slug de-dupe for TOC
  • Inline CSS for light/dark/print
  • Zero JavaScript

Command Reference

csctf <share-url> [options]

Output Options

FlagDefaultDescription
--outfile <path>autoOverride output path
--no-html / --md-onlyoffSkip HTML output
--html-onlyoffSkip Markdown output
--quietoffMinimal logging
--timeout-ms <ms>60000Navigation + selector timeout

GitHub Pages Publishing

FlagDefaultDescription
--publish-to-gh-pagesoffPublish to GitHub Pages
--gh-pages-repo <owner/name>my_shared_conversationsTarget repo
--gh-pages-branch <branch>gh-pagesTarget branch
--gh-pages-dir <dir>csctfSubdirectory in repo
--rememberoffSave GH settings
--forget-gh-pagesoffClear saved settings
--dry-runoffSimulate publish (build index, no push)
--yes / --no-confirmoffSkip PROCEED confirmation prompt
--gh-installoffAuto-install gh CLI

Other

FlagDescription
--check-updatesPrint latest release tag
--versionPrint version and exit

Output Format

Markdown Structure

# Conversation: <Title>

**Source:** https://chatgpt.com/share/...
**Retrieved:** 2026-01-08T15:30:00Z

## User

How do I sort an array in Python?

## Assistant

Here's how to sort an array in Python:

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


"How to Build a REST API" → how_to_build_a_rest_api.md "Python Tips & Tricks!" → python_tips_tricks.md "File exists already" → file_exists_already_2.md

Rules:

  • Lowercase
  • Non-alphanumerics → _
  • Trimmed leading/trailing _
  • Max 120 characters
  • Windows reserved names suffixed
  • Collisions: _2, _3, ...

GitHub Pages Publishing

Quick Recipe

# Publish with defaults
csctf <url> --publish-to-gh-pages --yes

# Creates: <gh-username>/my_shared_conversations repo
# Branch: gh-pages
# Directory: csctf/

Remembered Settings

# First time: save settings
csctf <url> --publish-to-gh-pages --remember --yes

# Subsequent: just use --yes
csctf <url> --yes

# Clear remembered settings
csctf --forget-gh-pages

Custom Configuration

csctf <url> --publish-to-gh-pages \
  --gh-pages-repo myuser/my-chats \
  --gh-pages-branch main \
  --gh-pages-dir exports \
  --yes

Requirements

  • GitHub CLI (gh) installed and authenticated
  • Verify with: gh auth status

Publish Flow

  1. Resolve repo/branch/dir (use remembered or defaults)
  2. Clone (or create via gh)
  3. Copy MD + HTML files
  4. Regenerate manifest.json and index.html
  5. Commit + push
  6. Print viewer URL

Recipes

Quiet CI Scrape (MD only)

csctf <url> --md-only --quiet --outfile /tmp/chat.md

HTML-only for Embedding

csctf <url> --html-only --outfile site/chat.html

Slow/Large Conversations

csctf <url> --timeout-ms 90000

Custom Browser Cache

PLAYWRIGHT_BROWSERS_PATH=/opt/ms-playwright csctf <url>

Batch Archive

for url in $URLS; do
  csctf "$url" --outfile ~/archive/ --quiet
done

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

PhaseTime
First run (Chromium download)30-60s
Subsequent runs5-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

SymptomFix
"No messages found"Link is private or layout changed; verify public share, retry with --timeout-ms 90000
Bot detection / challenge pageStealth techniques used; retry or verify link in browser
Timeout or blank pageRaise --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 collisionsExpected; tool appends _2, _3,...
Claude.ai Cloudflare challengeComplete verification in Chrome window, press Enter
Claude.ai won't loadEnsure logged into claude.ai in Chrome; close Chrome if prompted

Environment Variables

Runtime

VariableDescription
PLAYWRIGHT_BROWSERS_PATHReuse cached Chromium bundle

Installer

VariableDescriptionDefault
VERSIONPin release taglatest
DESTInstall directory~/.local/bin
CHECKSUM_URLOverride checksum location—

File Locations

PathPurpose
~/.local/bin/csctfBinary
~/.config/csctf/config.jsonGitHub Pages settings
~/.cache/ms-playwright/Playwright Chromium cache

Installation

# One-liner (recommended)
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/chat_shared_conversation_to_file/main/install.sh | bash

# Pin version
VERSION=v1.0.0 curl -fsSL .../install.sh | bash

# Custom directory
DEST=/opt/bin curl -fsSL .../install.sh | bash

# Verify checksum
curl -fsSL .../install.sh | bash -s -- --verify

From Source

bun install
bun run build
# Binary at dist/csctf

Comparison

FeatureCopy/Pastecsctf
Code blocks preservedOften brokenAlways preserved
Language hintsLostDetected and kept
FilenamesRandom/messyDeterministic slugs
HTML outputNoneStyled, no-JS twin
GitHub PagesManualOne command
Collision handlingOverwriteAuto-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

ToolIntegration
CASSArchive conversations for session search
CMExtract procedural memory from exported chats
Agent MailAttach conversation exports to agent messages
NTMExport multi-agent session transcripts

平台分布

Claude Code

29.85%
按下载量换算118

Gemini CLI

20.37%
按下载量换算81

Antigravity

17.8%
按下载量换算70

OpenCode

10.87%
按下载量换算43

Codex

7.26%
按下载量换算29

trae

3.13%
按下载量换算12

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills