← Back to Skills Marketplace
jfulmines-star

Architecture Critic

by JJ · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
35
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install architecture-critic
Description
Adversarial pre-build architecture review. Spawns a structurally independent agent that reviews proposed builds, features, or operational decisions BEFORE an...
README (SKILL.md)

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:

  1. Snapshots the relevant codebase state (file tree + key files)
  2. Combines it with your DONE_WHEN brief into a structured prompt
  3. Spawns an isolated agent at temperature 0 — no creativity, no encouragement
  4. The agent runs the checklist against your plan
  5. Returns a verdict with specific, itemized findings
  6. 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
Usage Guidance
Review the script before installing. Use it only with repositories you are comfortable sending to your selected LLM provider, ensure your OpenClaw config is trusted, and prefer an updated version that removes shell eval and better separates untrusted repo content from critic instructions.
Capability Analysis
Type: OpenClaw Skill Name: architecture-critic Version: 1.0.1 The architecture-critic skill is a legitimate tool designed to perform adversarial pre-build reviews by snapshotting a local codebase and sending it to a user-configured LLM provider. The core logic in 'scripts/run-critic.sh' extracts API keys from the local OpenClaw configuration and uses Python helper scripts to gather file metadata and content, which are then sent to official Anthropic, OpenAI, or Google endpoints. While the tool handles sensitive data (source code and API keys), its behavior is transparent, well-documented in 'SECURITY.md', and strictly aligned with its stated purpose of providing architectural feedback. No evidence of malicious exfiltration, obfuscation, or unauthorized persistence was found.
Capability Tags
cryptocan-make-purchasesrequires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The skill coherently performs an adversarial architecture review by snapshotting a repo, sending a prompt to a configured LLM, and saving a verdict; those behaviors are central to the purpose but involve sensitive code and credential handling.
Instruction Scope
The critic prompt mixes its operating instructions with user-supplied briefs and repository contents in one LLM message, so prompt-like text inside the repo or brief could influence the review verdict.
Install Mechanism
There is no package install step, but the script depends on bash, python3, and an LLM API key even though registry requirements declare no binaries, env vars, or primary credential.
Credentials
Reading the selected repository and sending a bounded snapshot to a configured LLM provider is purpose-aligned, but users should treat it as sharing source/spec data with that provider.
Persistence & Privilege
The skill does not show background persistence, but the visible script evaluates config-derived shell assignments with eval, which can create command-execution risk if config values are malformed or attacker-controlled.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install architecture-critic
  3. After installation, invoke the skill by name or use /architecture-critic
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Added SECURITY.md to document or clarify security policies and practices. - No changes to core functionality or user workflow.
v1.0.0
Initial release of architecture-critic skill. - Introduces an adversarial, pre-build architecture review agent. - Provides explicit criteria for when to run (e.g., new features, schema changes, payment/auth logic). - Outputs a clear verdict: APPROVE, REVISE (with findings), or REJECT. - Integrates with your agent workflows and supports multiple LLM providers via OpenClaw. - Includes domain-specific checklists (web, security, payment, AI, general) for thorough review coverage.
Metadata
Slug architecture-critic
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Architecture Critic?

Adversarial pre-build architecture review. Spawns a structurally independent agent that reviews proposed builds, features, or operational decisions BEFORE an... It is an AI Agent Skill for Claude Code / OpenClaw, with 35 downloads so far.

How do I install Architecture Critic?

Run "/install architecture-critic" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Architecture Critic free?

Yes, Architecture Critic is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Architecture Critic support?

Architecture Critic is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Architecture Critic?

It is built and maintained by JJ (@jfulmines-star); the current version is v1.0.1.

💬 Comments