Preface¶
When using Cursor, OpenClaw, or QClaw for daily development, a common phenomenon is that the model first “fills in” the requirements for you and then proceeds to make changes; abstraction layers pile up, yet the task only requires modifying a few lines; unrelated comments and code are casually deleted or modified. These are not occasional mistakes, but the default tendencies of an Agent when stable behavioral constraints are lacking.
Below is an introduction to andrej-karpathy-skills on SkillHub (coordinates @user_2e914038/andrej-karpathy-skills). It references the andrej-karpathy-skills on GitHub, adjusted by community publisher user_2e914038 for use in OpenClaw, and supports installation via QClaw. The Skill itself does not depend on external APIs (requires_api_key=false) and embeds four coding principles into the Agent’s execution context via a universal SKILL.md format.
What is this¶
andrej-karpathy-skills is a type of ai-agent behavioral Skill: instead of calling a fixed API for you, it continuously reminds the model to “think clearly before acting, write less, only change what needs to be changed, and close with verifiable goals” during coding, code modification, and review tasks.
The maintainers explain on the SkillHub page: version 1.0.0, source community. The three excerpts on the page summarize the problems it aims to tackle—the model blindly following false assumptions, over-complicating structures and APIs, and modifying or deleting code in irrelevant areas. The Skill uses four core principles (listed in both Chinese and English on the page) as a countermeasure framework.
Core Features¶
The verified content comes from the official SkillHub page and installation documentation, and the capabilities can be summarized as follows.
Four Core Principles¶
- Think Before Coding — Don’t assume defaults; clarify first, then act.
- Simplicity First — Solve problems with the minimum amount of code; avoid excessive abstraction.
- Surgical Changes — Only change what needs to be changed; casual refactoring is a major taboo.
- Goal-Driven Execution — Define verifiable success criteria and loop until achieved.
Once enabled, the Agent should self-constrain according to the above order when handling tasks within the repository: if in doubt, ask or verify context first before writing code; align the scope of changes with the task description; check against verifiable criteria (tests, lint, clear acceptance points, etc.) before completion.
Runtime Environment & Tags¶
- Category: ai-agent
- Tags: requires_api_key=false (No API Key configuration required)
- Adaptation Notes: Modified from the original GitHub version to be available for OpenClaw, and declares support for QClaw installation and use.
SkillHub Statistics (based on page scrape): Rating 100000, Downloads 9332, Installs 376.
Installation & Activation¶
The installation process follows the official SkillHub instructions: first ensure the skillhub CLI is available, then install the skill into the skills directory recognizable by the current Agent; installing it in the wrong directory will result in the skill not being loaded.
1. Install or Check SkillHub CLI¶
Confirm in the terminal whether it is installed:
command -v skillhub && skillhub --version
If not installed, follow the official installation script (full installation includes CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
For more complete priority source and initial configuration instructions, see: SkillHub Installation and Priority Source Configuration.
2. Install this Skill¶
The installation prompt given on the SkillHub skill page is: According to the above installation documentation, install coordinates @user_2e914038/andrej-karpathy-skills.
Command line example (--dir must point to the skills directory of the current environment, otherwise it defaults to ./skills/ and may not be recognized by the Agent):
skillhub install @user_2e914038/andrej-karpathy-skills --dir <your skills directory>
Common client skills paths (excerpted from official installation documentation):
| Environment | skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
| OpenClaw and variants (including QClaw, etc.) | skills directory in respective client documentation |
The directory names for OpenClaw variants (listed on the page including NanoBot, PicoClaw, QClaw, etc.) vary by product. Please refer to the current client documentation before installation. After installation, restart or reload the Agent according to client requirements to activate SKILL.md.
You can also send the installation prompt on the SkillHub page directly to an AI that supports Skills and have it complete the installation according to the documentation; coordinates and version are subject to the page: v1.0.0.
Typical Usage¶
This Skill does not have a separate script entry. The typical usage is: After installation and activation, describe the task normally in coding conversations, and the Skill injects principles to constrain Agent behavior.
Reproducible usage patterns are as follows.
- Write clearly about the goal and boundaries at the beginning of the task, e.g., “Only fix the login timeout, do not refactor the entire auth module.” This aligns with Surgical Changes and Goal-Driven Execution.
- If requirements are ambiguous, require the Agent to list assumptions and items to be confirmed before modifying code, corresponding to Think Before Coding.
- If the implementation plan swells significantly, require a smaller diff or an explanation of why new abstractions are needed, corresponding to Simplicity First.
- Before finishing, require checking against acceptance criteria (running tests, explaining verification steps), corresponding to Goal-Driven Execution.
The quotes in the official introduction can be recited as “red lines” for your Agent, such as refusing batch formatting of unrelated files or refusing to delete historical comments without understanding them—these are consistent with the Skill’s design intent, but specific wording is subject to the SKILL.md within the Skill (viewable in the skills directory after installation).
Applicable Scenarios & Notes¶
Who it is for
- Developers who use Agents to modify production code long-term and want to reduce “making assumptions” and scope creep.
- OpenClaw / QClaw users who need a community-adapted Karpathy-style principles package.
- Teams that do not want to apply for a separate API Key for the Skill (
requires_api_key=false).
Limitations & Notes
- Principles are behavioral constraints and cannot replace code review, testing, and permission management; models may still deviate, and humans need to make final merge judgments.
- Incorrect installation path is the most common pitfall: ensure to use
skillhub install ... --dir <correct directory>. - Rating and download counts are statistics from the SkillHub page and will change over time; refer to the Official Skill Page.
- The API address
https://api.skillhub.cn/user_2e914038/andrej-karpathy-skillsis used for Skill metadata; daily installation and instructions are subject to the SkillHub website andskillhubCLI.
Conclusion¶
andrej-karpathy-skills solidifies the four principles of “clarify first, seek simplicity, surgical changes, and verifiable goals” into an Agent Skill, targeting environments like OpenClaw and QClaw, and can be installed without an API Key. If you are bogged down by hallucination-style code changes and excessive abstraction, you can install @user_2e914038/andrej-karpathy-skills according to the official documentation and try a round of daily tasks.
- SkillHub Skill Page: https://www.skillhub.cn/skills/user_2e914038/andrej-karpathy-skills
- Installation Instructions: https://skillhub.cn/install/skillhub.md
- API Metadata: https://api.skillhub.cn/user_2e914038/andrej-karpathy-skills