一键导入
skill-reverse-engineering
Regenerate architecture documentation from codebase analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Regenerate architecture documentation from codebase analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when decomposing tasks into parallel sub-tasks or spawning sub-agents. Vendor-agnostic core; load a per-vendor reference for concrete tool names, directory conventions, and invocation syntax.
Use when performing Verification-Driven Development with adversarial approach. Actively challenge assumptions and find weak spots.
Use when performing VDD adversarial review with an opt-in sarcastic, provocative delivery style — a stylistic skin over vdd-adversarial mechanics (exhaustive reporting + objective bar).
Performance critic in adversarial style (optional sarcastic skin). Part of VDD Multi-Adversarial pipeline.
Use when performing OWASP security critique in adversarial style (optional sarcastic skin). Part of VDD Multi-Adversarial pipeline.
Use when performing security vulnerability assessment (OWASP, secrets, dependencies, IaC, LLM, API, MCP/agentic) or when "thinking like a hacker" to find exploits.
| name | skill-reverse-engineering |
| description | Regenerate architecture documentation from codebase analysis. |
| tier | 2 |
| version | 1.1 |
Recover the mental model of a project from its codebase when documentation is outdated or missing.
Tool: scripts/scan_structure.py
Usage:
python3 .agent/skills/skill-reverse-engineering/scripts/scan_structure.py . --depth 2
Goal:
For each key component identified in Phase 1:
Combine local summaries to update docs/ARCHITECTURE.md:
Generate diffs for:
Identify:
TODO/HACK comments indicating tech debt.[!CAUTION] Never overwrite architectural rationale written by humans.
Protected patterns:
<!-- HUMAN KNOWLEDGE -->> **Design Decision:**Strategy: Append new findings, do not delete existing rationale.
skill-update-memory: After analysis, run bootstrap mode to create missing .AGENTS.md files where needed.04-update-docs: Run this skill if docs drift is detected.