> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# 逆向工程仓库

> 将本地 Git 历史与仓库结构转化为可直接用于构建的 prompt。

```bash theme={null}
arka repo_reverse
arka repo_reverse ./project --commits 50 --output rebuild-prompt.md
arka "reverse engineer this repository"
```

Arka 会把已跟踪文件与近期 Git 演进整合成一份可审阅的 prompt，
用于重建或熟悉一个代码库。它完全在本地运行，不会上传仓库。


## Related topics

- [工程循环](/cn/guides/loop-engineering.md)
- [仓库地图](/cn/guides/repo-map.md)
- [AI 智能体指南 — 通过 MCP 使用 Arka](/cn/guides/ai-agents.md)
- [仓库健康度](/cn/guides/repo-health.md)
- [仓库结构审计](/cn/guides/structure.md)
