Token导航 LogoToken导航

Agent Skill · 研究检索

red-team(红队)

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

red-team 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 53,927。

总安装 519周安装 21GitHub Stars 318下载 163核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/boshu2/agentops --skill red-team

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

red-team 采用对抗性 persona 测试实际可用性,暴露真实缺陷。适合在 Codex、Claude、Cursor、Gemini CLI 中验证文档与功能有效性。不同于专家评判,重点在于模拟用户使用路径发现断点。支持自定义 personas 文件和表面类型参数,灵活适配不同场景。

red-team 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/red-team

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/boshu2/agentops --skill red-team;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

red-team 怎么安装?

在终端执行 npx skills add https://github.com/boshu2/agentops --skill red-team。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

red-team 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

red-team 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/boshu2/agentops --skill red-team 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

red-team 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

red-team 用的人多吗?

公开数据是累计安装 519 次,近一周安装 21 次,下载 163 次,GitHub 318 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

red-team 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
red-team

红队 · 本页

519318执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

/red-team — Persona-Based Adversarial Validation

Quick Ref: Adopt constrained personas. Attempt real tasks. Report what breaks. Unlike /council (expert judgment) or /vibe (code quality), red-team tests whether things actually WORK when someone TRIES to use them.

YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.

Quick Start

/red-team docs/                                    # probe docs with default personas
/red-team skills/council/                          # probe a skill's SKILL.md
/red-team --surface=docs README.md                 # explicit surface type
/red-team --personas-file=.agents/red-team/p.yaml  # custom personas
/red-team --deep skills/rpi/                       # council consolidation with --deep

How It Works

Council:    expert judges  →  review artifact  →  debate  →  verdict
Red-team:   constrained agents  →  attempt task  →  collect findings  →  council consolidates

Council judges SEE everything and JUDGE quality. Red-team agents have RESTRICTED context and ATTEMPT tasks. Council is reused only for the consolidation/verdict phase.


Flags

FlagDefaultDescription
--surface=<type>auto-detectForce surface type: docs or skills
--personas-file=<path>built-inCustom persona definitions (YAML)
--scenarios-file=<path>auto-generateCustom scenario definitions (YAML)
--deepoffUse full council (not --quick) for consolidation
--persona=<name>allRun only a specific persona
--target=<path>.Target path to probe

Execution Steps

Step 0: Setup

Detect target surface type and create output directory.

mkdir -p .agents/red-team

Surface detection:

  • Path contains skills/ and a SKILL.md exists → skills surface
  • Path contains docs/ or target is README.md → docs surface
  • Explicit --surface=<type> overrides auto-detection

Validate surface: v1 supports docs and skills only. If another surface is detected, output:

Surface '<type>' is not supported in v1. Supported: docs, skills.

Step 1: Load Personas

