Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Konwersja i formaty

smart-drawing

/smart-drawing

Zamienia zestaw rysunków architektonicznych w PDF na plik HTML do pracy offline, w którym drzwi, pomieszczenia i okna są klikalne i pokazują swoje dane.

Licencja
MIT
Ostatnia zmiana repozytorium
28.10.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format20 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
13
Skrypty
6
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 6 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
  • Paczka skrócona: część plików jest zbyt duża albo wykonywalna. Pełny folder jest w repozytorium.

Skrypty: scripts/build_index.py, scripts/export_viewer.py, scripts/pdfwords.py, scripts/refresh_meta.py, scripts/schedules.py, scripts/smart_drawing.py

Co robi i kiedy

Zamienia zestaw rysunków architektonicznych w PDF na plik HTML do pracy offline, w którym drzwi, pomieszczenia i okna są klikalne i pokazują swoje dane.

Oryginalny opis (EN)

Turn an architectural PDF drawing set into a smart drawing - one offline HTML file where every door, room, window and wall-type tag on the plans is clickable and shows its schedule row, finish codes are decoded from the legends, detail bubbles jump to their sheet, and a search bar lights up every instance of a tag. Reads the PDF text layer and table rulings (no vision), adapts to each firm's own schedule columns. Use when someone wants to make a drawing set easier to read, cross-reference door/room/finish schedules with plans, build a clickable drawing viewer or dashboard, or check what a tag

Jak działa

  1. Steps
  2. Options (scripts/exportviewer.py on an existing DB)
  3. What it reads
  4. Limits
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 416 słów
Podgląd SKILL.md
---
name: smart-drawing
description: Turn an architectural PDF drawing set into a smart drawing - one offline HTML file where every door, room, window and wall-type tag on the plans is clickable and shows its schedule row, finish codes are decoded from the legends, detail bubbles jump to their sheet, and a search bar lights up every instance of a tag. Reads the PDF text layer and table rulings (no vision), adapts to each firm's own schedule columns. Use when someone wants to make a drawing set easier to read, cross-reference door/room/finish schedules with plans, build a clickable drawing viewer or dashboard, or check what a tag on a plan means.
---

# Smart drawing (architectural)

```
python scripts/smart_drawing.py <set.pdf> --out outputs/<p> [--project "Office building"] [--pages 100-221]
```

Writes `outputs/<p>/index.db` (SQLite) and `outputs/<p>/smart-drawing.html` (one file, opens offline).

## Steps

1. **Check the PDF has text.** Open a plan page with PyMuPDF; if `page.get_text()` is empty the set is scanned - stop and say so. This skill does not OCR.
2. **Scope the pages.** A combined set (arch + MEP + structural) indexes faster with `--pages` set to the architectural range. Find it from the sheet numbers (A-xxx) first. Large sets take ~10-25 min to index; tell the user.
3. **Run** `smart_drawing.py`. It prints counts per kind and HIGH counts (HIGH = schedule row AND tag found on a plan).
4. **Report honestly** from the printed summary: items per kind, how many are HIGH, and anything at 0 (e.g. no window schedule found). Never claim a kind the index did not find.
5. **Spot-check 3 items** in the DB against the PDF (one door, one room, one wall type): the row values must match the schedule exactly.
6. Hand over `smart-drawing.html`. It is self-contained: email it, put it on a drive, double-click to open.

## Options (scripts/export_viewer.py on an existing DB)

| flag | use |
|---|---|
| `--sheets A-101,A-102` | choose sheets (default: every sheet with tags or schedule rows) |
| `--dpi 80` | smaller file for big sets (each sheet ~0.5-1.5 MB at 100 dpi) |
| `--redact NAME,CITY` | blank these words on images and in data (sharing a client set) |
| `--mask-right 0.92` / `--mask-left 0.045` | blank the title-block strip / plot-stamp margin |
| `--files` | also write index.html + data.js + sheets/ (needs a web server) |

`refresh_meta.py set.pdf index.db` re-reads sheet titles and legends without a full rebuild.

## What it reads

- **Schedules** (door, room finish, window): found by title, columns from the table's ruling lines, headers from the cells above (group labels prefix columns). Works with vertical headers and side-by-side tables.
- **Wall types**: partition-type panels (tag `A3` = type A, suffix 3).
- **Legends / finish codes** (`LVT-1`, `P-3` ...) -> description.
- **Plan tags**: each schedule key on each plan sheet; door/room keys that collide are split by text size.
- **Callouts**: `2/A-510` style bubbles -> target sheet.

## Limits

- Vector (CAD-exported) PDFs only.
- Architectural only. Other trades need their own skill.
- Two-column legends can put a code under the wrong category; titles can need a manual fix (`UPDATE sheets SET title=...`).
Pliki w paczce (13)
  • .gitignore 1 KB
  • LICENSE 2 KB
  • README.md 3 KB
  • SKILL.md 3 KB
  • requirements.txt 1 KB
  • examples/indygo/index.db 68 KB
  • scripts/build_index.py 15 KB
  • scripts/export_viewer.py 5 KB
  • scripts/pdfwords.py 2 KB
  • scripts/refresh_meta.py 1 KB
  • scripts/schedules.py 11 KB
  • scripts/smart_drawing.py 1 KB
  • scripts/viewer_template.html 28 KB

Pominięte w paczce: 1 (zbyt duże albo wykonywalne), są w repozytorium.

Wersje

W bazie nie ma innych skilli o nazwie smart-drawing.

Migawka bazy z 13.11.2026 · wersja paczki 66b4bd9206d5 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100architectural-concept-design
    Tworzy pakiet koncepcji projektu budynku z briefu: macierz wymagań, rzuty, przekrój, model 3D i zestawienie powierzchni, z kontrolą przepisów.
  • 100tracegif
    Tworzy animacje rysunków liniowych i GIF-y z obrazów, logo, SVG lub zdjęć, z eksportem offline HTML i klatek PNG.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.