learning-it by example

Back to the video

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

  1. 0:00 Two of my seven rules could not be checked. The other five could.
  2. 0:37 The idea
  3. 1:23 Setup
  4. 1:53 The rules file
  5. 2:25 The before version
  6. 2:45 Checks for layout and logging
  7. 3:05 Checks for keys and length
  8. 3:31 The after version
  9. 3:49 Run it
  10. 4:20 What this does not show
  11. 5:00 Mistakes to avoid
  12. 5:35 My take and next steps
  13. 6:01 Recap

Files

  • RULES.md (12 lines)
  • after.py (12 lines)
  • before.py (6 lines)
  • checks.py (31 lines)
  • run.py (18 lines)

Download the code (zip)

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.