Write Coding-Assistant Rules That Work
Two of my seven rules could not be checked; a script checks the other five.
Video #169 ยท AI coding and productivity
Steps in the video
- 0:00 Two of my seven rules could not be checked. The other five could.
- 0:37 The idea
- 1:23 Setup
- 1:53 The rules file
- 2:25 The before version
- 2:45 Checks for layout and logging
- 3:05 Checks for keys and length
- 3:31 The after version
- 3:49 Run it
- 4:20 What this does not show
- 5:00 Mistakes to avoid
- 5:35 My take and next steps
- 6:01 Recap
Files
- RULES.md (12 lines)
- after.py (12 lines)
- before.py (6 lines)
- checks.py (31 lines)
- run.py (18 lines)
Tested with
Python 3.12.15
What this does not show
The before and after files are hand-written examples, not output from any assistant; no assistant was run.
Sources
Learning IT by Example.