cli-and-formats
Route Docling CLI work, construct safe local conversion commands, and choose supported input/output formats and image modes.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-and-formats
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route Docling CLI work, construct safe local conversion commands, and choose supported input/output formats and image modes.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md6.3 KB
- 参考文档references/format-guide.md5.2 KB
- 参考文档references/troubleshooting.md5.7 KB
- 脚本scripts/build_docling_command.py7.3 KB
03 SKILL.md 正文
Docling CLI and Formats
Use this sub-skill when an agent needs to run or explain Docling's local CLI (docling), select --from / --to formats, process local files, URLs, or directories, control CLI output files, or reason about image export and HTML/EPUB image fetching.
Do not use this sub-skill for:
- Python
DocumentConverter/convert_stringcode; use the conversion sub-skill. docling convert-remote,DoclingServiceClient, or service URL/API key setup; use the remote-service-client sub-skill.- Pipeline internals, backend tuning, or model-option construction beyond CLI flag routing; use pipeline-configuration/advanced-pipelines.
Quick Routing
- Prefer
docling SOURCEfor simple local conversion to Markdown in the current directory. - Use repeated
--toflags for multiple outputs, for example--to md --to json. - Use repeated
--fromflags to restrict accepted input formats and to filter directory walks, for example--from pdf --from docx. - Use
--output DIRwhenever the command should not write files into the current working directory. - Use
--image-export-mode referencedfor Markdown/HTML/JSON/YAML outputs when outputs should reference exported image files instead of embedding base64. - Add
--html-image-fetch localfor trusted local HTML/EPUB assets; useremoteorallonly when remote image fetching is intended and safe.
References
references/cli-reference.md: command anatomy, common recipes, output behavior, anddocling-toolsmodel-download awareness.references/format-guide.md: supported input/output format names, output suffixes, and--from/--toselection rules.references/troubleshooting.md: CLI dependency, image, directory, output, ASR/VLM, and WebVTT troubleshooting.scripts/build_docling_command.py: prints a shell-safedoclingcommand from structured arguments.
Command Builder
Use the bundled script to construct command lines without hand-quoting mistakes:
python scripts/build_docling_command.py SOURCE --output out --to md --to json --from pdf --from docx --image-export-mode referenced
The script prints only the command; it does not execute Docling. Pass --help for all supported builder options.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).