Agent Skillsvercel-labs/deepsec › deepsec-docs

deepsec-docs

GitHub

deepsec漏洞扫描器的使用指南,涵盖初始化、配置、插件开发及常见问题解答。指导Agent在用户咨询时查阅官方文档以提供准确支持。

packages/deepsec/SKILL.md vercel-labs/deepsec

触发场景

询问如何安装或初始化deepsec 需要恢复中断的设置过程 请求运行新的安全扫描 咨询配置文件deepsec.config.ts的写法 询问如何编写或添加自定义matcher 需要了解插件开发方法 查询系统架构或数据布局

安装

npx skills add vercel-labs/deepsec --skill deepsec-docs -g -y
更多选项

非标准路径

npx skills add https://github.com/vercel-labs/deepsec/tree/main/packages/deepsec -g -y

不安装直接使用

npx skills use vercel-labs/deepsec@deepsec-docs

指定 Agent (Claude Code)

npx skills add vercel-labs/deepsec --skill deepsec-docs -a claude-code -g -y

安装 repo 全部 skill

npx skills add vercel-labs/deepsec --all -g -y

预览 repo 内 skill

npx skills add vercel-labs/deepsec --list

SKILL.md

Frontmatter
{
    "name": "deepsec-docs",
    "description": "Use deepsec (an AI-powered vulnerability scanner) — one-shot initialization, resumable setup, project\/model credentials, scans, generated or hand-authored matchers, and plugins. Activates when the user asks how to initialize, scan, configure, resume, or extend deepsec."
}

deepsec

deepsec is an AI-powered vulnerability scanner. The one-shot initializer installs this skill at .deepsec/node_modules/deepsec/SKILL.md. From inside the isolated workspace the same path is node_modules/deepsec/SKILL.md. In a Deepsec source clone, use the repository's docs/ directory instead.

When the user asks how to use, configure, or extend deepsec, read the relevant doc before answering — the docs are the source of truth, not your training data.

Where the docs are

From the target repository, .deepsec/node_modules/deepsec/dist/docs/; from inside .deepsec, node_modules/deepsec/dist/docs/; or from a Deepsec source clone, <deepsec-clone>/docs/:

  • getting-started.md — one-shot initialization and resume walkthrough
  • configuration.md — full deepsec.config.ts reference
  • plugins.md — plugin slots (matchers, notifiers, ownership, people, executor)
  • writing-matchers.md — generated declarative vs hand-authored matchers
  • models.md — model selection, defaults, refusals, future models
  • vercel-setup.md — exact project link, Sandbox scope, Gateway/BYOK/custom routes
  • architecture.md — pipeline internals
  • data-layout.mddata/ schemas (FileRecord, RunMeta, …)
  • faq.md — cost, model choice, sandbox mode, FP rate

How to answer common questions

  • "How do I install/init deepsec?"getting-started.md; default to npx deepsec init, not a manual install/scan recipe.
  • "Setup stopped; how do I resume?"getting-started.md + data-layout.md; re-run init or deepsec setup.
  • "How do I run another scan?"getting-started.md after noting the first scan/process already ran during setup.
  • "What goes in deepsec.config.ts?"configuration.md + samples/webapp/deepsec.config.ts.
  • "Why did setup generate a matcher?"writing-matchers.md + the project's generated-matchers.ts.
  • "How do I add a richer matcher?"writing-matchers.md + samples/webapp/matchers/*.ts.
  • "How do I write a plugin?"plugins.md + samples/webapp/deepsec.config.ts (inline plugin pattern).
  • "What does deepsec actually do?"architecture.md.
  • "What's in data/<id>/files/foo.json?"data-layout.md.
  • "Which model / agent should I use?"models.md.
  • "How do project linking, Sandbox, or my own credentials work?"vercel-setup.md.

Read the doc before paraphrasing. The CLI flag set, defaults, and plugin-contract field names change — quote the doc, don't recall.

Agent-native initialization

When you are asked to initialize Deepsec from a non-TTY agent session, first inspect the read-only plan:

npx deepsec init --plan --output json

Then run the requested policy, normally:

npx deepsec init --yes --model-profile value --output jsonl

Parse every output line as JSON. On needs_input, show the supplied message and actions to the user rather than inventing remediation. In particular, VERCEL_AUTH_REQUIRED normally asks the user to run npx vercel login; after they do, follow the returned link action from inside .deepsec. Use npx vercel link when the user needs to choose, or the returned parameterized --yes --team <team-slug> --project <project-name> form for a known existing project. Then rerun the same Deepsec command. Exit code 2 means input is needed and exit code 3 means a requested cost/duration boundary stopped the resumable run. Never expose credential values, bypass --yes, or launch an interactive login yourself.

版本历史

  • d8b133d 当前 2026-08-16 07:29

    新增 Agent-native 初始化流程,支持非交互式会话下的计划检查与策略执行;优化了常见问题的解答指引。

  • f75a168 2026-07-24 16:29

同 Skill 集合

SKILL.md

元信息

文件数
0
版本
400a4cc
Hash
92687167
收录时间
2026-07-24 16:29

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 20:58
浙ICP备14020137号-1 $访客地图$