Logo Andrej Karpathy Skills

Andrej Karpathy Skills

Cộng đồng
seaworld008
andrej-karpathy-skills

Karpathy-inspired coding discipline for AI agents: think before coding, keep changes simple, edit surgically, and define verifiable success criteria before implementation.

Tổng quan

Nhà phát hànhseaworld008
Kho mãCommonly-used-high-value-skills
Tên kỹ năngandrej-karpathy-skills
Sao
70
Bản fork
11
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được seaworld008 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Andrej Karpathy Skills trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/seaworld008/Commonly-used-high-value-skills/tree/main/openclaw-skills/andrej-karpathy-skills
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skills.git /tmp/Commonly-used-high-value-skills
mkdir -p .claude/skills
cp -r /tmp/Commonly-used-high-value-skills/openclaw-skills/andrej-karpathy-skills .claude/skills/andrej-karpathy-skills
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Andrej Karpathy Skills trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Andrej Karpathy Skills ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Andrej Karpathy Skills với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Andrej Karpathy Skills

Use this skill to keep AI-assisted engineering grounded, simple, and verifiable. It is especially useful for backend, architecture, refactoring, debugging, migrations, and any task where an agent might overbuild, guess, or change unrelated code.

The core idea is simple: do not let the model drift. Make assumptions explicit, prefer minimal changes, touch only what the request requires, and verify with concrete checks before calling the work done.

When to Use

  • Writing backend code, API changes, migrations, data access logic, or architecture-sensitive code.
  • Refactoring code where accidental behavior changes are risky.
  • Debugging a production issue or a failing test.
  • Reviewing AI-generated code for overengineering, hidden assumptions, or missing verification.
  • Implementing a user request that is ambiguous, cross-cutting, or easy to over-scope.
  • Making changes in an unfamiliar codebase.
  • Working under constraints such as dirty git state, existing style, generated files, or ownership boundaries.
  • Producing a plan before code or a concise review after code.

Skip When

  • The user explicitly asks for brainstorming without implementation.
  • The task is pure content writing, design exploration, or research without code changes.
  • A different skill with stricter domain procedure applies, such as a security audit, incident response, or regulated compliance workflow.

Core Principles

  1. Think before coding.
  2. Simplicity first.
  3. Surgical changes.
  4. Goal-driven execution.
  5. Verification before completion.
  6. Respect the existing system.
  7. Surface uncertainty early.
  8. Prefer reversible, observable steps.

Principle 1: Think Before Coding

Before implementation, establish what is known and what is assumed.

  • Read the relevant files before changing them.
  • Identify the exact behavior the user wants changed.
  • Name any ambiguity that changes the implementation path.
  • If there are multiple viable approaches, pick the smallest one that fits the repo.
  • If an approach creates a new abstraction, justify why it reduces real complexity.
  • If the task crosses module boundaries, map those boundaries first.
  • If the codebase already has a local pattern, use it.

Do not silently guess when the guess would affect data integrity, security, public API behavior, billing, auth, or destructive operations.

Principle 2: Simplicity First

Write the minimum code that fully solves the actual problem.

  • Do not add configuration for cases the user did not ask for.
  • Do not introduce a framework, service, queue, cache, or abstraction just because it may help later.
  • Do not broaden a bug fix into a style rewrite.
  • Do not add generic helpers for one call site unless the helper removes real complexity.
  • Keep names direct and local.
  • Prefer boring data structures and clear control flow.
  • Make failure modes explicit, but do not handle impossible states with noisy code.

Ask this before committing to an approach:

text
Can the same behavior be achieved with fewer concepts, fewer files, and less surface area?

If yes, simplify.

Principle 3: Surgical Changes

Every changed line should trace to the request.

  • Touch only the files required by the task.
  • Keep unrelated formatting, naming, and comments intact.
  • Remove only unused code made unused by your own change.
  • Leave unrelated dead code alone unless the user asked for cleanup.
  • Preserve generated files unless the repository pipeline regenerates them.
  • Do not rewrite public APIs when an adapter or narrow fix is enough.
  • In a dirty worktree, distinguish your changes from existing user changes.

Use this edit filter:

text
If I had to explain this line in the PR, could I tie it directly to the requested outcome?

