Andrej Karpathy Skillsのロゴ

Andrej Karpathy Skills

コミュニティ
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.

概要

公開者seaworld008
リポジトリCommonly-used-high-value-skills
スキル名andrej-karpathy-skills
スター
70
フォーク
11
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    seaworld008がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Andrej Karpathy Skills」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/seaworld008/Commonly-used-high-value-skills/tree/main/openclaw-skills/andrej-karpathy-skills
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAndrej Karpathy Skillsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAndrej Karpathy Skillsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Andrej Karpathy Skillsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでAndrej Karpathy Skillsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Andrej Karpathy Skillsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAndrej Karpathy Skillsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/seaworld008/Commonly-used-high-value-skills/tree/main/openclaw-skills/andrej-karpathy-skillsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Andrej Karpathy Skillsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Andrej Karpathy Skillsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAndrej Karpathy Skillsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Andrej Karpathy Skills」は無料ですか?

はい。seaworld008がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