Agent Skills
The Serverless Framework ships Agent Skills — instruction files that teach AI coding agents (Claude Code, Codex, Cursor, and any agent supporting the open standard) how to work with your service.
The set of bundled skills varies by CLI version. If your version bundles none
yet, serverless agent skills install reports
No skills are bundled with this CLI version. and installs nothing — the rest
of this guide applies once you're on a version that bundles skills.
Recommended: one-command setup
serverless agent setup
agent setup installs the
user-level serverless-framework skill (works in every project), installs the
project skills when run inside a service directory, and reports whether your
environment is ready — authentication, AWS credentials, and service presence —
with a fix for anything missing. The command below installs the same skills
without the environment report.
Install
Run in your service directory (where serverless.yml lives) to install the
project skills there; anywhere else it installs only the user-level skill:
serverless agent skills install
Skills are written to:
.claude/skills/— read by Claude Code (and Cursor).agents/skills/— the open Agent Skills standard directory, read by Codex, Cursor, and other standard-compliant agents
The command detects which agent directories you or your team already use (in the service and in your home directory) and writes only those; with no signal it creates both. To choose explicitly:
serverless agent skills install --dir claude
serverless agent skills install --dir agents
serverless agent skills install --dir claude --dir agents
--dir is repeatable and also accepts a comma-separated list
(--dir claude,agents). It applies to the user-level skill in your home
directory too.
We recommend committing the installed skills so your whole team's agents (and newly onboarded teammates) benefit.
Automatic updates
Once installed, skills refresh automatically: whenever you run any serverless
command with a newer CLI that bundles newer skills, installed skills are
silently upgraded (a one-line notice is printed). Notes:
- Updates only ever move forward — an older CLI never downgrades skills a teammate's newer CLI installed.
- Auto-update is skipped in CI environments.
- New skills added in newer CLI versions are installed into directories that already contain Framework-managed skills.
Reading a skill without installing it
Every bundled skill can be printed on demand, so an agent working in a project where the skills are not installed still has the same knowledge one command away:
serverless agent skills list
serverless agent skills read serverless-sandboxes
serverless agent skills read serverless-sandboxes references/config.md
The same idea applies to the documentation:
serverless agent docs prints
the page index or any page that ships with the installed CLI.
Customizing a skill
Framework-managed skills are overwritten on update. To take ownership of a
skill and keep your edits, delete the managed-by line from its frontmatter:
metadata:
managed-by: serverless-framework # ← delete this line to take ownership
The Framework never touches that skill again — it is yours.
Uninstalling
Delete the skill folders (or the whole .claude/skills / .agents/skills
directory). As long as the other directory still contains Framework-managed
skills, a deleted directory is not recreated — not even by re-running
install. To fully remove: delete all Framework-managed skill folders from
both directories.
More agent tooling
Once an agent is set up to work with your service, serverless agent inspect gives it the live
AWS configuration of your deployed resources in a single read-only call —
useful when an agent needs to debug or reason about what's actually running,
not just the serverless.yml source.