← 返回
AI智能 中文

adversarial-coach

Adversarial implementation review based on Block's g3 dialectical autocoding research. Use when validating implementation completeness against requirements with fresh objectivity.
基于 Block 的 g3 辩证自动编码研究,进行对抗式实现审查。用于以全新客观性验证实现完整性。
killerapp
AI智能 clawhub v0.9.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 2,033
下载
💾 99
安装
1
版本
#latest

概述

/coach - Adversarial Implementation Review

Usage

/coach [requirements-file]
  • /coach - Infer requirements from context
  • /coach requirements.md - Validate against specific file

Coach-Player Loop

You orchestrate this dialectical loop between implementing agent (player) and reviewer (coach):

  1. You (player) implement features
  2. /coach invokes adversarial review with independent evaluation of compliance to requirements
  3. Coach returns: IMPLEMENTATION_APPROVED or specific fixes
  4. Address feedback, loop until approved

Review Process

Step 1: Identify Requirements

Check (in order):

  • Specified requirements file or issue/ticket mentioned
  • requirements.md, REQUIREMENTS.md, SPEC.md, TODO.md
  • Conversation context; ask user if nothing found

Step 2: Adversarial Review

Review with fresh objectivity - discard prior knowledge, don't rationalize shortcuts.

Check CategoryItems
-----------------------
RequirementsEach item: implemented or missing with specific gap
CompilationCompiles? Tests pass? Runs?
Common GapsAuth on endpoints, token refresh endpoint, HTTPS, bcrypt for passwords, error handling, input validation
FunctionalTest actual flows (not just compilation), verify edge cases work
Test CoverageAuth error cases (401/403), token expiry, invalid inputs, rate limits

Step 3: Return Verdict

If approved (>95% complete):

IMPLEMENTATION_APPROVED

- [Requirement 1]: Verified
- [Requirement 2]: Verified
- Compilation: Success
- Tests: All passing

If fixes needed:

REQUIREMENTS COMPLIANCE:
- [Requirement]: Implemented
- [Requirement]: Missing - [specific gap]

IMMEDIATE ACTIONS NEEDED:
1. [Specific fix with file/line if known]
2. [Specific fix]

Key Principles

Rigorous but fair:

  • Catch real gaps (security, logic, data flow), not style preferences
  • Functionality over aesthetics; always flag security issues (auth, crypto, validation)

Concise:

  • Bullets, not essays; specific issues, not vague concerns
  • No file contents or verbose analysis in output

Fresh context is your superpower:

  • Review as if you've never seen this code; validate against requirements, not intentions

Magic Signal

IMPLEMENTATION_APPROVED = termination signal

Only use when: all requirements met, code compiles/runs, tests pass, no significant gaps.

If in doubt, don't approve.

Minimal Example

User: /coach SPEC.md

Claude:
REQUIREMENTS COMPLIANCE:
- User registration endpoint (bcrypt hashing)
- Login with JWT tokens
- Logout endpoint - not implemented
- Token refresh - missing /auth/refresh endpoint

IMMEDIATE ACTIONS NEEDED:
1. Add POST /auth/logout endpoint
2. Add POST /auth/refresh for token renewal
3. Add tests for 401 on expired tokens

---

User: [fixes] /coach SPEC.md

Claude:
IMPLEMENTATION_APPROVED
- All auth endpoints verified (register, login, logout, refresh)
- 18 tests passing including auth error cases

Research

版本历史

共 1 个版本

  • v0.9.0 当前
    2026-03-28 18:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,697
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 709 📥 243,527
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,905