Sms
coreyhaines31/marketingskills
When the user wants to plan, build, or optimize SMS, MMS, or WhatsApp marketing — including welcome flows, abandoned cart texts, post-purchase, win-back, promotional sends, or transactional/auth SMS.
本技能应在用户收到法院短信(文书送达、立案通知、开庭提醒等)时使用,自动提取案号、当事人、下载链接,下载文书并归档到对应案件目录。会落盘敏感诉讼数据到本地,请确认目标位置私密。
$ npx skills add cat-xierluo/legal-skills --skill court-sms -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cat-xierluo/legal-skills court-sms --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/court-sms .claude/skills/court-sms && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "court-sms" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/court-sms into .claude/skills/court-sms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "court-sms", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cat-xierluo/legal-skills/tree/main/skills/court-smsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cat-xierluo/legal-skills --skill court-sms -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cat-xierluo/legal-skills court-sms --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/court-sms .agents/skills/court-sms && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "court-sms" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/court-sms into .agents/skills/court-sms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "court-sms", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill court-sms -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cat-xierluo/legal-skills court-sms --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/court-sms .cursor/skills/court-sms && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "court-sms" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/court-sms into .cursor/skills/court-sms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "court-sms", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cat-xierluo/legal-skills.git --path skills/court-sms--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cat-xierluo/legal-skills --skill court-sms -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cat-xierluo/legal-skills court-sms --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/court-sms .gemini/skills/court-sms && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "court-sms" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/court-sms into .gemini/skills/court-sms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "court-sms", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cat-xierluo/legal-skills court-smsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cat-xierluo/legal-skills --skill court-sms -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/court-sms .github/skills/court-sms && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "court-sms" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/court-sms into .github/skills/court-sms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "court-sms", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill court-sms -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cat-xierluo/legal-skills court-sms --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/court-sms .opencode/skills/court-sms && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "court-sms" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/court-sms into .opencode/skills/court-sms/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "court-sms", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
court-sms本技能应在用户收到法院短信(文书送达、立案通知、开庭提醒等)时使用,自动提取案号、当事人、下载链接,下载文书并归档到对应案件目录。会落盘敏感诉讼数据到本地,请确认目标位置私密。
Court Sms is an agent skill from cat-xierluo/legal-skills. 本技能应在用户收到法院短信(文书送达、立案通知、开庭提醒等)时使用,自动提取案号、当事人、下载链接,下载文书并归档到对应案件目录。会落盘敏感诉讼数据到本地,请确认目标位置私密。
Its SKILL.md is about 3.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts and reference files (for example `CHANGELOG.md`, `config/user-preferences.example.json` and `references/ATTRIBUTION.md`).
The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
curlpython3npxjqnpmnodebrewFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
zxfw.court.gov.cndzsd.hbfy.gov.cnsfpt.cdfy12368.gov.cnFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Court Sms loads about 3.6k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 25 tokens; SKILL.md has 594 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cat-xierluo/legal-skills at commit db2c58c, republished under its MIT licence (© cat-xierluo). 594 words, ~3,616 tokens.
.claude/skills/court-sms/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.本技能处理的是法院诉讼文书与送达短信,内容含案号、当事人、法院信息、送达时间等敏感诉讼数据,部分还可能涉及客户机密与个人隐私。使用即表示你授权本技能按以下方式处理:
archive/),请确认目标位置仅你本人可访问,且勿提交到公开仓库或同步到第三方服务。处理法院短信的完整流程:粘贴短信 → 解析内容 → 匹配案件 → 下载文书 → 归档保存。
支持两种触发方式:
方式一:粘贴短信原文
收到法院短信,内容如下:
【xx市人民法院】张三,您好!您有(2025)苏0981民初1234号案件文书送达,请点击链接查收:https://zxfw.court.gov.cn/zxfw/#/pagesAjkj/app/wssd/index?qdbh=DEMO1&sdbh=DEMO2&sdsin=DEMO3方式二:直接发送送达链接
用户可能直接粘贴送达链接(非完整短信文本),此时跳过短信文本解析,直接从 URL 中提取 qdbh、sdbh、sdsin 参数,进入第三步下载流程。
https://zxfw.court.gov.cn/zxfw/#/pagesAjkj/app/wssd/index?qdbh=xxx&sdbh=xxx&sdsin=xxx| 类型 | 特征 | 含下载链接 | 处理方式 |
|---|---|---|---|
| 文书送达 | 含送达平台链接 + 案号 | 是 | 下载文书并归档到案件目录 |
| 立案通知 | 含"已立案"等关键词 | 可能有 | 展示解析结果 |
| 信息通知 | 无链接,纯信息 | 否 | 展示解析结果 |
支持的送达平台:zxfw.court.gov.cn(全国)、sd.gdems.com(广东)、jysd.10102368.com(集约送达)、dzsd.hbfy.gov.cn(湖北)、sfpt.cdfy12368.gov.cn(司法送达网)。同一平台可能使用不同域名(同构异域名),通过 URL 路径特征识别平台。详见 references/sms-patterns.json。
references/sms-patterns.json 作为解析参考【xx法院】)+ 正文 + 链接 → 完整解析流程https://zxfw.court.gov.cn/...?qdbh=xxx&sdbh=xxx&sdsin=xxx)→ 跳过短信文本解析,直接从 URL 提取参数,进入第三步下载。案号、当事人等信息在下载文书后从文书内容中提取。a) 短信分类:根据关键词判断类型
b) 案号提取:使用正则 [((〔[]\d{4}[))〕]] 匹配标准案号格式
标准案号格式示例:
(2025)苏0981民初1234号(2024)粤0604执保5678号〔2025〕京0105民初901号c) 当事人提取:从短信文本初步识别,最终以文书内容为准
xx有限责任公司、xx有限公司、xx股份有限公司A与B、A诉B、原告A 被告B原告:xxx、被告:xxx 等d) 下载链接提取:识别短信中的送达平台链接并提取参数
| 平台 | 域名 | 下载方式 | 提取参数 |
|---|---|---|---|
| 全国法院统一送达平台 | zxfw.court.gov.cn | curl API 直连 | qdbh, sdbh, sdsin |
| 广东法院电子送达 | sd.gdems.com | 浏览器自动化 | 路径中的送达标识码 |
| 集约送达平台 | jysd.10102368.com | 浏览器自动化 | key |
| 湖北电子送达 | dzsd.hbfy.gov.cn | HTTP API(免账号)/ 浏览器自动化(账号模式) | 免账号:msg;账号模式:账号+密码从正文提取 |
| 司法送达网 | sfpt.cdfy12368.gov.cn | 纯 Playwright(无 API) | 验证码(手机尾号后6位 / 短信验证码) |
e) 送达证据核对(P0):读取 送达与期限规则,区分发送、收到、生成和法律上的送达。
getWsListBySdbhNew 在已测响应中不含 dt_cjsj,不得臆造该字段;即使其他接口有创建时间,也不能自动当送达时间。python3 scripts/check_service_evidence.py /private/path/service-evidence.json;仅输出 confirmed 时进入期限规则核对。检查器只检查结构和一致性,不替代原始证据核验。service.served_on=null,展示“送达时间待确认”及缺口,继续下载与归档;不得输出确定期限或倒计时。f) 下载期避免 python heredoc:优先写临时 .py 文件或改用 execute_code,避免 python3 <<'PY' 写法——它命中危险命令规则(pattern key script execution via heredoc),逐次触发审批弹窗。python3 -c(key script execution via -e/-c flag)同理。
排除列表:法院名称、法官姓名、地名、法律术语等不应作为当事人提取。详见
sms-patterns.json→party_extraction.exclude_keywords。
输出格式(向用户展示):
📋 短信解析结果:
- 类型:文书送达
- 案号:(2025)苏0981民初1234号
- 当事人:张三、xx有限公司
- 下载链接:已提取(zxfw.court.gov.cn)08*、法院送达、court 等){案号} {当事人与案由}/,不询问用户平台判断:根据第一步识别的链接域名,选择下载策略。
zxfw.court.gov.cn→ 方案一(API 直连)→ 方案二 → 方案三sd.gdems.com或jysd.10102368.com→ 跳过方案一,直接方案二 → 方案三dzsd.hbfy.gov.cn→ 湖北专属流程(见下方)sfpt.cdfy12368.gov.cn(含广西实例171.106.48.55:28083)→ SFDW 专属流程(见下方)- 未知域名但 URL 路径匹配已知平台特征 → 按路径识别平台(同构异域名支持)
- 完全无法识别 → 提示用户提供链接信息
⛔ 降级铁律:严格串行,禁止并行。当前方案成功即停止,绝不降级。禁止"双保险"并行尝试多个方案。
| 依赖 | 用途 | 适用方案 | 安装方式 |
|---|---|---|---|
| Python 3.8+ | 送达证据检查(标准库,无需 pip) | 期限核对前 | macOS/Linux 使用已有 python3;缺少时提示安装后重试期限核对 |
curl | API 下载 | 方案一 | macOS/Linux 预装 |
jq | JSON 解析(可选) | 方案一 | brew install jq |
| Playwright | 浏览器自动化 | 方案二/三 | 见下方 |
Playwright 安装指引(仅方案二/三需要):
# 方案二: Playwright CLI
npm install -g playwright
npx playwright install chromium
# 方案三: Playwright MCP(需在 Claude Code 设置中配置)
# 在 settings.json 的 mcpServers 中添加:
# "playwright": { "command": "npx", "args": ["@anthropic-ai/mcp-playwright"] }⛔ 大多数情况下不需要 Playwright:zxfw 平台方案一直接 curl 调用 API,无需浏览器。仅 gdems/jysd 平台或方案一失败后才需要方案二/三。禁止在方案一执行期间同时打开浏览器。
完全无头,无需浏览器。直接调用 zxfw 后端 API 获取文书下载链接,再用 curl 下载 PDF。
API 信息:
POST https://zxfw.court.gov.cn/yzw/yzw-zxfw-sdfw/api/v1/sdfw/getWsListBySdbhNewapplication/json{ "qdbh": "xxx", "sdbh": "xxx", "sdsin": "xxx" }(从短信 URL 提取)data[].c_wsmc(文书名称)、data[].wjlj(OSS 签名下载链接)、data[].c_fymc(法院名称)# 1. 从短信 URL 提取参数(示例)
qdbh="DEMO_qdbh_value"
sdbh="DEMO_sdbh_value"
sdsin="DEMO_sdsin_value"
# 2. 调用 API 获取文书列表
mkdir -p /tmp/court-sms-staging/
resp=$(curl -s -X POST "https://zxfw.court.gov.cn/yzw/yzw-zxfw-sdfw/api/v1/sdfw/getWsListBySdbhNew" \
-H "Content-Type: application/json" \
-d "{\"qdbh\":\"$qdbh\",\"sdbh\":\"$sdbh\",\"sdsin\":\"$sdsin\"}")
# 3. 解析文书列表,逐个下载 PDF
echo "$resp" | jq -r '.data[] | "\(.c_wsmc)\t\(.wjlj)"' | while IFS=$'\t' read -r name url; do
curl -sL -o "/tmp/court-sms-staging/${name}.pdf" "$url"
done
# 4. 验证下载结果
ls -lh /tmp/court-sms-staging/*.pdf当方案一 API 不可用或链接过期时,用 Playwright CLI 无头模式打开页面,拦截网络请求获取下载链接。
# 需要先安装 playwright
npx playwright install chromium 2>/dev/null
# 无头模式运行(脚本需自行编写,拦截 getWsListBySdbhNew API 响应)
node scripts/download_court_docs.mjs --url "{短信链接}" --output /tmp/court-sms-staging/当方案二不可用时(需要已配置 Playwright MCP):
1. browser_navigate → 打开短信中的 zxfw URL
2. 等待页面加载
3. browser_evaluate → 直接调用 fetch API 获取文书列表
4. browser_run_code → 下载 PDF 文件到 /tmp/court-sms-staging/如 API 调用未成功,改用页面交互:
1. browser_snapshot → 查看当前页面结构
2. 找到文书列表或 PDF 预览区域
3. 定位下载按钮(可能在 iframe 内)
4. browser_click → 点击下载
5. 等待下载完成,保存到临时目录dzsd.hbfy.gov.cn)湖北电子送达平台有两种链路,根据 URL 格式自动选择:
链路一:免账号模式(URL 含 /hb/msg=xxx)
msg 参数值msg="从URL提取的msg值"
mkdir -p /tmp/court-sms-staging/
# 查询文书信息
resp=$(curl -s -X POST "http://dzsd.hbfy.gov.cn/delimobile/tDeliSms/findSmsInfo?t=$(date +%s%3N)" \
-H "Content-Type: application/json" \
-H "Referer: http://dzsd.hbfy.gov.cn/deli-mobile-ui/" \
-d "{\"msg\":\"$msg\"}")
# 检查是否需要验证码(data.isNeedCaptcha == "Y")
# 如需验证码或无可下载文书,降级到 Playwright MCP
# 逐个下载文书
echo "$resp" | jq -r '.data.docList[] | "\(.docName)\t\(.downloadPath)"' | while IFS=$'\t' read -r name path; do
if [ -n "$path" ]; then
curl -sL -o "/tmp/court-sms-staging/${name}.pdf" "http://dzsd.hbfy.gov.cn/delimobile${path}"
fi
done链路二:账号模式(URL 含 /sfsddz)
账号\s*(\d{15,20})默认密码[::]\s*([0-9A-Za-z]+)提示:湖北平台两种模式都可能遇到验证码。免账号模式优先尝试 HTTP API,账号模式建议引导用户手动打开链接或使用 Playwright MCP。
sfpt.cdfy12368.gov.cn)司法送达网所有 POST 请求使用 TDHCryptoUtil 加密,无法通过 HTTP API 下载,只能使用纯 Playwright 流程。
广西实例:171.106.48.55:28083 域名下的链接路由到同一 SFDW 平台,下载流程相同。
验证码获取(两种方式,按优先级尝试):
验证码[::]\s*(\w{4,6})Playwright MCP 流程:
1. browser_navigate → 打开短信中的 SFDW 链接
2. 等待页面自动重定向到 pc.html?tdhParams=xxx
3. browser_snapshot → 查看验证码输入页面(input#checkCode)
4. 输入验证码(优先手机尾号后6位,其次短信验证码)
5. browser_evaluate → 调用 Vue app.checkYzm() 触发验证
6. 验证通过后 browser_evaluate → 获取 app.$data.wsList(文书列表)
7. 遍历 wsList,逐个调用 downloadFile(app, ws) 下载文书
8. 保存到 /tmp/court-sms-staging/提示:如手机尾号验证失败,提示用户查看短信中的验证码并手动输入。wsList 每项包含 wjmc(文件名)、wjgs(格式)。
当三级均失败时:
⚠️ 自动下载失败,请手动访问以下链接下载:
{原始链接}
下载后请将文件放到对应案件目录中。
我将为您创建待处理记录。确定目标目录:根据当前项目环境自动判断,不询问用户
08*、法院送达、court 等);如无子目录则直接归档到案件根目录{案号} {当事人与案由}/获取当前日期:date "+%Y%m%d"
确定文书标题:
sms-patterns.json 中的 document_titles 映射推断未知文书构建文件名:{title}({case_name})_{YYYYMMDD}收.pdf
受理通知书(张三与李四合同纠纷)_20260404收.pdf< > : " | ? * \ /_2 后缀移入目标目录
写入内部记录:保存本次处理的完整信息到 skill 内部的 archive/ 目录(即 .claude/skills/court-sms/archive/),不是案件文件夹。格式详见 references/archive-format.md
透明告知:
archive/会留存短信原文(sms_raw)、案号、当事人、法院编号、下载参数与 API 响应等敏感诉讼信息。该目录默认不纳入版本库(已加入.gitignore),请勿将其同步到公开仓库、第三方网盘或共享目录。
基础文书解析:法院 PDF 通常带文字层,提取首页文本,快速识别文书类型和关键信息
深度分析(如判决书解读、合同审查)不在此技能范围内,请使用专用分析技能处理。
上诉期限核对(P1):按 送达与期限规则 执行,不按标题直接计算
deadline_status=pending,appeal_deadline=null、appeal_days_remaining=null,报告明确待核验项。确认无该项上诉权时用 not_applicable。deadline_status=confirmed,附 deadline_basis 和对应 service 证据。多文书、多受送达人分别计算;历史 sent_at 不能直接迁移为已确认送达日期。向用户汇报:按 references/report-format.md 输出结构化报告
不默认启用。仅在检测到文件拆分时主动提示用户。
归档完成后,扫描目标目录中的 PDF 文件,检测是否有同一文书被拆分为多个文件的情况。
读取 config/user-preferences.json 获取用户的合并和重命名偏好。如文件不存在,使用默认值(参考 config/user-preferences.example.json)。
关键偏好项:
| 偏好 | 默认值 | 说明 |
|---|---|---|
merge_strategy | per_evidence | 合并策略:per_evidence(按编号分别合并)或 unified(统一合并) |
merge_options.unified.bookmarks.enabled | true | 统一合并时是否添加 PDF 书签 |
rename.enabled | true | 是否精简文件名 |
读取 references/sms-patterns.json → post_processing.trigger 配置,按以下规则分组:
分组规则:
1. 证据类:文件名以"证据"开头 → 按编号分组(证据1、证据2、证据3…)
2. 其他文书:按文书类型分组(传票、起诉状、应诉通知书…)
3. 如任一组内文件数 > 3(threshold),触发提示示例:证据3 下有 10 个 PDF → 触发。
使用 AskUserQuestion 提示用户,列出检测到的拆分情况:
检测到以下文书被拆分为多个 PDF:
- 证据3:10 个文件
- 证据5:4 个文件
是否执行 PDF 后处理(合并 + 重命名)?
→ 是,合并所有
→ 让我选择(逐个确认)
→ 跳过用户确认后,根据 user-preferences.json 中的 merge_strategy 执行:
策略一:per_evidence(默认)
按单个证据编号分别合并,每个证据独立保留:
- 证据3 有 10 个拆分文件 → 合并为「证据3:打印截图.pdf」
- 证据5 有 4 个拆分文件 → 合并为「证据5:电脑截图.pdf」
- 未被拆分的证据(如证据1 只有 1 个文件)保持不动策略二:unified
将证据目录 + 所有证据合并为一个「原告证据.pdf」,并添加 PDF 书签:
合并顺序:证据目录 → 证据1 → 证据2 → … → 证据N
书签格式:
📑 证据目录
📑 证据1:仲裁申请书、不予受理通知书
📑 证据2:劳动合同、保密协议
📑 证据3:被告工资表
📑 证据4:泄露账号密码的电脑截图
📑 证据5:打印及拷贝资料的电脑截图
📑 证据6:删除电脑操作痕迹的截图书签名称使用简洁版:证据编号 + 冒号 + 证据标题(去除当事人和日期后缀)。使用 pypdf 的 add_outline_item 添加书签。
用户可随时修改
user-preferences.json切换策略,无需改动 skill 本身。
合并过程中同时标准化页面尺寸为 A4(210×297mm)。使用 pypdf 逐页处理:
from pypdf import PdfReader, PdfWriter, Transformation
A4_W = 595.27 # 210mm in points
A4_H = 841.89 # 297mm in points
for page in reader.pages:
pw, ph = float(page.mediabox.width), float(page.mediabox.height)
is_landscape = pw > ph
# 保持原始方向:纵向→A4纵向,横向→A4横向
target_w = A4_H if is_landscape else A4_W
target_h = A4_W if is_landscape else A4_H
# 等比缩放并居中
scale = min(target_w / pw, target_h / ph)
offset_x = (target_w - pw * scale) / 2
offset_y = (target_h - ph * scale) / 2
new_page = writer.add_blank_page(width=target_w, height=target_h)
page.add_transformation(Transformation().scale(scale).translate(offset_x, offset_y))
new_page.merge_page(page)规则:
根据 user-preferences.json → rename 配置对所有文件统一重命名:
去除规则(strip_patterns):
- 去掉括号内的当事人信息:(张三与李四合同纠纷)
- 去掉日期后缀:_20260405收
- 去掉平台标记:(合并)、(自贸法庭)、(素)-
特殊映射(special_mappings):
- 起诉状(素)… → 起诉状(要素式).pdf
- 开庭传票 → 传票.pdf重命名示例:
| 原始 | 重命名后 |
|---|---|
传票(张三与李四合同纠纷)_20260405收.pdf | 传票.pdf |
起诉状(合并).pdf | 起诉状.pdf |
起诉状(素)-要素式起诉状(合并).pdf | 起诉状(要素式).pdf |
应诉通知书(自贸法庭).pdf | 应诉通知书.pdf |
E法桥平台使用告知书(xxx)_20260405收.pdf | E法桥平台使用告知书.pdf |
每次处理完成后在 archive/ 下创建 JSON 记录,格式详见 references/archive-format.md。
【xx市人民法院】张三,您好!您有(2025)苏0981民初1234号案件文书送达,
请点击链接查收:
https://zxfw.court.gov.cn/zxfw/#/pagesAjkj/app/wssd/index?qdbh=DEMO1&sdbh=DEMO2&sdsin=DEMO3
如非本人操作请联系法院。【xx市xx区人民法院】您好,您提交的立案材料已审核通过。
案号:(2025)京0105民初54321号
请及时缴纳诉讼费用。【xx市xx区人民法院】提醒:您有(2025)苏0508民初567号案件,
定于2025年3月15日上午9:30在第3法庭开庭,请准时到庭。【xx人民法院】您有案件文书待查收,请点击链接查收:
http://dzsd.hbfy.gov.cn/hb/msg=XXXXXXX
如有疑问请联系法院。【xx人民法院】您有(2025)鄂xxxx民初xxxx号案件文书送达。
账号 420xxxxxxxxxxxxx
默认密码:xxxxxx
请登录 http://dzsd.hbfy.gov.cn/sfsddz 查收。【xx人民法院】您有(2025)川xxxx民初xxxx号案件文书送达。
验证码:A1B2C3
请点击链接查收:https://sfpt.cdfy12368.gov.cn/sfsdw//r/xxxxxxxxxxxx| 问题 | 解决方案 |
|---|---|
| 短信无法识别类型 | 展示原文,请用户确认类型后继续 |
| 案号提取失败 | 手动输入案号 |
| 当事人识别不准 | 提示用户确认/修正当事人列表 |
| 无匹配案件 | 提供三个选项:选已有/新建/暂存 |
| Playwright 下载超时 | 检查网络连接,尝试刷新页面重试 |
| 页面需要验证码 | 通知用户,暂停等待手动处理 |
| 下载文件损坏 | 清理临时目录,重新尝试下载 |
| 目标目录不存在 | 自动创建对应目录 |
| SFDW 验证码验证失败 | 尝试手机尾号后6位和短信验证码两种方式,均失败时提示用户联系法院 |
无额外配置需求。解析规则参考 references/sms-patterns.json。
如需修改解析规则(添加新文书标题、调整正则等),编辑该 JSON 文件即可。
完整变更日志见 CHANGELOG.md。归属声明见 references/ATTRIBUTION.md。
© cat-xierluo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 11 other files (scripts, references) in skills/court-sms of cat-xierluo/legal-skills.
Open the folder on GitHubat commit db2c58c
Court Sms next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Court Sms this skillcat-xierluo/legal-skills | 720 | — | ~3.6k | Automated safety check: Pass | MIT | |
| Smscoreyhaines31/marketingskills | 54k | 1 repos | ~4.6k | Automated safety check: Pass | MIT | |
| Courtsickn33/agentic-awesome-skills | 47k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Sms Alert AutomationComposioHQ/awesome-claude-skills | 77k | 3 repos | ~738 | Automated safety check: Pass | None | |
| Internet Courtinternet-court/internet-court-skill | 6.6k | 1 repos | ~8.4k | Automated safety check: Pass | MIT | |
| Internet Courtdavila7/claude-code-templates | 33k | — | ~740 | Automated safety check: Pass | MIT |
coreyhaines31/marketingskills
When the user wants to plan, build, or optimize SMS, MMS, or WhatsApp marketing — including welcome flows, abandoned cart texts, post-purchase, win-back, promotional sends, or transactional/auth SMS.
sickn33/agentic-awesome-skills
Put an idea on trial: a prosecutor and a defense Claude argue, 12 juror sub-agents vote independently, and a judge reads the verdict and the changes that would flip it.
ComposioHQ/awesome-claude-skills
Automate SMS Alert tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.
internet-court/internet-court-skill
Entry point for Internet Court — the trust layer for agent-to-agent commerce.
davila7/claude-code-templates
The trust layer for agent-to-agent commerce — natural-language mandates, delegated permissions (ERC-7710), x402 payments, escrow, and dispute resolution as one open, catch-all skill.
steipete/agent-scripts
Twilio SMS CLI: buy/list/keep numbers, send/check messages, credential routing.
cat-xierluo/legal-skills
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
cat-xierluo/legal-skills
Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.
cat-xierluo/legal-skills
Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.
cat-xierluo/legal-skills
Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.
cat-xierluo/legal-skills
Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.
cat-xierluo/legal-skills
Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.
本技能应在用户收到法院短信(文书送达、立案通知、开庭提醒等)时使用,自动提取案号、当事人、下载链接,下载文书并归档到对应案件目录。会落盘敏感诉讼数据到本地,请确认目标位置私密。. Court Sms is an agent skill from cat-xierluo/legal-skills.
Run `npx skills add cat-xierluo/legal-skills --skill court-sms -a claude-code`. Or copy the skill folder (skills/court-sms in cat-xierluo/legal-skills) into .claude/skills/court-sms in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cat-xierluo/legal-skills --skill court-sms -a codex`. Or copy the skill folder (skills/court-sms in cat-xierluo/legal-skills) into .agents/skills/court-sms in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill court-sms -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/court-sms, .gemini/skills/court-sms, .github/skills/court-sms and .opencode/skills/court-sms in your project.
Going by SKILL.md and its folder, Court Sms needs Python for the scripts in its folder and the command-line tools its instructions call (curl, python3, npx, jq, npm and node). Our summary lists: Python 3; Node.js.
SKILL.md names 3 domains. In commands or code: zxfw.court.gov.cn, dzsd.hbfy.gov.cn and sfpt.cdfy12368.gov.cn; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Court Sms is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.6k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Court Sms: Sms (coreyhaines31/marketingskills, 54k stars), Court (sickn33/agentic-awesome-skills, 47k stars), Sms Alert Automation (ComposioHQ/awesome-claude-skills, 77k stars) and Internet Court (internet-court/internet-court-skill, 6.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.
Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.