croc
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "croc" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-de4b3aceaffa128a4e181ba046af72385dd1b7930f2217e88f27c8e2b0951207. Verify the upstream source and version against https://skillhub.cn/skills/user_a10ab3ad/croc before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
End-to-end encrypted file transfer between any two computers, supporting resumable transfers, IPv6, and cross-platform operation.
Introduction source: third_party · user_a10ab3ad · 1.0.22 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- No special environmental requirements
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: croc
description: 任意两台电脑之间端到端加密传文件,支持断点续传、IPv6、跨平台
slug: croc
displayName: 跨设备安全传文件
version: 1.0.22
license: MIT
source_project: schollz/croc
source_url: https://github.com/schollz/croc
source_license_url: https://github.com/schollz/croc/blob/main/LICENSE
copyright_holder: schollz contributors
ai_generated: true
ai_tools:
- DeepSeek
disclaimer: 本Skill基于开源项目schollz/croc(MIT协议)进行AI增强封装与中文场景适配,使用本Skill即表示您同意遵守MIT许可证的全部条款。本Skill为AI辅助生成内容。
author: skill-factory-auto
agent_created: true
trigger_words:
- croc📜 用户协议(User Agreement)
- 本 Skill 仅供学习与参考用途。使用本 Skill 产生的任何结果,由使用者自行承担全部责任;本 Skill 不提供任何明示或暗示的保证。
- 涉及法律、财务、税务、投资、医疗等专业决策时,请务必咨询持证专业人士。
- 本代码受版权法保护,未经授权复制、反向工程或商业利用将被追究法律责任。 <!-- user-agreement-injected -->
⚠️ 本内容仅供一般信息参考,不构成法律、财务、税务、投资或医疗建议。 涉及合同签署、报税、投资、诊疗等专业决策时,请务必咨询持证专业人士,并由使用者自行承担决策后果。 <!-- professional-disclaimer-injected -->
跨设备安全传文件(croc)
任意两台电脑之间端到端加密传文件,支持断点续传、IPv6、跨平台。本 Skill 基于开源工具 croc 封装,提供从安装到自动化集成的完整指南。
📖 阅读导航(一页纸速查卡)
| 读者角色 | 推荐阅读路径 | 目标章节 |
|---|---|---|
| 新手(首次使用) | 快速开始 → 基础命令 → 常见问题 | 二、三、七 |
| 日常用户(频繁传输) | 能力边界 → 命令速查 → 异常处理 | 一、三、六 |
| 高级用户(自动化/安全) | 高级用法 → 安全机制 → 性能调优 | 四、五、八 |
| 开发者(集成/排障) | 错误码体系 → 架构原理 → 故障排查 | 六、九、十 |
一、能力边界(适用对象与场景速查)
1.1 核心能力(能做)
| 能力项 | 说明 | 适用场景 |
|---|---|---|
| 端到端加密传输 | 使用 PAKE(密码认证密钥交换)协议,发送方和接收方通过共享密码(code)协商会话密钥,全程加密 | 传输敏感文件、代码、文档 |
| 断点续传 | 传输中断后,重新执行相同命令可自动从断点继续,无需重新传输 | 大文件传输、网络不稳定环境 |
| 跨平台支持 | Windows / macOS / Linux / FreeBSD / OpenBSD,支持 32 位和 64 位 | 异构设备间传输 |
| 多类型传输 | 支持发送文件、目录、文本消息(croc send --text "hello") |
快速分享文本、批量传输目录 |
| 自定义中继 | 支持自建中继服务器(croc relay),解决公网中继不可达问题 |
内网隔离环境、国内网络优化 |
| 限速与代理 | 支持 --throttle 限速、--socks5 代理、--disable-local 禁用本地发现 |
带宽控制、企业网络环境 |
| 自动化集成 | 支持 --yes 自动接受、--code 指定密码、--out 指定输出目录,可脚本化 |
CI/CD 流程、批量分发 |
1.2 边界声明(不做)
| 边界项 | 说明 | 替代方案 |
|---|---|---|
| 不处理加密/损坏文件 | croc 仅负责传输,不提供文件加密、压缩、修复功能 | 使用 GPG、7-Zip 等工具预处理 |
| 不保证公网中继可用 | 默认中继 relay.croc.schollz.com 位于国外,国内访问可能受限 |
自建中继(见 4.3 节) |
| 不提供文件预览/内容校验 | croc 只做传输,不校验文件内容是否被篡改(仅校验传输完整性) | 传输后自行校验 SHA256 |
| 不适用于实时流媒体 | croc 是文件传输工具,不适合视频/音频实时流 | 使用 WebRTC、RTMP 等方案 |
| 不保证传输速度 | 实际速度受网络带宽、中继服务器负载、双方设备性能影响 | 使用 --throttle 限速或自建中继 |
适用对象表:本 Skill 适用于需要安全、跨平台、断点续传的文件传输场景。若需求为实时通信、文件编辑或内容转换,请使用其他专用工具。
二、触发方式(说大白话就能用)
2.1 触发词表(8类场景)
| 触发词 | 场景 | 触发动作 |
|---|---|---|
| croc | 通用场景 | 启动 croc 文件传输流程 |
| 传文件 | 通用场景 | 启动 croc 文件传输流程 |
| 发文件 | 发送场景 | 启动发送流程,引导输入文件路径 |
| 收文件 | 接收场景 | 启动接收流程,引导输入 code |
| 文件传输 | 通用场景 | 启动 croc 文件传输流程 |
| 跨设备传 | 跨设备场景 | 启动 croc 文件传输流程 |
| 加密传输 | 安全场景 | 启动 croc 并强调 PAKE 加密特性 |
| 断点续传 | 大文件场景 | 启动 croc 并说明断点续传能力 |
2.2 大白话触发示例(用户原话 → 触发动作)
| 用户可能会说 | 触发动作 | 对应命令 |
|---|---|---|
| "帮我传个文件给老王" | 启动发送流程,询问文件路径 | croc send <文件路径> |
| "用 croc 发文件" | 启动发送流程,询问文件路径 | croc send <文件路径> |
| "我这边要收个文件" | 启动接收流程,询问 code | croc <code> |
| "给我传文件" | 启动发送流程,询问文件路径 | croc send <文件路径> |
| "跨设备传个文件" | 启动发送流程,询问文件路径 | croc send <文件路径> |
| "加密传输一下" | 启动发送流程,强调 PAKE 加密 | croc send --pass <密码> <文件路径> |
| "大文件断了怎么办" | 说明断点续传机制,引导重试 | croc send <文件路径>(自动续传) |
| "用 croc 收一下" | 启动接收流程,询问 code | croc <code> |
触发词与命令对应关系:所有触发词均指向同一套核心流程(发送/接收),区别仅在于初始引导步骤。发送类触发词(发文件、传文件)直接进入发送流程;接收类触发词(收文件)进入接收流程;通用类触发词(croc、文件传输)先询问用户是发送还是接收。
三、标准流程(5分钟上手路径)
Step 1: 安装 croc
失败处理
- 输入不符合预期 → 返回错误说明与正确的输入格式示例
- 执行中异常 → 保留中间结果,报告失败原因与已处理进度
- 依赖缺失 → 给出安装命令并重试一次
前置条件
- 无特殊环境要求
输出
- 结构化文本结果,附处理说明
许可证(License)
MIT License
Copyright (c) 2026 schollz contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
<!-- professional-license-embedded -->
Current listing version
1.0.22
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供端到端加密、断点续传、跨平台文件传输能力,解决用户跨设备安全传文件的明确痛点
- 支持自建中继、限速、代理等企业级功能,适用场景广泛
Areas to improve
-
触发词不全 Reported severity: Minor
frontmatter 中仅列出 'croc' 一个触发词,但 body 内定义了 8 类场景触发词
Recommendation: 将全部 trigger_words 补充至 frontmatter 的 trigger_words 字段中,确保触发完整性
Highlights
- 触发词覆盖发送、接收、加密、断点续传等典型场景,边界清晰
Highlights
- 文档结构完整,含能力边界、触发方式、标准流程、高级用法等章节
- 提供端到端示例和出口条件,frontmatter 完整,符合规范
Areas to improve
-
异常处理覆盖不足 Reported severity: Minor
未提及网络超时、磁盘空间不足等常见失败场景的处理机制
Recommendation: 补充常见异常的处理建议,如磁盘空间检查、网络重连策略等
Highlights
- 工具来源明确(GitHub MIT 项目),参数说明清晰
- 覆盖断点续传、自建中继等关键异常场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 54
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
No special environmental requirements
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.