Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

headless-adapters无头适配器

Agent Skill

headless-adapters 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

269

周安装

11

GitHub Stars

2

下载量

86
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:headless-adapters(无头适配器)
来源仓库:https://github.com/plaited/agent-eval-harness
仓库路径:skills/headless-adapters
安装命令:
npx skills add https://github.com/plaited/agent-eval-harness --skill headless-adapters
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/plaited/agent-eval-harness --skill headless-adapters

简介

提供无头浏览器适配器支持,用于跨平台 UI 测试与自动化验证。

  • 适合 E2E 测试套件构建与可视化回归检测。
  • 通过 GitHub 安装,需集成测试框架如 Cypress 或 Playwright。
  • 执行测试可能改变页面状态,应在沙箱环境运行并重置初始条件。
  • headless-adapters 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Headless Adapters

Purpose

Schema-driven adapter for headless CLI agents. No code required - just define a JSON schema describing how to interact with the CLI.

Use CaseTool
Wrap headless CLI agentheadless command
Create new schemasSchema Creation Guide

Quick Start

  1. Create a schema for your CLI agent using the Schema Creation Guide
  2. Run the adapter: bunx @plaited/agent-eval-harness headless --schema./my-agent-headless.json

Any CLI agent that outputs JSON can be wrapped — no agent-specific code required.

CLI Commands

headless

Schema-driven adapter for ANY headless CLI agent.

bunx @plaited/agent-eval-harness headless --schema <path>

Options:

FlagDescriptionRequired
-s, --schemaPath to adapter schema (JSON)Yes

Schema Format:

{
  "version": 1,
  "name": "my-agent",
  "command": ["my-agent-cli"],
  "sessionMode": "stream",
  "prompt": { "flag": "-p" },
  "output": { "flag": "--output-format", "value": "stream-json" },
  "autoApprove": ["--allow-all"],
  "outputEvents": [
    {
      "match": { "path": "$.type", "value": "message" },
      "emitAs": "message",
      "extract": { "content": "$.text" }
    },
    {
      "match": { "path": "$.type", "value": "tool_use" },
      "emitAs": "tool_call",
      "extract": { "title": "$.name", "status": "'pending'", "input": "$.input" }
    },
    {
      "match": { "path": "$.type", "value": "tool_result" },
      "emitAs": "tool_call",
      "extract": { "title": "$.name", "status": "'completed'", "output": "$.content" }
    }
  ],
  "result": {
    "matchPath": "$.type",
    "matchValue": "result",
    "contentPath": "$.content"
  }
}

Session Modes:

ModeDescriptionUse When
streamKeep process alive, multi-turn via stdinCLI supports session resume
iterativeNew process per turn, accumulate historyCLI is stateless

Creating a Schema

  1. Run the CLI's --help to identify prompt, output format, and auto-approve flags
  2. Capture sample JSON output from the CLI
  3. Map JSONPath patterns to output events (including input/output for tool calls)
  4. Create the schema file
  5. Test with headless command

See Schema Creation Guide for the complete workflow.

Security Considerations

Trust Boundary: CLI Output is Untrusted

The headless adapter parses JSON output from CLI agents. This output may contain content from external sources (web searches, file reads, API responses) that flows into trajectory data:

CLI Agent → JSON stdout → JSONPath extraction → ParsedUpdate → TrajectoryStep

Trajectory fields — especially tool_call.input and tool_call.output — should be treated as untrusted content by downstream consumers (graders, LLM-as-judge, analysis scripts). Do not:

  • Execute trajectory content as code
  • Use trajectory content in unsanitized shell commands
  • Pass trajectory content to LLMs without injection-aware prompting

autoApprove Flags

The autoApprove field bypasses the CLI agent's safety confirmation prompts. Use the least permissive flags your evaluation requires:

Risk LevelExampleWhen to Use
High["--dangerously-skip-permissions"]Only in isolated containers (Docker, CI)
Medium["--allowedTools", "Read,Write,Glob"]Scoped to specific tools
Low["--auto-approve", "read-only"]Read-only evaluations

Never run high-risk autoApprove flags outside isolated environments. Use --workspace-dir or Docker for evaluations that modify the filesystem.

Troubleshooting

Common Issues

IssueLikely CauseSolution
Tool calls not capturedJSONPath not iterating arraysUse [*] wildcard syntax - see guide
Tool input/output missingExtract config missing input/output fieldsAdd input/output paths - see guide
"unexpected argument" errorStdin mode misconfiguredUse stdin: true - see guide
401 Authentication errorsAPI key not properly configuredSet the correct API key environment variable for your agent
Timeout on promptJSONPath not matchingCapture raw CLI output, verify paths - see guide
Empty responsesContent extraction failingCheck extract paths - see guide

Complete troubleshooting documentation: Troubleshooting Guide

External Resources

Related

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.76%
按下载量换算24

windsurf

21.79%
按下载量换算19

OpenCode

17.89%
按下载量换算15

Codex

13.17%
按下载量换算11

Antigravity

8.91%
按下载量换算8

Gemini CLI

3.72%
按下载量换算3

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills