karpathy-rules

Community

Enforce four gates to audit code blocks safely.

Authorcropsgg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Encode and enforce four critical gate checks to prevent unsafe or misleading code blocks in AI-generated outputs.

Core Features & Use Cases

  • Gate 1 — Hallucinated APIs: verify external calls exist in dependency sources.
  • Gate 2 — Over-engineering: avoid unnecessary abstractions; favor simple, direct solutions.
  • Gate 3 — Missing error handling: ensure robust handling of IO, network, and async operations.
  • Gate 4 — Unverified assumptions: verify environment facts, paths, and versions against the codebase.
  • Use Case: integrate into a code-generation workflow to ensure every block is production-ready and auditable.

Quick Start

Run Gate 1–4 verification for every code block; fix failures until all gates pass.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: karpathy-rules
Download link: https://github.com/cropsgg/skills/archive/main.zip#karpathy-rules

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.