技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
layout-objects【数据与研究】Routes LayoutParser coordinate primitives, layout containers, shape operations, and layout-analysis helpers.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for geometry-heavy LayoutParser tasks: coordinate conversion, padding, containment, serialization, sorting, and lightweight line or category grouping.
Interval, Rectangle, Quadrilateral, TextBlock, and Layoutpad, shift, scale, crop_imageunion, intersect, is_in, condition_on, relative_toto_dict, from_dict, to_dataframe, get_homogeneous_blocksgeneralized_connected_component_analysis_1dsimple_line_detectiongroup_textblocks_based_on_categorylayout-iodraw_box / draw_text: use visualizationocrlp:// model catalogs or model inference: use layout-modelsreferences/guide.md for the class, operation overview, and troubleshooting notes../layout-io/SKILL.md when the task starts with files or PDFs../visualization/SKILL.md when the task ends with renderingInterval ↔ Rectangle ↔
Quadrilateral).Layout batch methods for page-wide transforms.TextBlock wrappers when the block also carries text or ids.strict=False when a
bounding-box approximation is acceptable.Use the bundled root smoke script when you only need to confirm the geometry layer and serialization basics:
python ../../scripts/smoke_layoutparser_core.py
InvalidShapeError: the chosen union/intersection is geometrically invalid.NotSupportedShapeError: the operation would create a polygonal result that
LayoutParser cannot represent directly.ValueError from Layout(...): the input is not an iterable of blocks or is
already a Layout wrapper.ValueError from TextBlock.to_interval(): the axis is missing.When answering, give the exact class names and coordinate assumptions that the future agent should use. If a block should be re-encoded as another shape, state the destination shape explicitly so the user can follow the conversion.