Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jnPiyush/AgentX --skill karpathy-guidelinesgit clone --depth 1 https://github.com/jnPiyush/AgentXWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jnpiyush/agentx/karpathy-guidelines)<a href="https://agentmods.dev/skills/jnpiyush/agentx/karpathy-guidelines"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/karpathy-guidelines/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jnpiyush/agentx/karpathy-guidelines"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/karpathy-guidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Agent Snooping · line 12 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Excessive Agency · line 166 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01935 |
| Opus 5.5 | $0.00019 | $0.00774 |
| Sonnet 5.5 | $0.00009 | $0.00387 |
| Haiku 4.5 | $0.00005 | $0.00194 |
Grade A, and why
karpathy-guidelines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Karpathy Guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Adapted from Andrej Karpathy's observations on LLM coding pitfalls and the upstream MIT-licensed karpathy-guidelines skill.
MANDATORY in Frontier: These four guidelines are NON-optional for every Frontier execution (coding, refactor, review, pipeline). Complete the "Self-Check Before Handoff" checklist before any handoff. See the always-on rule in
.github/instructions/project-conventions.instructions.md.
Tradeoff: These guidelines bias toward caution over speed. The only exemption is a genuinely trivial change (single-line typo, obvious config rename) whose success criteria are self-evident.
When to Use
Load this skill when:
- Writing new code or features
- Refactoring or modifying existing code
- Reviewing code (yours or another agent''s)
- Debugging when the cause is not obvious
- Producing pipelines, IaC, or any artifact that ships to production
Rationalization Table
Reject these shortcuts.
| Rationalization | Reality |
|---|---|
| "I understand the intent, I can skip stating assumptions." | You only think you understand. State assumptions explicitly so the user can correct the wrong ones cheaply. |
| "I'll add a small abstraction now, it might be useful later." | Speculative abstractions are the leading source of code that is hard to delete. Inline first, abstract on the second real use. |
| "I'll rewrite this whole function, it will be cleaner." | Rewrites import new bugs and break call sites you did not read. Make the smallest surgical change that satisfies the requirement. |
| "The tests pass, so the change is correct." | Passing tests prove the tests pass. They do not prove the change matches the user's intent or the spec. Re-read the request after the code is written. |
| "I'll add error handling for every imaginable failure." | Defensive code for impossible failures hides the real failures and inflates the diff. Validate at boundaries; trust internal invariants. |
| "I'll polish the comments and structure while I'm here." | Drive-by formatting and comment edits hide the real change from the reviewer. Keep the diff focused; open a separate hygiene PR if needed. |
| "The user did not specify, so I'll pick the safer-sounding option." | Silent picks are silent decisions. Either ask, or pick and surface the decision explicitly so it can be reverted. |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · -4 lines · -14 tokens per session e5844d2071e2
- 2mo ago Changed 6088806bd428
- 2mo ago First seen · 182 lines · 61 tokens per session scan A e938bf4153c4
karpathy-guidelines is a skill published in the GitHub repository jnPiyush/AgentX (19 stars, last pushed today), licensed Apache-2.0. It adds 47 tokens to every session and 1,935 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
karpathy-guidelines compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| karpathy-guidelinesjnPiyush/AgentX | Skill | 19 | today | Apache-2.0 | A | 47 | Claude Code |
| autoreviewopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 9d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 2d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 974 | 2d ago | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | today | MIT | A | 51 | Claude Code, Codex |