/install architecture-critic
Architecture Critic
An adversarial pre-build agent. Its job is to find what's wrong with a proposed build before a single line of code is written.
This is not a collaborator. It does not refine the plan or suggest alternatives. It reads the proposal and returns a verdict with specific, itemized findings. No stake in the outcome. No relationship to protect.
Cost to run: ~$0.05. Cost of skipping: a rework cycle.
When to Run
| Condition | Action |
|---|---|
| New API endpoint or route | Run |
| Schema change (DB table, migration) | Run |
| Payment or charge flow touched | Run |
| Auth logic touched | Run |
| Feature touching >3 files | Run |
| New external API integration | Run |
| Any decision being pitched with confidence | Run |
| Copy/style-only change, \x3C3 files, no logic | Skip |
| Isolated bug fix, no payment/auth touch | Skip |
When in doubt: run it. The gate costs a fraction of a rework cycle.
How to Run
# 1. Write a DONE_WHEN brief
cat > /tmp/brief.md \x3C\x3C 'EOF'
Goal: \x3Cwhat this build accomplishes>
Scope: \x3Cwhat files/systems are touched>
Done when: \x3Cspecific acceptance criteria>
EOF
# 2. Run the critic
bash ~/.openclaw/workspace/skills/architecture-critic/scripts/run-critic.sh \
--task "Brief description of the build" \
--done-when /tmp/brief.md \
--repo /path/to/your/repo
Or let your agent run it automatically — see the Agent Integration section below.
Verdicts
| Verdict | Meaning | Action |
|---|---|---|
APPROVE |
Plan is sound. No blocking issues found. | Proceed to build. |
REVISE |
Specific problems identified. | Fix findings, re-run. Max 2 cycles, then escalate. |
REJECT |
Fundamental flaw in approach. | Stop. Redesign. Do not build. |
Verdicts are saved to specialists/critic-verdicts/YYYY-MM-DD-\x3Cslug>.md in your workspace.
Agent Integration
Add this to your AGENTS.md or agent instructions:
## Architecture Critic — MANDATORY GATE
Before any significant build (new endpoint, schema change, payment/auth touch, >3 files):
1. Write the DONE_WHEN brief to a temp file
2. Run: bash ~/.openclaw/workspace/skills/architecture-critic/scripts/run-critic.sh \
--task "\x3Cdescription>" --done-when \x3Cfile> [--repo \x3Cpath>]
3. APPROVE → proceed
4. REVISE → fix findings, re-run (max 2 cycles)
5. REJECT → stop, escalate to human
Skip only for: copy/style-only changes \x3C3 files no logic, isolated bug fixes no payment/auth.
How It Works
The critic script:
- Snapshots the relevant codebase state (file tree + key files)
- Combines it with your DONE_WHEN brief into a structured prompt
- Spawns an isolated agent at temperature 0 — no creativity, no encouragement
- The agent runs the checklist against your plan
- Returns a verdict with specific, itemized findings
- Saves the verdict to your workspace
The critic agent never sees your conversation history, your enthusiasm, or the proposer's reasoning. It sees only the spec and the code.
LLM Compatibility
Works with any LLM configured in your OpenClaw instance:
- Anthropic (Claude Sonnet, Haiku)
- OpenAI (GPT-4o, GPT-4 Turbo)
- Google (Gemini)
- Local models via Ollama
The script reads your OpenClaw config to find the active model and API key. No separate configuration required.
Checklist Coverage
The critic reviews against domain-specific checklists:
- Web (
references/checklist-web.md) — routes, caching, deployment config, breaking changes - Security (
references/security.md) — auth bypass, injection, secrets, CORS, OWASP Top 10 - Payment flows (
references/payment-flows.md) — webhooks, idempotency, race conditions, PCI scope - AI builds (
references/ai-builds.md) — prompt injection, hot paths, token costs, fallback handling - General (
references/checklist-general.md) — scope creep, dependencies, rollback, data migration
Pass --checklist references/security.md to focus on a specific domain, or let the critic auto-select based on your brief.
Files
architecture-critic/
├── SKILL.md # This file
├── README.md # GitHub-facing docs
├── LICENSE # MIT
├── scripts/
│ └── run-critic.sh # Main runner script
└── references/
├── checklist-web.md # Web/API checklist
├── checklist-general.md # General architecture checklist
├── security.md # Security checklist
├── payment-flows.md # Payment/billing checklist
└── ai-builds.md # AI/LLM-specific checklist
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install architecture-critic - 安装完成后,直接呼叫该 Skill 的名称或使用
/architecture-critic触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Architecture Critic 是什么?
Adversarial pre-build architecture review. Spawns a structurally independent agent that reviews proposed builds, features, or operational decisions BEFORE an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 35 次。
如何安装 Architecture Critic?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install architecture-critic」即可一键安装,无需额外配置。
Architecture Critic 是免费的吗?
是的,Architecture Critic 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Architecture Critic 支持哪些平台?
Architecture Critic 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Architecture Critic?
由 JJ(@jfulmines-star)开发并维护,当前版本 v1.0.1。