This skill is triggered when a request needs datasheet/TRM-grounded hardware facts or firmware init code with page/section citations. Keywords: datasheet, TRM, register map, base address, bitfield, reset value, pin mux, clock divider, init code, 데이터시트, 레지스터, 초기화 코드.
PDF/DOCX/XLSX datasheets.--structured only when table/header fidelity is required.SKILL.md minimal and procedural.scripts/toc.py, scripts/search.py, scripts/read.py directly before loading extra references.references/usage.md only for detailed flags or format-specific examples.Use uv with this skill's pyproject.toml and uv.lock.
Do not rely on PEP 723 inline script metadata.
# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh
Use one of these execution contexts:
uv run --project skills/datasheet-intelligence ...cd skills/datasheet-intelligence && uv run ...All command examples below use the recommended --project style.
scripts/toc.py or scripts/search.py before large reads.scripts/read.py --pages and expand iteratively.source file + page/section.search -> read -> search).Tip: / Try: guidance from script errors, then rerun.Choose the strategy by document size.
scripts/toc.py (use --structured if bookmarks are missing).scripts/read.py --pages for relevant sections.--structured if tables are broken.scripts/toc.py --filter to narrow sections.scripts/search.py to locate exact pages.scripts/read.py --pages for focused ranges (use --structured for table-heavy ranges).Never read the whole document at once.
scripts/toc.py to map sections and page ranges.scripts/toc.py reports no bookmarks, switch immediately to scripts/search.py (search-first) instead of full --structured TOC.scripts/search.py for exact keyword locations (--unique-pages recommended for long documents).scripts/read.py --pages in 10-30 page chunks.High-priority large-PDF sections:
| Priority | Section | Why |
|---|---|---|
| High | Register Map / List | Addresses, bit fields, reset values |
| High | Address Map | Base addresses, memory map |
| Medium | Pin Description / GPIO | Pin functions, function select |
| Medium | Electrical Characteristics | Voltage/current constraints |
| Medium | Clock / Timing | Timing formulas, divider rules |
| Low | Reset Controller | Reset release sequence |
| Lowest | Legal / Ordering / Revision | Usually not needed |
scripts/search.py first to find candidate paragraphs/rows.scripts/read.py for targeted reading.scripts/read.py --structured when layout/table structure is critical.Use --structured only when table/header fidelity is required.
SKILL_DIR="skills/datasheet-intelligence"
# 1) Find candidate pages first
uv run --project "$SKILL_DIR" "$SKILL_DIR/scripts/search.py" docs/rp2040.pdf "IC_CON" "I2C0_BASE" --unique-pages
# 2) Read only selected ranges
uv run --project "$SKILL_DIR" "$SKILL_DIR/scripts/read.py" docs/rp2040.pdf --pages 464-470
# 3) Switch to structured mode only if layout fidelity is critical
uv run --project "$SKILL_DIR" --with docling "$SKILL_DIR/scripts/read.py" docs/rp2040.pdf --pages 464-470 --structured
For full flags and format-specific examples, read references/usage.md.
uv run --project ...).source file + page/section.| Script | Role | Formats | --structured |
|---|---|---|---|
scripts/toc.py | TOC extraction | PDF, DOCX | Yes |
scripts/read.py | Targeted reading | PDF, DOCX, XLSX | Yes |
scripts/search.py | Keyword search | PDF, DOCX, XLSX | Yes |
See usage.md for detailed examples.