Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计通过

double-agent双重间谍

Agent Skill

double-agent 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,863

周安装

123

GitHub Stars

公开资料未说明

下载量

1,004
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:double-agent(双重间谍)
来源仓库:https://github.com/zmy1006-sudo/double-agent
安装命令:
openclaw skills install double-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install double-agent

简介

用于辅助前端组件开发与界面逻辑质量保障。

  • 采用生成与评估分离机制提升系统可靠性。double-agent 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 适用于复杂 AI 系统的迭代优化与错误预防。
  • 安装前应核实是否支持目标框架与构建环境匹配。
  • 建议结合具体项目需求定制评估标准与反馈循环。

SKILL.md

name
double-agent
description
>

DoubleAgent Skill

Purpose

The DoubleAgent pattern solves a fundamental problem in AI-generated software: AI self-evaluation bias.

When a single AI agent both generates and evaluates its own output, it systematically overestimates quality — the same cognitive conflict that occurs when a student grades their own exam. The solution is to forcibly separate the two cognitive roles into independent agents with different prompts, goals, and evaluation criteria.

This skill provides:

  1. Architecture templates for Generator-Evaluator agent pairs
  2. Evaluator prompt templates calibrated with few-shot scoring examples
  3. Iteration loop design for 5-15 round refinement cycles
  4. Playwright integration patterns for real browser-based evaluation
  5. Scoring rubric design to prevent score drift and grade inflation

Core Architecture

User Goal / Spec
      ↓
 ┌─────────────┐
 │  Generator  │ ← Produces output (code, UI, content, data)
 └──────┬──────┘
        │ output artifact
        ↓
 ┌────────────────────────────────────┐
 │           Evaluator                │
 │  • Reads spec (NOT generator output)│
 │  • Operates artifact via Playwright │
 │    (click, fill form, navigate)     │
 │  • Scores on rubric (0-100)         │
 │  • Writes structured feedback       │
 └────────────────┬───────────────────┘
                  │ score + feedback
                  ↓
         ┌────────────────┐
         │ Score ≥ target? │
         │   YES → Done    │
         │   NO → Loop     │
         └────────┬────────┘
                  │
                  └──→ Generator (next iteration)

Key principle: The Evaluator reads the original spec, not the Generator's output. It evaluates independently, as if it were a real user encountering the product for the first time.


When to Apply

ScenarioApply DoubleAgent?
AI-generated frontend UI with interactions✅ Yes
Multi-step workflow code (forms, flows)✅ Yes
API endpoint implementation + validation✅ Yes
Content generation (reports, copy, docs)✅ Yes (text-based evaluator)
Single-function refactoring⚠️ Optional
Simple config changes❌ Not needed

Implementation Steps

Step 1: Define the Spec Contract

Write a clear spec that both agents will reference independently. The spec must be:

  • Concrete (measurable outcomes, not vague goals)
  • Observable (evaluable through interaction or inspection)
  • Versioned (so both agents work from the same contract)

See references/architecture.md for spec template.

Step 2: Configure the Generator Agent

Assign the Generator a single role: produce output that satisfies the spec.

  • Do NOT ask the Generator to self-evaluate
  • Do NOT include evaluation criteria in the Generator's prompt
  • Provide: spec + iteration history + previous evaluator feedback

Step 3: Configure the Evaluator Agent

Assign the Evaluator a single role: independently verify the spec is satisfied.

  • Load references/evaluator-prompts.md for calibrated prompt templates
  • Use Playwright MCP for UI/web artifacts (real browser interaction)
  • Use structured JSON output for scores to enable automated loop control
  • Calibrate with few-shot examples BEFORE running (prevents grade inflation)

Step 4: Design the Iteration Loop

MAX_ROUNDS = 15
PASS_THRESHOLD = 80  # out of 100

for round in range(MAX_ROUNDS):
    output = generator.run(spec, history)
    evaluation = evaluator.run(spec, output)  # Playwright-based
    
    history.append({"round": round, "score": evaluation.score, "feedback": evaluation.feedback})
    
    if evaluation.score >= PASS_THRESHOLD:
        break
    
    if evaluation.score_trend == "plateauing":
        generator.switch_approach()  # Complete strategy reset

See scripts/iteration_loop.py for a complete implementation template.

Step 5: Calibrate the Evaluator

To prevent score drift, run the Evaluator on 3-5 known examples FIRST:

  • 1 example at ~30/100 (clearly bad)
  • 1 example at ~60/100 (mediocre)
  • 1 example at ~85/100 (good)
  • 1 example at ~95/100 (excellent)

If scores deviate >15 points from expected, adjust the Evaluator's prompt or rubric weights before the real run.


Scoring Rubric Design

Effective rubrics for software systems:

DimensionWeightWhat to Measure
Functional completeness30%Does each spec requirement work end-to-end?
Interaction quality25%Click/form/navigation behavior as a real user
Edge case handling20%Error states, empty data, boundary inputs
Code/design quality15%Consistency, readability, no obvious anti-patterns
Originality / craft10%Avoids generic/template outputs when spec requires uniqueness

Adjust weights based on the domain. For content systems, increase "originality". For data pipelines, increase "edge case handling".


Playwright Integration (for UI artifacts)

When evaluating web/H5/mini-program outputs, the Evaluator should:

  1. Navigate to the deployed artifact URL
  2. Execute each spec requirement as a user action sequence
  3. Observe actual behavior (DOM state, network requests, visual output)
  4. Record pass/fail per requirement with screenshots
  5. Report structured JSON with score breakdown

Playwright MCP tool calls to use:

  • playwright_navigate → open URL
  • playwright_click → interact with elements
  • playwright_fill → fill form inputs
  • playwright_screenshot → capture evidence
  • playwright_get_visible_text → verify content

Reference Files

  • references/architecture.md — Detailed architecture patterns, spec templates, and design rationale
  • references/evaluator-prompts.md — Ready-to-use Evaluator prompt templates for different artifact types

Scripts

  • scripts/iteration_loop.py — Complete iteration loop implementation template
  • scripts/calibrate_evaluator.py — Evaluator calibration utility

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

95.97%
按下载量换算964

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills