choose-protections

choose-protections is a skill for Claude Code, Codex from arcjet/arcjet-js. It costs 45 tokens per session (916 once invoked), scanned A, original, Apache-2.0.

A decision guide for choosing Arcjet security rules for problems such as bots, attacks, excessive requests, prompt injection, sensitive information, unsafe text, and signup abuse. Arcjet is a service for protecting applications and their requests.

In plain words
What is it for?
Use it when selecting protections for web requests, AI prompts, tool calls, user signups, sensitive data, content moderation, or network filters.
Why use it?
It maps a security problem to the relevant Arcjet protection instead of making you choose among many rules without guidance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it when selecting protections for web requests, AI prompts, tool calls, user signups, sensitive data, content moderation, or network filters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcjet/arcjet-js/choose-protections
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 arcjet/arcjet-js --skill choose-protections
Clone the repo
git clone --depth 1 https://github.com/arcjet/arcjet-js

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 choose-protections

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/choose-protections"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/choose-protections.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 916 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.00045 $0.00916
Opus 5.5 $0.00018 $0.00366
Sonnet 5.5 $0.00009 $0.00183
Haiku 4.5 $0.00005 $0.00092

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

Security

Grade A, and why

choose-protections 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 6d 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.

arcjet-skills/skills/choose-protections/SKILL.md · 66 lines

What it actually says

Choose Arcjet protections

Load this skill when you need to pick rules. Then load @arcjet/skills#protect or @arcjet/skills#guard to implement them.

Problem Rule Where
Bots, scrapers, signed agents, AI agents detectBot (allow or deny, not both; CATEGORY:AI_AGENT; SIGNED_BOT:<directory URL>; isAiAgent) Request only
SQLi / XSS / common probes shield (mode: "LIVE") Request only
Cost / abuse quotas tokenBucket, fixedWindow, slidingWindow Request and Guard
Jailbreaks, instruction overrides detectPromptInjection (binary; no threshold) Request and Guard
PII in text (names, addresses, gov IDs, card, email, phone, IP) sensitiveInfo / localDetectSensitiveInfo + backend: rampart() Request and Guard (server runtime)
PHI (medical record, health plan, VIN, plate, device IDs) Server-side sensitive-info detector in a remote Guard policy Guard policy only
Unsafe / abusive text moderateContent Guard only
Signup spam, disposable email validateEmail + protectSignup Request only
VPN / Tor / country / IP lists filter Request only
Dangerous tool calls Guard per-tool label + rate limits Guard only

Token bucket: variable-cost AI (requested per call). Fixed window: hard cap. Sliding window: no boundary burst. Request rate limits default to IP; set characteristics: ["userId"] for a user key. Guard rate limits always need key and bucket.

Sensitive-info rules use @arcjet/sensitive-info-rampart. Always pass backend: rampart() on the rule; Rampart entities never match without it. Rampart needs Node.js, Bun, or Deno – not Cloudflare Workers or edge runtimes.

capture() records that an action happened. It is not a protection rule.

Remote bot and filter rules can be managed with the CLI or MCP without a redeploy — load @arcjet/skills#cli or @arcjet/skills#mcp.

Do not:

  • Fail open on AI or PII routes. Deny (503) when a prompt-injection or sensitive-info decision errored, and gate moderation on DENY || hasFailedOpen().
  • Send more than 128 KiB to prompt injection or moderation (denied in LIVE). Moderation evaluates only the first 60 KB.
  • Expect on-device sensitive-info rules to find PHI types.
  • Treat a verified signed agent as authorized. Keep rate limits on, and check isDenied() before isVerifiedBot.
  • Deny CATEGORY:AI when you meant to keep on-demand AI agents — use CATEGORY:AI_AGENT on an allow list instead (1.16.0+).
  • Write SDK code for coding agents (Claude Code, Copilot, Codex, Cursor, Muse Code) or shadow AI discovery. Coding agents use a Console policy plus the hooks from https://docs.arcjet.com/coding-agents (no matcher, label, or ?surface=). Discovery is an MDM endpoint agent.
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. 6d ago Changed · +1 lines d7caba5d9a0d
  2. 10d ago Changed · +3 lines e52a14b8b939
  3. 13d ago Changed eaff173621fb
  4. 18d ago Changed · +11 lines 837a14f5fe74
  5. 1mo ago Changed ec3b3252f0c7
  6. 1mo ago Changed · +1 lines 2f06706ed804
  7. 1mo ago Changed 43b70dc4380a
  8. 1mo ago Changed · +5 lines 47100c31ba2a
  9. 2mo ago Changed 27e293daf03b
  10. 2mo ago First seen · 45 lines · 45 tokens per session scan A b5aee6aad9c2

Subscribe to this mod's changes

choose-protections is a skill published in the GitHub repository arcjet/arcjet-js (704 stars, last pushed 2d ago), licensed Apache-2.0. It adds 45 tokens to every session and 916 once invoked, about $0.0002 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-09-05.

Related

choose-protections compared with skills from other repositories

choose-protections next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
choose-protectionsarcjet/arcjet-jsSkill7042d agoApache-2.0A45Claude Code, Codex
clinical-trial-protocol-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA70Claude Code, Codex
claude-d3js-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA25Claude Code, Codex
adr-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA89Claude Code, Codex
linear-claude-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA15Claude Code, Codex
playwright-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA60Claude Code, Codex
terraform-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA10Claude Code, Codex