If not, do not change it.

Principle 4: Goal-Driven Execution

Turn vague tasks into verifiable goals.

  • "Fix login" becomes: reproduce failing login, identify cause, patch, run auth tests.
  • "Add validation" becomes: define invalid cases, test them, implement, verify messages.
  • "Improve architecture" becomes: name the current pain, change one boundary, prove behavior holds.
  • "Clean up" becomes: list safe cleanup targets, remove only confirmed unused or duplicated assets.

For multi-step work, use a compact plan:

markdown
1. Inspect current behavior -> verify with failing test or local reproduction.
2. Make minimal change -> verify targeted test passes.
3. Run broader checks -> verify no nearby regression.

Principle 5: Verification Before Completion

Do not finish on intuition.

  • Run the smallest relevant test first.
  • Then run the broader suite required by the blast radius.
  • For UI work, inspect the rendered result when feasible.
  • For generated files, rerun the generator and confirm no unexpected drift.
  • For migrations, inspect schema and rollback assumptions.
  • For security-sensitive work, run static checks and manual review.
  • If a check cannot run, say exactly why and what risk remains.

Good final status includes changed files, validation performed, and known residual risk.

Backend Discipline

For backend and architecture work:

  • Preserve request/response contracts unless the user asked to change them.
  • Keep validation at trust boundaries.
  • Keep database writes transactional where partial writes would corrupt state.
  • Make idempotency explicit for retries, webhooks, jobs, and sync flows.
  • Avoid hidden global state and time-dependent behavior in core logic.
  • Separate pure decision logic from I/O when it makes tests easier.
  • Prefer existing repository error handling and logging conventions.
  • Avoid swallowing exceptions without traceable context.

Architecture Discipline

Use architecture changes only when they reduce current pain.

  • Add a module boundary when multiple call sites need the same behavior.
  • Add an interface when there are multiple real implementations or a test boundary demands it.
  • Add a service only if it owns a coherent workflow.
  • Add a background job only if synchronous execution is genuinely unsafe or too slow.
  • Add a cache only when there is measured or obvious repeated expensive work.
  • Add a migration path for public or persisted contracts.

If the change cannot be validated in this turn, keep it smaller.

Review Checklist

  • Scope: Does the diff solve only the user request?
  • Assumptions: Are assumptions named or encoded in tests?
  • Simplicity: Is there speculative abstraction?
  • Behavior: Are important edge cases covered?
  • Data: Are writes safe, atomic, and idempotent where needed?
  • Security: Are inputs validated and secrets protected?
  • Compatibility: Are public contracts preserved or intentionally migrated?
  • Observability: Are errors diagnosable without leaking sensitive data?
  • Verification: Did relevant tests or checks run?

Anti-Patterns

  • Rewriting a working subsystem to fix a one-line bug.
  • Adding a new dependency for a small utility.
  • Changing formatting across a file while making a behavior fix.
  • Returning "done" without running any verification.
  • Hiding uncertainty behind confident prose.
  • Creating TODOs instead of finishing the requested path.
  • Making the code more configurable than the product needs.
  • Updating generated files by hand.

Output Format

For implementation planning:

markdown
## Assumptions
- ...

## Minimal Approach
- ...

## Verification
- Targeted:
- Broader:

For code review:

markdown
## Findings
- [Severity] file:line - issue and impact

## Verification Gaps
- ...

Boundaries

This skill is a discipline layer, not a replacement for domain expertise. Pair it with security, testing, DevOps, database, or frontend skills when the task needs specialized checks.

Câu hỏi thường gặp

Kỹ năng AI Andrej Karpathy Skills làm được gì?

Karpathy-inspired coding discipline for AI agents: think before coding, keep changes simple, edit surgically, and define verifiable success criteria before implementation.

Vì sao nên dùng Andrej Karpathy Skills trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Andrej Karpathy Skills là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Andrej Karpathy Skills trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/seaworld008/Commonly-used-high-value-skills/tree/main/openclaw-skills/andrej-karpathy-skills. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Andrej Karpathy Skills?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Andrej Karpathy Skills với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Andrej Karpathy Skills với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Andrej Karpathy Skills có miễn phí không?

Có. Kỹ năng này được seaworld008 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