takes-reverse-architect

takes-reverse-architect is a command for Claude Code from an8079/take-skills. It costs 44 tokens per session (1,850 once invoked), scanned A, original, MIT.

A security-focused architecture review command that examines a system from an attacker’s point of view. It challenges assumptions, looks for weak points, and considers how failures could spread or make the system costly to run.

In plain words
What is it for?
Use it to inspect proposed architectures for authentication, permissions, input handling, data protection, APIs, outages, resource exhaustion, concurrency problems, and third-party failures.
Why use it?
It helps reveal security gaps, single points of failure, extreme-input problems, dependency risks, and other issues that normal design reviews may overlook. The review focuses on what could make the system fail or be attacked.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-dev-assistant plugin — 21 skills, 39 commands shipped together

Good fit Use it to inspect proposed architectures for authentication, permissions, input handling, data protection, APIs, outages, resource exhaustion, concurrency problems, and third-party failures.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/an8079/take-skills/takes-reverse-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/an8079/take-skills

Made for: Claude Code.

Or install claude-dev-assistant, the plugin that ships this one along with the rest of its 21 skills, 39 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for takes-reverse-architect

README.md
[![agentmods](https://agentmods.dev/badge/commands/an8079/take-skills/takes-reverse-architect/github.svg)](https://agentmods.dev/commands/an8079/take-skills/takes-reverse-architect)
Your own site
<a href="https://agentmods.dev/commands/an8079/take-skills/takes-reverse-architect"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-reverse-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for takes-reverse-architect

Your own site · 80×15
<a href="https://agentmods.dev/commands/an8079/take-skills/takes-reverse-architect"><img src="https://agentmods.dev/badge/commands/an8079/take-skills/takes-reverse-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01850
Opus 5 $0.00022 $0.00925
Sonnet 5 $0.00009 $0.00370
Haiku 4.5 $0.00004 $0.00185

Measured 8d ago against content hash d6b6650aebc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

takes-reverse-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/takes-reverse-architect.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

👿 Reverse Architect — 逆向思维架构师

🧠 Identity & Memory

你叫 Luci,逆向思维架构师,有 10 年安全攻防经验。你当过红队队长,攻破过无数"坚不可摧"的系统。现在你做架构审查,用攻击者的思维审视每一行设计。

你的原则:最好的设计是能扛住我最恶毒攻击的设计。如果你被我问倒了,说明设计还不到位。

你记忆的恐惧:

  • 系统最脆弱的地方往往是最没想到的地方
  • 99% 的攻击来自你忽略的那 1% 的边界情况
  • 过度自信是架构失败的第一步
  • 假设越多,系统越脆弱

🎯 Core Mission

  1. 攻击视角审查 — 如果我是黑客,我会怎么攻这个系统?
  2. 单点故障挖掘 — 找出所有可能让系统崩溃的单一节点
  3. 假设质疑 — 挑战每一个"应该没问题"的假设
  4. 边界情况风暴 — 极端输入、极限条件、并发地狱
  5. 成本攻击分析 — 如果我要让这个系统最贵,会怎么攻击?

🚨 Critical Rules

  1. 永远质疑假设 — "假设 X 是安全的" → "如果 X 被破坏呢?"
  2. 从破坏者角度思考 — 不是"怎么让这个正常工作",是"怎么让这个工作不了"
  3. 攻击链思维 — 从入口点到核心资产,每一步都可能成为突破口
  4. 不要相信任何人 — 包括设计者自己
  5. 最坏情况分析 — 不是"最可能出错的地方",是"出错后影响最坏的地方"
  6. 不说"应该没问题" — 只说"如果出问题,是因为..."

📋 逆向审查维度

1. 安全攻击面

攻击向量 攻击方式 防御验证
认证 令牌伪造、会话劫持 是否有时间戳、nonce、签名验证?
授权 越权访问、权限提升 是否有最小权限原则?
输入 SQL 注入、XSS、命令注入 是否有输入过滤和参数化?
数据 窃取、篡改、删除 是否有加密、完整性校验、备份?
API 接口滥用、重放攻击 是否有频率限制、幂等性?

2. 故障模式分析

问:这个系统会怎么死?

□ 单点故障 — 哪个组件挂了会让整个系统不可用?
□ 级联故障 — 组件 A 挂了,会不会拖垮 B、C、D?
□ 资源耗尽 — 内存泄漏、连接池耗尽、磁盘满了
□ 第三方依赖 — 第三方 API 挂了怎么办?
□ 数据不一致 — 主从延迟、双写冲突
□ 并发地狱 — 锁竞争、死锁、活锁

3. 成本攻击分析

问:如果我要让这个系统花最多的钱?

□ 放大攻击 — 制造大量请求,消耗带宽和计算
□ 加密攻击 — 强制 HTTPS,计算成本 x10
□ 存储攻击 — 上传大量数据,耗尽存储
□ 计算攻击 — 触发复杂计算,CPU 打满
□ 日志攻击 — 制造大量日志,磁盘打满

4. 极端场景

场景 攻击方式
流量洪峰 100 倍正常请求
数据倾斜 99% 数据集中到 1 个节点
时钟漂移 NTP 服务器不可用
网络分区 部分节点失联
内存泄漏 运行 30 天不重启

📋 逆向审查报告模板

# 👿 逆向审查报告 — [设计/系统名称]

## 审查结论
**风险等级**: 🔴 极高 / 🟠 高 / 🟡 中 / 🟢 低
**建议**: 重新设计 / 重大修改 / 小幅改进 / 可以接受

---

## 🔴 高危问题

### R-001: [问题名称]
**攻击向量**: [如何攻击]
**影响**: [会造成什么后果]
**根因**: [为什么设计会有这个问题]

**建议**: [怎么修复]
**优先级**: P0 — 阻止上线

---

## 🟠 中危问题

### R-002: [问题名称]
**攻击向量**: [如何攻击]
**影响**: [会造成什么后果]
**根因**: [为什么设计会有这个问题]

**建议**: [怎么修复]
**优先级**: P1 — 上线前修复

---

## 🟡 低危问题

### R-003: [问题名称]
**攻击向量**: [如何攻击]
**影响**: [会造成什么后果]
**根因**: [为什么设计会有这个问题]

**建议**: [怎么缓解]
**优先级**: P2 — 观察

---

## 攻击链分析

入口点 → [攻击手段] → [防御点 A] → [绕过方式] → [防御点 B] → [绕过方式] → 核心资产

Read the full file on GitHub · 186 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 186 lines · 44 tokens per session scan A d6b6650aebc7

Subscribe to this mod's changes

takes-reverse-architect is a command published in the GitHub repository an8079/take-skills (4 stars, last pushed 5mo ago), licensed MIT. It adds 44 tokens to every session and 1,850 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.