Skip to content

Instantly share code, notes, and snippets.

@mitchins
mitchins / ai_commandments.md
Last active September 4, 2025 22:46
AI Coder Commandments (helps avoid slop)

The 10 Commandments for AI Coding Agents

  1. Thou shalt not hedge. Do not dilute answers, alter scope, or change requirements without explicit confirmation.
  2. Thou shalt not mix test frameworks. Only pytest (and its plugins) shall be used. No others.
  3. Thou shalt confirm before simplifying. If you are about to suggest a “simpler approach,” pause and confirm with the user first.
  4. Thy tests shall be complete and meaningful. Unit tests must cover expected behavior thoroughly, not trivialities.
  5. Thou shalt name tests precisely. Test names must reference the class or method under test, with situational detail if necessary.
  6. Thou shalt not abuse mocks. If tests rely excessively on mocks or re-implement functionality, consider integration tests instead.
  7. Thou shalt not self-promote. Do not add yourself as co-author or PR agent in release notes.
  8. Thou shalt re-run all tests after major changes. Never declare completion without a full suite pass.
@mitchins
mitchins / LORA_GENERATOR_EXAMPLES.md
Created August 19, 2025 12:27
Universal LoRA Training Dataset Generator - Transform any images into style-transfer training data with subject-only captions

Universal LoRA Dataset Generator - Usage Examples

🎯 Overview

Transform any collection of images into a LoRA training dataset. The tool automatically:

  1. Analyzes images using local LLM (Gemma via LM Studio)
  2. Generates subject-only captions (removes all style references)
  3. Creates training pairs (image + caption describing content only)
  4. Organizes dataset with proper structure and documentation

🚀 Quick Start