Priority order:

  1. --personas-file=<path> → load custom personas from YAML
  2. .agents/red-team/personas/*.yaml → load project-specific personas
  3. Built-in defaults from council red-team preset (see references/persona-format.md)

For docs surface: Default personas: panicked-sre, junior-engineer, first-time-consumer For skills surface: Default persona: zero-context-agent

If --persona=<name> is set, filter to only that persona.

Step 2: Build Context-Restricted Prompts

For each persona, construct a context-restricted agent prompt. This is the critical step that differentiates red-team from council — the agent operates under enforced knowledge constraints.

Prompt template:

You are {PERSONA_NAME}: {ROLE}.

CONTEXT: {CONTEXT_DESCRIPTION}

MANDATORY CONSTRAINTS — you MUST follow these:
- You can ONLY read files in: {ALLOWED_PATHS}
- You do NOT know: {EXCLUDED_KNOWLEDGE}
- You CANNOT: {CANNOT_LIST}
- You MUST navigate from the entry point a real {ROLE} would use
- Do NOT use Grep to search the entire codebase — only read files
  you would naturally discover by following links and references

YOUR TASK: Complete the following scenarios in order.

{SCENARIO_LIST}

For EACH scenario, record:
1. Steps taken (file read, link followed, search attempted)
2. Path taken: entry_point → file1:line → file2:line → ...
3. Verdict: PASS (completed), FAIL (blocked), PARTIAL (completed with friction)
4. Friction points (even on PASS — what slowed you down?)
5. Evidence: exact file:line references
6. Severity: critical (blocks task), significant (impedes task), minor (friction)

Write your complete findings report to: .agents/red-team/probe-{PERSONA_NAME}.md

Use this format for each finding:
## RT-NNN: <title>
- **Scenario:** <which scenario>
- **Verdict:** PASS | FAIL | PARTIAL
- **Severity:** critical | significant | minor
- **Path taken:** <navigation path>
- **Finding:** <what happened>
- **Evidence:** <file:line>
- **Recommendation:** <actionable fix>

Context restriction enforcement:

The persona's constraints.allowed_paths controls which files the agent can read. The constraints.excluded_knowledge tells the agent what concepts to treat as unknown. The constraints.cannot lists forbidden actions.

These constraints are enforced via the agent prompt — the agent is instructed to behave as if it only has access to the allowed paths and lacks the excluded knowledge. While not technically sandboxed, this produces meaningful usability findings because the agent genuinely navigates from the entry point rather than using expert knowledge to skip ahead.

Step 3: Load Scenarios

Priority order:

  1. --scenarios-file=<path> → load custom scenarios
  2. .agents/red-team/scenarios/*.yaml → load project-specific scenarios
  3. Auto-generate from target surface

Auto-generation rules per surface type — see references/scenario-format.md:

  • Docs: 4-6 scenarios per persona probing discoverability, completeness, copy-paste readiness, jargon
  • Skills: 3-5 scenarios per persona probing step executability, examples, error handling, flags

Step 4: Execute Probes

Spawn one agent per persona. Each agent runs all scenarios for their persona sequentially.

Agent(
  description="Red-team probe: {persona_name}",
  prompt=<context-restricted prompt from Step 2>,
  subagent_type="general",
  run_in_background=true
)

Spawn all persona agents in parallel (they work on independent probes).

Wait for all agents to complete. Each writes findings to .agents/red-team/probe-{persona_name}.md.

Step 5: Collect and Normalize Findings

Read each probe report from .agents/red-team/probe-{persona_name}.md.

Parse findings into canonical schemas/finding.json format:

{
  "severity": "critical",
  "category": "red-team/panicked-sre",
  "description": "Runbook for ArgoCD sync failure not reachable from docs entry point",
  "location": "docs/README.md:45",
  "recommendation": "Add incident runbook link to docs/README.md quick-reference section",
  "fix": "Add '## Incident Runbooks' section with links to docs/runbooks/",
  "why": "On-call SRE cannot find recovery procedure under time pressure",
  "ref": "docs/README.md → docs/operations/README.md → dead end (no runbook link)"
}

Field mapping:

  • category → "red-team/<persona-name>"
  • location → file:line from evidence
  • ref → navigation path taken
  • why → root cause (why this matters for the persona)

Step 6: Cross-Persona Deduplication

When the same finding appears from multiple personas:

  1. Keep the highest-severity instance
  2. Note all personas that found it (increases confidence)
  3. Add to cross-persona findings table in the report

Dedup key: location + normalized description. Two findings at the same location about the same issue = one finding with multiple persona citations.

Step 7: Consolidate via Council

Run council with red-team preset to review and consolidate all findings:

Skill(skill="council", args="--preset=red-team [--quick] validate .agents/red-team/")

Use --quick by default. Use full council (omit --quick) when --deep flag is set.

Council judges review the raw findings using red-team perspectives (OnCall, NewHire, Agent, Consumer) and produce a consolidated verdict.

Step 8: Write Report

Write consolidated report to .agents/red-team/YYYY-MM-DD-red-team-<target-slug>.md.

Report includes:

  • Overall verdict (PASS/WARN/FAIL)
  • Per-persona results table
  • Detailed findings with evidence
  • Cross-persona findings (higher confidence)
  • Council consolidation verdict

See references/report-format.md for the full template.

Step 9: Feed Flywheel

Do NOT emit raw findings directly to .agents/findings/registry.jsonl. The registry is for reusable normalized patterns, not one-off target defects.

Instead:

  • If verdict is WARN or FAIL, suggest running /retro to capture reusable lessons
  • If called from /post-mortem, findings flow through the standard normalization pipeline
  • Log: "Red-team complete. Run '/retro' to capture reusable findings."

Persona Defaults by Surface

SurfaceDefault PersonasRationale
docspanicked-sre, junior-engineer, first-time-consumerTests time-pressure, onboarding, and zero-knowledge paths
skillszero-context-agentTests whether an agent can execute from SKILL.md alone

Output Directory

.agents/red-team/
├── probe-panicked-sre.md         # Raw probe output
├── probe-junior-engineer.md      # Raw probe output
├── probe-first-time-consumer.md  # Raw probe output
├── probe-zero-context-agent.md   # Raw probe output
├── YYYY-MM-DD-red-team-<target>.md  # Consolidated report
├── personas/                     # Custom persona definitions
│   └── *.yaml
└── scenarios/                    # Custom scenario definitions
    └── *.yaml

Examples

Probe Documentation

User says: /red-team docs/

What happens:

  1. Detects docs surface
  2. Loads 3 default personas (panicked-sre, junior-engineer, first-time-consumer)
  3. Auto-generates 4-6 scenarios per persona (discoverability, completeness, copy-paste, jargon)
  4. Spawns 3 agents in parallel, each constrained to docs/ and README.md
  5. Collects findings, deduplicates cross-persona
  6. Runs /council --preset=red-team --quick for consolidation
  7. Writes report to .agents/red-team/

Result: Structured usability findings from 3 constrained perspectives.

Probe a Skill

User says: /red-team skills/evolve/

What happens:

  1. Detects skills surface (SKILL.md exists)
  2. Loads zero-context-agent persona
  3. Auto-generates 3-5 scenarios (step executability, examples, error handling, flags)
  4. Spawns 1 agent restricted to skills/evolve/SKILL.md and skills/evolve/references/
  5. Agent attempts to follow the SKILL.md workflow step-by-step
  6. Collects findings on ambiguities, missing steps, undefined terms
  7. Writes report

Result: Actionable feedback on SKILL.md clarity from a zero-context perspective.

Custom Personas

User says: /red-team --personas-file=.agents/red-team/personas/platform-ops.yaml docs/

What happens: Uses project-specific personas instead of built-in defaults.


Troubleshooting

ProblemCauseSolution
Agent reads files outside allowed_pathsPrompt constraint not followedRe-run with stricter prompt; check agent output for constraint violations
Too many findings (noise)Broad target scopeNarrow target (e.g., docs/getting-started/ instead of docs/)
All scenarios PASSTarget is well-documented or personas too permissiveTry custom personas with tighter constraints or broader scenario scope
Council consolidation misses findingsRaw findings not in standard formatCheck probe files match the expected format
Surface auto-detection wrongAmbiguous target pathUse explicit --surface=docs or --surface=skills

See Also

Reference Documents

平台分布

Codex

38.52%
按下载量换算63

Claude

30.15%
按下载量换算49

Cursor

17.35%
按下载量换算28

Gemini CLI

8.75%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/boshu2/agentops --skill red-team 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills