stanford-ai-agent-skill

stanford-ai-agent-skill is a skill for Claude Code, Codex from yusenthebot/stanford-ai-agent-skill. It costs 134 tokens per session (1,719 once invoked), scanned A, original, MIT.

A guided collection of methods from Stanford's Self-Improving AI Agents course for making decisions about how AI agents reason, learn, and are evaluated.

In plain words
What is it for?
Use it when designing, debugging, training, researching, or evaluating an AI agent, especially around verification, long tasks, rollback, or evidence.
Why use it?
It helps choose a relevant method for a specific agent problem instead of applying every idea at once, while making evidence, risks, and stopping conditions explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing, debugging, training, researching, or evaluating an AI agent, especially around verification, long tasks, rollback, or evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yusenthebot/stanford-ai-agent-skill/skill
Install

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.

Any agent
npx skills add yusenthebot/stanford-ai-agent-skill --skill skill
Clone the repo
git clone --depth 1 https://github.com/yusenthebot/stanford-ai-agent-skill

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for stanford-ai-agent-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/yusenthebot/stanford-ai-agent-skill/skill/github.svg)](https://agentmods.dev/skills/yusenthebot/stanford-ai-agent-skill/skill)
Your own site
<a href="https://agentmods.dev/skills/yusenthebot/stanford-ai-agent-skill/skill"><img src="https://agentmods.dev/badge/skills/yusenthebot/stanford-ai-agent-skill/skill/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.

agentmods 80×15 button for stanford-ai-agent-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/yusenthebot/stanford-ai-agent-skill/skill"><img src="https://agentmods.dev/badge/skills/yusenthebot/stanford-ai-agent-skill/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,719 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00134 $0.01719
Opus 5 $0.00067 $0.00860
Sonnet 5 $0.00027 $0.00344
Haiku 4.5 $0.00013 $0.00172

Measured 10d ago against content hash 9ddf976901f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

stanford-ai-agent-skill 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 10d 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.

skill/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stanford AI Agent Skill

把 Stanford CS329A《Self-Improving AI Agents》的稳定方法,作为一个可选择性加载的双语合集使用。这个入口负责判断当前问题属于哪种决策,再读取对应 reference;不要把 7 个模块一次性全部塞入上下文。

Use the stable methods from Stanford CS329A, Self-Improving AI Agents, as one selectively loaded bilingual collection. Identify the decision, then read the matching reference. Never load all seven modules by default.

语言路由 / Language routing

  • 用户主要用中文提问时,读取 references/ 下的中文模块并用中文回答。
  • When the user asks mainly in English, read the matching file under references/en/ and answer in English.
  • If the prompt is mixed, follow the explicitly requested output language. Otherwise use the language of the decision question.
  • 术语、代码、命令、文件名、指标名和课程英文引文保持原样,不要为了翻译改写技术标识。

使用流程

  1. 用一句话写出当前要做的决策,不是宽泛主题。
  2. 按路由表选择一个主模块;只有决策确实跨界时才加载第二个模块。
  3. 读取对应 reference,并严格执行其中的 E(Execution)与 B(Boundary)。
  4. 输出决策、证据、风险、判停条件和下一步;引用课程依据时附官方视频与时间戳。
  5. 涉及部署权限、训练数据回写或不可逆外部动作时,不因 benchmark 提升自动放行。

English equivalent: state the decision in one sentence; choose one primary module and at most one secondary module when genuinely needed; execute its E steps and respect its B boundaries; return the decision, evidence, risks, stop conditions, and next action; never use a benchmark gain alone to authorize deployment, training-data writeback, or irreversible external action.

路由表

当前决策 加载 reference
这是不是一个 agent?最小闭环缺了什么? 01-agent-minimum-loop.md
推理时预算应该花在采样、修订、检索还是验证? 02-verification-constrained-inference-budget.md
reward、verifier 或 LLM-as-judge 是否可信? 03-verification-signal-and-judge-audit.md
多步任务如何处理依赖、并行、回滚和副作用? 04-dependency-reversibility-execution-control.md
生成轨迹是否应该进入 SFT/RL? 05-verified-trajectory-training-gate.md
缺失证据如何驱动检索、抽取、综合与引用? 06-evidence-gap-research.md
agent 是否达到某一部署范围或权限级别? 07-agent-production-readiness-eval.md

Read the full file on GitHub · 90 lines

Changes

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.

  1. 10d ago First seen · 90 lines · 134 tokens per session scan A 9ddf976901f4

Subscribe to this mod's changes

stanford-ai-agent-skill is a skill published in the GitHub repository yusenthebot/stanford-ai-agent-skill (25 stars, last pushed 1mo ago), licensed MIT. It adds 134 tokens to every session and 1,719 once invoked, about $0.0007 per session on Opus 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-08-30.

Related

Other skills, from other repositories

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

book-mirror

Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…

garrytan/gbrain · 138 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

A course or workshop slide template with persistent learning goals, teaching pages, multiple-choice self-tests, and a wrap-up.

nexu-io/html-anything · 25 tokens

master-yinguang

A reference-based assistant for questions about Yinguang and Pure Land Buddhism, a Buddhist tradition focused on faith, ethical living, and practice connected with rebirth in the Pure Land. It can answer in Yinguang’s historical teaching style.

xr843/Master-skill · 274 tokens