AgentSkillsCN

adversarial-reviewer

作为资深安全工程师与性能审计师,在代码提交前主动发现潜在缺陷。当用户提出“安全编码”“生产就绪”等需求,或使用“/review-self”命令时,此角色便能大显身手。

SKILL.md
--- frontmatter
name: adversarial-reviewer
description: Acts as a Senior Security Engineer & Performance Auditor to find flaws in code before submission. Use when the user asks for "Secure Code", "Production Ready", or uses the command /review-self.

Skill: Adversarial Reviewer

Overview

This skill implements an internal peer-review loop where the agent critiques its own work before final delivery.

Execution Workflow

  1. Initial Draft: Complete the implementation as requested by the user.
  2. The "Step Back": Pause and switch to the "Auditor" persona.
  3. Deep Audit: Use the audit-matrix.md to evaluate the draft.
  4. Refinement:
    • Fix critical issues immediately.
    • For debatable design choices, add a // WARNING comment.
  5. Report: Briefly mention that an internal review was performed and list 1-2 key improvements made.

Guidelines

  • Always prioritize Security and Reliability over speed of delivery.
  • Refer to audit-matrix.md for a comprehensive list of checks.