SkillsGrove
SkillsGrove/문서 작업/WorkHaH/SheetWeave/sheetweave

sheetweave

설치

$npx skills add https://github.com/WorkHaH/SheetWeave --skill sheetweave
$git clone --depth 1 https://github.com/WorkHaH/SheetWeave.git /tmp/SheetWeave && mkdir -p ~/.claude/skills && cp -r /tmp/SheetWeave/. ~/.claude/skills/sheetweave
이 Agent Skill을 설치해 주세요: https://github.com/WorkHaH/SheetWeave/tree/bee95a4616b242383b614fd7c2c0b40c009103f8/ — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITMerge tiled local/detail drawing PDFs into one larger vector PDF. Use when a PDF contains multiple partial drawing sheets, may include an overview/index page, and the user wants faster layout recovery plus final vector output rather than raster-only stitching.
아래 SKILL.md는 WorkHaH/SheetWeave(커밋 bee95a4)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 SheetWeave contributors. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

SheetWeave

Use this skill to merge one PDF containing tiled drawing sheets into a larger drawing while preserving vector output.

Prerequisites

  • Install Python dependencies with pip install -r scripts/requirements.txt.
  • Ensure pdfinfo, pdftoppm, pdftotext, and pdflatex are available in PATH.
  • Work from this skill directory, or pass absolute paths to the scripts.

Workflow

  1. Decide whether the PDF has an overview/thumbnail page. It is usually the first page or the last page.
  2. If the overview has machine-readable labels, let the script parse sheet codes or numeric labels automatically.
  3. If labels are visible to a person but code cannot extract them reliably, use references/overview_layout_prompt.md with a VLM or human to create an overview layout JSON, then run with --overview-layout-json.
  4. If there is no usable overview/thumbnail page, or if the overview truly has no labels, run the traditional overlap-neighbor route.
  5. Run:
python scripts/sheetweave.py \
  --pdf path/to/drawings.pdf \
  --out path/to/output-dir \
  --mode review
  1. Inspect summary.json, final/full-merged.png, and final/layout-contact.png when present.
  2. Use final/full-merged.pdf when summary.json shows a single connected component.
  3. If multiple groups are produced, inspect groups/group-XX/ and summary.json to see which pages failed to bridge.
  4. If vlm-request.json is produced, read references/overview_layout_prompt.md, create an overview layout JSON, and rerun with --overview-layout-json.

Behavior

  • The script renders low-resolution page images only for layout recovery.
  • It first looks for overview/index/thumbnail layout candidates, normally on the first or last PDF page.
  • It uses sheet-code or numeric labels when code can extract them.
  • If labels are visible but not machine-readable, the intended workflow is VLM/human layout mapping rather than blind guessing.
  • It falls back to neighbor overlap matching when no overview/thumbnail page is usable or when the overview has no labels.
  • It can recover disconnected components with selective high-DPI bridge matching.
  • It writes the final merged PDF by embedding original PDF pages into a LaTeX/TikZ canvas, so vector source content stays vector.

Important Options

  • --render-dpi: low DPI used for fast layout recovery. Default: 42.
  • --bridge-render-dpi: higher DPI used only for cross-component bridge recovery. Default: 110.
  • --mode review: write extra diagnostics; recommended for new drawing formats.
  • --overview-layout-json: use a manual or VLM-produced overview mapping.

Output Files

  • summary.json: main run summary and diagnostics.
  • final/full-merged.pdf: final vector output when there is one component.
  • final/full-merged.png: raster review preview.
  • final/full-merged.tex: generated vector assembly source.
  • vlm-request.json: ambiguity handoff for manual/VLM overview mapping.
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 SheetWeave 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.