andrej-karpathy-skills
A single CLAUDE.md file of behavioral guidelines for Claude Code, derived from Andrej Karpathy's observations on common LLM coding pitfalls. It helps avoid overcomplicated code, keep changes surgical, and surface assumptions.
pskoett/pskoett-ai-skills is a plugin of skills and agents for AI agents, following the Agent Skills specification. It suits skill authoring, including context-decay for revalidating stored agent knowledge and eval-creator for turning failures into regression tests.
Claude Code
> /plugin marketplace add pskoett/pskoett-ai-skills> /plugin install pskoett-ai-skills@pskoett-skills
Codex
$ npx skills add pskoett/pskoett-ai-skills -a codex
Cursor
$ npx skills add pskoett/pskoett-ai-skills -a cursor
Gemini CLI
$ npx skills add pskoett/pskoett-ai-skills -a gemini-cli
GitHub Copilot
$ copilot plugin marketplace add pskoett/pskoett-ai-skills$ copilot plugin install pskoett-ai-skills@pskoett-skills
OpenCode
$ npx skills add pskoett/pskoett-ai-skills -a opencode
Windsurf
$ npx skills add pskoett/pskoett-ai-skills -a windsurf
I use this repository to build and test skills for AI agents. The skills follow the Agent Skills specification, and the repo includes an Agent Plugins 1.0 portable package.
Each skill addresses a problem I want agents to handle more consistently. Before codebase exploration, plan-interview helps the user and agent agree on constraints, scope, risk, and success criteria. It also checks whether a preparatory refactor should come first.
plan-interview stays optional. intent-framed-agent asks about material gaps and records an initial frame without requiring a confirmation round for a clear request. session-context then searches relevant prior sessions before the agent finalizes its approach. It returns cited evidence, not new instructions, and adds no historical brief when nothing useful matches.
During execution, intent-framed-agent watches for scope drift. context-surfing monitors context quality and prepares a handoff when it degrades. verify-gate runs compile, test, and lint checks so the agent can catch failures without waiting for you to point them out.
When something fails, self-healing diagnoses the problem, verifies the fix, and saves it for reuse. After implementation, simplify-and-harden reviews quality and security while the agent still has the task context. self-improvement records mistakes and lessons for future sessions.
The idea is to use context while it's available. Planning captures what the user wants, execution reveals where the work drifts, and completion gives the agent a chance to review what it just built. The skills give each check a place in the workflow.
I organize the skills into two feedback loops. The inner loop catches and fixes failures during a session. The outer loop uses what went wrong to improve later sessions.
In the outer loop, learning-aggregator finds patterns in saved learnings, and the main agent follows self-improvement to write human-approved rules into project instructions. eval-creator turns promoted rules into regression tests. pre-flight-check brings relevant learnings and eval status into the next session.
skill-pipeline classifies the task and selects the skills and depth it needs. Each skill also works on its own.
control-session-orchestrator coordinates work across agents and sessions from a Codex, Copilot, or agent-app control session. It runs above the pipeline, outside the two loops. Invoke it directly rather than through skill-pipeline.
Point an Agent Plugins-compatible client or packager at agent-plugin/. Its entrypoint is agent-plugin/plugin.json.
The portable package contains only the curated Agent Skills bundle. Agent Plugins 1.0 does not standardize hooks, agents, commands, or installation. Use the native Claude Code, Codex, or GitHub Copilot adapters below for client-specific installation and hooks. This repo does not ship named agent presets.
A hooks/ directory inside a portable skill is a skill resource. Clients don't automatically register it as a plugin hook. The repo provides no MCP server, so it has no portable mcp.json.
Install the plugin from this repo's marketplace. Run each command inside Claude Code:
/plugin marketplace add pskoett/pskoett-skills
/plugin install pskoett-ai-skills@pskoett-skills
/reload-plugins
This installs the full bundle: skills and hooks. Independent reviews and cold-context checks use general-purpose read-only subagents on demand, following the skill guidance. Existing callers of the removed named presets should use that guidance instead; no compatibility aliases are provided.
The same bundle is available as a repo-local Codex plugin in plugin/.
pskoett skills marketplace, and install pskoett-ai-skills.Codex reads the marketplace from .agents/plugins/marketplace.json and the plugin manifest from plugin/.codex-plugin/plugin.json.
The Copilot CLI plugin root is plugin/.copilot-plugin/, selected by its marketplace entry. It contains symlinks to the shared plugin/skills/ and plugin/hooks/ directories:
copilot plugin marketplace add pskoett/pskoett-skills
copilot plugin install pskoett-ai-skills
Copilot reads the marketplace from .github/plugin/marketplace.json and the plugin manifest from plugin/.copilot-plugin/plugin.json.
Native Amp plugins live in amp-plugin/ and are installed separately from skills:
| Plugin | Behavior |
|---|---|
| Self-improvement | Adds a per-turn reminder to evaluate useful learnings. Does not write learning files. |
| Thread relevance | Uses Jev and native Amp search to suggest up to three thread names and links at a new orb's start. Investigation is optional; no transcript previews or mandatory reads. |
Neither plugin bundles skills or starts extra agent turns. Install skills separately using the installation guide.
For cross-project use, run amp plugins repositories, clone your writable User
Plugins repository using the printed command, and copy the chosen plugin to its
root: self-improvement.ts or the entire thread-relevance/ directory, not just
index.ts. Review any existing copy before replacing it. Commit and push that
repository, then reload plugins in existing Amp threads. Thread relevance requires
Amp CLI, Bash, Bun and Git; see its README for privacy rules and known limits.
Alternatively, copy the file or directory into a project's .amp/plugins/ directory
for project-only use. Choose one installation location per plugin to avoid duplicates.
This repo keeps the source in amp-plugin/, which Amp does not auto-load. Maintain
the source here and copy updates to the chosen plugin installation; publication
to the User Plugins repository is a separate step.
gh skill)Use gh skill to install individual skills. It requires GitHub CLI v2.90.0 or later.
# Browse this repo's skills interactively
gh skill install pskoett/pskoett-skills
# Install specific skills directly
gh skill install pskoett/pskoett-skills verify-gate
gh skill install pskoett/pskoett-skills self-healing
gh skill install pskoett/pskoett-skills simplify-and-harden
gh skill install pskoett/pskoett-skills self-improvement
# Target a specific host and scope when needed
gh skill install pskoett/pskoett-skills verify-gate --agent codex --scope user
gh skill installs to the correct skill directory for the selected host, including GitHub Copilot, Claude Code, Codex, Cursor, and Gemini CLI.
You can also install individual skills with the Agent Skills CLI:
npx skills add pskoett/pskoett-skills/skills/verify-gate
npx skills add pskoett/pskoett-skills/skills/self-healing
npx skills add pskoett/pskoett-skills/skills/simplify-and-harden
npx skills add pskoett/pskoett-skills/skills/self-improvement
The skills work with agents that follow the Agent Skills specification.
Clone and copy (or symlink) the skill directories you want:
git clone https://github.com/pskoett/pskoett-skills.git
cp -r pskoett-skills/skills/verify-gate ~/.claude/skills/
skills/
skill-name/
SKILL.md # Required - skill definition with YAML frontmatter
scripts/ # Optional - executable code
references/ # Optional - documentation loaded on demand
assets/ # Optional - templates, images, data files
| Skill | Description |
|---|---|
| context-decay | Maintains saved knowledge by decay type and rate, on its own or during self-improvement capture, review, and promotion |
| context-surfing | Monitors context quality during multi-step work and prepares a handoff when it degrades |
| control-session-orchestrator | Coordinates work across agents and sessions from Codex, GitHub Copilot, or agent-app sessions |
| intent-framed-agent | Records the intended outcome at execution start and monitors scope drift until the task is resolved |
| plan-interview | Runs a structured interview before planning non-trivial implementations |
| self-healing | Diagnoses, patches, verifies, and records fixes when a command, test, helper, environment, or external service fails during a task |
| self-improvement | Captures learnings and errors with hook-based activation and automatic skill extraction |
| session-context | Retrieves a bounded, cited prior-session brief after the initial intent frame and before finalizing the approach (beta) |
| skill-pipeline | Classifies tasks and selects which skills to run and how much review each task needs |
| simplify-and-harden | Reviews completed work to simplify code, address security risks, add brief documentation, and re-run checks |
| verify-gate | Runs compile, test, and lint checks between implementation and quality review, with a fix loop for failures |
| learning-aggregator | Reads .learnings/ files across sessions, finds patterns, and ranks candidates for promotion into rules |
| pre-flight-check | Checks relevant learnings, errors, and eval status before work begins |
| eval-creator | Creates permanent eval cases from promoted learnings and runs regression checks |
For projects using agent-qa, verify-gate includes an optional run-evidence reference. It connects natural-language testing, advanced memidex memory, and self-improvement to the gate's selected tests and outcome evidence. Live execution requires an initialized project, a compatible Node.js runtime, and its configured browser/model provider; runs can change test data and incur provider costs.
These variants run in GitHub Agentic Workflows (gh-aw) without human interaction. Each adapts an interactive skill to scan, report, and optionally gate PRs.
| Skill | Description |
|---|---|
| self-healing-ci | Diagnoses failed PR checks, proposes verified patches as PR comments or label-gated commits, and records HEAL entries in .learnings/HEALS.md |
| self-improvement-ci | Records recurring failure patterns in CI using gh-aw |
| simplify-and-harden-ci | Scans pull requests for simplification and security issues, with reporting and gating through gh-aw |
| learning-aggregator-ci | Finds patterns across sessions and reports gaps on a gh-aw schedule |
| eval-creator-ci | Runs eval checks on PRs and creates evals from promoted patterns on a gh-aw schedule |
The inner loop handles failures in the current session. The outer loop turns saved learnings into rules and regression tests for later sessions.
A single CLAUDE.md file of behavioral guidelines for Claude Code, derived from Andrej Karpathy's observations on common LLM coding pitfalls. It helps avoid overcomplicated code, keep changes surgical, and surface assumptions.
Gives a Claude Code session helpers for product and engineering work: challenging a plan's scope, judging whether an idea is worth building before any code, tracing a bug to its root cause, and reviewing recent work patterns each week.
Turns a technical book or a folder of documents into a skill your coding agent can load on demand. It pulls out frameworks, decision rules and anti-patterns, so the agent answers from the real chapter text instead of you pasting the whole book into context.
Distills colleague, relationship, or celebrity source material such as chat logs and emails into reusable person profiles, and also sets up an owner profile so a personal agent knows who it works for.
Install it with the command on its page. It includes context-decay, context-surfing, control-session-orchestrator. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it