How harmless0819-dev/mech-drawing-reader works
mech-drawing-reader is a DSH skill package for reading Chinese/ISO mechanical drawings and producing evidence-anchored annotations plus structured JSON. Its documented workflow begins with channel routing, then extracts or interprets drawing information, records uncertainty and evidence, and validates the output. It also provides domain references, image/CAD utilities, CAD-overlay comparison, and annotation templates. The README documents the broad workflow; sampled source confirms specific DXF extraction, dimension parsing, scale calibration, and audit/validation links. Unsampled workflow details are represented only where documented.
Main entry points: SKILL.md Skill Workflow · routing.md Channel Routing · cad-output.md CAD Output Flow · audit.py Output Audit
Components 21
Reading Workflow
- Skill Workflow
SKILL.md - Channel Routing
workflows/routing.md - CAD Output Flow
workflows/cad-output.md
Domain Knowledge
- Drawing References
references
Drawing Tools
- Format Probe
scripts/probe.py - PDF Extractor
scripts/pdf_extract.py - OCR
scripts/ocr.py - Image Tiling
scripts/tile.py - Pixel Measurement
scripts/measure.py - DXF Dimensions
scripts/dxf_dims.py - Dimension Parser
scripts/dimparse.py - AutoCAD Driver
scripts/acad_com.py - CAD Calibration
scripts/cadscale.py - CAD Comparison
scripts/cad_compare.py - CAD Difference
scripts/cad_diff.py
Output Assurance
- Annotation Template
templates/annotation-doc.md - Annotation Schema
templates/annotation-schema.json - Output Audit
scripts/audit.py - Schema Validator
scripts/simplest_schema.py - Backtest Scoring
scripts/score.py
Other components
- Drawing Reader
Connections 22
- Drawing Reader → Skill Workflow: uses
README.md - Skill Workflow → Channel Routing: routes by channel
README.md - Skill Workflow → Drawing References: consults
README.md - Channel Routing → Format Probe: identifies format
README.md - Channel Routing → PDF Extractor: extracts PDF
README.md - Channel Routing → OCR: reads images
README.md - Channel Routing → Image Tiling: tiles images
README.md - Channel Routing → Pixel Measurement: measures pixels
README.md - Channel Routing → DXF Dimensions: extracts dimensions
README.md - Channel Routing → Dimension Parser: parses dimensions
README.md - Skill Workflow → Annotation Template: produces document
README.md - Skill Workflow → Annotation Schema: produces JSON
README.md - Skill Workflow → Output Audit: audits output
README.md - Skill Workflow → CAD Output Flow: supports CAD output
README.md - CAD Output Flow → AutoCAD Driver: drives AutoCAD
README.md - CAD Output Flow → CAD Comparison: compares overlay
README.md - CAD Output Flow → CAD Difference: finds differences
README.md - CAD Comparison → CAD Calibration: calibrates scale
scripts/cad_compare.py - CAD Difference → CAD Calibration: calibrates scale
scripts/cad_diff.py - Output Audit → Schema Validator: validates schema
scripts/audit.py - Output Audit → Annotation Schema: checks against
README.md - Skill Workflow → Backtest Scoring: backtests results
README.md