openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…
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.
Claude Code
$ npx -y skills add comol/ai_rules_1c --skill img-grid-analysis --agent claude-code
Codex
$ npx skills add comol/ai_rules_1c --skill img-grid-analysis -a codex -y
Cursor
$ npx skills add comol/ai_rules_1c --skill img-grid-analysis -a cursor -y
Gemini CLI
$ npx skills add comol/ai_rules_1c --skill img-grid-analysis -a gemini-cli -y
GitHub Copilot
$ npx skills add comol/ai_rules_1c --skill img-grid-analysis -a github-copilot -y
OpenCode
$ npx skills add comol/ai_rules_1c --skill img-grid-analysis -a opencode -y
Windsurf
$ npx skills add comol/ai_rules_1c --skill img-grid-analysis -a windsurf -y
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`
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…
Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after…
Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a…
Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they…
Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta…
Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.