Skip to content
Development
Skill

/img-grid-analysis

Overlay a numbered grid on an image to determine column proportions for layout generation. Use when creating MXL spreadsheet layouts from screenshots or scanned print forms.

From plugin
ai-rules-1c
55032 skills13 agents45 commands

Claude Code

$ npx -y skills add comol/ai_rules_1c --skill img-grid-analysis --agent claude-code

SKILL.md

img-grid-analysis.SKILL.md
name: img-grid-analysis
description: "Overlay a numbered grid on an image to determine column proportions for layout generation. Use when creating MXL spreadsheet layouts from screenshots or scanned print forms."

Image Grid Analysis — Grid Overlay for Layout Design

Usage

img-grid-analysis <ImagePath> [-c COLS] [-o OUTPUT]

| Parameter | Required | Default | Description | |-----------|:--------:|---------|-------------| | ImagePath | yes | — | Path to image (PNG, JPG) | | -c COLS | no | 50 | Number of vertical divisions | | -r ROWS | no | auto | Number of horizontal divisions (auto = square cells) | | -o OUTPUT | no | `<name>-grid.<ext>` | Output path |

Command

`<skill-dir>` below is the directory of this skill: `content/skills/img-grid-analysis/` in the `1c-rules` source repo, or `<tool>/skills/img-grid-analysis/` after installation (e.g. `.cursor/skills/img-grid-analysis/`).

python <skill-dir>/scripts/overlay-grid.py "<ImagePath>" [-c 50] [-o "<OutputPath>"]

Requires Python 3 with Pillow library (`pip install Pillow`).

What It Does

1. Draws semi-transparent vertical (red) and horizontal (blue) lines 2. Numbers lines in separate fields at top and left (does not overlap content) 3. Every 5th and 10th line is brighter for easier counting

How to Use the Result

1. Determine Column Boundaries

Look at the gridded image and note vertical boundary coordinates of each table column (in grid line numbers).

2. Find the Base Grid

If the form has multiple tables with different layouts (e.g., document header and main table), combine all boundary points. Each segment between adjacent boundaries is one MXL column.

Example for form M-11:

  • Header: boundaries 0, 2, 4, 9, 14, 21, 28, 34, 40, 48
  • Table: boundaries 0, 2, 4, 11, 16, 19, 23, 28, 32, 36, 42, 48
  • Union: 0, 2, 4, 9, 11, 14, 16, 19, 21, 23, 28, 32, 34, 36, 40, 42, 48
  • Result: **16 base columns** with proportions 2, 2, 5, 2, 3, 2, 3, 2, 2, 5, 4, 2, 2, 4, 2, 6

3. Write in JSON DSL

{
  "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"
  }
}

The `"page"` field allows the compiler to automatically calculate absolute widths from proportions.

4. Compile

`1c-mxl-compile` → `1c-mxl-validate` → `1c-mxl-info`

Read more
@comol
Ships withai-rules-1c

Rules\skills\subagens for vibecoding in 1C(bsl)

55032 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
550
Star history of comol/ai_rules_1c on GitHub, a chart by star-history.com

Other skills on ai-rules-1c.

openspec-apply-change

openspec-apply-change

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…

@comol@comolInstall Skill
openspec-archive-change

openspec-archive-chang…

Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after…

@comol@comolInstall Skill
openspec-explore

openspec-explore

Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a…

@comol@comolInstall Skill
openspec-propose

openspec-propose

Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they…

@comol@comolInstall Skill
openspec-sync-specs

openspec-sync-specs

Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta…

@comol@comolInstall Skill
openspec-update-change

openspec-update-change

Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the…

@comol@comolInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc3w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react11d252k
@facebook@facebookInstall Skill

Questions about img-grid-analysis.

Which coding agents can use img-grid-analysis?
img-grid-analysis installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.