claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Pre-implementation gate covering think-first, simplicity, surgical edits, and verifiable goals. Use when starting implementation to verify the approach.
$ npx -y skills add athola/claude-night-market --skill karpathy-principles --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/karpathy-principlesContext preview
The summary Claude sees to decide when to auto-load this skill.
Pre-implementation gate covering think-first, simplicity, surgical edits, and verifiable goals. Use when starting implementation to verify the approach.
name: karpathy-principles description: Pre-implementation gate covering think-first, simplicity, surgical edits, and verifiable goals. Use when starting implementation to verify the approach. alwaysApply: false category: discipline tags: - karpathy - coding-pitfalls - synthesis - entry-point - discipline - anti-overengineering - TDD dependencies: - imbue:scope-guard - imbue:proof-of-work - imbue:rigorous-reasoning - leyline:additive-bias-defense - conserve:code-quality-principles tools: [] usage_patterns: - pre-implementation-gate - code-review - diff-hygiene - task-reformulation complexity: foundational model_hint: standard estimated_tokens: 900 modules: - modules/anti-patterns.md - modules/senior-engineer-test.md - modules/verifiable-goals.md - modules/tradeoff-acknowledgment.md references: - references/source-attribution.md role: entrypoint
> The models make wrong assumptions on your behalf and > just run along with them without checking. They don't > manage their confusion, don't seek clarifications, > don't surface inconsistencies, don't present > tradeoffs, don't push back when they should. > > (Andrej Karpathy, on agentic coding failure modes)
A four-principle contract for reducing the most common LLM coding pitfalls. Compact entry-point. Each principle has a deeper-dive skill in night-market; this skill is the index, not the encyclopedia.
Derivation: distilled by Forrest Chang (forrestchang/andrej-karpathy-skills, MIT) from Karpathy's observations. Full attribution in `references/source-attribution.md`.
done
These principles bias toward caution over speed. For cases listed in `modules/tradeoff-acknowledgment.md`, use judgment: trivial fixes, exploratory spikes, documentation-only edits, and time-boxed prototypes.
**State assumptions. Surface confusion. Match tone to evidence.**
list them. Do not silently pick.
when the simpler path is correct.
assumptions are the cheapest bug to prevent and the most expensive to find later.
Calibrated tone beats confident hand-waving.
Deep dives: `Skill(imbue:rigorous-reasoning)` for the sycophancy guard, `Skill(superpowers:brainstorming)` for option generation, `/spec-kit:speckit-clarify` command for ambiguity drilldown.
**Minimum code that solves the problem. Nothing speculative.**
> They really like to overcomplicate code and APIs, > bloat abstractions. > > (Andrej Karpathy, on the same agentic-coding thread)
requested
it
Self-check: would a senior engineer say this is overcomplicated? See `modules/senior-engineer-test.md`.
Deep dives: `Skill(imbue:scope-guard)` for the worthiness formula and branch budgets, `Skill(leyline:additive-bias-defense)` for burden of proof on every addition, `Skill(conserve:code-quality-principles)` for the KISS / YAGNI / SOLID foundation.
When this step settles a decision with real alternatives, record it to `docs/tradeoffs.md` while the reasoning is live (draft and confirm):
a tradeoff entry (the decision, the options weighed, and what was sacrificed; set `phase` to `plan`). Show the draft; append on confirmation.
ENTRY TEMPLATE; assign the next `TR-NNN` id.
**Touch only what you must. Clean up only your own mess.**
formatting
differently
not delete it
remove the orphans you created. Pre-existing dead code stays unless asked.
The trace-back test: every changed line should trace directly to the user's request.
Deep dives: `Skill(imbue:justify)` for additive-bias audits on diffs, `Skill(leyline:additive-bias-defense)` for the burden-of-proof contract, the `bounded-discovery.md` rule for read-budget caps.
**Define verifiable success criteria. Loop until verified.**
Transform vague tasks into checkable goals:
pass"
then make it pass"
For multi-step tasks, state a brief plan with verification per step. Strong success criteria let you loop independently. Weak criteria require constant clarification.
See `modules/verifiable-goals.md` for the full reformulation template.
Deep dives: `Skill(imbue:proof-of-work)` for the Iron Law (no implementation without a failing test first), `Skill(superpowers:test-driven-development)` for the RED-GREEN-REFACTOR loop.
Before you ship, four questions:
| Principle | Question | |-----------|----------| | Think Before Coding | Did I list assumptions, or did I guess silently? | | Simplicity First | Would a senior engineer call this overcomplicated? | | Surgical Changes | Does every changed line trace to the request? | | Goal-Driven Execution | Ca
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.