skills: Instructions file for Claude Code

AGENTS.md

skills AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from upstash/skills. It costs 2,259 tokens per session, scanned A, original, MIT.

Contributor instructions for a collection of Upstash skills, including how their combined documentation is generated. The generated directory is built from separate source skill files.

In plain words
What is it for?
Use them when updating an Upstash sub-skill, rebuilding the combined output, or checking whether generated files match their sources.
Why use it?
They prevent edits from being lost and explain the build and clean-tree checks needed to keep generated documentation current.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is upstash/skills's own configuration. It tells Claude Code, Codex and OpenCode how to work on skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to upstash/skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/upstash/skills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/upstash/skills

Made for: Claude Code, Codex, OpenCode.

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 skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/upstash/skills/agents-md/github.svg)](https://agentmods.dev/instructions/upstash/skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/upstash/skills/agents-md"><img src="https://agentmods.dev/badge/instructions/upstash/skills/agents-md/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 skills AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/upstash/skills/agents-md"><img src="https://agentmods.dev/badge/instructions/upstash/skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,259 This file is loaded in full into every session.
When invoked 2,259 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02259 $0.02259
Opus 5.5 $0.00904 $0.00904
Sonnet 5.5 $0.00452 $0.00452
Haiku 4.5 $0.00226 $0.00226

Measured yesterday against content hash 8d1b82475c36, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skills AGENTS.md 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 yesterday.

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.

AGENTS.md · 146 lines

How it starts

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

Agent guide

Keep skill docs short and effective

Skills are consumed by agents, not read as blog posts. Say what the correct behaviour is and show it — then stop. Don't pile on caveats, notes and inline comments beyond what a reader needs to act on the example.

Never edit skills/upstash/ by hand

It is generated by scripts/build.mjs from each skills/upstash-*/SKILL.md. The build strips the frontmatter and writes overview.md into the combined skill.

To change a sub-skill:

  1. Edit skills/<skill-name>/SKILL.md — the source of truth.
  2. Run npm run build to regenerate skills/upstash/.
  3. Commit both the source and the regenerated output.

CI runs npm run check, which fails if the generated output is stale. check.mjs asserts that git status --porcelain is empty after rebuilding, so it only passes on a fully clean tree — commit your source edits and the regenerated output before running it, otherwise it reports them as "out of date".

The build's pre-check also refuses to run while skills/upstash/ has unstaged changes — if you edited it by mistake, git restore skills/upstash/ first.

claude-plugin/ is what the Claude directory reads

The Claude plugin directory is submitted the claude-plugin/ folder, not the repo root. It reads only that folder and, since Upstash isn't a Verified organization there, refuses a version that contains anything but Markdown, text, JSON, YAML and a few image types (plus the plugin's icon and LICENSE), a symbolic link, a file starting with #!, a CLAUDE.md or AGENTS.md in any case, or a package.json with fields like scripts. The root has all of those, so scripts/build.mjs copies .claude-plugin/plugin.json, skills/, the icon and LICENSE into claude-plugin/ and fails the build on any refused file.

Like skills/upstash/, never edit claude-plugin/ by hand: run npm run build and commit the result. Keep skills shippable:

  • No scripts or code files in a skill folder. Put code in a fenced block in a .md page.
  • No credential read from the user's machine in examples. Write YOUR_API_KEY, not $API_KEY or "$TOKEN", in shell commands. process.env.X in application code samples is fine.
  • No page named agents.md or claude.md.

Read the full file on GitHub · 146 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. yesterday Changed · +10 lines · +281 tokens per session 8d1b82475c36
  2. 14d ago Changed · +19 tokens per session cf8c10573f2b
  3. 2mo ago Changed · +3 lines · +74 tokens per session c45d41fe5d89
  4. 2mo ago Changed · +2 lines · +39 tokens per session d7508cafdf3f
  5. 2mo ago Changed · +2 tokens per session 9161b75e2e75
  6. 2mo ago Changed · +103 lines · +1,335 tokens per session a7c617fdc784
  7. 2mo ago Changed · +8 lines · +240 tokens per session 7ee7be44dafe
  8. 3mo ago First seen · 20 lines · 269 tokens per session scan A 287a3a38cbb3

Subscribe to this mod's changes

skills AGENTS.md is an instructions file published in the GitHub repository upstash/skills (37 stars, last pushed yesterday), licensed MIT. It adds 2,259 tokens to every session, about $0.0090 per session on Opus 5.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

skills AGENTS.md compared with instructions from other repositories

skills AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skills AGENTS.mdupstash/skillsInstructions file37yesterdayMITA2,259Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot