george-hotz-skills
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 16 GitHub stars
Code Fail
- exec() — Shell command execution in tests/test_repo.py
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Unofficial George Hotz–inspired radical-simplicity coding guidelines for AI agents — Claude Code skill/plugin + Cursor rule. Complexity is the enemy.
George Hotz–Inspired Coding Skills & Complexity Gates
Executable complexity gates and measurement-first, delete-first review workflows for coding agents — distilled from how George Hotz (
geohot) actually runstinygradandcustom_mec_public, not just his talks.For Claude Code, Codex, Cursor, and any Agent Skills–compatible harness.
English | 简体中文
Unofficial. Not affiliated with, authored by, or endorsed by George Hotz, tinygrad, or comma.ai.
Why prose guidelines fail (evidence from tinygrad)
Prompting an agent with "keep code simple" or "avoid over-abstraction" barely moves its behavior. George Hotz tested that himself in tinygrad/AGENTS.md:
- 2025-05-20 (
9389edf): added a philosophy-styleAGENTS.md("focused on beauty and minimalism. Every line must earn its keep... 10 lines can have the impact of 1000"). - 2026-02-14 (
e8bd432): deleted that philosophyAGENTS.mdentirely. - 2026-07-08 (
fdffc6c) onward: rebuilttinygrad/AGENTS.mdas 6 lines of concrete commands (pytest -n12,mypy,ruff), a pointer totinygrad/viz/README.md, and two real environment footguns — zero slogans. - Meanwhile
tinygrad/custom_mec_publichas noAGENTS.mdat all.
What actually enforces simplicity across both repositories is mechanical gates + fast observability:
| Principle | How tinygrad / custom_mec_public actually enforce it |
|---|---|
| Complexity & LOC budget | sz.py + CI MAX_LINE_COUNT + per-PR szdiff.yml; custom_mec's fw/derive_runs.py (DERIVE_BUDGET fails the build). |
| Narrow interfaces & purity | slopkernels/test/test_slopkernels.py (test_narrow_api_and_purity_boundary) parses the AST to lock __all__, forbid cross-layer imports, and verify the single caller. |
| Observe, never guess | tinygrad/viz/README.md (VIZ=1, viz.cli --json, DEBUG=3..7), process-replay, and custom_mec's 15s Unicorn differential parity suite (test/test_parity.py) with explicit EXEMPT ledgers. |
| Minimal agent instructions | Style lives in ruff/mypy; AGENTS.md only holds fast verification commands, debug tool entrypoints, and proven footguns. |
What this skill does
Instead of pasting philosophy paragraphs into every repo, skills/geohot-guidelines/SKILL.md runs two concrete workflows backed by a bundled zero-dependency measurement tool (scripts/sz.py) and gate templates (references/gates.md, references/examples.md):
- Mode A — Harness Setup:
- Times existing test/typecheck/lint commands and baselines effective LOC, tokens/line, and wide functions (
>= 5args). - Installs only the missing high-leverage gates that match observed risks (LOC/size budget, AST/static boundary test, differential parity with explicit
EXEMPTentries, or build-time static invariant check) and verifies each gate fails red on a violation. - Trims
AGENTS.md/CLAUDE.mddown to executable commands, debug entrypoints, and concrete footguns.
- Times existing test/typecheck/lint commands and baselines effective LOC, tokens/line, and wide functions (
- Mode B — Delete-First Review & Refactor:
- Runs
sz.py --diff <base>and--wide-args 5before judging prose. - Audits every new layer/flag/wrapper against
rgcaller counts: deletes or inlines single-caller abstractions unless they guard a named invariant, collapses duplicated truth without drifting error types, and fixes wide boundaries without hiding them in an options/**kwargsbag. - Requires observed command output for behavior claims, and promotes recurring leaks into a Mode A gate.
- Runs
Layout
skills/geohot-guidelines/
SKILL.md # two executable modes + required output contract
scripts/sz.py # zero-dep effective LOC, tok/line, git diff budget, wide-arg scanner
references/gates.md # 5 concrete gate patterns from tinygrad & custom_mec_public
references/examples.md # before/after refactoring calls (semantics-verified)
.cursor/rules/
geohot-guidelines.mdc # concise operational checks for Cursor
.claude-plugin/ # Claude Code plugin & marketplace manifests
AGENTS.md # this repo's own 4-line operational AGENTS.md
tests/test_repo.py # zero-dep unittest suite validating sz.py, links, manifests, examples
Install
Install the full skills/geohot-guidelines/ directory so scripts/sz.py and references/ are available alongside SKILL.md.
Claude Code (plugin)
Add this repository as a marketplace/plugin source in Claude Code; .claude-plugin/plugin.json registers ./skills/geohot-guidelines.
Or install directly into your personal skills directory:
git clone --depth 1 https://github.com/frankekn/george-hotz-skills.git /path/to/george-hotz-skills
mkdir -p ~/.claude/skills
ln -s /path/to/george-hotz-skills/skills/geohot-guidelines ~/.claude/skills/geohot-guidelines
Codex / Agent Skills
Symlink or copy skills/geohot-guidelines/ into your skills directory (for example ~/.agents/skills/geohot-guidelines or ~/.codex/skills/geohot-guidelines).
Cursor
- Skill (recommended): symlink or copy
skills/geohot-guidelines/into~/.cursor/skills/geohot-guidelines. - Project rule: copy
.cursor/rules/geohot-guidelines.mdcinto your project's.cursor/rules/.
Standalone sz.py CLI
# Baseline effective LOC, token density, and >=5-arg functions
python3 skills/geohot-guidelines/scripts/sz.py --root src --wide-args 5
# Enforce a hard CI line ceiling
python3 skills/geohot-guidelines/scripts/sz.py --root src --max-lines 2500
# Measure a branch diff against main (and fail if net diff > 0)
python3 skills/geohot-guidelines/scripts/sz.py --root src --diff main --wide-args 5 --max-diff 0
Supports .py, .c, .h, .cc, .cpp, .hpp, .js, .jsx, .ts, .tsx, .mjs, .cjs, .go, and .rs with zero third-party packages.
Verify this repo
This repository enforces its own rules via unittest and sz.py:
python3 -m unittest discover -s tests -v
python3 skills/geohot-guidelines/scripts/sz.py --root skills --max-lines 260 --wide-args 5
Attribution
Grounded in public code and statements by George Hotz and the tinygrad contributors:
tinygrad/tinygrad(AGENTS.mdhistory,sz.py,.github/workflows/szdiff.yml,slopkernels/test/test_slopkernels.py,tinygrad/viz/README.md)tinygrad/custom_mec_public(fw/derive_runs.py,test/test_parity.py,docs/STATUS.md,docs/EMULATOR.md)- Commoditizing the Petaflop — George Hotz, Latent Space
- George Hotz — Lex Fridman Podcast #387 (transcript)
License
MIT — see LICENSE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found