Skip to content

22 共享脚本速查 (v0.8)

全部位于 ~/.claude/skills/ecc-shared/scripts/

飞书 Bitable 系列

脚本 用途 关键 args
bitable_sync.py CSV → 飞书 (增量/全量) --csv <path> --table <name>
auto_create_10_tables.py 一键建主 base 10 表 --base-token <token>
spawn_new_base.py 新甲方专属 base --customer <name> --project-id <id>
push_knowledge_to_bitable.py 8 表填合成数据 --domain <domain>
skeleton_to_bitable.py 1750 骨架 → v06_知识教案骨架 表 --root ~/Downloads
skeleton_progress_scan.py 1750 进度+状态 push --scan-only / --remind
build_lark_doc.py 11 SOP 拼 master 文档 (无 args)
upload_lark_doc.py MD → 飞书云文档 --file <path>

IM / 通知

脚本 用途
send_im.py 飞书 IM 推送 (P0 群)
auto_post_push_hook.py PostToolUse 自动 push hook

检索 / 知识

脚本 用途 关键 args
lesson_indexer_v2.py SBERT 语义检索 (MiniLM/BGE-M3/BGE-base-zh) --rebuild / --query <q> --model bge-m3
lesson_lookup_hook.py 立项联想 (旧) --query <q>
knowledge_skeleton_generator.py 6 领域 1750 骨架生成 --all-domains / --domain <d> --count 50

评测 / Lint

脚本 用途
dockerfile_lint_v2.py 11 规则 Dockerfile lint (基础)
dockerfile_lint_v3.py 真接 hadolint, 80+ 规则 (v2 fallback)
swe_bench_runner.py SWE-bench 评测 (等 GPU)
audit_3skill.py 3 skill 5P0 汇总

Hook 工具 (v0.8 新增)

脚本 用途
intent_detector.py 三类业务意图识别引擎
user_prompt_submit_hook.py Claude Code UserPromptSubmit hook 入口
test_intent_detector.py 16 pytest
test_hook_harness.py hook 端到端验证 (6 case, 6/6 PASS)

报告 / 工具

脚本 用途
pm_weekly_report.py 拉 Bitable → 周报
logging_utils.py Win GBK + 跨平台

BaseExtension

脚本 用途
base_extension_p0_button.js base 内 JS 扩展 (P0 按钮)