framework_eng/skills/tool-usage/browser-ui/img-grid/SKILL.md
Measuring the grid and columns from a printed form MXL screenshot
npx skillsauth add steelmorgan/1c-agent-based-dev-framework img-gridInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Overlays a numbered grid on an image of a printed form. Allows you to accurately determine column boundaries, their proportions, and spans for generating an MXL document layout.
The numbers are drawn in separate fields outside the image (top and left margins), so they never overlap the form content.
python3 tools/img-grid/grid.py <ImagePath> [--cell-size 50] [--cols N] [--rows N] [-o OUTPUT]
| Parameter | Required | Default | Description |
|---|:---:|---|---|
| ImagePath | yes | — | Path to the image (PNG, JPG) |
| --cell-size N | no | 50 | Cell size in pixels (determines cols/rows automatically) |
| -c, --cols N | no | auto | Number of vertical divisions (overrides --cell-size) |
| -r, --rows N | no | auto | Number of horizontal divisions (0 = square cells) |
| -o OUTPUT | no | <name>-grid.<ext> | Output path |
pip install Pillow
Look at the image with the grid and record the numbers of the vertical lines that mark the boundaries of each table column.
If a form has several tables with different layouts (header + main table), combine all boundary points. Each segment between neighboring boundaries is one base MXL column.
Example for form M-11 (--cols 48):
0, 2, 4, 9, 14, 21, 28, 34, 40, 480, 2, 4, 11, 16, 19, 23, 28, 32, 36, 42, 480, 2, 4, 9, 11, 14, 16, 19, 21, 23, 28, 32, 34, 36, 40, 42, 482, 2, 5, 2, 3, 2, 3, 2, 2, 5, 4, 2, 2, 4, 2, 6{
"columns": 16,
"page": "A4-landscape",
"columnWidths": {
"1": "2x", "2": "2x", "3": "5x", "4": "2x", "5": "3x",
"6": "2x", "7": "3x", "8": "2x", "9": "2x", "10": "5x",
"11": "4x", "12": "2x", "13": "2x", "14": "4x", "15": "2x", "16": "6x"
}
}
# 1. Take a screenshot of the form
# 2. Overlay a grid with a step of about 50px
python3 tools/img-grid/grid.py form-screenshot.png --cell-size 50 -o form-grid.png
# 3. Study the form, experiment with the number of divisions
python3 tools/img-grid/grid.py form-screenshot.png --cols 48 -o form-grid-48.png
# 4. Hand it over to an agent for analysis: name the column boundaries by number
development
1C server maintenance webhooks: container restart and external component cache cleanup
development
Interactive DAP debugging of a single BSL procedure
tools
Rules for using RLM tools for project search and navigation in 1C/BSL
development
Creates web applications and routes on Winow (a web server on OneScript and Autumn). Use when working with a web server on OneScript, routing, or Winow controllers.