openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing,…
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.
$ npx -y skills add comol/ai_rules_1c --skill img-grid-analysis --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/img-grid-analysisContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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."
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 |
`<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`).
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
Look at the gridded image and note vertical boundary coordinates of each table column (in grid line numbers).
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:
{
"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.
`1c-mxl-compile` → `1c-mxl-validate` → `1c-mxl-info`
Repo: comol/ai_rules_1c
Implement tasks from an OpenSpec change. Use when the user wants to start implementing,…
Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to…
Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems,…
Propose a new OpenSpec change with all artifacts generated in one step. Use when the user…
Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update…
Update an OpenSpec change by revising its existing planning artifacts and keeping them…