基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/axfinn/devtools --skill paste命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | paste |
| description | 粘贴板 — 创建/查看代码片段分享,支持文件上传、分片上传、代码分析、安全扫描。触发:分享代码、粘贴代码、上传文件、分享文本、pastebin |
| triggers | ["粘贴板","分享代码","粘贴代码","上传文件","pastebin","paste"] |
通过 DevTools 后端 API 创建和分享代码片段、文件。后端默认运行在 https://t.jaxiu.cn。
curl -s -X POST https://t.jaxiu.cn/api/paste \
-H "Content-Type: application/json" \
-d '{
"content": "console.log(\"Hello World\")",
"title": "测试代码",
"language": "javascript",
"password": "optional_password",
"expires_in": 7,
"max_views": 100
}'
# 返回: {"id":"abc12345","url":"/paste/abc12345",...}
参数说明:
content: 必填,文本内容,最大 100KBtitle: 可选,标题language: 可选,代码语言标记password: 可选,访问密码 (SHA256 hash)expires_in: 可选,过期天数 (默认7天,最大7天)max_views: 可选,最大查看次数 (默认1000)# 无需密码
curl -s https://t.jaxiu.cn/api/paste/{id}
# 需要密码
curl -s "https://t.jaxiu.cn/api/paste/{id}?password=xxx"
# 查看信息(不消耗查看次数)
curl -s https://t.jaxiu.cn/api/paste/{id}/info
# 普通上传(最大55MB)
curl -X POST https://t.jaxiu.cn/api/paste/upload \
-F "file=@document.pdf" \
-F "title=项目文档"
# 返回: {"id":"xxx","url":"/api/paste/files/filename","filename":"..."}
# 初始化
curl -s -X POST https://t.jaxiu.cn/api/paste/chunk/init \
-H "Content-Type: application/json" \
-d '{"filename":"large_video.mp4","total_size":1073741824,"chunk_size":5242880}'
# 返回: {"file_id":"xxx"}
# 上传分片 (分片大小默认5MB)
curl -X POST "https://t.jaxiu.cn/api/paste/chunk/{file_id}" \
-F "chunk=@chunk_data" \
-F "index=0"
# 合并分片
curl -s -X POST "https://t.jaxiu.cn/api/paste/chunk/{file_id}/merge"
# 查看进度
curl -s "https://t.jaxiu.cn/api/paste/chunk/{file_id}/status"
# 访问上传的文件
curl -o downloaded.pdf https://t.jaxiu.cn/api/paste/files/{filename}
# 分析代码文本
curl -s -X POST https://t.jaxiu.cn/api/paste/analyze \
-H "Content-Type: application/json" \
-d '{
"content": "func main() {\n\tfmt.Println(\"hello\")\n}",
"language": "go"
}'
# 分析上传的文件
curl -s "https://t.jaxiu.cn/api/paste/analyze/{file_id}"
# 扫描内容
curl -s -X POST https://t.jaxiu.cn/api/paste/scan \
-H "Content-Type: application/json" \
-d '{"content":"..."}'
# 验证文件
curl -s "https://t.jaxiu.cn/api/paste/validate/{file_id}"
# 搜索粘贴
curl -s "https://t.jaxiu.cn/api/paste/search?q=关键词&language=go"
# 统计信息
curl -s "https://t.jaxiu.cn/api/paste/stats"
当用户说"把这个分享到粘贴板"或"分享这段代码"时,使用创建粘贴 API。 当用户说"上传这个文件分享"时,使用文件上传 API。
Base URL: https://t.jaxiu.cn