@arcjet/skills

中文文档
1.15.0发布于 2026/10/29Apache-2.0TypeScriptES Module零依赖构建来源已验证近 30 天下载 11.3万

Versioned Agent Skills for the Arcjet JavaScript SDK, shipped with TanStack Intent

原始使用文档
文档目录7 节
  1. What is this?
  2. Install
  3. Use with TanStack Intent
  4. Trust model
  5. Typed manifest
  6. Maintainers
  7. License
Arcjet Logo

@arcjet/skills

npm badge

Versioned Agent Skills for the Arcjet JavaScript SDK, shipped with TanStack Intent.

Skills travel with the installed package version. They are not a copy-pasted rules file and they are not the model's training cutoff.

The standalone marketplace install (npx skills add arcjet/skills) still works from arcjet/skills. Prefer this package when you want skills that match the SDK version in node_modules.

What is this?

A TypeScript package that publishes:

  • skills/*/SKILL.md — agent guidance, one skill per task
  • docs/*.md — the source documentation those skills were derived from
  • a small typed manifest (skills, skillIdentity) for the shipped leaf names

TanStack Intent discovers the SKILL.md files as static files. It does not import or execute this package (or any other package) to find them.

Install

This package is ESM only.

npm install @arcjet/skills

Framework adapters that depend on arcjet also install this package transitively, so a typical @arcjet/next app already has the files on disk.

Guard integration skills ship in @arcjet/guard next to that package's README. Allow both packages if you use Guard.

Use with TanStack Intent

Intent scans installed dependencies for skills/**/SKILL.md. Discovery is not trust. Put an explicit allowlist in the application package.json:

{
  "intent": {
    "skills": ["@arcjet/skills", "@arcjet/guard"],
    "exclude": []
  }
}

intent.skills permits packages, not individual skills. Use intent.exclude to drop a package or one skill (@arcjet/guard#integrate-arcjet-guard-eve).

An omitted intent.skills key currently surfaces every discovered package and prints a deprecation notice. Do not use "skills": ["*"] unless you accept unvetted skills from the whole tree.

npx @tanstack/intent@latest install
npx @tanstack/intent@latest list
npx @tanstack/intent@latest load @arcjet/skills#protect

install writes loading guidance to AGENTS.md (or an existing agent config). list shows what the allowlist permits. load prints one SKILL.md — load only the skill the current task needs.

TaskLoad
HTTP routes, APIs, middleware@arcjet/skills#protect
Which rules to apply@arcjet/skills#choose-protections
Sign in and write ARCJET_KEY@arcjet/skills#cli
MCP server setup@arcjet/skills#mcp
Tool calls, MCP handlers, jobs@arcjet/skills#guard
A specific Guard vendor SDK@arcjet/guard#integrate-arcjet-guard-*

Trust model

  • Intent reads package metadata and skill files. It does not execute package code to discover or load a skill.
  • The allowlist and exclusions are the trust decision.
  • intent load returning content means the file resolved under current policy. It does not mean the skill was relevant or that the model followed it.
  • npx @tanstack/intent@latest hooks install can add session catalogs and edit gates for some agents. Treat those hooks as convenience, not a security boundary. They can observe a load command; they cannot prove the agent used the guidance.

Typed manifest

import {
  PACKAGE_NAME,
  VERSION,
  getSkill,
  skillIdentity,
  skills,
} from "@arcjet/skills";

skillIdentity("protect"); // "@arcjet/skills#protect"
getSkill("cli")?.file; // "skills/cli/SKILL.md"

This list is for this package only. It does not scan other dependencies.

Maintainers

Skill files live beside the docs they were derived from (docs/ in this package; README.md for @arcjet/guard skills). Each SKILL.md declares those paths in sources.

npx @tanstack/intent@latest validate
npx @tanstack/intent@latest stale --json

validate is required in CI. stale is conservative: a changed source is a review signal, not proof the skill is wrong. CI fails a pull request when a declared source changes and the matching SKILL.md does not.

The tanstack-intent keyword and the skills/ files entry put the skills in the npm tarball so the registry can index them.

License

Apache License, Version 2.0 © Arcjet Labs, Inc.

版本与发布记录

@arcjet/skills 共发布 5 个版本,首次发布于 2026/09/09;过去 12 个月发布了 5 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.15.0latest2026/10/298 天前
1.14.12026/10/0730 天前
1.14.02026/10/021 个月前
1.13.02026/09/171 个月前
1.12.02026/09/091 个月前

关于 @arcjet/skills 的常见问题

@arcjet/skills 是什么?

Versioned Agent Skills for the Arcjet JavaScript SDK, shipped with TanStack Intent

如何安装 @arcjet/skills?

在项目目录运行 npm install @arcjet/skills,或使用 pnpm add / yarn add / bun add。

@arcjet/skills 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@arcjet/skills 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@arcjet/skills 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.21.0 <23 || >=24.5.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@arcjet/skills 可以商用吗?

@arcjet/skills 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@arcjet/skills 的下载量有多少?

根据 npm 官方下载统计,@arcjet/skills 在 2026/10/07 – 2026/11/05 这 30 天内被下载 112,512 次,日均约 3,750 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@arcjet/skills 还在维护吗?

最新版本 1.15.0 发布于 2026/10/29(8 天前);至今共发布 5 个版本,其中过去 12 个月发布了 5 个;首次发布于 2026/09/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。