feat: add Liontron Board Technical Library Capture skill v1.0
This commit is contained in:
@@ -0,0 +1,470 @@
|
||||
# CoWork Skill: Liontron Board Technical Library Capture
|
||||
## Instructions for Capturing Board Data from en.liontron.cn
|
||||
|
||||
Version: 1.0
|
||||
Created: 2026-03-19
|
||||
Reference Board (Completed): D-3588 RK3588
|
||||
|
||||
---
|
||||
|
||||
## Purpose
|
||||
|
||||
This skill instructs CoWork to visit each specified Liontron board product page,
|
||||
capture all technical information, download board images and PDF documents, and
|
||||
produce a standardized Markdown (.md) file for the technical library.
|
||||
|
||||
---
|
||||
|
||||
## Board Catalog — All Available Boards
|
||||
|
||||
When the user specifies boards to process, select URLs from this catalog:
|
||||
|
||||
### Edge Intelligence
|
||||
| Board | URL |
|
||||
| -------------------------- | --------------------------------------------- |
|
||||
| D-3588: RK3588 (COMPLETED) | http://en.liontron.cn/showinfo-138-217-0.html |
|
||||
| D-3568: RK3568 | http://en.liontron.cn/showinfo-138-216-0.html |
|
||||
|
||||
### K Series AIoT Board
|
||||
| Board | URL |
|
||||
| -------------- | --------------------------------------------- |
|
||||
| K-A311D: A311D | http://en.liontron.cn/showinfo-118-218-0.html |
|
||||
| K4: RK3399 | http://en.liontron.cn/showinfo-118-185-0.html |
|
||||
| K3: RK3288 | http://en.liontron.cn/showinfo-118-197-0.html |
|
||||
| K-3566: RK3566 | http://en.liontron.cn/showinfo-118-214-0.html |
|
||||
| K-3568: RK3568 | http://en.liontron.cn/showinfo-118-212-0.html |
|
||||
| K2: RK3368 | http://en.liontron.cn/showinfo-118-183-0.html |
|
||||
| K0: A40i | http://en.liontron.cn/showinfo-118-184-0.html |
|
||||
|
||||
### H Series HMI Board
|
||||
| Board | URL |
|
||||
| -------------- | --------------------------------------------- |
|
||||
| H-3399: RK3399 | http://en.liontron.cn/showinfo-129-222-0.html |
|
||||
| H-3568: RK3568 | http://en.liontron.cn/showinfo-129-221-0.html |
|
||||
| H-3566: RK3566 | http://en.liontron.cn/showinfo-129-220-0.html |
|
||||
| H-T972: T972 | http://en.liontron.cn/showinfo-129-224-0.html |
|
||||
| H-A133L: A133 | http://en.liontron.cn/showinfo-129-219-0.html |
|
||||
| H-A133: A133 | http://en.liontron.cn/showinfo-129-223-0.html |
|
||||
| H-A133R: A133 | http://en.liontron.cn/showinfo-129-225-0.html |
|
||||
| H3: RK3288 | http://en.liontron.cn/showinfo-129-196-0.html |
|
||||
| H0: A40i | http://en.liontron.cn/showinfo-129-194-0.html |
|
||||
|
||||
### Commercial Display
|
||||
| Board | URL |
|
||||
| ---------- | --------------------------------------------- |
|
||||
| M3: RK3288 | http://en.liontron.cn/showinfo-117-193-0.html |
|
||||
| M2: RK3368 | http://en.liontron.cn/showinfo-117-165-0.html |
|
||||
| M1: RK3188 | http://en.liontron.cn/showinfo-117-166-0.html |
|
||||
|
||||
### Smart New Retail Series
|
||||
| Board | URL |
|
||||
| --------------- | --------------------------------------------- |
|
||||
| P3X: RK3288 | http://en.liontron.cn/showinfo-119-195-0.html |
|
||||
| PX-3568: RK3568 | http://en.liontron.cn/showinfo-119-215-0.html |
|
||||
| P2: RK3368 | http://en.liontron.cn/showinfo-119-209-0.html |
|
||||
|
||||
### Access Control Board
|
||||
| Board | URL |
|
||||
| --------------- | --------------------------------------------- |
|
||||
| F4: RK3399 | http://en.liontron.cn/showinfo-127-192-0.html |
|
||||
| F3X: RK3288 | http://en.liontron.cn/showinfo-127-189-0.html |
|
||||
| F3: RK3288 | http://en.liontron.cn/showinfo-127-191-0.html |
|
||||
| F1i: PX30 | http://en.liontron.cn/showinfo-127-187-0.html |
|
||||
| F1: PX30 | http://en.liontron.cn/showinfo-127-186-0.html |
|
||||
| Fi-1109: RV1109 | http://en.liontron.cn/showinfo-127-210-0.html |
|
||||
|
||||
### Industrial Computer
|
||||
| Board | URL |
|
||||
| ----------------- | --------------------------------------------- |
|
||||
| ITX-Z3588: RK3588 | http://en.liontron.cn/showinfo-128-229-0.html |
|
||||
| ITX-Y3399: RK3399 | http://en.liontron.cn/showinfo-128-237-0.html |
|
||||
| VNS-3568: RK3568 | http://en.liontron.cn/showinfo-128-228-0.html |
|
||||
| VPC-3588: RK3588 | http://en.liontron.cn/showinfo-128-226-0.html |
|
||||
| UPC-3568: RK3568 | http://en.liontron.cn/showinfo-128-227-0.html |
|
||||
| C4: RK3399 | http://en.liontron.cn/showinfo-128-198-0.html |
|
||||
| C3: RK3288 | http://en.liontron.cn/showinfo-128-190-0.html |
|
||||
| C0: A40i | http://en.liontron.cn/showinfo-128-188-0.html |
|
||||
|
||||
---
|
||||
|
||||
## Per-Board Processing Instructions
|
||||
|
||||
For EACH board the user asks you to process, follow ALL steps below in order.
|
||||
Replace [BOARDNAME] with the board model (e.g. "D-3568", "K4", "H-3568").
|
||||
Replace [CHIPSET] with the chipset name (e.g. "RK3568", "RK3399").
|
||||
|
||||
---
|
||||
|
||||
### STEP 1 — Navigate to the Board Page
|
||||
|
||||
Navigate to the board's URL from the catalog above.
|
||||
Wait for the page to fully load before proceeding.
|
||||
|
||||
---
|
||||
|
||||
### STEP 2 — Capture the Board Overview Text
|
||||
|
||||
Use document.body.innerText or read_page to extract:
|
||||
- Board name and subtitle (e.g. "D-3588 Motherboard / Edge Smart Motherboard")
|
||||
- Full overview/description paragraph
|
||||
- All bullet point key features (lines starting with "●")
|
||||
|
||||
Note: The Liontron site renders most content as images inside a single-page layout.
|
||||
The overview text and bullet points near the top of the page are the main extractable text.
|
||||
|
||||
---
|
||||
|
||||
### STEP 3 — Identify and Record All PDF Links
|
||||
|
||||
Use this JavaScript to find all PDF links on the page:
|
||||
|
||||
Array.from(document.querySelectorAll('a[href$=".pdf"]'))
|
||||
.map(a => ({ text: a.innerText.trim(), href: a.href }))
|
||||
|
||||
Typically there will be two PDFs:
|
||||
- Specifications (labeled "Specifications" or "SPEC")
|
||||
- Mechanical Drawings (labeled "Mechanical Drawings" or "MECH")
|
||||
|
||||
Record the full URL of each PDF found.
|
||||
|
||||
---
|
||||
|
||||
### STEP 4 — Identify All Board Images
|
||||
|
||||
Use this JavaScript to find all product images:
|
||||
|
||||
Array.from(document.querySelectorAll('img'))
|
||||
.filter(img => img.src.includes('/Products/'))
|
||||
.map((img, i) => ({
|
||||
index: i,
|
||||
src: img.src,
|
||||
w: img.naturalWidth,
|
||||
h: img.naturalHeight,
|
||||
offsetTop: img.offsetTop
|
||||
}))
|
||||
|
||||
IMPORTANT — Image Identification Guide:
|
||||
The page contains many images. Use offsetTop position and image dimensions to identify:
|
||||
|
||||
- Index 0 (offsetTop ~0, ~800x800): Main board product photo — name: [BOARDNAME]-Board-Main-Photo.jpg
|
||||
- Index 1 (offsetTop ~330): Board overview/feature photo — name: [BOARDNAME]-Board-Overview.jpg
|
||||
- Large image at offsetTop ~8000-9000 (tall, ~1920x2000+): Front I/O labeled diagram — name: [BOARDNAME]-Front-IO-Labeled-Diagram.jpg
|
||||
- Large image immediately after (~1920x2000-3000): Rear I/O view with Micro-SIM — name: [BOARDNAME]-Rear-IO-MicroSIM.jpg
|
||||
- Large image after that (~1920x1500): Board dimension diagram (shows 135mm x 95mm) — name: [BOARDNAME]-Board-Dimensions.jpg
|
||||
|
||||
DO NOT download images at offsetTop 0 with width exactly 1000px — these are thumbnail
|
||||
duplicates of the larger originals and should be skipped.
|
||||
|
||||
---
|
||||
|
||||
### STEP 5 — Download Images via fetch+blob
|
||||
|
||||
For each identified image, use fetch+blob to ensure a complete download (do NOT use
|
||||
direct anchor href download — it results in incomplete files on this domain):
|
||||
|
||||
fetch(imageUrl)
|
||||
.then(r => r.blob())
|
||||
.then(blob => {
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = 'FILENAME.jpg';
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
setTimeout(() => { document.body.removeChild(a); URL.revokeObjectURL(url); }, 1000);
|
||||
});
|
||||
|
||||
Space downloads at least 2000ms apart (use setTimeout with idx * 2000 delay).
|
||||
Download a maximum of 5 images per board:
|
||||
1. Main board photo
|
||||
2. Board overview photo
|
||||
3. Front I/O labeled diagram
|
||||
4. Rear I/O view
|
||||
5. Board dimension diagram
|
||||
|
||||
---
|
||||
|
||||
### STEP 6 — Download PDF Files via fetch+blob
|
||||
|
||||
Use the same fetch+blob method for PDFs. Name them:
|
||||
- [BOARDNAME]-[CHIPSET]-Specifications.pdf
|
||||
- [BOARDNAME]-[CHIPSET]-Mechanical-Drawings.pdf
|
||||
|
||||
Example:
|
||||
fetch('http://en.liontron.cn/d/file/Products/..../filename.pdf')
|
||||
.then(r => r.blob())
|
||||
.then(blob => {
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = 'D-3568-RK3568-Specifications.pdf';
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
setTimeout(() => { document.body.removeChild(a); URL.revokeObjectURL(url); }, 1000);
|
||||
});
|
||||
|
||||
---
|
||||
|
||||
### STEP 7 — Scroll and Capture the Full Spec Table
|
||||
|
||||
The detailed specification table is NOT in the DOM as readable text. It is rendered
|
||||
as part of a large image on the page. To capture spec data:
|
||||
|
||||
1. Scroll down to approximately offsetTop 11000-13000 (where the spec table appears)
|
||||
2. Take a screenshot at each scroll position to capture the full table
|
||||
3. Read the spec values from the screenshot visually
|
||||
|
||||
The table will contain these sections (read each from the screenshot):
|
||||
- System: CPU, GPU, NPU, RAM, ROM
|
||||
- Display: LVDS, HDMI, MIPI, eDP
|
||||
- Audio: Headphone/MIC, Line Output, MIC Input, Amplifier Output
|
||||
- I/O: USB Host, USB OTG, TF Card, Serial Ports, SATA, RTC, I2C, Backlight, GPIO,
|
||||
Infrared, Button, Pilot Lamp, Camera, CAN Bus, POE, HDMI Input
|
||||
- Network Connection: Ethernet, WiFi, Bluetooth, 4G/3G
|
||||
- Power: DC Input
|
||||
- Mechanical Structure: Size, Thickness, Structure Compatible
|
||||
- Environment: Operating Temperature, Humidity
|
||||
- Operating System: Android, Linux
|
||||
|
||||
---
|
||||
|
||||
### STEP 8 — Capture I/O Port Labels from Diagram
|
||||
|
||||
Scroll to the "Rich I/O, Easy to Expand" section (approximately offsetTop 8000).
|
||||
Take a screenshot of the labeled board diagram (Front I/O).
|
||||
Read all port labels from the diagram and record them grouped by board edge:
|
||||
- Top Edge labels
|
||||
- Right Side labels
|
||||
- Bottom Edge labels
|
||||
- Left Side labels
|
||||
- On-Board labels
|
||||
Then scroll further to capture the Rear I/O diagram and note the Micro-SIM label.
|
||||
|
||||
---
|
||||
|
||||
### STEP 9 — Compose the Markdown File
|
||||
|
||||
Using all captured data, write a Markdown file following EXACTLY this structure
|
||||
and section order. Open a new tab, write the content using document.open/write,
|
||||
then instruct the user to copy the text and paste into their Markdown editor.
|
||||
|
||||
File naming convention: [BOARDNAME]-[CHIPSET]-Liontron-Technical-Reference.md
|
||||
Example: D-3568-RK3568-Liontron-Technical-Reference.md
|
||||
|
||||
#### Required MD File Structure:
|
||||
|
||||
```
|
||||
# [BOARDNAME]: [CHIPSET] [Board Series Name]
|
||||
## Liontron Technology - Technical Library Reference
|
||||
|
||||
Source URL: [page URL]
|
||||
Category: [series name]
|
||||
Date Captured: [date]
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
[description paragraph]
|
||||
|
||||
---
|
||||
|
||||
## Key Features
|
||||
- [bullet 1]
|
||||
- [bullet 2]
|
||||
...
|
||||
|
||||
---
|
||||
|
||||
## System Specifications
|
||||
| Parameter | Value |
|
||||
|-----------|-------|
|
||||
| CPU | ... |
|
||||
| GPU | ... |
|
||||
| NPU | ... |
|
||||
| RAM | ... |
|
||||
| ROM | ... |
|
||||
|
||||
---
|
||||
|
||||
## Display Interfaces
|
||||
| Interface | Specification | Max Resolution |
|
||||
|-----------|--------------|----------------|
|
||||
| HDMI | ... | ... |
|
||||
| LVDS | ... | ... |
|
||||
| MIPI | ... | ... |
|
||||
| eDP | ... | ... |
|
||||
|
||||
Video decode: ...
|
||||
Video encode: ...
|
||||
|
||||
---
|
||||
|
||||
## Audio
|
||||
| Feature | Specification |
|
||||
|---------|--------------|
|
||||
...
|
||||
|
||||
---
|
||||
|
||||
## I/O Interfaces
|
||||
| Interface | Specification |
|
||||
|-----------|--------------|
|
||||
...
|
||||
|
||||
---
|
||||
|
||||
## Network and Wireless
|
||||
| Feature | Specification |
|
||||
|---------|--------------|
|
||||
...
|
||||
|
||||
---
|
||||
|
||||
## Power
|
||||
| Specification | Value |
|
||||
|---------------|-------|
|
||||
...
|
||||
|
||||
---
|
||||
|
||||
## Mechanical Specifications
|
||||
| Parameter | Value |
|
||||
|-----------|-------|
|
||||
| Board Size | ...mm x ...mm |
|
||||
| Thickness | ...mm |
|
||||
| Structure | ... |
|
||||
|
||||
---
|
||||
|
||||
## Environmental Specifications
|
||||
| Parameter | Value |
|
||||
|-----------|-------|
|
||||
| Operating Temp | ... |
|
||||
| Humidity | ... |
|
||||
|
||||
---
|
||||
|
||||
## Operating System
|
||||
| OS | Details |
|
||||
|----|---------|
|
||||
...
|
||||
|
||||
---
|
||||
|
||||
## Front I/O Port Map
|
||||
Top Edge: [labels]
|
||||
Right Side: [labels]
|
||||
Bottom Edge: [labels]
|
||||
Left Side: [labels]
|
||||
On-Board: [labels]
|
||||
Rear I/O: [labels]
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
Specifications PDF: [url]
|
||||
Mechanical Drawings PDF: [url]
|
||||
|
||||
---
|
||||
|
||||
## Board Images (Downloaded Filenames)
|
||||
Main Board Photo: [BOARDNAME]-Board-Main-Photo.jpg
|
||||
Board Overview: [BOARDNAME]-Board-Overview.jpg
|
||||
Front IO Labeled Diagram: [BOARDNAME]-Front-IO-Labeled-Diagram.jpg
|
||||
Rear IO View: [BOARDNAME]-Rear-IO-MicroSIM.jpg
|
||||
Board Dimensions: [BOARDNAME]-Board-Dimensions.jpg
|
||||
|
||||
---
|
||||
|
||||
## Manufacturer
|
||||
Company: Shenzhen Liontron Technology Co., Ltd.
|
||||
Address: No. 401, No. 3, Huihao Industrial Park, Fifth Industrial Zone,
|
||||
Hewan Community, Matan Street, Guangming District, Shenzhen
|
||||
Sales: +86-0755-27952022
|
||||
Email: sy@lztek.cn
|
||||
Website: http://en.liontron.cn
|
||||
|
||||
---
|
||||
|
||||
## CoWork Skill Integration Notes
|
||||
Skill Category: Hardware / Display Systems / Embedded Boards
|
||||
Primary Use Case: [describe board's primary application]
|
||||
Key Search Terms: [chipset], [boardname], Liontron, [series], embedded, AIoT
|
||||
Board Family: [series] (note any compatible structures)
|
||||
Typical Applications: [list from page content]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### STEP 10 — Deliver to User
|
||||
|
||||
After completing all steps for a board:
|
||||
1. Confirm all downloads completed (images + PDFs)
|
||||
2. Present the full MD file content in a new tab titled [BOARDNAME]-[CHIPSET]-Liontron-Technical-Reference.md
|
||||
3. Instruct the user to select all text (Cmd+A), copy (Cmd+C), and paste into their Markdown editor
|
||||
4. Ask if they are ready to proceed to the next board
|
||||
|
||||
---
|
||||
|
||||
## Processing Order and User Interaction
|
||||
|
||||
- Process one board at a time unless the user explicitly requests batch processing
|
||||
- After completing each board, confirm with the user before starting the next
|
||||
- Keep track of which boards have been completed
|
||||
- If a board page has no PDF links, note "No PDF available" in the documentation section
|
||||
- If a board page has a different layout or missing sections, note what was unavailable
|
||||
|
||||
---
|
||||
|
||||
## Known Site Behaviors and Gotchas
|
||||
|
||||
1. SPEC TABLE IS IMAGES: The detailed specification table on each page is rendered
|
||||
as a large image, not HTML text. You must scroll to it and read it visually from
|
||||
a screenshot. Do not expect to extract it from document.body.innerText.
|
||||
|
||||
2. BLOB DOWNLOADS REQUIRED: Direct anchor href downloads from this domain result in
|
||||
incomplete .crdownload files. Always use fetch+blob approach for all downloads.
|
||||
|
||||
3. MD FILE DELIVERY: Chrome blocks data: URI and blob: URI downloads of text files
|
||||
on this domain, resulting in .crdownload. Instead, write content to a new tab
|
||||
using document.open/write and instruct user to copy-paste into their MD editor.
|
||||
|
||||
4. IMAGE INDEX MAPPING: The page contains 20+ images including marketing graphics
|
||||
with blue/dark backgrounds. These are NOT the technical diagrams. The correct
|
||||
technical images are identified by their offsetTop position (see Step 4).
|
||||
Images with offsetTop of 0 and width of 1000px are thumbnail duplicates — skip them.
|
||||
|
||||
5. PAGE LOAD: The page loads fully on navigation. No lazy loading issues observed,
|
||||
but allow 2 seconds after navigation before starting JavaScript extraction.
|
||||
|
||||
6. PDF LINKS: PDF links are present in the page as standard anchor tags with href
|
||||
ending in .pdf. They are visible as "Specifications" and "Mechanical Drawings"
|
||||
buttons near the top of the page, just below the header banner.
|
||||
|
||||
---
|
||||
|
||||
## File Naming Conventions Summary
|
||||
|
||||
| File Type | Naming Pattern | Example |
|
||||
| ------------------ | ---------------------------------------------- | --------------------------------------------- |
|
||||
| Specs PDF | [BOARD]-[CHIP]-Specifications.pdf | D-3568-RK3568-Specifications.pdf |
|
||||
| Mech PDF | [BOARD]-[CHIP]-Mechanical-Drawings.pdf | D-3568-RK3568-Mechanical-Drawings.pdf |
|
||||
| Board Photo | [BOARD]-Board-Main-Photo.jpg | D-3568-Board-Main-Photo.jpg |
|
||||
| Overview Photo | [BOARD]-Board-Overview.jpg | D-3568-Board-Overview.jpg |
|
||||
| Front IO Diagram | [BOARD]-Front-IO-Labeled-Diagram.jpg | D-3568-Front-IO-Labeled-Diagram.jpg |
|
||||
| Rear IO Photo | [BOARD]-Rear-IO-MicroSIM.jpg | D-3568-Rear-IO-MicroSIM.jpg |
|
||||
| Dimensions Diagram | [BOARD]-Board-Dimensions.jpg | D-3568-Board-Dimensions.jpg |
|
||||
| Markdown Reference | [BOARD]-[CHIP]-Liontron-Technical-Reference.md | D-3568-RK3568-Liontron-Technical-Reference.md |
|
||||
|
||||
---
|
||||
|
||||
## Completed Boards Log
|
||||
|
||||
| Board | Date | Images | PDFs | MD File |
|
||||
| -------------- | ---------- | ------------ | ------------ | --------- |
|
||||
| D-3588: RK3588 | 2026-03-19 | 5 downloaded | 2 downloaded | Completed |
|
||||
|
||||
---
|
||||
|
||||
*End of CoWork Skill Instructions*
|
||||
*To begin processing, tell CoWork: "Process board [BOARDNAME] from the Liontron catalog"*
|
||||
Reference in New Issue
Block a user