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.
npx skills add arcjet/arcjet-js --skill integrate-arcjet-guard-agentsgit clone --depth 1 https://github.com/arcjet/arcjet-jsWrote 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.
[](https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-agents)<a href="https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-agents"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-agents/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.
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-agents"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.03411 |
| Opus 5.5 | $0.00036 | $0.01364 |
| Sonnet 5.5 | $0.00018 | $0.00682 |
| Haiku 4.5 | $0.00009 | $0.00341 |
Grade A, and why
integrate-arcjet-guard-agents 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.
How it starts
The opening of the file, as written. The whole thing — 304 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Integrate Arcjet Guard into a Vercel AI SDK app
@arcjet/guard's Vercel AI v7 namespace wraps the app's existing Arcjet
client. It never talks to the Arcjet API itself. Three surfaces, one decision
rule:
- Model-invoked (the LLM decides to call a tool) →
guardTool() - App-invoked (your code performs a risky action) →
guardAction() - Observe-only (record that something happened) →
captureAction()
All three attach the same correlation ID so the Arcjet Console reconstructs
the whole run as one Sequence. This is not hosted Claude Managed Agents
(@arcjet/guard/claude-managed-agents/v0).
Questions to ask the human first
Ask only what you cannot infer from the code; suggest defaults.
- Which tool calls / actions are risky (external side effects,
irreversible, spends money, sends messages)? Those get rules. Purely
informational ones can be wrapped with no
rules(recorded, nothing enforced locally) or left tocaptureAction(). - What limits? (e.g. "10 lookups/min per user" →
tokenBucket; "5 posts/min" →slidingWindow.) - Who is the user for metadata — an opaque user/tenant/installation ID (never PII)?
- Is there an existing run identifier (request ID, job ID, review ID) to use as the correlation ID? Default: auto-generated ULID.
Step 1: Install and find the guard client
Install @arcjet/guard (required), plus ai and @ai-sdk/provider-utils
(optional peers, needed only for @arcjet/guard/vercel-ai/v7). Every agent
helper lives on that one path. Always use explicit versions:
@arcjet/guard/vercel-ai/v7 resolves, but @arcjet/guard/vercel-ai does not —
omitting the version is deliberate (it prevents silent API breaking changes
when a new major version is supported). Attempting to import from an
unversioned path throws ERR_PACKAGE_PATH_NOT_EXPORTED.
npm install @arcjet/guard ai @ai-sdk/provider-utils
If the app has no guard client yet, launch one once at module scope:
import { launchArcjet } from "@arcjet/guard";
export const arcjet = launchArcjet({ key: process.env.ARCJET_KEY! });
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.
- 10d ago Changed · +4 lines d3d2c6a5dbf1
- 18d ago Changed · +3 lines 9256acd9a35e
- 19d ago Changed · +7 lines e2a16b4303e6
- 23d ago Changed 42b3725ca17a
- 1mo ago Changed · +1 lines c872efb26691
- 1mo ago Changed · +1 lines ac883daffe4e
- 1mo ago Changed · +1 lines 567f49171321
- 1mo ago Changed · +12 lines 28eac580a61c
- 1mo ago Changed · +11 lines e183ae221d65
- 1mo ago First seen · 264 lines · 91 tokens per session scan A f3a43bf7d6ab
integrate-arcjet-guard-agents is a skill published in the GitHub repository arcjet/arcjet-js (693 stars, last pushed 2d ago), licensed Apache-2.0. It adds 91 tokens to every session and 3,411 once invoked, about $0.0004 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.
Other skills, from other repositories
clinical-trial-protocol-skill
Generate clinical trial protocols for medical devices or drugs. This skill should be used when users say "Create a clinical trial protocol", "Generate protocol for [device/drug]", "Help me design a clinical study", "Research similar trials for [intervention]", or when developing FDA submission documentation for…
claude-d3js-skill
This skill provides guidance for creating sophisticated, interactive data visualisations using d3.js.
adr-skill
Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses…
terraform-skill
Terraform infrastructure as code best practices.
create-auth-skill
Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth. Detect frameworks, configure database adapters, set up route handlers, add OAuth providers, and create auth UI pages. Use when users want to add login, sign-up, or authentication to a new or existing project with Better Auth.
prior-auth-review-skill
Automate payer review of prior authorization (PA) requests. This skill should be used when users say "Review this PA request", "Process prior authorization for [procedure]", "Assess medical necessity", "Generate PA decision", or when processing clinical documentation for coverage policy validation and authorization…